/
home
/
techb158
/
ileadtechnology.com
/
vendor
/
mollie
/
mollie-api-php
/
src
/
Resources
/
/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources
mkdir
upload
Name
Size
Mode
Actions
Balance.php
3061
0644
edit
dl
rm
BalanceCollection.php
364
0644
edit
dl
rm
BalanceReport.php
2416
0644
edit
dl
rm
BalanceTransaction.php
2438
0644
edit
dl
rm
BalanceTransactionCollection.php
412
0644
edit
dl
rm
BaseCollection.php
596
0644
edit
dl
rm
BaseResource.php
491
0644
edit
dl
rm
Capture.php
1183
0644
edit
dl
rm
CaptureCollection.php
364
0644
edit
dl
rm
Chargeback.php
1372
0644
edit
dl
rm
ChargebackCollection.php
373
0644
edit
dl
rm
Client.php
608
0644
edit
dl
rm
ClientCollection.php
361
0644
edit
dl
rm
ClientLink.php
1273
0644
edit
dl
rm
CurrentProfile.php
809
0644
edit
dl
rm
CursorCollection.php
2473
0644
edit
dl
rm
Customer.php
5669
0644
edit
dl
rm
CustomerCollection.php
367
0644
edit
dl
rm
Invoice.php
1843
0644
edit
dl
rm
InvoiceCollection.php
364
0644
edit
dl
rm
Issuer.php
514
0644
edit
dl
rm
IssuerCollection.php
214
0644
edit
dl
rm
Mandate.php
1851
0644
edit
dl
rm
MandateCollection.php
800
0644
edit
dl
rm
Method.php
2212
0644
edit
dl
rm
MethodCollection.php
214
0644
edit
dl
rm
MethodPrice.php
734
0644
edit
dl
rm
MethodPriceCollection.php
219
0644
edit
dl
rm
Onboarding.php
1062
0644
edit
dl
rm
Order.php
13064
0644
edit
dl
rm
OrderCollection.php
358
0644
edit
dl
rm
OrderLine.php
8559
0644
edit
dl
rm
OrderLineCollection.php
587
0644
edit
dl
rm
Organization.php
1287
0644
edit
dl
rm
OrganizationCollection.php
379
0644
edit
dl
rm
Partner.php
1262
0644
edit
dl
rm
Payment.php
19145
0644
edit
dl
rm
PaymentCollection.php
364
0644
edit
dl
rm
PaymentLink.php
2521
0644
edit
dl
rm
PaymentLinkCollection.php
377
0644
edit
dl
rm
Permission.php
338
0644
edit
dl
rm
PermissionCollection.php
222
0644
edit
dl
rm
Profile.php
5535
0644
edit
dl
rm
ProfileCollection.php
364
0644
edit
dl
rm
Refund.php
3207
0644
edit
dl
rm
RefundCollection.php
361
0644
edit
dl
rm
ResourceFactory.php
2068
0644
edit
dl
rm
Route.php
631
0644
edit
dl
rm
RouteCollection.php
357
0644
edit
dl
rm
Settlement.php
4075
0644
edit
dl
rm
SettlementCollection.php
373
0644
edit
dl
rm
Shipment.php
2650
0644
edit
dl
rm
ShipmentCollection.php
218
0644
edit
dl
rm
Subscription.php
4889
0644
edit
dl
rm
SubscriptionCollection.php
379
0644
edit
dl
rm
Terminal.php
3242
0644
edit
dl
rm
TerminalCollection.php
367
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources/Customer.php
(5669B)
<?php namespace Mollie\Api\Resources; use Mollie\Api\Exceptions\ApiException; class Customer extends BaseResource { /** * Id of the customer. * * @var string */ public $id; /** * Either "live" or "test". Indicates this being a test or a live (verified) customer. * * @var string */ public $mode; /** * @var string */ public $name; /** * @var string */ public $email; /** * @var string|null */ public $locale; /** * @var \stdClass|mixed|null */ public $metadata; /** * @var string[]|array */ public $recentlyUsedMethods; /** * @var string */ public $createdAt; /** * @var \stdClass */ public $_links; /** * @return \Mollie\Api\Resources\Customer * @throws \Mollie\Api\Exceptions\ApiException */ public function update() { $body = [ "name" => $this->name, "email" => $this->email, "locale" => $this->locale, "metadata" => $this->metadata, ]; $result = $this->client->customers->update($this->id, $body); return ResourceFactory::createFromApiResult($result, new Customer($this->client)); } /** * @param array $options * @param array $filters * * @return Payment * @throws ApiException */ public function createPayment(array $options = [], array $filters = []) { return $this->client->customerPayments->createFor($this, $this->withPresetOptions($options), $filters); } /** * Get all payments for this customer * * @return PaymentCollection * @throws ApiException */ public function payments() { return $this->client->customerPayments->listFor($this, null, null, $this->getPresetOptions()); } /** * @param array $options * @param array $filters * * @return Subscription * @throws ApiException */ public function createSubscription(array $options = [], array $filters = []) { return $this->client->subscriptions->createFor($this, $this->withPresetOptions($options), $filters); } /** * @param string $subscriptionId * @param array $parameters * * @return Subscription * @throws ApiException */ public function getSubscription($subscriptionId, array $parameters = []) { return $this->client->subscriptions->getFor($this, $subscriptionId, $this->withPresetOptions($parameters)); } /** * @param string $subscriptionId * * @return null * @throws ApiException */ public function cancelSubscription($subscriptionId) { return $this->client->subscriptions->cancelFor($this, $subscriptionId, $this->getPresetOptions()); } /** * Get all subscriptions for this customer * * @return SubscriptionCollection * @throws ApiException */ public function subscriptions() { return $this->client->subscriptions->listFor($this, null, null, $this->getPresetOptions()); } /** * @param array $options * @param array $filters * * @return Mandate * @throws ApiException */ public function createMandate(array $options = [], array $filters = []) { return $this->client->mandates->createFor($this, $this->withPresetOptions($options), $filters); } /** * @param string $mandateId * @param array $parameters * * @return Mandate * @throws ApiException */ public function getMandate($mandateId, array $parameters = []) { return $this->client->mandates->getFor($this, $mandateId, $parameters); } /** * @param string $mandateId * * @return null * @throws ApiException */ public function revokeMandate($mandateId) { return $this->client->mandates->revokeFor($this, $mandateId, $this->getPresetOptions()); } /** * Get all mandates for this customer * * @return MandateCollection * @throws ApiException */ public function mandates() { return $this->client->mandates->listFor($this, null, null, $this->getPresetOptions()); } /** * Helper function to check for mandate with status valid * * @return bool */ public function hasValidMandate() { $mandates = $this->mandates(); foreach ($mandates as $mandate) { if ($mandate->isValid()) { return true; } } return false; } /** * Helper function to check for specific payment method mandate with status valid * * @return bool */ public function hasValidMandateForMethod($method) { $mandates = $this->mandates(); foreach ($mandates as $mandate) { if ($mandate->method === $method && $mandate->isValid()) { return true; } } return false; } /** * When accessed by oAuth we want to pass the testmode by default * * @return array */ private function getPresetOptions() { $options = []; if ($this->client->usesOAuth()) { $options["testmode"] = $this->mode === "test" ? true : false; } return $options; } /** * Apply the preset options. * * @param array $options * @return array */ private function withPresetOptions(array $options) { return array_merge($this->getPresetOptions(), $options); } }
Save
cmd:
run