/
home
/
techb158
/
ileadtechnology.com
/
SSM
/
vendor
/
paypal
/
rest-api-sdk-php
/
lib
/
PayPal
/
Api
/
/home/techb158/ileadtechnology.com/SSM/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api
mkdir
upload
Name
Size
Mode
Actions
Address.php
1085
0644
edit
dl
rm
Agreement.php
20513
0644
edit
dl
rm
AgreementDetails.php
4787
0644
edit
dl
rm
AgreementStateDescriptor.php
1149
0644
edit
dl
rm
AgreementTransaction.php
4893
0644
edit
dl
rm
AgreementTransactions.php
1935
0644
edit
dl
rm
AlternatePayment.php
2230
0644
edit
dl
rm
Amount.php
2298
0644
edit
dl
rm
Authorization.php
15801
0644
edit
dl
rm
BankAccount.php
14348
0644
edit
dl
rm
BankAccountsList.php
2632
0644
edit
dl
rm
BankToken.php
2036
0644
edit
dl
rm
BaseAddress.php
4219
0644
edit
dl
rm
Billing.php
794
0644
edit
dl
rm
BillingAgreementToken.php
310
0644
edit
dl
rm
BillingInfo.php
5376
0644
edit
dl
rm
CancelNotification.php
3680
0644
edit
dl
rm
Capture.php
9086
0644
edit
dl
rm
CarrierAccount.php
3042
0644
edit
dl
rm
CarrierAccountToken.php
1432
0644
edit
dl
rm
CartBase.php
9380
0644
edit
dl
rm
ChargeModel.php
1570
0644
edit
dl
rm
Cost.php
1417
0644
edit
dl
rm
CountryCode.php
942
0644
edit
dl
rm
CreateProfileResponse.php
603
0644
edit
dl
rm
Credit.php
1089
0644
edit
dl
rm
CreditCard.php
15414
0644
edit
dl
rm
CreditCardHistory.php
1849
0644
edit
dl
rm
CreditCardList.php
2629
0644
edit
dl
rm
CreditCardToken.php
4032
0644
edit
dl
rm
CreditFinancingOffered.php
3989
0644
edit
dl
rm
Currency.php
1475
0644
edit
dl
rm
CurrencyConversion.php
5533
0644
edit
dl
rm
CustomAmount.php
1251
0644
edit
dl
rm
DetailedRefund.php
4550
0644
edit
dl
rm
Details.php
5818
0644
edit
dl
rm
Error.php
6985
0644
edit
dl
rm
ErrorDetails.php
2092
0644
edit
dl
rm
ExtendedBankAccount.php
978
0644
edit
dl
rm
ExternalFunding.php
3320
0644
edit
dl
rm
FileAttachment.php
1138
0644
edit
dl
rm
FlowConfig.php
3122
0644
edit
dl
rm
FmfDetails.php
2405
0644
edit
dl
rm
FundingDetail.php
2380
0644
edit
dl
rm
FundingInstrument.php
7737
0644
edit
dl
rm
FundingOption.php
4998
0644
edit
dl
rm
FundingSource.php
6362
0644
edit
dl
rm
FuturePayment.php
1560
0644
edit
dl
rm
HyperSchema.php
3380
0644
edit
dl
rm
Image.php
1011
0644
edit
dl
rm
Incentive.php
4431
0644
edit
dl
rm
InputFields.php
3104
0644
edit
dl
rm
InstallmentInfo.php
3106
0644
edit
dl
rm
InstallmentOption.php
2189
0644
edit
dl
rm
Invoice.php
37040
0644
edit
dl
rm
InvoiceAddress.php
667
0644
edit
dl
rm
InvoiceItem.php
5117
0644
edit
dl
rm
InvoiceNumber.php
585
0644
edit
dl
rm
InvoiceSearchResponse.php
1821
0644
edit
dl
rm
Item.php
9845
0644
edit
dl
rm
ItemList.php
3502
0644
edit
dl
rm
Links.php
2517
0644
edit
dl
rm
Measurement.php
1076
0644
edit
dl
rm
MerchantInfo.php
5638
0644
edit
dl
rm
MerchantPreferences.php
6075
0644
edit
dl
rm
Metadata.php
5450
0644
edit
dl
rm
NameValuePair.php
1185
0644
edit
dl
rm
Notification.php
3125
0644
edit
dl
rm
OpenIdAddress.php
2451
0644
edit
dl
rm
OpenIdError.php
1852
0644
edit
dl
rm
OpenIdSession.php
3783
0644
edit
dl
rm
OpenIdTokeninfo.php
8268
0644
edit
dl
rm
OpenIdUserinfo.php
11161
0644
edit
dl
rm
Order.php
13574
0644
edit
dl
rm
OverrideChargeModel.php
1192
0644
edit
dl
rm
Participant.php
4153
0644
edit
dl
rm
Patch.php
2233
0644
edit
dl
rm
PatchRequest.php
1847
0644
edit
dl
rm
Payee.php
3531
0644
edit
dl
rm
Payer.php
7830
0644
edit
dl
rm
PayerInfo.php
9231
0644
edit
dl
rm
Payment.php
19738
0644
edit
dl
rm
PaymentCard.php
10053
0644
edit
dl
rm
PaymentCardToken.php
3394
0644
edit
dl
rm
PaymentDefinition.php
5022
0644
edit
dl
rm
PaymentDetail.php
4557
0644
edit
dl
rm
PaymentExecution.php
2817
0644
edit
dl
rm
PaymentHistory.php
2526
0644
edit
dl
rm
PaymentInstruction.php
4662
0644
edit
dl
rm
PaymentOptions.php
2259
0644
edit
dl
rm
PaymentSummary.php
1142
0644
edit
dl
rm
PaymentTerm.php
1649
0644
edit
dl
rm
Payout.php
4977
0644
edit
dl
rm
PayoutBatch.php
2433
0644
edit
dl
rm
PayoutBatchHeader.php
5464
0644
edit
dl
rm
PayoutItem.php
6453
0644
edit
dl
rm
PayoutItemDetails.php
5946
0644
edit
dl
rm
PayoutSenderBatchHeader.php
5251
0644
edit
dl
rm
Phone.php
1575
0644
edit
dl
rm
Plan.php
12099
0644
edit
dl
rm
PlanList.php
3249
0644
edit
dl
rm
PotentialPayerInfo.php
2442
0644
edit
dl
rm
Presentation.php
4582
0644
edit
dl
rm
PrivateLabelCard.php
3118
0644
edit
dl
rm
ProcessorResponse.php
3776
0644
edit
dl
rm
RecipientBankingInstruction.php
3230
0644
edit
dl
rm
RedirectUrls.php
1667
0644
edit
dl
rm
Refund.php
7148
0644
edit
dl
rm
RefundDetail.php
3245
0644
edit
dl
rm
RefundRequest.php
3720
0644
edit
dl
rm
RelatedResources.php
2467
0644
edit
dl
rm
Sale.php
18640
0644
edit
dl
rm
Search.php
12541
0644
edit
dl
rm
ShippingAddress.php
2216
0644
edit
dl
rm
ShippingCost.php
1179
0644
edit
dl
rm
ShippingInfo.php
3008
0644
edit
dl
rm
Tax.php
2174
0644
edit
dl
rm
Template.php
7860
0644
edit
dl
rm
TemplateData.php
15162
0644
edit
dl
rm
Templates.php
6947
0644
edit
dl
rm
TemplateSettings.php
1410
0644
edit
dl
rm
TemplateSettingsMetadata.php
705
0644
edit
dl
rm
Terms.php
3138
0644
edit
dl
rm
Transaction.php
1402
0644
edit
dl
rm
TransactionBase.php
943
0644
edit
dl
rm
Transactions.php
612
0644
edit
dl
rm
VerifyWebhookSignature.php
7306
0644
edit
dl
rm
VerifyWebhookSignatureResponse.php
890
0644
edit
dl
rm
Webhook.php
8182
0644
edit
dl
rm
WebhookEvent.php
9305
0644
edit
dl
rm
WebhookEventList.php
3053
0644
edit
dl
rm
WebhookEventType.php
3350
0644
edit
dl
rm
WebhookEventTypeList.php
1530
0644
edit
dl
rm
WebhookList.php
1344
0644
edit
dl
rm
WebProfile.php
8675
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/SSM/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php
(15414B)
<?php namespace PayPal\Api; use PayPal\Common\PayPalResourceModel; use PayPal\Rest\ApiContext; use PayPal\Transport\PayPalRestCall; use PayPal\Validation\ArgumentValidator; /** * Class CreditCard * * @package PayPal\Api * * @property string number * @property string type * @property int expire_month * @property int expire_year * @property string cvv2 * @property string first_name * @property string last_name * @property \PayPal\Api\Address billing_address * @property string external_customer_id * @property string state * @property string valid_until * @property \PayPal\Api\Links[] links */ class CreditCard extends PayPalResourceModel { /** * ID of the credit card. This ID is provided in the response when storing credit cards. **Required if using a stored credit card.** * * @deprecated Not publicly available * @param string $id * * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * ID of the credit card. This ID is provided in the response when storing credit cards. **Required if using a stored credit card.** * * @deprecated Not publicly available * @return string */ public function getId() { return $this->id; } /** * Credit card number. Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type. *Redacted in responses.* * * @param string $number * * @return $this */ public function setNumber($number) { $this->number = $number; return $this; } /** * Credit card number. Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type. *Redacted in responses.* * * @return string */ public function getNumber() { return $this->number; } /** * Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex` * * @param string $type * * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex` * * @return string */ public function getType() { return $this->type; } /** * Expiration month with no leading zero. Acceptable values are 1 through 12. * * @param int $expire_month * * @return $this */ public function setExpireMonth($expire_month) { $this->expire_month = $expire_month; return $this; } /** * Expiration month with no leading zero. Acceptable values are 1 through 12. * * @return int */ public function getExpireMonth() { return $this->expire_month; } /** * 4-digit expiration year. * * @param int $expire_year * * @return $this */ public function setExpireYear($expire_year) { $this->expire_year = $expire_year; return $this; } /** * 4-digit expiration year. * * @return int */ public function getExpireYear() { return $this->expire_year; } /** * 3-4 digit card validation code. * * @param string $cvv2 * * @return $this */ public function setCvv2($cvv2) { $this->cvv2 = $cvv2; return $this; } /** * 3-4 digit card validation code. * * @return string */ public function getCvv2() { return $this->cvv2; } /** * Cardholder's first name. * * @param string $first_name * * @return $this */ public function setFirstName($first_name) { $this->first_name = $first_name; return $this; } /** * Cardholder's first name. * * @return string */ public function getFirstName() { return $this->first_name; } /** * Cardholder's last name. * * @param string $last_name * * @return $this */ public function setLastName($last_name) { $this->last_name = $last_name; return $this; } /** * Cardholder's last name. * * @return string */ public function getLastName() { return $this->last_name; } /** * Billing Address associated with this card. * * @param \PayPal\Api\Address $billing_address * * @return $this */ public function setBillingAddress($billing_address) { $this->billing_address = $billing_address; return $this; } /** * Billing Address associated with this card. * * @return \PayPal\Api\Address */ public function getBillingAddress() { return $this->billing_address; } /** * A unique identifier of the customer to whom this bank account belongs. Generated and provided by the facilitator. **This is now used in favor of `payer_id` when creating or using a stored funding instrument in the vault.** * * @param string $external_customer_id * * @return $this */ public function setExternalCustomerId($external_customer_id) { $this->external_customer_id = $external_customer_id; return $this; } /** * A unique identifier of the customer to whom this bank account belongs. Generated and provided by the facilitator. **This is now used in favor of `payer_id` when creating or using a stored funding instrument in the vault.** * * @return string */ public function getExternalCustomerId() { return $this->external_customer_id; } /** * A user provided, optional convenvience field that functions as a unique identifier for the merchant on behalf of whom this credit card is being stored for. Note that this has no relation to PayPal merchant id * * @param string $merchant_id * * @return $this */ public function setMerchantId($merchant_id) { $this->merchant_id = $merchant_id; return $this; } /** * A user provided, optional convenvience field that functions as a unique identifier for the merchant on behalf of whom this credit card is being stored for. Note that this has no relation to PayPal merchant id * * @return string */ public function getMerchantId() { return $this->merchant_id; } /** * A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault. * * @deprecated This is being deprecated in favor of the `external_customer_id` property. * @param string $payer_id * * @return $this */ public function setPayerId($payer_id) { $this->payer_id = $payer_id; return $this; } /** * A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault. * * @deprecated This is being deprecated in favor of the `external_customer_id` property. * @return string */ public function getPayerId() { return $this->payer_id; } /** * A unique identifier of the bank account resource. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant. * * @param string $external_card_id * * @return $this */ public function setExternalCardId($external_card_id) { $this->external_card_id = $external_card_id; return $this; } /** * A unique identifier of the bank account resource. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant. * * @return string */ public function getExternalCardId() { return $this->external_card_id; } /** * State of the credit card funding instrument. * Valid Values: ["expired", "ok"] * * @param string $state * * @return $this */ public function setState($state) { $this->state = $state; return $this; } /** * State of the credit card funding instrument. * * @return string */ public function getState() { return $this->state; } /** * Funding instrument expiration date. * * @param string $create_time * * @return $this */ public function setCreateTime($create_time) { $this->create_time = $create_time; return $this; } /** * Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates creation time. * * @return string */ public function getCreateTime() { return $this->create_time; } /** * Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the updation time. * * @param string $update_time * * @return $this */ public function setUpdateTime($update_time) { $this->update_time = $update_time; return $this; } /** * Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the updation time. * * @return string */ public function getUpdateTime() { return $this->update_time; } /** * Date/Time until this resource can be used fund a payment. * * @param string $valid_until * * @return $this */ public function setValidUntil($valid_until) { $this->valid_until = $valid_until; return $this; } /** * Funding instrument expiration date. * * @return string */ public function getValidUntil() { return $this->valid_until; } /** * Creates a new Credit Card Resource (aka Tokenize). * * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return CreditCard */ public function create($apiContext = null, $restCall = null) { $payLoad = $this->toJSON(); $json = self::executeCall( "/v1/vault/credit-cards", "POST", $payLoad, null, $apiContext, $restCall ); $this->fromJson($json); return $this; } /** * Obtain the Credit Card resource for the given identifier. * * @param string $creditCardId * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return CreditCard */ public static function get($creditCardId, $apiContext = null, $restCall = null) { ArgumentValidator::validate($creditCardId, 'creditCardId'); $payLoad = ""; $json = self::executeCall( "/v1/vault/credit-cards/$creditCardId", "GET", $payLoad, null, $apiContext, $restCall ); $ret = new CreditCard(); $ret->fromJson($json); return $ret; } /** * Delete the Credit Card resource for the given identifier. * * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return bool */ public function delete($apiContext = null, $restCall = null) { ArgumentValidator::validate($this->getId(), "Id"); $payLoad = ""; self::executeCall( "/v1/vault/credit-cards/{$this->getId()}", "DELETE", $payLoad, null, $apiContext, $restCall ); return true; } /** * Update information in a previously saved card. Only the modified fields need to be passed in the request. * * @param PatchRequest $patchRequest * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return CreditCard */ public function update($patchRequest, $apiContext = null, $restCall = null) { ArgumentValidator::validate($this->getId(), "Id"); ArgumentValidator::validate($patchRequest, 'patch'); $payload = $patchRequest->toJSON(); $json = self::executeCall( "/v1/vault/credit-cards/{$this->getId()}", "PATCH", $payload, null, $apiContext, $restCall ); $this->fromJson($json); return $this; } /** * Retrieves a list of Credit Card resources. * * @param array $params * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return CreditCardList */ public static function all($params, $apiContext = null, $restCall = null) { if (is_null($params)) { $params = array(); } ArgumentValidator::validate($params, 'params'); $payLoad = ""; $allowedParams = array( 'page_size' => 1, 'page' => 1, 'start_time' => 1, 'end_time' => 1, 'sort_order' => 1, 'sort_by' => 1, 'merchant_id' => 1, 'external_card_id' => 1, 'external_customer_id' => 1, 'total_required' => 1 ); $json = self::executeCall( "/v1/vault/credit-cards" . "?" . http_build_query(array_intersect_key($params, $allowedParams)), "GET", $payLoad, null, $apiContext, $restCall ); $ret = new CreditCardList(); $ret->fromJson($json); return $ret; } }
Save
cmd:
run