PATH:
home
/
lab2454c
/
keebchat.com
/
core
/
libs
/
paypal
/
vendor
/
paypal
/
rest-api-sdk-php
/
lib
/
PayPal
/
Api
<?php namespace PayPal\Api; use PayPal\Common\PayPalModel; /** * Class PaymentCard * * A payment card that can fund a payment. * * @package PayPal\Api * * @property string id * @property string number * @property string type * @property string expire_month * @property string expire_year * @property string start_month * @property string start_year * @property string cvv2 * @property string first_name * @property string last_name * @property string billing_country * @property \PayPal\Api\Address billing_address * @property string external_customer_id * @property string status * @property string card_product_class * @property string valid_until * @property string issue_number * @property \PayPal\Api\Links[] links */ class PaymentCard extends PayPalModel { /** * The ID of a credit card to save for later use. * * @param string $id * * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * The ID of a credit card to save for later use. * * @return string */ public function getId() { return $this->id; } /** * The card number. * * @param string $number * * @return $this */ public function setNumber($number) { $this->number = $number; return $this; } /** * The card number. * * @return string */ public function getNumber() { return $this->number; } /** * The card type. * Valid Values: ["VISA", "AMEX", "SOLO", "JCB", "STAR", "DELTA", "DISCOVER", "SWITCH", "MAESTRO", "CB_NATIONALE", "CONFINOGA", "COFIDIS", "ELECTRON", "CETELEM", "CHINA_UNION_PAY", "MASTERCARD"] * * @param string $type * * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * The card type. * * @return string */ public function getType() { return $this->type; } /** * The two-digit expiry month for the card. * * @param string $expire_month * * @return $this */ public function setExpireMonth($expire_month) { $this->expire_month = $expire_month; return $this; } /** * The two-digit expiry month for the card. * * @return string */ public function getExpireMonth() { return $this->expire_month; } /** * The four-digit expiry year for the card. * * @param string $expire_year * * @return $this */ public function setExpireYear($expire_year) { $this->expire_year = $expire_year; return $this; } /** * The four-digit expiry year for the card. * * @return string */ public function getExpireYear() { return $this->expire_year; } /** * The two-digit start month for the card. Required for UK Maestro cards. * * @param string $start_month * * @return $this */ public function setStartMonth($start_month) { $this->start_month = $start_month; return $this; } /** * The two-digit start month for the card. Required for UK Maestro cards. * * @return string */ public function getStartMonth() { return $this->start_month; } /** * The four-digit start year for the card. Required for UK Maestro cards. * * @param string $start_year * * @return $this */ public function setStartYear($start_year) { $this->start_year = $start_year; return $this; } /** * The four-digit start year for the card. Required for UK Maestro cards. * * @return string */ public function getStartYear() { return $this->start_year; } /** * The validation code for the card. Supported for payments but not for saving payment cards for future use. * * @param string $cvv2 * * @return $this */ public function setCvv2($cvv2) { $this->cvv2 = $cvv2; return $this; } /** * The validation code for the card. Supported for payments but not for saving payment cards for future use. * * @return string */ public function getCvv2() { return $this->cvv2; } /** * The first name of the card holder. * * @param string $first_name * * @return $this */ public function setFirstName($first_name) { $this->first_name = $first_name; return $this; } /** * The first name of the card holder. * * @return string */ public function getFirstName() { return $this->first_name; } /** * The last name of the card holder. * * @param string $last_name * * @return $this */ public function setLastName($last_name) { $this->last_name = $last_name; return $this; } /** * The last name of the card holder. * * @return string */ public function getLastName() { return $this->last_name; } /** * The two-letter country code. * * @param string $billing_country * * @return $this */ public function setBillingCountry($billing_country) { $this->billing_country = $billing_country; return $this; } /** * The two-letter country code. * * @return string */ public function getBillingCountry() { return $this->billing_country; } /** * The billing address for the card. * * @param \PayPal\Api\Address $billing_address * * @return $this */ public function setBillingAddress($billing_address) { $this->billing_address = $billing_address; return $this; } /** * The billing address for the card. * * @return \PayPal\Api\Address */ public function getBillingAddress() { return $this->billing_address; } /** * The ID of the customer who owns this card account. The facilitator generates and provides this ID. Required when you create or use a stored funding instrument in the PayPal vault. * * @param string $external_customer_id * * @return $this */ public function setExternalCustomerId($external_customer_id) { $this->external_customer_id = $external_customer_id; return $this; } /** * The ID of the customer who owns this card account. The facilitator generates and provides this ID. Required when you create or use a stored funding instrument in the PayPal vault. * * @return string */ public function getExternalCustomerId() { return $this->external_customer_id; } /** * The state of the funding instrument. * Valid Values: ["EXPIRED", "ACTIVE"] * * @param string $status * * @return $this */ public function setStatus($status) { $this->status = $status; return $this; } /** * The state of the funding instrument. * * @return string */ public function getStatus() { return $this->status; } /** * The product class of the financial instrument issuer. * Valid Values: ["CREDIT", "DEBIT", "GIFT", "PAYPAL_PREPAID", "PREPAID", "UNKNOWN"] * * @param string $card_product_class * * @return $this */ public function setCardProductClass($card_product_class) { $this->card_product_class = $card_product_class; return $this; } /** * The product class of the financial instrument issuer. * * @return string */ public function getCardProductClass() { return $this->card_product_class; } /** * The date and time until when this instrument can be used fund a payment. * * @param string $valid_until * * @return $this */ public function setValidUntil($valid_until) { $this->valid_until = $valid_until; return $this; } /** * The date and time until when this instrument can be used fund a payment. * * @return string */ public function getValidUntil() { return $this->valid_until; } /** * The one- to two-digit card issue number. Required for UK Maestro cards. * * @param string $issue_number * * @return $this */ public function setIssueNumber($issue_number) { $this->issue_number = $issue_number; return $this; } /** * The one- to two-digit card issue number. Required for UK Maestro cards. * * @return string */ public function getIssueNumber() { return $this->issue_number; } /** * Sets Links * * @param \PayPal\Api\Links[] $links * * @return $this */ public function setLinks($links) { $this->links = $links; return $this; } /** * Gets Links * * @return \PayPal\Api\Links[] */ public function getLinks() { return $this->links; } /** * Append Links to the list. * * @param \PayPal\Api\Links $links * @return $this */ public function addLink($links) { if (!$this->getLinks()) { return $this->setLinks(array($links)); } else { return $this->setLinks( array_merge($this->getLinks(), array($links)) ); } } /** * Remove Links from the list. * * @param \PayPal\Api\Links $links * @return $this */ public function removeLink($links) { return $this->setLinks( array_diff($this->getLinks(), array($links)) ); } }
[-] PaymentTerm.php
[edit]
[-] Patch.php
[edit]
[-] AgreementTransaction.php
[edit]
[-] OverrideChargeModel.php
[edit]
[-] RefundDetail.php
[edit]
[-] PaymentExecution.php
[edit]
[-] CurrencyConversion.php
[edit]
[-] InvoiceItem.php
[edit]
[-] Terms.php
[edit]
[-] PaymentDetail.php
[edit]
[-] BillingInfo.php
[edit]
[-] CreditCardList.php
[edit]
[-] MerchantInfo.php
[edit]
[-] Links.php
[edit]
[-] Transactions.php
[edit]
[-] PaymentDefinition.php
[edit]
[+]
..
[-] PaymentSummary.php
[edit]
[-] OpenIdError.php
[edit]
[-] BillingAgreementToken.php
[edit]
[-] Sale.php
[edit]
[-] Item.php
[edit]
[-] Address.php
[edit]
[-] InvoiceNumber.php
[edit]
[-] Payee.php
[edit]
[-] TransactionBase.php
[edit]
[-] ExtendedBankAccount.php
[edit]
[-] AgreementStateDescriptor.php
[edit]
[-] RecipientBankingInstruction.php
[edit]
[-] WebProfile.php
[edit]
[-] Payout.php
[edit]
[-] FundingDetail.php
[edit]
[-] CreditFinancingOffered.php
[edit]
[-] PaymentCardToken.php
[edit]
[-] ProcessorResponse.php
[edit]
[-] OpenIdTokeninfo.php
[edit]
[-] PotentialPayerInfo.php
[edit]
[-] MerchantPreferences.php
[edit]
[-] InstallmentInfo.php
[edit]
[-] InvoiceSearchResponse.php
[edit]
[-] FmfDetails.php
[edit]
[-] Agreement.php
[edit]
[-] Incentive.php
[edit]
[-] OpenIdSession.php
[edit]
[-] Plan.php
[edit]
[-] Refund.php
[edit]
[-] BaseAddress.php
[edit]
[-] CreditCardToken.php
[edit]
[-] Amount.php
[edit]
[-] CreateProfileResponse.php
[edit]
[-] AgreementDetails.php
[edit]
[-] Order.php
[edit]
[-] CarrierAccount.php
[edit]
[-] FuturePayment.php
[edit]
[-] FileAttachment.php
[edit]
[-] Image.php
[edit]
[-] Details.php
[edit]
[-] RedirectUrls.php
[edit]
[-] RelatedResources.php
[edit]
[-] AlternatePayment.php
[edit]
[-] PrivateLabelCard.php
[edit]
[-] Tax.php
[edit]
[-] Phone.php
[edit]
[-] Measurement.php
[edit]
[-] RefundRequest.php
[edit]
[-] Payer.php
[edit]
[-] FundingSource.php
[edit]
[-] PayoutBatch.php
[edit]
[-] VerifyWebhookSignatureResponse.php
[edit]
[-] CarrierAccountToken.php
[edit]
[-] PayoutItem.php
[edit]
[-] Authorization.php
[edit]
[-] CreditCardHistory.php
[edit]
[-] WebhookEventTypeList.php
[edit]
[-] TemplateSettingsMetadata.php
[edit]
[-] Cost.php
[edit]
[-] PayoutItemDetails.php
[edit]
[-] NameValuePair.php
[edit]
[-] CancelNotification.php
[edit]
[-] WebhookEvent.php
[edit]
[-] ShippingInfo.php
[edit]
[-] FundingOption.php
[edit]
[-] ShippingAddress.php
[edit]
[-] HyperSchema.php
[edit]
[-] CartBase.php
[edit]
[-] PayerInfo.php
[edit]
[-] Notification.php
[edit]
[-] PaymentHistory.php
[edit]
[-] CustomAmount.php
[edit]
[-] WebhookList.php
[edit]
[-] Credit.php
[edit]
[-] PlanList.php
[edit]
[-] Metadata.php
[edit]
[-] ShippingCost.php
[edit]
[-] TemplateData.php
[edit]
[-] ChargeModel.php
[edit]
[-] Capture.php
[edit]
[-] Transaction.php
[edit]
[-] InputFields.php
[edit]
[-] OpenIdUserinfo.php
[edit]
[-] PatchRequest.php
[edit]
[-] DetailedRefund.php
[edit]
[-] PaymentCard.php
[edit]
[-] AgreementTransactions.php
[edit]
[-] Currency.php
[edit]
[-] Participant.php
[edit]
[-] PaymentOptions.php
[edit]
[-] VerifyWebhookSignature.php
[edit]
[-] BankAccountsList.php
[edit]
[-] Template.php
[edit]
[-] CountryCode.php
[edit]
[-] ErrorDetails.php
[edit]
[-] PaymentInstruction.php
[edit]
[-] TemplateSettings.php
[edit]
[-] Payment.php
[edit]
[-] Search.php
[edit]
[-] InstallmentOption.php
[edit]
[-] Invoice.php
[edit]
[-] BankAccount.php
[edit]
[-] FundingInstrument.php
[edit]
[-] FlowConfig.php
[edit]
[-] ItemList.php
[edit]
[-] Templates.php
[edit]
[-] BankToken.php
[edit]
[-] PayoutSenderBatchHeader.php
[edit]
[-] PayoutBatchHeader.php
[edit]
[-] Presentation.php
[edit]
[-] Billing.php
[edit]
[-] WebhookEventType.php
[edit]
[-] OpenIdAddress.php
[edit]
[-] InvoiceAddress.php
[edit]
[-] CreditCard.php
[edit]
[-] Webhook.php
[edit]
[-] ExternalFunding.php
[edit]
[-] WebhookEventList.php
[edit]
[-] Error.php
[edit]