/home/techb158/ileadtechnology.com/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api
NameSizeModeActions
Address.php10850644editdlrm
Agreement.php205130644editdlrm
AgreementDetails.php47870644editdlrm
AgreementStateDescriptor.php11490644editdlrm
AgreementTransaction.php48930644editdlrm
AgreementTransactions.php19350644editdlrm
AlternatePayment.php22300644editdlrm
Amount.php22980644editdlrm
Authorization.php158010644editdlrm
BankAccount.php143480644editdlrm
BankAccountsList.php26320644editdlrm
BankToken.php20360644editdlrm
BaseAddress.php42190644editdlrm
Billing.php7940644editdlrm
BillingAgreementToken.php3100644editdlrm
BillingInfo.php53760644editdlrm
CancelNotification.php36800644editdlrm
Capture.php90860644editdlrm
CarrierAccount.php30420644editdlrm
CarrierAccountToken.php14320644editdlrm
CartBase.php93800644editdlrm
ChargeModel.php15700644editdlrm
Cost.php14170644editdlrm
CountryCode.php9420644editdlrm
CreateProfileResponse.php6030644editdlrm
Credit.php10890644editdlrm
CreditCard.php154140644editdlrm
CreditCardHistory.php18490644editdlrm
CreditCardList.php26290644editdlrm
CreditCardToken.php40320644editdlrm
CreditFinancingOffered.php39890644editdlrm
Currency.php14750644editdlrm
CurrencyConversion.php55330644editdlrm
CustomAmount.php12510644editdlrm
DetailedRefund.php45500644editdlrm
Details.php58180644editdlrm
Error.php69850644editdlrm
ErrorDetails.php20920644editdlrm
ExtendedBankAccount.php9780644editdlrm
ExternalFunding.php33200644editdlrm
FileAttachment.php11380644editdlrm
FlowConfig.php31220644editdlrm
FmfDetails.php24050644editdlrm
FundingDetail.php23800644editdlrm
FundingInstrument.php77370644editdlrm
FundingOption.php49980644editdlrm
FundingSource.php63620644editdlrm
FuturePayment.php15600644editdlrm
HyperSchema.php33800644editdlrm
Image.php10110644editdlrm
Incentive.php44310644editdlrm
InputFields.php31040644editdlrm
InstallmentInfo.php31060644editdlrm
InstallmentOption.php21890644editdlrm
Invoice.php370400644editdlrm
InvoiceAddress.php6670644editdlrm
InvoiceItem.php51170644editdlrm
InvoiceNumber.php5850644editdlrm
InvoiceSearchResponse.php18210644editdlrm
Item.php98450644editdlrm
ItemList.php35020644editdlrm
Links.php25170644editdlrm
Measurement.php10760644editdlrm
MerchantInfo.php56380644editdlrm
MerchantPreferences.php60750644editdlrm
Metadata.php54500644editdlrm
NameValuePair.php11850644editdlrm
Notification.php31250644editdlrm
OpenIdAddress.php24510644editdlrm
OpenIdError.php18520644editdlrm
OpenIdSession.php37830644editdlrm
OpenIdTokeninfo.php82680644editdlrm
OpenIdUserinfo.php111610644editdlrm
Order.php135740644editdlrm
OverrideChargeModel.php11920644editdlrm
Participant.php41530644editdlrm
Patch.php22330644editdlrm
PatchRequest.php18470644editdlrm
Payee.php35310644editdlrm
Payer.php78300644editdlrm
PayerInfo.php92310644editdlrm
Payment.php197380644editdlrm
PaymentCard.php100530644editdlrm
PaymentCardToken.php33940644editdlrm
PaymentDefinition.php50220644editdlrm
PaymentDetail.php45570644editdlrm
PaymentExecution.php28170644editdlrm
PaymentHistory.php25260644editdlrm
PaymentInstruction.php46620644editdlrm
PaymentOptions.php22590644editdlrm
PaymentSummary.php11420644editdlrm
PaymentTerm.php16490644editdlrm
Payout.php49770644editdlrm
PayoutBatch.php24330644editdlrm
PayoutBatchHeader.php54640644editdlrm
PayoutItem.php64530644editdlrm
PayoutItemDetails.php59460644editdlrm
PayoutSenderBatchHeader.php52510644editdlrm
Phone.php15750644editdlrm
Plan.php120990644editdlrm
PlanList.php32490644editdlrm
PotentialPayerInfo.php24420644editdlrm
Presentation.php45820644editdlrm
PrivateLabelCard.php31180644editdlrm
ProcessorResponse.php37760644editdlrm
RecipientBankingInstruction.php32300644editdlrm
RedirectUrls.php16670644editdlrm
Refund.php71480644editdlrm
RefundDetail.php32450644editdlrm
RefundRequest.php37200644editdlrm
RelatedResources.php24670644editdlrm
Sale.php186400644editdlrm
Search.php125410644editdlrm
ShippingAddress.php22160644editdlrm
ShippingCost.php11790644editdlrm
ShippingInfo.php30080644editdlrm
Tax.php21740644editdlrm
Template.php78600644editdlrm
TemplateData.php151620644editdlrm
Templates.php69470644editdlrm
TemplateSettings.php14100644editdlrm
TemplateSettingsMetadata.php7050644editdlrm
Terms.php31380644editdlrm
Transaction.php14020644editdlrm
TransactionBase.php9430644editdlrm
Transactions.php6120644editdlrm
VerifyWebhookSignature.php73060644editdlrm
VerifyWebhookSignatureResponse.php8900644editdlrm
Webhook.php81820644editdlrm
WebhookEvent.php93050644editdlrm
WebhookEventList.php30530644editdlrm
WebhookEventType.php33500644editdlrm
WebhookEventTypeList.php15300644editdlrm
WebhookList.php13440644editdlrm
WebProfile.php86750644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php (15414B)
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; } }