Removed Deprecated Getter and Setters

- Removed Deprecated Getter Setters from all Model Classes
- All Camelcase getters and setters are removed. Please use first letter uppercase syntax
- E.g. instead of using get_notify_url(), use getNotifyUrl() instead
This commit is contained in:
japatel
2015-01-08 22:23:58 -06:00
parent ed2a4fd41e
commit b011d17cde
150 changed files with 47 additions and 10994 deletions

View File

@@ -147,31 +147,6 @@ class Agreement extends PayPalResourceModel
return $this->start_date;
}
/**
* Start date of the agreement. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setStartDate
*
* @param string $start_date
* @return $this
*/
public function setStart_date($start_date)
{
$this->start_date = $start_date;
return $this;
}
/**
* Start date of the agreement. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getStartDate
*
* @return string
*/
public function getStart_date()
{
return $this->start_date;
}
/**
* Details of the buyer who is enrolling in this agreement. This information is gathered from execution of the approval URL.
*
@@ -218,31 +193,6 @@ class Agreement extends PayPalResourceModel
return $this->shipping_address;
}
/**
* Shipping address object of the agreement, which should be provided if it is different from the default address.
*
* @deprecated Instead use setShippingAddress
*
* @param \PayPal\Api\Address $shipping_address
* @return $this
*/
public function setShipping_address($shipping_address)
{
$this->shipping_address = $shipping_address;
return $this;
}
/**
* Shipping address object of the agreement, which should be provided if it is different from the default address.
* @deprecated Instead use getShippingAddress
*
* @return \PayPal\Api\Address
*/
public function getShipping_address()
{
return $this->shipping_address;
}
/**
* Default merchant preferences from the billing plan are used, unless override preferences are provided here.
*
@@ -266,31 +216,6 @@ class Agreement extends PayPalResourceModel
return $this->override_merchant_preferences;
}
/**
* Default merchant preferences from the billing plan are used, unless override preferences are provided here.
*
* @deprecated Instead use setOverrideMerchantPreferences
*
* @param \PayPal\Api\MerchantPreferences $override_merchant_preferences
* @return $this
*/
public function setOverride_merchant_preferences($override_merchant_preferences)
{
$this->override_merchant_preferences = $override_merchant_preferences;
return $this;
}
/**
* Default merchant preferences from the billing plan are used, unless override preferences are provided here.
* @deprecated Instead use getOverrideMerchantPreferences
*
* @return \PayPal\Api\MerchantPreferences
*/
public function getOverride_merchant_preferences()
{
return $this->override_merchant_preferences;
}
/**
* Array of override_charge_model for this agreement if needed to change the default models from the billing plan.
*
@@ -344,31 +269,6 @@ class Agreement extends PayPalResourceModel
);
}
/**
* Array of override_charge_model for this agreement if needed to change the default models from the billing plan.
*
* @deprecated Instead use setOverrideChargeModels
*
* @param \PayPal\Api\OverrideChargeModel $override_charge_models
* @return $this
*/
public function setOverride_charge_models($override_charge_models)
{
$this->override_charge_models = $override_charge_models;
return $this;
}
/**
* Array of override_charge_model for this agreement if needed to change the default models from the billing plan.
* @deprecated Instead use getOverrideChargeModels
*
* @return \PayPal\Api\OverrideChargeModel
*/
public function getOverride_charge_models()
{
return $this->override_charge_models;
}
/**
* Plan details for this agreement.
*
@@ -415,31 +315,6 @@ class Agreement extends PayPalResourceModel
return $this->create_time;
}
/**
* Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -463,31 +338,6 @@ class Agreement extends PayPalResourceModel
return $this->update_time;
}
/**
* Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Agreement Details
*
@@ -511,31 +361,6 @@ class Agreement extends PayPalResourceModel
return $this->{"agreement-details"};
}
/**
* Agreement Details
*
* @deprecated Instead use setAgreementDetails
*
* @param \PayPal\Api\AgreementDetails $agreement-details
* @return $this
*/
public function setAgreement_details($agreement_details)
{
$this->{"agreement-details"} = $agreement_details;
return $this;
}
/**
* Agreement Details
* @deprecated Instead use getAgreementDetails
*
* @return \PayPal\Api\AgreementDetails
*/
public function getAgreement_details()
{
return $this->{"agreement-details"};
}
/**
* Get Approval Link
*

View File

@@ -45,31 +45,6 @@ class AgreementDetails extends PayPalModel
return $this->outstanding_balance;
}
/**
* The outstanding balance for this agreement.
*
* @deprecated Instead use setOutstandingBalance
*
* @param \PayPal\Api\Currency $outstanding_balance
* @return $this
*/
public function setOutstanding_balance($outstanding_balance)
{
$this->outstanding_balance = $outstanding_balance;
return $this;
}
/**
* The outstanding balance for this agreement.
* @deprecated Instead use getOutstandingBalance
*
* @return \PayPal\Api\Currency
*/
public function getOutstanding_balance()
{
return $this->outstanding_balance;
}
/**
* Number of cycles remaining for this agreement.
*
@@ -93,31 +68,6 @@ class AgreementDetails extends PayPalModel
return $this->cycles_remaining;
}
/**
* Number of cycles remaining for this agreement.
*
* @deprecated Instead use setCyclesRemaining
*
* @param string $cycles_remaining
* @return $this
*/
public function setCycles_remaining($cycles_remaining)
{
$this->cycles_remaining = $cycles_remaining;
return $this;
}
/**
* Number of cycles remaining for this agreement.
* @deprecated Instead use getCyclesRemaining
*
* @return string
*/
public function getCycles_remaining()
{
return $this->cycles_remaining;
}
/**
* Number of cycles completed for this agreement.
*
@@ -141,31 +91,6 @@ class AgreementDetails extends PayPalModel
return $this->cycles_completed;
}
/**
* Number of cycles completed for this agreement.
*
* @deprecated Instead use setCyclesCompleted
*
* @param string $cycles_completed
* @return $this
*/
public function setCycles_completed($cycles_completed)
{
$this->cycles_completed = $cycles_completed;
return $this;
}
/**
* Number of cycles completed for this agreement.
* @deprecated Instead use getCyclesCompleted
*
* @return string
*/
public function getCycles_completed()
{
return $this->cycles_completed;
}
/**
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
*
@@ -189,31 +114,6 @@ class AgreementDetails extends PayPalModel
return $this->next_billing_date;
}
/**
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
*
* @deprecated Instead use setNextBillingDate
*
* @param string $next_billing_date
* @return $this
*/
public function setNext_billing_date($next_billing_date)
{
$this->next_billing_date = $next_billing_date;
return $this;
}
/**
* The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format.
* @deprecated Instead use getNextBillingDate
*
* @return string
*/
public function getNext_billing_date()
{
return $this->next_billing_date;
}
/**
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
*
@@ -237,31 +137,6 @@ class AgreementDetails extends PayPalModel
return $this->last_payment_date;
}
/**
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
*
* @deprecated Instead use setLastPaymentDate
*
* @param string $last_payment_date
* @return $this
*/
public function setLast_payment_date($last_payment_date)
{
$this->last_payment_date = $last_payment_date;
return $this;
}
/**
* Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format.
* @deprecated Instead use getLastPaymentDate
*
* @return string
*/
public function getLast_payment_date()
{
return $this->last_payment_date;
}
/**
* Last payment amount for this agreement.
*
@@ -285,31 +160,6 @@ class AgreementDetails extends PayPalModel
return $this->last_payment_amount;
}
/**
* Last payment amount for this agreement.
*
* @deprecated Instead use setLastPaymentAmount
*
* @param \PayPal\Api\Currency $last_payment_amount
* @return $this
*/
public function setLast_payment_amount($last_payment_amount)
{
$this->last_payment_amount = $last_payment_amount;
return $this;
}
/**
* Last payment amount for this agreement.
* @deprecated Instead use getLastPaymentAmount
*
* @return \PayPal\Api\Currency
*/
public function getLast_payment_amount()
{
return $this->last_payment_amount;
}
/**
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
*
@@ -333,31 +183,6 @@ class AgreementDetails extends PayPalModel
return $this->final_payment_date;
}
/**
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
*
* @deprecated Instead use setFinalPaymentDate
*
* @param string $final_payment_date
* @return $this
*/
public function setFinal_payment_date($final_payment_date)
{
$this->final_payment_date = $final_payment_date;
return $this;
}
/**
* Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format.
* @deprecated Instead use getFinalPaymentDate
*
* @return string
*/
public function getFinal_payment_date()
{
return $this->final_payment_date;
}
/**
* Total number of failed payments for this agreement.
*
@@ -381,29 +206,4 @@ class AgreementDetails extends PayPalModel
return $this->failed_payment_count;
}
/**
* Total number of failed payments for this agreement.
*
* @deprecated Instead use setFailedPaymentCount
*
* @param string $failed_payment_count
* @return $this
*/
public function setFailed_payment_count($failed_payment_count)
{
$this->failed_payment_count = $failed_payment_count;
return $this;
}
/**
* Total number of failed payments for this agreement.
* @deprecated Instead use getFailedPaymentCount
*
* @return string
*/
public function getFailed_payment_count()
{
return $this->failed_payment_count;
}
}

View File

@@ -47,31 +47,6 @@ class AgreementTransaction extends PayPalModel
return $this->transaction_id;
}
/**
* Id corresponding to this transaction.
*
* @deprecated Instead use setTransactionId
*
* @param string $transaction_id
* @return $this
*/
public function setTransaction_id($transaction_id)
{
$this->transaction_id = $transaction_id;
return $this;
}
/**
* Id corresponding to this transaction.
* @deprecated Instead use getTransactionId
*
* @return string
*/
public function getTransaction_id()
{
return $this->transaction_id;
}
/**
* State of the subscription at this time.
*
@@ -118,31 +93,6 @@ class AgreementTransaction extends PayPalModel
return $this->transaction_type;
}
/**
* Type of transaction, usually Recurring Payment.
*
* @deprecated Instead use setTransactionType
*
* @param string $transaction_type
* @return $this
*/
public function setTransaction_type($transaction_type)
{
$this->transaction_type = $transaction_type;
return $this;
}
/**
* Type of transaction, usually Recurring Payment.
* @deprecated Instead use getTransactionType
*
* @return string
*/
public function getTransaction_type()
{
return $this->transaction_type;
}
/**
* Amount for this transaction.
*
@@ -189,31 +139,6 @@ class AgreementTransaction extends PayPalModel
return $this->fee_amount;
}
/**
* Fee amount for this transaction.
*
* @deprecated Instead use setFeeAmount
*
* @param \PayPal\Api\Currency $fee_amount
* @return $this
*/
public function setFee_amount($fee_amount)
{
$this->fee_amount = $fee_amount;
return $this;
}
/**
* Fee amount for this transaction.
* @deprecated Instead use getFeeAmount
*
* @return \PayPal\Api\Currency
*/
public function getFee_amount()
{
return $this->fee_amount;
}
/**
* Net amount for this transaction.
*
@@ -237,31 +162,6 @@ class AgreementTransaction extends PayPalModel
return $this->net_amount;
}
/**
* Net amount for this transaction.
*
* @deprecated Instead use setNetAmount
*
* @param \PayPal\Api\Currency $net_amount
* @return $this
*/
public function setNet_amount($net_amount)
{
$this->net_amount = $net_amount;
return $this;
}
/**
* Net amount for this transaction.
* @deprecated Instead use getNetAmount
*
* @return \PayPal\Api\Currency
*/
public function getNet_amount()
{
return $this->net_amount;
}
/**
* Email id of payer.
*
@@ -285,31 +185,6 @@ class AgreementTransaction extends PayPalModel
return $this->payer_email;
}
/**
* Email id of payer.
*
* @deprecated Instead use setPayerEmail
*
* @param string $payer_email
* @return $this
*/
public function setPayer_email($payer_email)
{
$this->payer_email = $payer_email;
return $this;
}
/**
* Email id of payer.
* @deprecated Instead use getPayerEmail
*
* @return string
*/
public function getPayer_email()
{
return $this->payer_email;
}
/**
* Business name of payer.
*
@@ -333,31 +208,6 @@ class AgreementTransaction extends PayPalModel
return $this->payer_name;
}
/**
* Business name of payer.
*
* @deprecated Instead use setPayerName
*
* @param string $payer_name
* @return $this
*/
public function setPayer_name($payer_name)
{
$this->payer_name = $payer_name;
return $this;
}
/**
* Business name of payer.
* @deprecated Instead use getPayerName
*
* @return string
*/
public function getPayer_name()
{
return $this->payer_name;
}
/**
* Time at which this transaction happened.
*
@@ -381,31 +231,6 @@ class AgreementTransaction extends PayPalModel
return $this->time_updated;
}
/**
* Time at which this transaction happened.
*
* @deprecated Instead use setTimeUpdated
*
* @param string $time_updated
* @return $this
*/
public function setTime_updated($time_updated)
{
$this->time_updated = $time_updated;
return $this;
}
/**
* Time at which this transaction happened.
* @deprecated Instead use getTimeUpdated
*
* @return string
*/
public function getTime_updated()
{
return $this->time_updated;
}
/**
* Time zone of time_updated field.
*
@@ -429,29 +254,4 @@ class AgreementTransaction extends PayPalModel
return $this->time_zone;
}
/**
* Time zone of time_updated field.
*
* @deprecated Instead use setTimeZone
*
* @param string $time_zone
* @return $this
*/
public function setTime_zone($time_zone)
{
$this->time_zone = $time_zone;
return $this;
}
/**
* Time zone of time_updated field.
* @deprecated Instead use getTimeZone
*
* @return string
*/
public function getTime_zone()
{
return $this->time_zone;
}
}

View File

@@ -68,29 +68,4 @@ class AgreementTransactions extends PayPalModel
);
}
/**
* Array of agreement_transaction object.
*
* @deprecated Instead use setAgreementTransactionList
*
* @param \PayPal\Api\AgreementTransaction $agreement_transaction_list
* @return $this
*/
public function setAgreement_transaction_list($agreement_transaction_list)
{
$this->agreement_transaction_list = $agreement_transaction_list;
return $this;
}
/**
* Array of agreement_transaction object.
* @deprecated Instead use getAgreementTransactionList
*
* @return \PayPal\Api\AgreementTransaction
*/
public function getAgreement_transaction_list()
{
return $this->agreement_transaction_list;
}
}

View File

@@ -31,24 +31,6 @@ use PayPal\Validation\ArgumentValidator;
*/
class Authorization extends PayPalModel implements IResource
{
/**
* OAuth Credentials to use for this call
*
* @var \PayPal\Auth\OAuthTokenCredential $credential
*/
protected static $credential;
/**
* Sets Credential
*
* @deprecated Pass ApiContext to create/get methods instead
* @param \PayPal\Auth\OAuthTokenCredential $credential
*/
public static function setCredential($credential)
{
self::$credential = $credential;
}
/**
* Identifier of the authorization transaction.
*
@@ -97,31 +79,6 @@ class Authorization extends PayPalModel implements IResource
return $this->create_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created in UTC ISO8601 format.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
@@ -146,31 +103,6 @@ class Authorization extends PayPalModel implements IResource
return $this->update_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Amount being authorized for.
*
@@ -219,31 +151,6 @@ class Authorization extends PayPalModel implements IResource
return $this->payment_mode;
}
/**
* specifies payment mode of the transaction
*
* @deprecated Instead use setPaymentMode
*
* @param string $payment_mode
* @return $this
*/
public function setPayment_mode($payment_mode)
{
$this->payment_mode = $payment_mode;
return $this;
}
/**
* specifies payment mode of the transaction
* @deprecated Instead use getPaymentMode
*
* @return string
*/
public function getPayment_mode()
{
return $this->payment_mode;
}
/**
* State of the authorization transaction.
* Valid Values: ["pending", "authorized", "partially_captured", "captured", "expired", "voided"]
@@ -292,31 +199,6 @@ class Authorization extends PayPalModel implements IResource
return $this->protection_eligibility;
}
/**
* Protection Eligibility of the Payer
*
* @deprecated Instead use setProtectionEligibility
*
* @param string $protection_eligibility
* @return $this
*/
public function setProtection_eligibility($protection_eligibility)
{
$this->protection_eligibility = $protection_eligibility;
return $this;
}
/**
* Protection Eligibility of the Payer
* @deprecated Instead use getProtectionEligibility
*
* @return string
*/
public function getProtection_eligibility()
{
return $this->protection_eligibility;
}
/**
* Protection Eligibility Type of the Payer
* Valid Values: ["ELIGIBLE", "ITEM_NOT_RECEIVED_ELIGIBLE", "INELIGIBLE", "UNAUTHORIZED_PAYMENT_ELIGIBLE"]
@@ -341,31 +223,6 @@ class Authorization extends PayPalModel implements IResource
return $this->protection_eligibility_type;
}
/**
* Protection Eligibility Type of the Payer
*
* @deprecated Instead use setProtectionEligibilityType
*
* @param string $protection_eligibility_type
* @return $this
*/
public function setProtection_eligibility_type($protection_eligibility_type)
{
$this->protection_eligibility_type = $protection_eligibility_type;
return $this;
}
/**
* Protection Eligibility Type of the Payer
* @deprecated Instead use getProtectionEligibilityType
*
* @return string
*/
public function getProtection_eligibility_type()
{
return $this->protection_eligibility_type;
}
/**
* ID of the Payment resource that this transaction is based on.
*
@@ -390,31 +247,6 @@ class Authorization extends PayPalModel implements IResource
return $this->parent_payment;
}
/**
* ID of the Payment resource that this transaction is based on.
*
* @deprecated Instead use setParentPayment
*
* @param string $parent_payment
* @return $this
*/
public function setParent_payment($parent_payment)
{
$this->parent_payment = $parent_payment;
return $this;
}
/**
* ID of the Payment resource that this transaction is based on.
* @deprecated Instead use getParentPayment
*
* @return string
*/
public function getParent_payment()
{
return $this->parent_payment;
}
/**
* Expected clearing time for eCheck Transactions
*
@@ -439,31 +271,6 @@ class Authorization extends PayPalModel implements IResource
return $this->clearing_time;
}
/**
* Expected clearing time for eCheck Transactions
*
* @deprecated Instead use setClearingTime
*
* @param string $clearing_time
* @return $this
*/
public function setClearing_time($clearing_time)
{
$this->clearing_time = $clearing_time;
return $this;
}
/**
* Expected clearing time for eCheck Transactions
* @deprecated Instead use getClearingTime
*
* @return string
*/
public function getClearing_time()
{
return $this->clearing_time;
}
/**
* Date/Time until which funds may be captured against this resource.
*
@@ -488,31 +295,6 @@ class Authorization extends PayPalModel implements IResource
return $this->valid_until;
}
/**
* Date/Time until which funds may be captured against this resource.
*
* @deprecated Instead use setValidUntil
*
* @param string $valid_until
* @return $this
*/
public function setValid_until($valid_until)
{
$this->valid_until = $valid_until;
return $this;
}
/**
* Date/Time until which funds may be captured against this resource.
* @deprecated Instead use getValidUntil
*
* @return string
*/
public function getValid_until()
{
return $this->valid_until;
}
/**
* Sets Links
*

View File

@@ -86,31 +86,6 @@ class BankAccount extends PayPalResourceModel
return $this->account_number;
}
/**
* Account number in either IBAN (max length 34) or BBAN (max length 17) format.
*
* @deprecated Instead use setAccountNumber
*
* @param string $account_number
* @return $this
*/
public function setAccount_number($account_number)
{
$this->account_number = $account_number;
return $this;
}
/**
* Account number in either IBAN (max length 34) or BBAN (max length 17) format.
* @deprecated Instead use getAccountNumber
*
* @return string
*/
public function getAccount_number()
{
return $this->account_number;
}
/**
* Type of the bank account number (International or Basic Bank Account Number). For more information refer to http://en.wikipedia.org/wiki/International_Bank_Account_Number.
* Valid Values: ["BBAN", "IBAN"]
@@ -135,31 +110,6 @@ class BankAccount extends PayPalResourceModel
return $this->account_number_type;
}
/**
* Type of the bank account number (International or Basic Bank Account Number). For more information refer to http://en.wikipedia.org/wiki/International_Bank_Account_Number.
*
* @deprecated Instead use setAccountNumberType
*
* @param string $account_number_type
* @return $this
*/
public function setAccount_number_type($account_number_type)
{
$this->account_number_type = $account_number_type;
return $this;
}
/**
* Type of the bank account number (International or Basic Bank Account Number). For more information refer to http://en.wikipedia.org/wiki/International_Bank_Account_Number.
* @deprecated Instead use getAccountNumberType
*
* @return string
*/
public function getAccount_number_type()
{
return $this->account_number_type;
}
/**
* Routing transit number (aka Bank Code) of the bank (typically for domestic use only - for international use, IBAN includes bank code). For more information refer to http://en.wikipedia.org/wiki/Bank_code.
*
@@ -183,31 +133,6 @@ class BankAccount extends PayPalResourceModel
return $this->routing_number;
}
/**
* Routing transit number (aka Bank Code) of the bank (typically for domestic use only - for international use, IBAN includes bank code). For more information refer to http://en.wikipedia.org/wiki/Bank_code.
*
* @deprecated Instead use setRoutingNumber
*
* @param string $routing_number
* @return $this
*/
public function setRouting_number($routing_number)
{
$this->routing_number = $routing_number;
return $this;
}
/**
* Routing transit number (aka Bank Code) of the bank (typically for domestic use only - for international use, IBAN includes bank code). For more information refer to http://en.wikipedia.org/wiki/Bank_code.
* @deprecated Instead use getRoutingNumber
*
* @return string
*/
public function getRouting_number()
{
return $this->routing_number;
}
/**
* Type of the bank account.
* Valid Values: ["CHECKING", "SAVINGS"]
@@ -232,31 +157,6 @@ class BankAccount extends PayPalResourceModel
return $this->account_type;
}
/**
* Type of the bank account.
*
* @deprecated Instead use setAccountType
*
* @param string $account_type
* @return $this
*/
public function setAccount_type($account_type)
{
$this->account_type = $account_type;
return $this;
}
/**
* Type of the bank account.
* @deprecated Instead use getAccountType
*
* @return string
*/
public function getAccount_type()
{
return $this->account_type;
}
/**
* A customer designated name.
*
@@ -280,31 +180,6 @@ class BankAccount extends PayPalResourceModel
return $this->account_name;
}
/**
* A customer designated name.
*
* @deprecated Instead use setAccountName
*
* @param string $account_name
* @return $this
*/
public function setAccount_name($account_name)
{
$this->account_name = $account_name;
return $this;
}
/**
* A customer designated name.
* @deprecated Instead use getAccountName
*
* @return string
*/
public function getAccount_name()
{
return $this->account_name;
}
/**
* Type of the check when this information was obtained through a check by the facilitator or merchant.
* Valid Values: ["PERSONAL", "COMPANY"]
@@ -329,31 +204,6 @@ class BankAccount extends PayPalResourceModel
return $this->check_type;
}
/**
* Type of the check when this information was obtained through a check by the facilitator or merchant.
*
* @deprecated Instead use setCheckType
*
* @param string $check_type
* @return $this
*/
public function setCheck_type($check_type)
{
$this->check_type = $check_type;
return $this;
}
/**
* Type of the check when this information was obtained through a check by the facilitator or merchant.
* @deprecated Instead use getCheckType
*
* @return string
*/
public function getCheck_type()
{
return $this->check_type;
}
/**
* How the check was obtained from the customer, if check was the source of the information provided.
* Valid Values: ["CCD", "PPD", "TEL", "POP", "ARC", "RCK", "WEB"]
@@ -378,31 +228,6 @@ class BankAccount extends PayPalResourceModel
return $this->auth_type;
}
/**
* How the check was obtained from the customer, if check was the source of the information provided.
*
* @deprecated Instead use setAuthType
*
* @param string $auth_type
* @return $this
*/
public function setAuth_type($auth_type)
{
$this->auth_type = $auth_type;
return $this;
}
/**
* How the check was obtained from the customer, if check was the source of the information provided.
* @deprecated Instead use getAuthType
*
* @return string
*/
public function getAuth_type()
{
return $this->auth_type;
}
/**
* Time at which the authorization (or check) was captured. Use this field if the user authorization needs to be captured due to any privacy requirements.
*
@@ -426,31 +251,6 @@ class BankAccount extends PayPalResourceModel
return $this->auth_capture_timestamp;
}
/**
* Time at which the authorization (or check) was captured. Use this field if the user authorization needs to be captured due to any privacy requirements.
*
* @deprecated Instead use setAuthCaptureTimestamp
*
* @param string $auth_capture_timestamp
* @return $this
*/
public function setAuth_capture_timestamp($auth_capture_timestamp)
{
$this->auth_capture_timestamp = $auth_capture_timestamp;
return $this;
}
/**
* Time at which the authorization (or check) was captured. Use this field if the user authorization needs to be captured due to any privacy requirements.
* @deprecated Instead use getAuthCaptureTimestamp
*
* @return string
*/
public function getAuth_capture_timestamp()
{
return $this->auth_capture_timestamp;
}
/**
* Name of the bank.
*
@@ -474,31 +274,6 @@ class BankAccount extends PayPalResourceModel
return $this->bank_name;
}
/**
* Name of the bank.
*
* @deprecated Instead use setBankName
*
* @param string $bank_name
* @return $this
*/
public function setBank_name($bank_name)
{
$this->bank_name = $bank_name;
return $this;
}
/**
* Name of the bank.
* @deprecated Instead use getBankName
*
* @return string
*/
public function getBank_name()
{
return $this->bank_name;
}
/**
* 2 letter country code of the Bank.
*
@@ -522,31 +297,6 @@ class BankAccount extends PayPalResourceModel
return $this->country_code;
}
/**
* 2 letter country code of the Bank.
*
* @deprecated Instead use setCountryCode
*
* @param string $country_code
* @return $this
*/
public function setCountry_code($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* 2 letter country code of the Bank.
* @deprecated Instead use getCountryCode
*
* @return string
*/
public function getCountry_code()
{
return $this->country_code;
}
/**
* Account holder's first name.
*
@@ -570,31 +320,6 @@ class BankAccount extends PayPalResourceModel
return $this->first_name;
}
/**
* Account holder's first name.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* Account holder's first name.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Account holder's last name.
*
@@ -618,31 +343,6 @@ class BankAccount extends PayPalResourceModel
return $this->last_name;
}
/**
* Account holder's last name.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Account holder's last name.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* Birth date of the bank account holder.
*
@@ -666,31 +366,6 @@ class BankAccount extends PayPalResourceModel
return $this->birth_date;
}
/**
* Birth date of the bank account holder.
*
* @deprecated Instead use setBirthDate
*
* @param string $birth_date
* @return $this
*/
public function setBirth_date($birth_date)
{
$this->birth_date = $birth_date;
return $this;
}
/**
* Birth date of the bank account holder.
* @deprecated Instead use getBirthDate
*
* @return string
*/
public function getBirth_date()
{
return $this->birth_date;
}
/**
* Billing address.
*
@@ -714,31 +389,6 @@ class BankAccount extends PayPalResourceModel
return $this->billing_address;
}
/**
* Billing address.
*
* @deprecated Instead use setBillingAddress
*
* @param \PayPal\Api\Address $billing_address
* @return $this
*/
public function setBilling_address($billing_address)
{
$this->billing_address = $billing_address;
return $this;
}
/**
* Billing address.
* @deprecated Instead use getBillingAddress
*
* @return \PayPal\Api\Address
*/
public function getBilling_address()
{
return $this->billing_address;
}
/**
* State of this funding instrument.
* Valid Values: ["ACTIVE", "INACTIVE", "DELETED"]
@@ -787,31 +437,6 @@ class BankAccount extends PayPalResourceModel
return $this->confirmation_status;
}
/**
* Confirmation status of a bank account.
*
* @deprecated Instead use setConfirmationStatus
*
* @param string $confirmation_status
* @return $this
*/
public function setConfirmation_status($confirmation_status)
{
$this->confirmation_status = $confirmation_status;
return $this;
}
/**
* Confirmation status of a bank account.
* @deprecated Instead use getConfirmationStatus
*
* @return string
*/
public function getConfirmation_status()
{
return $this->confirmation_status;
}
/**
* Deprecated - Use external_customer_id instead.
*
@@ -835,31 +460,6 @@ class BankAccount extends PayPalResourceModel
return $this->payer_id;
}
/**
* Deprecated - Use external_customer_id instead.
*
* @deprecated Instead use setPayerId
*
* @param string $payer_id
* @return $this
*/
public function setPayer_id($payer_id)
{
$this->payer_id = $payer_id;
return $this;
}
/**
* Deprecated - Use external_customer_id instead.
* @deprecated Instead use getPayerId
*
* @return string
*/
public function getPayer_id()
{
return $this->payer_id;
}
/**
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
@@ -883,30 +483,6 @@ class BankAccount extends PayPalResourceModel
return $this->external_customer_id;
}
/**
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
* @deprecated Instead use setExternalCustomerId
*
* @param string $external_customer_id
* @return $this
*/
public function setExternal_customer_id($external_customer_id)
{
$this->external_customer_id = $external_customer_id;
return $this;
}
/**
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
* @deprecated Instead use getExternalCustomerId
*
* @return string
*/
public function getExternal_customer_id()
{
return $this->external_customer_id;
}
/**
* A unique identifier of the merchant for which this bank account has been stored for. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchnt.
@@ -931,31 +507,6 @@ class BankAccount extends PayPalResourceModel
return $this->merchant_id;
}
/**
* A unique identifier of the merchant for which this bank account has been stored for. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchnt.
*
* @deprecated Instead use setMerchantId
*
* @param string $merchant_id
* @return $this
*/
public function setMerchant_id($merchant_id)
{
$this->merchant_id = $merchant_id;
return $this;
}
/**
* A unique identifier of the merchant for which this bank account has been stored for. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchnt.
* @deprecated Instead use getMerchantId
*
* @return string
*/
public function getMerchant_id()
{
return $this->merchant_id;
}
/**
* Time the resource was created.
*
@@ -979,31 +530,6 @@ class BankAccount extends PayPalResourceModel
return $this->create_time;
}
/**
* Time the resource was created.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was last updated.
*
@@ -1027,31 +553,6 @@ class BankAccount extends PayPalResourceModel
return $this->update_time;
}
/**
* Time the resource was last updated.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was last updated.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Date/Time until this resource can be used to fund a payment.
*
@@ -1075,31 +576,6 @@ class BankAccount extends PayPalResourceModel
return $this->valid_until;
}
/**
* Date/Time until this resource can be used to fund a payment.
*
* @deprecated Instead use setValidUntil
*
* @param string $valid_until
* @return $this
*/
public function setValid_until($valid_until)
{
$this->valid_until = $valid_until;
return $this;
}
/**
* Date/Time until this resource can be used to fund a payment.
* @deprecated Instead use getValidUntil
*
* @return string
*/
public function getValid_until()
{
return $this->valid_until;
}
/**
* Creates a new Bank Account Resource.
*

View File

@@ -70,31 +70,6 @@ class BankAccountsList extends PayPalModel
);
}
/**
* A list of bank account resources
*
* @deprecated Instead use setBankAccounts
*
* @param \PayPal\Api\BankAccount $bank-accounts
* @return $this
*/
public function setBank_accounts($bank_accounts)
{
$this->{"bank-accounts"} = $bank_accounts;
return $this;
}
/**
* A list of bank account resources
* @deprecated Instead use getBankAccounts
*
* @return \PayPal\Api\BankAccount
*/
public function getBank_accounts()
{
return $this->{"bank-accounts"};
}
/**
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
*
@@ -141,29 +116,4 @@ class BankAccountsList extends PayPalModel
return $this->next_id;
}
/**
* Identifier of the next element to get the next range of results.
*
* @deprecated Instead use setNextId
*
* @param string $next_id
* @return $this
*/
public function setNext_id($next_id)
{
$this->next_id = $next_id;
return $this;
}
/**
* Identifier of the next element to get the next range of results.
* @deprecated Instead use getNextId
*
* @return string
*/
public function getNext_id()
{
return $this->next_id;
}
}

View File

@@ -40,31 +40,6 @@ class BankToken extends PayPalModel
return $this->bank_id;
}
/**
* ID of a previously saved Bank resource using /vault/bank API.
*
* @deprecated Instead use setBankId
*
* @param string $bank_id
* @return $this
*/
public function setBank_id($bank_id)
{
$this->bank_id = $bank_id;
return $this;
}
/**
* ID of a previously saved Bank resource using /vault/bank API.
* @deprecated Instead use getBankId
*
* @return string
*/
public function getBank_id()
{
return $this->bank_id;
}
/**
* The unique identifier of the payer used when saving this bank using /vault/bank API.
*
@@ -88,31 +63,6 @@ class BankToken extends PayPalModel
return $this->external_customer_id;
}
/**
* The unique identifier of the payer used when saving this bank using /vault/bank API.
*
* @deprecated Instead use setExternalCustomerId
*
* @param string $external_customer_id
* @return $this
*/
public function setExternal_customer_id($external_customer_id)
{
$this->external_customer_id = $external_customer_id;
return $this;
}
/**
* The unique identifier of the payer used when saving this bank using /vault/bank API.
* @deprecated Instead use getExternalCustomerId
*
* @return string
*/
public function getExternal_customer_id()
{
return $this->external_customer_id;
}
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
*
@@ -136,29 +86,4 @@ class BankToken extends PayPalModel
return $this->mandate_reference_number;
}
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
*
* @deprecated Instead use setMandateReferenceNumber
*
* @param string $mandate_reference_number
* @return $this
*/
public function setMandate_reference_number($mandate_reference_number)
{
$this->mandate_reference_number = $mandate_reference_number;
return $this;
}
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
* @deprecated Instead use getMandateReferenceNumber
*
* @return string
*/
public function getMandate_reference_number()
{
return $this->mandate_reference_number;
}
}

View File

@@ -112,31 +112,6 @@ class BaseAddress extends PayPalModel
return $this->country_code;
}
/**
* 2 letter country code.
*
* @deprecated Instead use setCountryCode
*
* @param string $country_code
* @return $this
*/
public function setCountry_code($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* 2 letter country code.
* @deprecated Instead use getCountryCode
*
* @return string
*/
public function getCountry_code()
{
return $this->country_code;
}
/**
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
*
@@ -160,31 +135,6 @@ class BaseAddress extends PayPalModel
return $this->postal_code;
}
/**
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
*
* @deprecated Instead use setPostalCode
*
* @param string $postal_code
* @return $this
*/
public function setPostal_code($postal_code)
{
$this->postal_code = $postal_code;
return $this;
}
/**
* Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
* @deprecated Instead use getPostalCode
*
* @return string
*/
public function getPostal_code()
{
return $this->postal_code;
}
/**
* 2 letter code for US states, and the equivalent for other countries.
*

View File

@@ -69,31 +69,6 @@ class BillingInfo extends PayPalModel
return $this->first_name;
}
/**
* First name of the invoice recipient. 30 characters max.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* First name of the invoice recipient. 30 characters max.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Last name of the invoice recipient. 30 characters max.
*
@@ -117,31 +92,6 @@ class BillingInfo extends PayPalModel
return $this->last_name;
}
/**
* Last name of the invoice recipient. 30 characters max.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Last name of the invoice recipient. 30 characters max.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* Company business name of the invoice recipient. 100 characters max.
*
@@ -165,31 +115,6 @@ class BillingInfo extends PayPalModel
return $this->business_name;
}
/**
* Company business name of the invoice recipient. 100 characters max.
*
* @deprecated Instead use setBusinessName
*
* @param string $business_name
* @return $this
*/
public function setBusiness_name($business_name)
{
$this->business_name = $business_name;
return $this;
}
/**
* Company business name of the invoice recipient. 100 characters max.
* @deprecated Instead use getBusinessName
*
* @return string
*/
public function getBusiness_name()
{
return $this->business_name;
}
/**
* Address of the invoice recipient.
*
@@ -260,31 +185,6 @@ class BillingInfo extends PayPalModel
return $this->additional_info;
}
/**
* Option to display additional information such as business hours. 40 characters max.
*
* @deprecated Instead use setAdditionalInfo
*
* @param string $additional_info
* @return $this
*/
public function setAdditional_info($additional_info)
{
$this->additional_info = $additional_info;
return $this;
}
/**
* Option to display additional information such as business hours. 40 characters max.
* @deprecated Instead use getAdditionalInfo
*
* @return string
*/
public function getAdditional_info()
{
return $this->additional_info;
}
/**
* Preferred notification channel of the payer. Email by default.
* Valid Values: ["SMS", "EMAIL"]
@@ -309,31 +209,6 @@ class BillingInfo extends PayPalModel
return $this->notification_channel;
}
/**
* Preferred notification channel of the payer. Email by default.
*
* @deprecated Instead use setNotificationChannel
*
* @param string $notification_channel
* @return $this
*/
public function setNotification_channel($notification_channel)
{
$this->notification_channel = $notification_channel;
return $this;
}
/**
* Preferred notification channel of the payer. Email by default.
* @deprecated Instead use getNotificationChannel
*
* @return string
*/
public function getNotification_channel()
{
return $this->notification_channel;
}
/**
* Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
*

View File

@@ -87,31 +87,6 @@ class CancelNotification extends PayPalModel
return $this->send_to_merchant;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
*
* @deprecated Instead use setSendToMerchant
*
* @param bool $send_to_merchant
* @return $this
*/
public function setSend_to_merchant($send_to_merchant)
{
$this->send_to_merchant = $send_to_merchant;
return $this;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
* @deprecated Instead use getSendToMerchant
*
* @return bool
*/
public function getSend_to_merchant()
{
return $this->send_to_merchant;
}
/**
* A flag indicating whether a copy of the email has to be sent to the payer.
*
@@ -135,29 +110,4 @@ class CancelNotification extends PayPalModel
return $this->send_to_payer;
}
/**
* A flag indicating whether a copy of the email has to be sent to the payer.
*
* @deprecated Instead use setSendToPayer
*
* @param bool $send_to_payer
* @return $this
*/
public function setSend_to_payer($send_to_payer)
{
$this->send_to_payer = $send_to_payer;
return $this;
}
/**
* A flag indicating whether a copy of the email has to be sent to the payer.
* @deprecated Instead use getSendToPayer
*
* @return bool
*/
public function getSend_to_payer()
{
return $this->send_to_payer;
}
}

View File

@@ -27,24 +27,6 @@ use PayPal\Validation\ArgumentValidator;
*/
class Capture extends PayPalModel implements IResource
{
/**
* OAuth Credentials to use for this call
*
* @var \PayPal\Auth\OAuthTokenCredential $credential
*/
protected static $credential;
/**
* Sets Credential
*
* @deprecated Pass ApiContext to create/get methods instead
* @param \PayPal\Auth\OAuthTokenCredential $credential
*/
public static function setCredential($credential)
{
self::$credential = $credential;
}
/**
* Identifier of the Capture transaction.
*
@@ -93,31 +75,6 @@ class Capture extends PayPalModel implements IResource
return $this->create_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created in UTC ISO8601 format.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
@@ -142,31 +99,6 @@ class Capture extends PayPalModel implements IResource
return $this->update_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Amount being captured. If no amount is specified, amount is used from the authorization being captured. If amount is same as the amount that's authorized for, the state of the authorization changes to captured. If not, the state of the authorization changes to partially_captured. Alternatively, you could indicate a final capture by seting the is_final_capture flag to true.
*
@@ -215,31 +147,6 @@ class Capture extends PayPalModel implements IResource
return $this->is_final_capture;
}
/**
* whether this is a final capture for the given authorization or not. If it's final, all the remaining funds held by the authorization, will be released in the funding instrument.
*
* @deprecated Instead use setIsFinalCapture
*
* @param bool $is_final_capture
* @return $this
*/
public function setIs_final_capture($is_final_capture)
{
$this->is_final_capture = $is_final_capture;
return $this;
}
/**
* whether this is a final capture for the given authorization or not. If it's final, all the remaining funds held by the authorization, will be released in the funding instrument.
* @deprecated Instead use getIsFinalCapture
*
* @return bool
*/
public function getIs_final_capture()
{
return $this->is_final_capture;
}
/**
* State of the capture transaction.
* Valid Values: ["pending", "completed", "refunded", "partially_refunded"]
@@ -288,31 +195,6 @@ class Capture extends PayPalModel implements IResource
return $this->parent_payment;
}
/**
* ID of the Payment resource that this transaction is based on.
*
* @deprecated Instead use setParentPayment
*
* @param string $parent_payment
* @return $this
*/
public function setParent_payment($parent_payment)
{
$this->parent_payment = $parent_payment;
return $this;
}
/**
* ID of the Payment resource that this transaction is based on.
* @deprecated Instead use getParentPayment
*
* @return string
*/
public function getParent_payment()
{
return $this->parent_payment;
}
/**
* Sets Links
*

View File

@@ -41,31 +41,6 @@ class CarrierAccountToken extends PayPalModel
return $this->carrier_account_id;
}
/**
* ID of a previously saved carrier account resource.
*
* @deprecated Instead use setCarrierAccountId
*
* @param string $carrier_account_id
* @return $this
*/
public function setCarrier_account_id($carrier_account_id)
{
$this->carrier_account_id = $carrier_account_id;
return $this;
}
/**
* ID of a previously saved carrier account resource.
* @deprecated Instead use getCarrierAccountId
*
* @return string
*/
public function getCarrier_account_id()
{
return $this->carrier_account_id;
}
/**
* The unique identifier of the payer used when saving this carrier account instrument.
*
@@ -89,29 +64,4 @@ class CarrierAccountToken extends PayPalModel
return $this->external_customer_id;
}
/**
* The unique identifier of the payer used when saving this carrier account instrument.
*
* @deprecated Instead use setExternalCustomerId
*
* @param string $external_customer_id
* @return $this
*/
public function setExternal_customer_id($external_customer_id)
{
$this->external_customer_id = $external_customer_id;
return $this;
}
/**
* The unique identifier of the payer used when saving this carrier account instrument.
* @deprecated Instead use getExternalCustomerId
*
* @return string
*/
public function getExternal_customer_id()
{
return $this->external_customer_id;
}
}

View File

@@ -120,31 +120,6 @@ class CartBase extends PayPalModel
return $this->note_to_payee;
}
/**
* Note to the recipient of the funds in this transaction.
*
* @deprecated Instead use setNoteToPayee
*
* @param string $note_to_payee
* @return $this
*/
public function setNote_to_payee($note_to_payee)
{
$this->note_to_payee = $note_to_payee;
return $this;
}
/**
* Note to the recipient of the funds in this transaction.
* @deprecated Instead use getNoteToPayee
*
* @return string
*/
public function getNote_to_payee()
{
return $this->note_to_payee;
}
/**
* free-form field for the use of clients
*
@@ -193,31 +168,6 @@ class CartBase extends PayPalModel
return $this->invoice_number;
}
/**
* invoice number to track this payment
*
* @deprecated Instead use setInvoiceNumber
*
* @param string $invoice_number
* @return $this
*/
public function setInvoice_number($invoice_number)
{
$this->invoice_number = $invoice_number;
return $this;
}
/**
* invoice number to track this payment
* @deprecated Instead use getInvoiceNumber
*
* @return string
*/
public function getInvoice_number()
{
return $this->invoice_number;
}
/**
* Soft descriptor used when charging this funding source.
*
@@ -242,31 +192,6 @@ class CartBase extends PayPalModel
return $this->soft_descriptor;
}
/**
* Soft descriptor used when charging this funding source.
*
* @deprecated Instead use setSoftDescriptor
*
* @param string $soft_descriptor
* @return $this
*/
public function setSoft_descriptor($soft_descriptor)
{
$this->soft_descriptor = $soft_descriptor;
return $this;
}
/**
* Soft descriptor used when charging this funding source.
* @deprecated Instead use getSoftDescriptor
*
* @return string
*/
public function getSoft_descriptor()
{
return $this->soft_descriptor;
}
/**
* Payment options requested for this purchase unit
*
@@ -291,31 +216,6 @@ class CartBase extends PayPalModel
return $this->payment_options;
}
/**
* Payment options requested for this purchase unit
*
* @deprecated Instead use setPaymentOptions
*
* @param \PayPal\Api\PaymentOptions $payment_options
* @return $this
*/
public function setPayment_options($payment_options)
{
$this->payment_options = $payment_options;
return $this;
}
/**
* Payment options requested for this purchase unit
* @deprecated Instead use getPaymentOptions
*
* @return \PayPal\Api\PaymentOptions
*/
public function getPayment_options()
{
return $this->payment_options;
}
/**
* List of items being paid for.
*
@@ -340,29 +240,4 @@ class CartBase extends PayPalModel
return $this->item_list;
}
/**
* List of items being paid for.
*
* @deprecated Instead use setItemList
*
* @param \PayPal\Api\ItemList $item_list
* @return $this
*/
public function setItem_list($item_list)
{
$this->item_list = $item_list;
return $this;
}
/**
* List of items being paid for.
* @deprecated Instead use getItemList
*
* @return \PayPal\Api\ItemList
*/
public function getItem_list()
{
return $this->item_list;
}
}

View File

@@ -123,31 +123,6 @@ class CreditCard extends PayPalResourceModel
return $this->expire_month;
}
/**
* 2 digit card expiry month.
*
* @deprecated Instead use setExpireMonth
*
* @param int $expire_month
* @return $this
*/
public function setExpire_month($expire_month)
{
$this->expire_month = $expire_month;
return $this;
}
/**
* 2 digit card expiry month.
* @deprecated Instead use getExpireMonth
*
* @return int
*/
public function getExpire_month()
{
return $this->expire_month;
}
/**
* 4 digit card expiry year
*
@@ -171,31 +146,6 @@ class CreditCard extends PayPalResourceModel
return $this->expire_year;
}
/**
* 4 digit card expiry year
*
* @deprecated Instead use setExpireYear
*
* @param int $expire_year
* @return $this
*/
public function setExpire_year($expire_year)
{
$this->expire_year = $expire_year;
return $this;
}
/**
* 4 digit card expiry year
* @deprecated Instead use getExpireYear
*
* @return int
*/
public function getExpire_year()
{
return $this->expire_year;
}
/**
* Card validation code. Only supported when making a Payment but not when saving a credit card for future use.
*
@@ -242,31 +192,6 @@ class CreditCard extends PayPalResourceModel
return $this->first_name;
}
/**
* Card holder's first name.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* Card holder's first name.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Card holder's last name.
*
@@ -290,31 +215,6 @@ class CreditCard extends PayPalResourceModel
return $this->last_name;
}
/**
* Card holder's last name.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Card holder's last name.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* Billing Address associated with this card.
*
@@ -338,31 +238,6 @@ class CreditCard extends PayPalResourceModel
return $this->billing_address;
}
/**
* Billing Address associated with this card.
*
* @deprecated Instead use setBillingAddress
*
* @param \PayPal\Api\Address $billing_address
* @return $this
*/
public function setBilling_address($billing_address)
{
$this->billing_address = $billing_address;
return $this;
}
/**
* Billing Address associated with this card.
* @deprecated Instead use getBillingAddress
*
* @return \PayPal\Api\Address
*/
public function getBilling_address()
{
return $this->billing_address;
}
/**
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
@@ -386,31 +261,6 @@ class CreditCard extends PayPalResourceModel
return $this->external_customer_id;
}
/**
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
* @deprecated Instead use setExternalCustomerId
*
* @param string $external_customer_id
* @return $this
*/
public function setExternal_customer_id($external_customer_id)
{
$this->external_customer_id = $external_customer_id;
return $this;
}
/**
* A unique identifier of the customer to whom this bank account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
* @deprecated Instead use getExternalCustomerId
*
* @return string
*/
public function getExternal_customer_id()
{
return $this->external_customer_id;
}
/**
* State of the funding instrument.
* Valid Values: ["expired", "ok"]
@@ -458,31 +308,6 @@ class CreditCard extends PayPalResourceModel
return $this->valid_until;
}
/**
* Date/Time until this resource can be used fund a payment.
*
* @deprecated Instead use setValidUntil
*
* @param string $valid_until
* @return $this
*/
public function setValid_until($valid_until)
{
$this->valid_until = $valid_until;
return $this;
}
/**
* Date/Time until this resource can be used fund a payment.
* @deprecated Instead use getValidUntil
*
* @return string
*/
public function getValid_until()
{
return $this->valid_until;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
@@ -506,31 +331,6 @@ class CreditCard extends PayPalResourceModel
return $this->create_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created in UTC ISO8601 format.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
@@ -554,31 +354,6 @@ class CreditCard extends PayPalResourceModel
return $this->update_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was created in UTC ISO8601 format.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Creates a new Credit Card Resource (aka Tokenize).
*

View File

@@ -42,31 +42,6 @@ class CreditCardHistory extends PayPalModel
return $this->{"credit-cards"};
}
/**
* A list of credit card resources
*
* @deprecated Instead use setCreditCards
*
* @param \PayPal\Api\CreditCard $credit-cards
* @return $this
*/
public function setCredit_cards($credit_cards)
{
$this->{"credit-cards"} = $credit_cards;
return $this;
}
/**
* A list of credit card resources
* @deprecated Instead use getCreditCards
*
* @return \PayPal\Api\CreditCard
*/
public function getCredit_cards()
{
return $this->{"credit-cards"};
}
/**
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
*
@@ -115,29 +90,4 @@ class CreditCardHistory extends PayPalModel
return $this->next_id;
}
/**
* Identifier of the next element to get the next range of results.
*
* @deprecated Instead use setNextId
*
* @param string $next_id
* @return $this
*/
public function setNext_id($next_id)
{
$this->next_id = $next_id;
return $this;
}
/**
* Identifier of the next element to get the next range of results.
* @deprecated Instead use getNextId
*
* @return string
*/
public function getNext_id()
{
return $this->next_id;
}
}

View File

@@ -70,31 +70,6 @@ class CreditCardList extends PayPalModel
);
}
/**
* A list of credit card resources
*
* @deprecated Instead use setCreditCards
*
* @param \PayPal\Api\CreditCard $credit-cards
* @return $this
*/
public function setCredit_cards($credit_cards)
{
$this->{"credit-cards"} = $credit_cards;
return $this;
}
/**
* A list of credit card resources
* @deprecated Instead use getCreditCards
*
* @return \PayPal\Api\CreditCard
*/
public function getCredit_cards()
{
return $this->{"credit-cards"};
}
/**
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
*
@@ -141,29 +116,4 @@ class CreditCardList extends PayPalModel
return $this->next_id;
}
/**
* Identifier of the next element to get the next range of results.
*
* @deprecated Instead use setNextId
*
* @param string $next_id
* @return $this
*/
public function setNext_id($next_id)
{
$this->next_id = $next_id;
return $this;
}
/**
* Identifier of the next element to get the next range of results.
* @deprecated Instead use getNextId
*
* @return string
*/
public function getNext_id()
{
return $this->next_id;
}
}

View File

@@ -43,31 +43,6 @@ class CreditCardToken extends PayPalModel
return $this->credit_card_id;
}
/**
* ID of a previously saved Credit Card resource using /vault/credit-card API.
*
* @deprecated Instead use setCreditCardId
*
* @param string $credit_card_id
* @return $this
*/
public function setCredit_card_id($credit_card_id)
{
$this->credit_card_id = $credit_card_id;
return $this;
}
/**
* ID of a previously saved Credit Card resource using /vault/credit-card API.
* @deprecated Instead use getCreditCardId
*
* @return string
*/
public function getCredit_card_id()
{
return $this->credit_card_id;
}
/**
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
*
@@ -91,31 +66,6 @@ class CreditCardToken extends PayPalModel
return $this->payer_id;
}
/**
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
*
* @deprecated Instead use setPayerId
*
* @param string $payer_id
* @return $this
*/
public function setPayer_id($payer_id)
{
$this->payer_id = $payer_id;
return $this;
}
/**
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
* @deprecated Instead use getPayerId
*
* @return string
*/
public function getPayer_id()
{
return $this->payer_id;
}
/**
* Last 4 digits of the card number from the saved card.
*
@@ -185,31 +135,6 @@ class CreditCardToken extends PayPalModel
return $this->expire_month;
}
/**
* Expiry month from the saved card, represented as 1 - 12.
*
* @deprecated Instead use setExpireMonth
*
* @param int $expire_month
* @return $this
*/
public function setExpire_month($expire_month)
{
$this->expire_month = $expire_month;
return $this;
}
/**
* Expiry month from the saved card, represented as 1 - 12.
* @deprecated Instead use getExpireMonth
*
* @return int
*/
public function getExpire_month()
{
return $this->expire_month;
}
/**
* Expiry year from the saved card, represented as YYYY format.
*
@@ -233,29 +158,4 @@ class CreditCardToken extends PayPalModel
return $this->expire_year;
}
/**
* Expiry year from the saved card, represented as YYYY format.
*
* @deprecated Instead use setExpireYear
*
* @param int $expire_year
* @return $this
*/
public function setExpire_year($expire_year)
{
$this->expire_year = $expire_year;
return $this;
}
/**
* Expiry year from the saved card, represented as YYYY format.
* @deprecated Instead use getExpireYear
*
* @return int
*/
public function getExpire_year()
{
return $this->expire_year;
}
}

View File

@@ -156,31 +156,6 @@ class Details extends PayPalModel
return $this->shipping_discount;
}
/**
* Amount being charged as shipping discount.
*
* @deprecated Instead use setShippingDiscount
*
* @param string $shipping_discount
* @return $this
*/
public function setShipping_discount($shipping_discount)
{
$this->shipping_discount = $shipping_discount;
return $this;
}
/**
* Amount being charged as shipping discount.
* @deprecated Instead use getShippingDiscount
*
* @return string
*/
public function getShipping_discount()
{
return $this->shipping_discount;
}
/**
* Amount being charged as insurance.
*
@@ -233,31 +208,6 @@ class Details extends PayPalModel
return $this->handling_fee;
}
/**
* Amount being charged as handling fee.
*
* @deprecated Instead use setHandlingFee
*
* @param string $handling_fee
* @return $this
*/
public function setHandling_fee($handling_fee)
{
$this->handling_fee = $handling_fee;
return $this;
}
/**
* Amount being charged as handling fee.
* @deprecated Instead use getHandlingFee
*
* @return string
*/
public function getHandling_fee()
{
return $this->handling_fee;
}
/**
* Amount being charged as gift wrap fee.
*
@@ -283,29 +233,4 @@ class Details extends PayPalModel
return $this->gift_wrap;
}
/**
* Amount being charged as gift wrap fee.
*
* @deprecated Instead use setGiftWrap
*
* @param string $gift_wrap
* @return $this
*/
public function setGift_wrap($gift_wrap)
{
$this->gift_wrap = $gift_wrap;
return $this;
}
/**
* Amount being charged as gift wrap fee.
* @deprecated Instead use getGiftWrap
*
* @return string
*/
public function getGift_wrap()
{
return $this->gift_wrap;
}
}

View File

@@ -66,31 +66,6 @@ class Error extends PayPalModel
return $this->debug_id;
}
/**
* PayPal internal identifier used for correlation purposes.
*
* @deprecated Instead use setDebugId
*
* @param string $debug_id
* @return $this
*/
public function setDebug_id($debug_id)
{
$this->debug_id = $debug_id;
return $this;
}
/**
* PayPal internal identifier used for correlation purposes.
* @deprecated Instead use getDebugId
*
* @return string
*/
public function getDebug_id()
{
return $this->debug_id;
}
/**
* Message describing the error.
*
@@ -137,31 +112,6 @@ class Error extends PayPalModel
return $this->information_link;
}
/**
* URI for detailed information related to this error for the developer.
*
* @deprecated Instead use setInformationLink
*
* @param string $information_link
* @return $this
*/
public function setInformation_link($information_link)
{
$this->information_link = $information_link;
return $this;
}
/**
* URI for detailed information related to this error for the developer.
* @deprecated Instead use getInformationLink
*
* @return string
*/
public function getInformation_link()
{
return $this->information_link;
}
/**
* Additional details of the error
*

View File

@@ -38,29 +38,4 @@ class ExtendedBankAccount extends BankAccount
return $this->mandate_reference_number;
}
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
*
* @deprecated Instead use setMandateReferenceNumber
*
* @param string $mandate_reference_number
* @return $this
*/
public function setMandate_reference_number($mandate_reference_number)
{
$this->mandate_reference_number = $mandate_reference_number;
return $this;
}
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
* @deprecated Instead use getMandateReferenceNumber
*
* @return string
*/
public function getMandate_reference_number()
{
return $this->mandate_reference_number;
}
}

View File

@@ -41,31 +41,6 @@ class FlowConfig extends PayPalModel
return $this->landing_page_type;
}
/**
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used.
*
* @deprecated Instead use setLandingPageType
*
* @param string $landing_page_type
* @return $this
*/
public function setLanding_page_type($landing_page_type)
{
$this->landing_page_type = $landing_page_type;
return $this;
}
/**
* Type of PayPal page to be displayed when a user lands on the PayPal site for checkout. Allowed values: `Billing` or `Login`. When set to `Billing`, the Non-PayPal account landing page is used. When set to `Login`, the PayPal account login landing page is used.
* @deprecated Instead use getLandingPageType
*
* @return string
*/
public function getLanding_page_type()
{
return $this->landing_page_type;
}
/**
* The URL on the merchant site for transferring to after a bank transfer payment.
*
@@ -91,29 +66,4 @@ class FlowConfig extends PayPalModel
return $this->bank_txn_pending_url;
}
/**
* The URL on the merchant site for transferring to after a bank transfer payment.
*
* @deprecated Instead use setBankTxnPendingUrl
*
* @param string $bank_txn_pending_url
* @return $this
*/
public function setBank_txn_pending_url($bank_txn_pending_url)
{
$this->bank_txn_pending_url = $bank_txn_pending_url;
return $this;
}
/**
* The URL on the merchant site for transferring to after a bank transfer payment.
* @deprecated Instead use getBankTxnPendingUrl
*
* @return string
*/
public function getBank_txn_pending_url()
{
return $this->bank_txn_pending_url;
}
}

View File

@@ -44,31 +44,6 @@ class FundingInstrument extends PayPalModel
return $this->credit_card;
}
/**
* Credit Card information.
*
* @deprecated Instead use setCreditCard
*
* @param \PayPal\Api\CreditCard $credit_card
* @return $this
*/
public function setCredit_card($credit_card)
{
$this->credit_card = $credit_card;
return $this;
}
/**
* Credit Card information.
* @deprecated Instead use getCreditCard
*
* @return \PayPal\Api\CreditCard
*/
public function getCredit_card()
{
return $this->credit_card;
}
/**
* Credit Card information.
*
@@ -92,31 +67,6 @@ class FundingInstrument extends PayPalModel
return $this->credit_card_token;
}
/**
* Credit Card information.
*
* @deprecated Instead use setCreditCardToken
*
* @param \PayPal\Api\CreditCardToken $credit_card_token
* @return $this
*/
public function setCredit_card_token($credit_card_token)
{
$this->credit_card_token = $credit_card_token;
return $this;
}
/**
* Credit Card information.
* @deprecated Instead use getCreditCardToken
*
* @return \PayPal\Api\CreditCardToken
*/
public function getCredit_card_token()
{
return $this->credit_card_token;
}
/**
* Payment Card information.
*
@@ -140,31 +90,6 @@ class FundingInstrument extends PayPalModel
return $this->payment_card;
}
/**
* Payment Card information.
*
* @deprecated Instead use setPaymentCard
*
* @param \PayPal\Api\PaymentCard $payment_card
* @return $this
*/
public function setPayment_card($payment_card)
{
$this->payment_card = $payment_card;
return $this;
}
/**
* Payment Card information.
* @deprecated Instead use getPaymentCard
*
* @return \PayPal\Api\PaymentCard
*/
public function getPayment_card()
{
return $this->payment_card;
}
/**
* Payment card token information.
*
@@ -188,31 +113,6 @@ class FundingInstrument extends PayPalModel
return $this->payment_card_token;
}
/**
* Payment card token information.
*
* @deprecated Instead use setPaymentCardToken
*
* @param \PayPal\Api\PaymentCardToken $payment_card_token
* @return $this
*/
public function setPayment_card_token($payment_card_token)
{
$this->payment_card_token = $payment_card_token;
return $this;
}
/**
* Payment card token information.
* @deprecated Instead use getPaymentCardToken
*
* @return \PayPal\Api\PaymentCardToken
*/
public function getPayment_card_token()
{
return $this->payment_card_token;
}
/**
* Bank Account information.
*
@@ -236,31 +136,6 @@ class FundingInstrument extends PayPalModel
return $this->bank_account;
}
/**
* Bank Account information.
*
* @deprecated Instead use setBankAccount
*
* @param \PayPal\Api\ExtendedBankAccount $bank_account
* @return $this
*/
public function setBank_account($bank_account)
{
$this->bank_account = $bank_account;
return $this;
}
/**
* Bank Account information.
* @deprecated Instead use getBankAccount
*
* @return \PayPal\Api\ExtendedBankAccount
*/
public function getBank_account()
{
return $this->bank_account;
}
/**
* Bank Account information.
*
@@ -284,31 +159,6 @@ class FundingInstrument extends PayPalModel
return $this->bank_account_token;
}
/**
* Bank Account information.
*
* @deprecated Instead use setBankAccountToken
*
* @param \PayPal\Api\BankToken $bank_account_token
* @return $this
*/
public function setBank_account_token($bank_account_token)
{
$this->bank_account_token = $bank_account_token;
return $this;
}
/**
* Bank Account information.
* @deprecated Instead use getBankAccountToken
*
* @return \PayPal\Api\BankToken
*/
public function getBank_account_token()
{
return $this->bank_account_token;
}
/**
* Credit funding information.
*

View File

@@ -41,31 +41,6 @@ class InputFields extends PayPalModel
return $this->allow_note;
}
/**
* Enables the buyer to enter a note to the merchant on the PayPal page during checkout.
*
* @deprecated Instead use setAllowNote
*
* @param bool $allow_note
* @return $this
*/
public function setAllow_note($allow_note)
{
$this->allow_note = $allow_note;
return $this;
}
/**
* Enables the buyer to enter a note to the merchant on the PayPal page during checkout.
* @deprecated Instead use getAllowNote
*
* @return bool
*/
public function getAllow_note()
{
return $this->allow_note;
}
/**
* Determines whether or not PayPal displays shipping address fields on the experience pages. Allowed values: `0`, `1`, or `2`. When set to `0`, PayPal displays the shipping address on the PayPal pages. When set to `1`, PayPal does not display shipping address fields whatsoever. When set to `2`, if you do not pass the shipping address, PayPal obtains it from the buyer's account profile. For digital goods, this field is required, and you must set it to `1`.
*
@@ -90,31 +65,6 @@ class InputFields extends PayPalModel
return $this->no_shipping;
}
/**
* Determines whether or not PayPal displays shipping address fields on the experience pages. Allowed values: `0`, `1`, or `2`. When set to `0`, PayPal displays the shipping address on the PayPal pages. When set to `1`, PayPal does not display shipping address fields whatsoever. When set to `2`, if you do not pass the shipping address, PayPal obtains it from the buyer's account profile. For digital goods, this field is required, and you must set it to `1`.
*
* @deprecated Instead use setNoShipping
*
* @param int $no_shipping
* @return $this
*/
public function setNo_shipping($no_shipping)
{
$this->no_shipping = $no_shipping;
return $this;
}
/**
* Determines whether or not PayPal displays shipping address fields on the experience pages. Allowed values: `0`, `1`, or `2`. When set to `0`, PayPal displays the shipping address on the PayPal pages. When set to `1`, PayPal does not display shipping address fields whatsoever. When set to `2`, if you do not pass the shipping address, PayPal obtains it from the buyer's account profile. For digital goods, this field is required, and you must set it to `1`.
* @deprecated Instead use getNoShipping
*
* @return int
*/
public function getNo_shipping()
{
return $this->no_shipping;
}
/**
* Determines whether or not the PayPal pages should display the shipping address and not the shipping address on file with PayPal for this buyer. Displaying the PayPal street address on file does not allow the buyer to edit that address. Allowed values: `0` or `1`. When set to `0`, the PayPal pages should not display the shipping address. When set to `1`, the PayPal pages should display the shipping address.
*
@@ -139,29 +89,4 @@ class InputFields extends PayPalModel
return $this->address_override;
}
/**
* Determines whether or not the PayPal pages should display the shipping address and not the shipping address on file with PayPal for this buyer. Displaying the PayPal street address on file does not allow the buyer to edit that address. Allowed values: `0` or `1`. When set to `0`, the PayPal pages should not display the shipping address. When set to `1`, the PayPal pages should display the shipping address.
*
* @deprecated Instead use setAddressOverride
*
* @param int $address_override
* @return $this
*/
public function setAddress_override($address_override)
{
$this->address_override = $address_override;
return $this;
}
/**
* Determines whether or not the PayPal pages should display the shipping address and not the shipping address on file with PayPal for this buyer. Displaying the PayPal street address on file does not allow the buyer to edit that address. Allowed values: `0` or `1`. When set to `0`, the PayPal pages should not display the shipping address. When set to `1`, the PayPal pages should display the shipping address.
* @deprecated Instead use getAddressOverride
*
* @return int
*/
public function getAddress_override()
{
return $this->address_override;
}
}

View File

@@ -158,31 +158,6 @@ class Invoice extends PayPalResourceModel
return $this->merchant_info;
}
/**
* Information about the merchant who is sending the invoice.
*
* @deprecated Instead use setMerchantInfo
*
* @param \PayPal\Api\MerchantInfo $merchant_info
* @return $this
*/
public function setMerchant_info($merchant_info)
{
$this->merchant_info = $merchant_info;
return $this;
}
/**
* Information about the merchant who is sending the invoice.
* @deprecated Instead use getMerchantInfo
*
* @return \PayPal\Api\MerchantInfo
*/
public function getMerchant_info()
{
return $this->merchant_info;
}
/**
* Email address of invoice recipient (required) and optional billing information. (Note: We currently only allow one recipient).
*
@@ -236,31 +211,6 @@ class Invoice extends PayPalResourceModel
);
}
/**
* Email address of invoice recipient (required) and optional billing information. (Note: We currently only allow one recipient).
*
* @deprecated Instead use setBillingInfo
*
* @param \PayPal\Api\BillingInfo $billing_info
* @return $this
*/
public function setBilling_info($billing_info)
{
$this->billing_info = $billing_info;
return $this;
}
/**
* Email address of invoice recipient (required) and optional billing information. (Note: We currently only allow one recipient).
* @deprecated Instead use getBillingInfo
*
* @return \PayPal\Api\BillingInfo
*/
public function getBilling_info()
{
return $this->billing_info;
}
/**
* Shipping information for entities to whom items are being shipped.
*
@@ -284,31 +234,6 @@ class Invoice extends PayPalResourceModel
return $this->shipping_info;
}
/**
* Shipping information for entities to whom items are being shipped.
*
* @deprecated Instead use setShippingInfo
*
* @param \PayPal\Api\ShippingInfo $shipping_info
* @return $this
*/
public function setShipping_info($shipping_info)
{
$this->shipping_info = $shipping_info;
return $this;
}
/**
* Shipping information for entities to whom items are being shipped.
* @deprecated Instead use getShippingInfo
*
* @return \PayPal\Api\ShippingInfo
*/
public function getShipping_info()
{
return $this->shipping_info;
}
/**
* List of items included in the invoice. 100 items max per invoice.
*
@@ -385,31 +310,6 @@ class Invoice extends PayPalResourceModel
return $this->invoice_date;
}
/**
* Date on which the invoice was enabled. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setInvoiceDate
*
* @param string $invoice_date
* @return $this
*/
public function setInvoice_date($invoice_date)
{
$this->invoice_date = $invoice_date;
return $this;
}
/**
* Date on which the invoice was enabled. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getInvoiceDate
*
* @return string
*/
public function getInvoice_date()
{
return $this->invoice_date;
}
/**
* Optional field to pass payment deadline for the invoice. Either term_type or due_date can be passed, but not both.
*
@@ -433,31 +333,6 @@ class Invoice extends PayPalResourceModel
return $this->payment_term;
}
/**
* Optional field to pass payment deadline for the invoice. Either term_type or due_date can be passed, but not both.
*
* @deprecated Instead use setPaymentTerm
*
* @param \PayPal\Api\PaymentTerm $payment_term
* @return $this
*/
public function setPayment_term($payment_term)
{
$this->payment_term = $payment_term;
return $this;
}
/**
* Optional field to pass payment deadline for the invoice. Either term_type or due_date can be passed, but not both.
* @deprecated Instead use getPaymentTerm
*
* @return \PayPal\Api\PaymentTerm
*/
public function getPayment_term()
{
return $this->payment_term;
}
/**
* Invoice level discount in percent or amount.
*
@@ -504,31 +379,6 @@ class Invoice extends PayPalResourceModel
return $this->shipping_cost;
}
/**
* Shipping cost in percent or amount.
*
* @deprecated Instead use setShippingCost
*
* @param \PayPal\Api\ShippingCost $shipping_cost
* @return $this
*/
public function setShipping_cost($shipping_cost)
{
$this->shipping_cost = $shipping_cost;
return $this;
}
/**
* Shipping cost in percent or amount.
* @deprecated Instead use getShippingCost
*
* @return \PayPal\Api\ShippingCost
*/
public function getShipping_cost()
{
return $this->shipping_cost;
}
/**
* Custom amount applied on an invoice. If a label is included then the amount cannot be empty.
*
@@ -575,31 +425,6 @@ class Invoice extends PayPalResourceModel
return $this->tax_calculated_after_discount;
}
/**
* Indicates whether tax is calculated before or after a discount. If false (the default), the tax is calculated before a discount. If true, the tax is calculated after a discount.
*
* @deprecated Instead use setTaxCalculatedAfterDiscount
*
* @param bool $tax_calculated_after_discount
* @return $this
*/
public function setTax_calculated_after_discount($tax_calculated_after_discount)
{
$this->tax_calculated_after_discount = $tax_calculated_after_discount;
return $this;
}
/**
* Indicates whether tax is calculated before or after a discount. If false (the default), the tax is calculated before a discount. If true, the tax is calculated after a discount.
* @deprecated Instead use getTaxCalculatedAfterDiscount
*
* @return bool
*/
public function getTax_calculated_after_discount()
{
return $this->tax_calculated_after_discount;
}
/**
* A flag indicating whether the unit price includes tax. Default is false
*
@@ -623,31 +448,6 @@ class Invoice extends PayPalResourceModel
return $this->tax_inclusive;
}
/**
* A flag indicating whether the unit price includes tax. Default is false
*
* @deprecated Instead use setTaxInclusive
*
* @param bool $tax_inclusive
* @return $this
*/
public function setTax_inclusive($tax_inclusive)
{
$this->tax_inclusive = $tax_inclusive;
return $this;
}
/**
* A flag indicating whether the unit price includes tax. Default is false
* @deprecated Instead use getTaxInclusive
*
* @return bool
*/
public function getTax_inclusive()
{
return $this->tax_inclusive;
}
/**
* General terms of the invoice. 4000 characters max.
*
@@ -717,31 +517,6 @@ class Invoice extends PayPalResourceModel
return $this->merchant_memo;
}
/**
* Bookkeeping memo that is private to the merchant. 150 characters max.
*
* @deprecated Instead use setMerchantMemo
*
* @param string $merchant_memo
* @return $this
*/
public function setMerchant_memo($merchant_memo)
{
$this->merchant_memo = $merchant_memo;
return $this;
}
/**
* Bookkeeping memo that is private to the merchant. 150 characters max.
* @deprecated Instead use getMerchantMemo
*
* @return string
*/
public function getMerchant_memo()
{
return $this->merchant_memo;
}
/**
* Full URL of an external image to use as the logo. 4000 characters max.
*
@@ -766,31 +541,6 @@ class Invoice extends PayPalResourceModel
return $this->logo_url;
}
/**
* Full URL of an external image to use as the logo. 4000 characters max.
*
* @deprecated Instead use setLogoUrl
*
* @param string $logo_url
* @return $this
*/
public function setLogo_url($logo_url)
{
$this->logo_url = $logo_url;
return $this;
}
/**
* Full URL of an external image to use as the logo. 4000 characters max.
* @deprecated Instead use getLogoUrl
*
* @return string
*/
public function getLogo_url()
{
return $this->logo_url;
}
/**
* The total amount of the invoice.
*
@@ -814,31 +564,6 @@ class Invoice extends PayPalResourceModel
return $this->total_amount;
}
/**
* The total amount of the invoice.
*
* @deprecated Instead use setTotalAmount
*
* @param \PayPal\Api\Currency $total_amount
* @return $this
*/
public function setTotal_amount($total_amount)
{
$this->total_amount = $total_amount;
return $this;
}
/**
* The total amount of the invoice.
* @deprecated Instead use getTotalAmount
*
* @return \PayPal\Api\Currency
*/
public function getTotal_amount()
{
return $this->total_amount;
}
/**
* List of payment details for the invoice.
*
@@ -892,31 +617,6 @@ class Invoice extends PayPalResourceModel
);
}
/**
* List of payment details for the invoice.
*
* @deprecated Instead use setPaymentDetails
*
* @param \PayPal\Api\PaymentDetail $payment_details
* @return $this
*/
public function setPayment_details($payment_details)
{
$this->payment_details = $payment_details;
return $this;
}
/**
* List of payment details for the invoice.
* @deprecated Instead use getPaymentDetails
*
* @return \PayPal\Api\PaymentDetail
*/
public function getPayment_details()
{
return $this->payment_details;
}
/**
* List of refund details for the invoice.
*
@@ -970,31 +670,6 @@ class Invoice extends PayPalResourceModel
);
}
/**
* List of refund details for the invoice.
*
* @deprecated Instead use setRefundDetails
*
* @param \PayPal\Api\RefundDetail $refund_details
* @return $this
*/
public function setRefund_details($refund_details)
{
$this->refund_details = $refund_details;
return $this;
}
/**
* List of refund details for the invoice.
* @deprecated Instead use getRefundDetails
*
* @return \PayPal\Api\RefundDetail
*/
public function getRefund_details()
{
return $this->refund_details;
}
/**
* Audit information for the invoice.
*
@@ -1041,31 +716,6 @@ class Invoice extends PayPalResourceModel
return $this->additional_data;
}
/**
* Any miscellaneous invoice data. 4000 characters max.
*
* @deprecated Instead use setAdditionalData
*
* @param string $additional_data
* @return $this
*/
public function setAdditional_data($additional_data)
{
$this->additional_data = $additional_data;
return $this;
}
/**
* Any miscellaneous invoice data. 4000 characters max.
* @deprecated Instead use getAdditionalData
*
* @return string
*/
public function getAdditional_data()
{
return $this->additional_data;
}
/**
* Create a new invoice by passing the details for the invoice, including the merchant_info, to the request URI.
*
@@ -1288,20 +938,6 @@ class Invoice extends PayPalResourceModel
return $ret;
}
/**
* @deprecated Use getAll instead
*
* List some or all invoices for a merchant according to optional query string parameters specified.
*
* @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 InvoiceSearchResponse
*/
public static function get_all($apiContext = null, $restCall = null)
{
return self::getAll(null, $apiContext, $restCall);
}
/**
* Fully update an invoice by passing the invoice ID to the request URI. In addition, pass a complete invoice object in the request JSON. Partial updates are not supported.
*

View File

@@ -113,31 +113,6 @@ class InvoiceItem extends PayPalModel
return $this->unit_price;
}
/**
* Unit price of the item. Range of -999999.99 to 999999.99.
*
* @deprecated Instead use setUnitPrice
*
* @param \PayPal\Api\Currency $unit_price
* @return $this
*/
public function setUnit_price($unit_price)
{
$this->unit_price = $unit_price;
return $this;
}
/**
* Unit price of the item. Range of -999999.99 to 999999.99.
* @deprecated Instead use getUnitPrice
*
* @return \PayPal\Api\Currency
*/
public function getUnit_price()
{
return $this->unit_price;
}
/**
* Tax associated with the item.
*

View File

@@ -39,31 +39,6 @@ class InvoiceSearchResponse extends PayPalModel
return $this->total_count;
}
/**
* Total number of invoices.
*
* @deprecated Instead use setTotalCount
*
* @param int $total_count
* @return $this
*/
public function setTotal_count($total_count)
{
$this->total_count = $total_count;
return $this;
}
/**
* Total number of invoices.
* @deprecated Instead use getTotalCount
*
* @return int
*/
public function getTotal_count()
{
return $this->total_count;
}
/**
* List of invoices belonging to a merchant.
*

View File

@@ -48,31 +48,6 @@ class InvoicingMetaData extends PayPalModel
return $this->created_date;
}
/**
* Date when the resource was created.
*
* @deprecated Instead use setCreatedDate
*
* @param string $created_date
* @return $this
*/
public function setCreated_date($created_date)
{
$this->created_date = $created_date;
return $this;
}
/**
* Date when the resource was created.
* @deprecated Instead use getCreatedDate
*
* @return string
*/
public function getCreated_date()
{
return $this->created_date;
}
/**
* Email address of the account that created the resource.
*
@@ -96,31 +71,6 @@ class InvoicingMetaData extends PayPalModel
return $this->created_by;
}
/**
* Email address of the account that created the resource.
*
* @deprecated Instead use setCreatedBy
*
* @param string $created_by
* @return $this
*/
public function setCreated_by($created_by)
{
$this->created_by = $created_by;
return $this;
}
/**
* Email address of the account that created the resource.
* @deprecated Instead use getCreatedBy
*
* @return string
*/
public function getCreated_by()
{
return $this->created_by;
}
/**
* Date when the resource was cancelled.
*
@@ -144,31 +94,6 @@ class InvoicingMetaData extends PayPalModel
return $this->cancelled_date;
}
/**
* Date when the resource was cancelled.
*
* @deprecated Instead use setCancelledDate
*
* @param string $cancelled_date
* @return $this
*/
public function setCancelled_date($cancelled_date)
{
$this->cancelled_date = $cancelled_date;
return $this;
}
/**
* Date when the resource was cancelled.
* @deprecated Instead use getCancelledDate
*
* @return string
*/
public function getCancelled_date()
{
return $this->cancelled_date;
}
/**
* Actor who cancelled the resource.
*
@@ -192,31 +117,6 @@ class InvoicingMetaData extends PayPalModel
return $this->cancelled_by;
}
/**
* Actor who cancelled the resource.
*
* @deprecated Instead use setCancelledBy
*
* @param string $cancelled_by
* @return $this
*/
public function setCancelled_by($cancelled_by)
{
$this->cancelled_by = $cancelled_by;
return $this;
}
/**
* Actor who cancelled the resource.
* @deprecated Instead use getCancelledBy
*
* @return string
*/
public function getCancelled_by()
{
return $this->cancelled_by;
}
/**
* Date when the resource was last edited.
*
@@ -240,31 +140,6 @@ class InvoicingMetaData extends PayPalModel
return $this->last_updated_date;
}
/**
* Date when the resource was last edited.
*
* @deprecated Instead use setLastUpdatedDate
*
* @param string $last_updated_date
* @return $this
*/
public function setLast_updated_date($last_updated_date)
{
$this->last_updated_date = $last_updated_date;
return $this;
}
/**
* Date when the resource was last edited.
* @deprecated Instead use getLastUpdatedDate
*
* @return string
*/
public function getLast_updated_date()
{
return $this->last_updated_date;
}
/**
* Email address of the account that last edited the resource.
*
@@ -288,31 +163,6 @@ class InvoicingMetaData extends PayPalModel
return $this->last_updated_by;
}
/**
* Email address of the account that last edited the resource.
*
* @deprecated Instead use setLastUpdatedBy
*
* @param string $last_updated_by
* @return $this
*/
public function setLast_updated_by($last_updated_by)
{
$this->last_updated_by = $last_updated_by;
return $this;
}
/**
* Email address of the account that last edited the resource.
* @deprecated Instead use getLastUpdatedBy
*
* @return string
*/
public function getLast_updated_by()
{
return $this->last_updated_by;
}
/**
* Date when the resource was first sent.
*
@@ -336,31 +186,6 @@ class InvoicingMetaData extends PayPalModel
return $this->first_sent_date;
}
/**
* Date when the resource was first sent.
*
* @deprecated Instead use setFirstSentDate
*
* @param string $first_sent_date
* @return $this
*/
public function setFirst_sent_date($first_sent_date)
{
$this->first_sent_date = $first_sent_date;
return $this;
}
/**
* Date when the resource was first sent.
* @deprecated Instead use getFirstSentDate
*
* @return string
*/
public function getFirst_sent_date()
{
return $this->first_sent_date;
}
/**
* Date when the resource was last sent.
*
@@ -384,31 +209,6 @@ class InvoicingMetaData extends PayPalModel
return $this->last_sent_date;
}
/**
* Date when the resource was last sent.
*
* @deprecated Instead use setLastSentDate
*
* @param string $last_sent_date
* @return $this
*/
public function setLast_sent_date($last_sent_date)
{
$this->last_sent_date = $last_sent_date;
return $this;
}
/**
* Date when the resource was last sent.
* @deprecated Instead use getLastSentDate
*
* @return string
*/
public function getLast_sent_date()
{
return $this->last_sent_date;
}
/**
* Email address of the account that last sent the resource.
*
@@ -432,31 +232,6 @@ class InvoicingMetaData extends PayPalModel
return $this->last_sent_by;
}
/**
* Email address of the account that last sent the resource.
*
* @deprecated Instead use setLastSentBy
*
* @param string $last_sent_by
* @return $this
*/
public function setLast_sent_by($last_sent_by)
{
$this->last_sent_by = $last_sent_by;
return $this;
}
/**
* Email address of the account that last sent the resource.
* @deprecated Instead use getLastSentBy
*
* @return string
*/
public function getLast_sent_by()
{
return $this->last_sent_by;
}
/**
* URL representing the payer's view of the invoice.
*
@@ -481,29 +256,4 @@ class InvoicingMetaData extends PayPalModel
return $this->payer_view_url;
}
/**
* URL representing the payer's view of the invoice.
*
* @deprecated Instead use setPayerViewUrl
*
* @param string $payer_view_url
* @return $this
*/
public function setPayer_view_url($payer_view_url)
{
$this->payer_view_url = $payer_view_url;
return $this;
}
/**
* URL representing the payer's view of the invoice.
* @deprecated Instead use getPayerViewUrl
*
* @return string
*/
public function getPayer_view_url()
{
return $this->payer_view_url;
}
}

View File

@@ -86,29 +86,4 @@ class InvoicingNotification extends PayPalModel
return $this->send_to_merchant;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
*
* @deprecated Instead use setSendToMerchant
*
* @param bool $send_to_merchant
* @return $this
*/
public function setSend_to_merchant($send_to_merchant)
{
$this->send_to_merchant = $send_to_merchant;
return $this;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
* @deprecated Instead use getSendToMerchant
*
* @return bool
*/
public function getSend_to_merchant()
{
return $this->send_to_merchant;
}
}

View File

@@ -67,31 +67,6 @@ class InvoicingPaymentDetail extends PayPalModel
return $this->transaction_id;
}
/**
* PayPal payment transaction id. Mandatory field in case the type value is PAYPAL.
*
* @deprecated Instead use setTransactionId
*
* @param string $transaction_id
* @return $this
*/
public function setTransaction_id($transaction_id)
{
$this->transaction_id = $transaction_id;
return $this;
}
/**
* PayPal payment transaction id. Mandatory field in case the type value is PAYPAL.
* @deprecated Instead use getTransactionId
*
* @return string
*/
public function getTransaction_id()
{
return $this->transaction_id;
}
/**
* Type of the transaction.
* Valid Values: ["SALE", "AUTHORIZATION", "CAPTURE"]
@@ -116,31 +91,6 @@ class InvoicingPaymentDetail extends PayPalModel
return $this->transaction_type;
}
/**
* Type of the transaction.
*
* @deprecated Instead use setTransactionType
*
* @param string $transaction_type
* @return $this
*/
public function setTransaction_type($transaction_type)
{
$this->transaction_type = $transaction_type;
return $this;
}
/**
* Type of the transaction.
* @deprecated Instead use getTransactionType
*
* @return string
*/
public function getTransaction_type()
{
return $this->transaction_type;
}
/**
* Date when the invoice was paid. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*

View File

@@ -275,31 +275,6 @@ class Item extends PayPalModel
return $this->supplementary_data;
}
/**
* Set of optional data used for PayPal risk determination.
*
* @deprecated Instead use setSupplementaryData
*
* @param \PayPal\Api\NameValuePair $supplementary_data
* @return $this
*/
public function setSupplementary_data($supplementary_data)
{
$this->supplementary_data = $supplementary_data;
return $this;
}
/**
* Set of optional data used for PayPal risk determination.
* @deprecated Instead use getSupplementaryData
*
* @return \PayPal\Api\NameValuePair
*/
public function getSupplementary_data()
{
return $this->supplementary_data;
}
/**
* Set of optional data used for PayPal post-transaction notifications.
*
@@ -324,29 +299,4 @@ class Item extends PayPalModel
return $this->postback_data;
}
/**
* Set of optional data used for PayPal post-transaction notifications.
*
* @deprecated Instead use setPostbackData
*
* @param \PayPal\Api\NameValuePair $postback_data
* @return $this
*/
public function setPostback_data($postback_data)
{
$this->postback_data = $postback_data;
return $this;
}
/**
* Set of optional data used for PayPal post-transaction notifications.
* @deprecated Instead use getPostbackData
*
* @return \PayPal\Api\NameValuePair
*/
public function getPostback_data()
{
return $this->postback_data;
}
}

View File

@@ -100,30 +100,4 @@ class ItemList extends PayPalModel
return $this->shipping_address;
}
/**
* Shipping address.
*
* @deprecated Instead use setShippingAddress
*
* @param \PayPal\Api\ShippingAddress $shipping_address
* @return $this
*/
public function setShipping_address($shipping_address)
{
$this->shipping_address = $shipping_address;
return $this;
}
/**
* Shipping address.
*
* @deprecated Instead use getShippingAddress
*
* @return \PayPal\Api\ShippingAddress
*/
public function getShipping_address()
{
return $this->shipping_address;
}
}

View File

@@ -70,31 +70,6 @@ class MerchantInfo extends PayPalModel
return $this->first_name;
}
/**
* First name of the merchant. 30 characters max.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* First name of the merchant. 30 characters max.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Last name of the merchant. 30 characters max.
*
@@ -118,31 +93,6 @@ class MerchantInfo extends PayPalModel
return $this->last_name;
}
/**
* Last name of the merchant. 30 characters max.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Last name of the merchant. 30 characters max.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* Address of the merchant.
*
@@ -189,31 +139,6 @@ class MerchantInfo extends PayPalModel
return $this->business_name;
}
/**
* Company business name of the merchant. 100 characters max.
*
* @deprecated Instead use setBusinessName
*
* @param string $business_name
* @return $this
*/
public function setBusiness_name($business_name)
{
$this->business_name = $business_name;
return $this;
}
/**
* Company business name of the merchant. 100 characters max.
* @deprecated Instead use getBusinessName
*
* @return string
*/
public function getBusiness_name()
{
return $this->business_name;
}
/**
* Phone number of the merchant.
*
@@ -306,31 +231,6 @@ class MerchantInfo extends PayPalModel
return $this->tax_id;
}
/**
* Tax ID of the merchant. 100 characters max.
*
* @deprecated Instead use setTaxId
*
* @param string $tax_id
* @return $this
*/
public function setTax_id($tax_id)
{
$this->tax_id = $tax_id;
return $this;
}
/**
* Tax ID of the merchant. 100 characters max.
* @deprecated Instead use getTaxId
*
* @return string
*/
public function getTax_id()
{
return $this->tax_id;
}
/**
* Option to display additional information such as business hours. 40 characters max.
*
@@ -354,29 +254,4 @@ class MerchantInfo extends PayPalModel
return $this->additional_info;
}
/**
* Option to display additional information such as business hours. 40 characters max.
*
* @deprecated Instead use setAdditionalInfo
*
* @param string $additional_info
* @return $this
*/
public function setAdditional_info($additional_info)
{
$this->additional_info = $additional_info;
return $this;
}
/**
* Option to display additional information such as business hours. 40 characters max.
* @deprecated Instead use getAdditionalInfo
*
* @return string
*/
public function getAdditional_info()
{
return $this->additional_info;
}
}

View File

@@ -71,31 +71,6 @@ class MerchantPreferences extends PayPalModel
return $this->setup_fee;
}
/**
* Setup fee amount. Default is 0.
*
* @deprecated Instead use setSetupFee
*
* @param \PayPal\Api\Currency $setup_fee
* @return $this
*/
public function setSetup_fee($setup_fee)
{
$this->setup_fee = $setup_fee;
return $this;
}
/**
* Setup fee amount. Default is 0.
* @deprecated Instead use getSetupFee
*
* @return \PayPal\Api\Currency
*/
public function getSetup_fee()
{
return $this->setup_fee;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
*
@@ -120,31 +95,6 @@ class MerchantPreferences extends PayPalModel
return $this->cancel_url;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
*
* @deprecated Instead use setCancelUrl
*
* @param string $cancel_url
* @return $this
*/
public function setCancel_url($cancel_url)
{
$this->cancel_url = $cancel_url;
return $this;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
* @deprecated Instead use getCancelUrl
*
* @return string
*/
public function getCancel_url()
{
return $this->cancel_url;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
*
@@ -169,31 +119,6 @@ class MerchantPreferences extends PayPalModel
return $this->return_url;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
*
* @deprecated Instead use setReturnUrl
*
* @param string $return_url
* @return $this
*/
public function setReturn_url($return_url)
{
$this->return_url = $return_url;
return $this;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
* @deprecated Instead use getReturnUrl
*
* @return string
*/
public function getReturn_url()
{
return $this->return_url;
}
/**
* Notify URL on agreement creation. 1000 characters max.
*
@@ -218,31 +143,6 @@ class MerchantPreferences extends PayPalModel
return $this->notify_url;
}
/**
* Notify URL on agreement creation. 1000 characters max.
*
* @deprecated Instead use setNotifyUrl
*
* @param string $notify_url
* @return $this
*/
public function setNotify_url($notify_url)
{
$this->notify_url = $notify_url;
return $this;
}
/**
* Notify URL on agreement creation. 1000 characters max.
* @deprecated Instead use getNotifyUrl
*
* @return string
*/
public function getNotify_url()
{
return $this->notify_url;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
*
@@ -266,31 +166,6 @@ class MerchantPreferences extends PayPalModel
return $this->max_fail_attempts;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
*
* @deprecated Instead use setMaxFailAttempts
*
* @param string $max_fail_attempts
* @return $this
*/
public function setMax_fail_attempts($max_fail_attempts)
{
$this->max_fail_attempts = $max_fail_attempts;
return $this;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
* @deprecated Instead use getMaxFailAttempts
*
* @return string
*/
public function getMax_fail_attempts()
{
return $this->max_fail_attempts;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
*
@@ -314,31 +189,6 @@ class MerchantPreferences extends PayPalModel
return $this->auto_bill_amount;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
*
* @deprecated Instead use setAutoBillAmount
*
* @param string $auto_bill_amount
* @return $this
*/
public function setAuto_bill_amount($auto_bill_amount)
{
$this->auto_bill_amount = $auto_bill_amount;
return $this;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
* @deprecated Instead use getAutoBillAmount
*
* @return string
*/
public function getAuto_bill_amount()
{
return $this->auto_bill_amount;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
*
@@ -362,31 +212,6 @@ class MerchantPreferences extends PayPalModel
return $this->initial_fail_amount_action;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
*
* @deprecated Instead use setInitialFailAmountAction
*
* @param string $initial_fail_amount_action
* @return $this
*/
public function setInitial_fail_amount_action($initial_fail_amount_action)
{
$this->initial_fail_amount_action = $initial_fail_amount_action;
return $this;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
* @deprecated Instead use getInitialFailAmountAction
*
* @return string
*/
public function getInitial_fail_amount_action()
{
return $this->initial_fail_amount_action;
}
/**
* Payment types that are accepted for this plan.
*
@@ -410,31 +235,6 @@ class MerchantPreferences extends PayPalModel
return $this->accepted_payment_type;
}
/**
* Payment types that are accepted for this plan.
*
* @deprecated Instead use setAcceptedPaymentType
*
* @param string $accepted_payment_type
* @return $this
*/
public function setAccepted_payment_type($accepted_payment_type)
{
$this->accepted_payment_type = $accepted_payment_type;
return $this;
}
/**
* Payment types that are accepted for this plan.
* @deprecated Instead use getAcceptedPaymentType
*
* @return string
*/
public function getAccepted_payment_type()
{
return $this->accepted_payment_type;
}
/**
* char_set for this plan.
*
@@ -458,29 +258,4 @@ class MerchantPreferences extends PayPalModel
return $this->char_set;
}
/**
* char_set for this plan.
*
* @deprecated Instead use setCharSet
*
* @param string $char_set
* @return $this
*/
public function setChar_set($char_set)
{
$this->char_set = $char_set;
return $this;
}
/**
* char_set for this plan.
* @deprecated Instead use getCharSet
*
* @return string
*/
public function getChar_set()
{
return $this->char_set;
}
}

View File

@@ -48,31 +48,6 @@ class Metadata extends PayPalModel
return $this->created_date;
}
/**
* Date when the resource was created.
*
* @deprecated Instead use setCreatedDate
*
* @param string $created_date
* @return $this
*/
public function setCreated_date($created_date)
{
$this->created_date = $created_date;
return $this;
}
/**
* Date when the resource was created.
* @deprecated Instead use getCreatedDate
*
* @return string
*/
public function getCreated_date()
{
return $this->created_date;
}
/**
* Email address of the account that created the resource.
*
@@ -96,31 +71,6 @@ class Metadata extends PayPalModel
return $this->created_by;
}
/**
* Email address of the account that created the resource.
*
* @deprecated Instead use setCreatedBy
*
* @param string $created_by
* @return $this
*/
public function setCreated_by($created_by)
{
$this->created_by = $created_by;
return $this;
}
/**
* Email address of the account that created the resource.
* @deprecated Instead use getCreatedBy
*
* @return string
*/
public function getCreated_by()
{
return $this->created_by;
}
/**
* Date when the resource was cancelled.
*
@@ -144,31 +94,6 @@ class Metadata extends PayPalModel
return $this->cancelled_date;
}
/**
* Date when the resource was cancelled.
*
* @deprecated Instead use setCancelledDate
*
* @param string $cancelled_date
* @return $this
*/
public function setCancelled_date($cancelled_date)
{
$this->cancelled_date = $cancelled_date;
return $this;
}
/**
* Date when the resource was cancelled.
* @deprecated Instead use getCancelledDate
*
* @return string
*/
public function getCancelled_date()
{
return $this->cancelled_date;
}
/**
* Actor who cancelled the resource.
*
@@ -192,31 +117,6 @@ class Metadata extends PayPalModel
return $this->cancelled_by;
}
/**
* Actor who cancelled the resource.
*
* @deprecated Instead use setCancelledBy
*
* @param string $cancelled_by
* @return $this
*/
public function setCancelled_by($cancelled_by)
{
$this->cancelled_by = $cancelled_by;
return $this;
}
/**
* Actor who cancelled the resource.
* @deprecated Instead use getCancelledBy
*
* @return string
*/
public function getCancelled_by()
{
return $this->cancelled_by;
}
/**
* Date when the resource was last edited.
*
@@ -240,31 +140,6 @@ class Metadata extends PayPalModel
return $this->last_updated_date;
}
/**
* Date when the resource was last edited.
*
* @deprecated Instead use setLastUpdatedDate
*
* @param string $last_updated_date
* @return $this
*/
public function setLast_updated_date($last_updated_date)
{
$this->last_updated_date = $last_updated_date;
return $this;
}
/**
* Date when the resource was last edited.
* @deprecated Instead use getLastUpdatedDate
*
* @return string
*/
public function getLast_updated_date()
{
return $this->last_updated_date;
}
/**
* Email address of the account that last edited the resource.
*
@@ -288,31 +163,6 @@ class Metadata extends PayPalModel
return $this->last_updated_by;
}
/**
* Email address of the account that last edited the resource.
*
* @deprecated Instead use setLastUpdatedBy
*
* @param string $last_updated_by
* @return $this
*/
public function setLast_updated_by($last_updated_by)
{
$this->last_updated_by = $last_updated_by;
return $this;
}
/**
* Email address of the account that last edited the resource.
* @deprecated Instead use getLastUpdatedBy
*
* @return string
*/
public function getLast_updated_by()
{
return $this->last_updated_by;
}
/**
* Date when the resource was first sent.
*
@@ -336,31 +186,6 @@ class Metadata extends PayPalModel
return $this->first_sent_date;
}
/**
* Date when the resource was first sent.
*
* @deprecated Instead use setFirstSentDate
*
* @param string $first_sent_date
* @return $this
*/
public function setFirst_sent_date($first_sent_date)
{
$this->first_sent_date = $first_sent_date;
return $this;
}
/**
* Date when the resource was first sent.
* @deprecated Instead use getFirstSentDate
*
* @return string
*/
public function getFirst_sent_date()
{
return $this->first_sent_date;
}
/**
* Date when the resource was last sent.
*
@@ -384,31 +209,6 @@ class Metadata extends PayPalModel
return $this->last_sent_date;
}
/**
* Date when the resource was last sent.
*
* @deprecated Instead use setLastSentDate
*
* @param string $last_sent_date
* @return $this
*/
public function setLast_sent_date($last_sent_date)
{
$this->last_sent_date = $last_sent_date;
return $this;
}
/**
* Date when the resource was last sent.
* @deprecated Instead use getLastSentDate
*
* @return string
*/
public function getLast_sent_date()
{
return $this->last_sent_date;
}
/**
* Email address of the account that last sent the resource.
*
@@ -432,31 +232,6 @@ class Metadata extends PayPalModel
return $this->last_sent_by;
}
/**
* Email address of the account that last sent the resource.
*
* @deprecated Instead use setLastSentBy
*
* @param string $last_sent_by
* @return $this
*/
public function setLast_sent_by($last_sent_by)
{
$this->last_sent_by = $last_sent_by;
return $this;
}
/**
* Email address of the account that last sent the resource.
* @deprecated Instead use getLastSentBy
*
* @return string
*/
public function getLast_sent_by()
{
return $this->last_sent_by;
}
/**
* URL representing the payer's view of the invoice.
*
@@ -481,29 +256,4 @@ class Metadata extends PayPalModel
return $this->payer_view_url;
}
/**
* URL representing the payer's view of the invoice.
*
* @deprecated Instead use setPayerViewUrl
*
* @param string $payer_view_url
* @return $this
*/
public function setPayer_view_url($payer_view_url)
{
$this->payer_view_url = $payer_view_url;
return $this;
}
/**
* URL representing the payer's view of the invoice.
* @deprecated Instead use getPayerViewUrl
*
* @return string
*/
public function getPayer_view_url()
{
return $this->payer_view_url;
}
}

View File

@@ -86,29 +86,4 @@ class Notification extends PayPalModel
return $this->send_to_merchant;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
*
* @deprecated Instead use setSendToMerchant
*
* @param bool $send_to_merchant
* @return $this
*/
public function setSend_to_merchant($send_to_merchant)
{
$this->send_to_merchant = $send_to_merchant;
return $this;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
* @deprecated Instead use getSendToMerchant
*
* @return bool
*/
public function getSend_to_merchant()
{
return $this->send_to_merchant;
}
}

View File

@@ -14,6 +14,7 @@ class OpenIdAddress extends PayPalModel
* Full street address component, which may include house number, street name.
*
* @param string $street_address
* @return self
*/
public function setStreetAddress($street_address)
{
@@ -35,6 +36,7 @@ class OpenIdAddress extends PayPalModel
* City or locality component.
*
* @param string $locality
* @return self
*/
public function setLocality($locality)
{
@@ -56,6 +58,7 @@ class OpenIdAddress extends PayPalModel
* State, province, prefecture or region component.
*
* @param string $region
* @return self
*/
public function setRegion($region)
{
@@ -77,6 +80,7 @@ class OpenIdAddress extends PayPalModel
* Zip code or postal code component.
*
* @param string $postal_code
* @return self
*/
public function setPostalCode($postal_code)
{
@@ -98,6 +102,7 @@ class OpenIdAddress extends PayPalModel
* Country name component.
*
* @param string $country
* @return self
*/
public function setCountry($country)
{

View File

@@ -13,6 +13,7 @@ class OpenIdError extends PayPalModel
* A single ASCII error code from the following enum.
*
* @param string $error
* @return self
*/
public function setError($error)
{
@@ -34,6 +35,7 @@ class OpenIdError extends PayPalModel
* A resource ID that indicates the starting resource in the returned results.
*
* @param string $error_description
* @return self
*/
public function setErrorDescription($error_description)
{
@@ -55,6 +57,7 @@ class OpenIdError extends PayPalModel
* A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
*
* @param string $error_uri
* @return self
*/
public function setErrorUri($error_uri)
{

View File

@@ -19,6 +19,7 @@ class OpenIdSession
* @param string $clientId client id from developer portal
* See https://developer.paypal.com/webapps/developer/docs/integration/direct/log-in-with-paypal/detailed/#attributes for more
* @param ApiContext $apiContext Optional API Context
* @return string Authorization URL
*/
public static function getAuthorizationUrl($redirectUri, $scope, $clientId, $nonce = null, $state = null, $apiContext = null)
{

View File

@@ -16,6 +16,7 @@ class OpenIdTokeninfo extends PayPalResourceModel
* OPTIONAL, if identical to the scope requested by the client; otherwise, REQUIRED.
*
* @param string $scope
* @return self
*/
public function setScope($scope)
{
@@ -37,6 +38,7 @@ class OpenIdTokeninfo extends PayPalResourceModel
* The access token issued by the authorization server.
*
* @param string $access_token
* @return self
*/
public function setAccessToken($access_token)
{
@@ -58,6 +60,7 @@ class OpenIdTokeninfo extends PayPalResourceModel
* The refresh token, which can be used to obtain new access tokens using the same authorization grant as described in OAuth2.0 RFC6749 in Section 6.
*
* @param string $refresh_token
* @return self
*/
public function setRefreshToken($refresh_token)
{
@@ -79,6 +82,7 @@ class OpenIdTokeninfo extends PayPalResourceModel
* The type of the token issued as described in OAuth2.0 RFC6749 (Section 7.1). Value is case insensitive.
*
* @param string $token_type
* @return self
*/
public function setTokenType($token_type)
{
@@ -100,6 +104,7 @@ class OpenIdTokeninfo extends PayPalResourceModel
* The id_token is a session token assertion that denotes the user's authentication status
*
* @param string $id_token
* @return self
*/
public function setIdToken($id_token)
{
@@ -121,6 +126,7 @@ class OpenIdTokeninfo extends PayPalResourceModel
* The lifetime in seconds of the access token.
*
* @param integer $expires_in
* @return self
*/
public function setExpiresIn($expires_in)
{

View File

@@ -14,6 +14,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Subject - Identifier for the End-User at the Issuer.
*
* @param string $user_id
* @return self
*/
public function setUserId($user_id)
{
@@ -35,6 +36,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Subject - Identifier for the End-User at the Issuer.
*
* @param string $sub
* @return self
*/
public function setSub($sub)
{
@@ -56,6 +58,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
*
* @param string $name
* @return self
*/
public function setName($name)
{
@@ -77,6 +80,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Given name(s) or first name(s) of the End-User
*
* @param string $given_name
* @return self
*/
public function setGivenName($given_name)
{
@@ -98,6 +102,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Surname(s) or last name(s) of the End-User.
*
* @param string $family_name
* @return self
*/
public function setFamilyName($family_name)
{
@@ -119,6 +124,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Middle name(s) of the End-User.
*
* @param string $middle_name
* @return self
*/
public function setMiddleName($middle_name)
{
@@ -140,6 +146,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* URL of the End-User's profile picture.
*
* @param string $picture
* @return self
*/
public function setPicture($picture)
{
@@ -161,6 +168,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's preferred e-mail address.
*
* @param string $email
* @return self
*/
public function setEmail($email)
{
@@ -182,6 +190,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* True if the End-User's e-mail address has been verified; otherwise false.
*
* @param boolean $email_verified
* @return self
*/
public function setEmailVerified($email_verified)
{
@@ -203,6 +212,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's gender.
*
* @param string $gender
* @return self
*/
public function setGender($gender)
{
@@ -224,6 +234,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's birthday, represented as an YYYY-MM-DD format. They year MAY be 0000, indicating it is omited. To represent only the year, YYYY format would be used.
*
* @param string $birthday
* @return self
*/
public function setBirthday($birthday)
{
@@ -245,6 +256,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Time zone database representing the End-User's time zone
*
* @param string $zoneinfo
* @return self
*/
public function setZoneinfo($zoneinfo)
{
@@ -266,6 +278,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's locale.
*
* @param string $locale
* @return self
*/
public function setLocale($locale)
{
@@ -287,6 +300,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's language.
*
* @param string $language
* @return self
*/
public function setLanguage($language)
{
@@ -308,6 +322,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's verified status.
*
* @param boolean $verified
* @return self
*/
public function setVerified($verified)
{
@@ -329,6 +344,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's preferred telephone number.
*
* @param string $phone_number
* @return self
*/
public function setPhoneNumber($phone_number)
{
@@ -350,6 +366,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* End-User's preferred address.
*
* @param \PayPal\Api\OpenIdAddress $address
* @return self
*/
public function setAddress($address)
{
@@ -371,6 +388,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Verified account status.
*
* @param boolean $verified_account
* @return self
*/
public function setVerifiedAccount($verified_account)
{
@@ -392,6 +410,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Account type.
*
* @param string $account_type
* @return self
*/
public function setAccountType($account_type)
{
@@ -413,6 +432,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Account holder age range.
*
* @param string $age_range
* @return self
*/
public function setAgeRange($age_range)
{
@@ -434,6 +454,7 @@ class OpenIdUserinfo extends PayPalResourceModel
* Account payer identifier.
*
* @param string $payer_id
* @return self
*/
public function setPayerId($payer_id)
{

View File

@@ -74,31 +74,6 @@ class Order extends PayPalModel
return $this->purchase_unit_reference_id;
}
/**
* Identifier to the purchase unit associated with this object
*
* @deprecated Instead use setPurchaseUnitReferenceId
*
* @param string $purchase_unit_reference_id
* @return $this
*/
public function setPurchase_unit_reference_id($purchase_unit_reference_id)
{
$this->purchase_unit_reference_id = $purchase_unit_reference_id;
return $this;
}
/**
* Identifier to the purchase unit associated with this object
* @deprecated Instead use getPurchaseUnitReferenceId
*
* @return string
*/
public function getPurchase_unit_reference_id()
{
return $this->purchase_unit_reference_id;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
@@ -123,31 +98,6 @@ class Order extends PayPalModel
return $this->create_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created in UTC ISO8601 format.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
@@ -172,31 +122,6 @@ class Order extends PayPalModel
return $this->update_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Amount being collected.
*
@@ -245,31 +170,6 @@ class Order extends PayPalModel
return $this->payment_mode;
}
/**
* specifies payment mode of the transaction
*
* @deprecated Instead use setPaymentMode
*
* @param string $payment_mode
* @return $this
*/
public function setPayment_mode($payment_mode)
{
$this->payment_mode = $payment_mode;
return $this;
}
/**
* specifies payment mode of the transaction
* @deprecated Instead use getPaymentMode
*
* @return string
*/
public function getPayment_mode()
{
return $this->payment_mode;
}
/**
* State of the order transaction.
* Valid Values: ["PENDING", "COMPLETED", "REFUNDED", "PARTIALLY_REFUNDED"]
@@ -318,31 +218,6 @@ class Order extends PayPalModel
return $this->reason_code;
}
/**
* Reason code for the transaction state being Pending or Reversed.
*
* @deprecated Instead use setReasonCode
*
* @param string $reason_code
* @return $this
*/
public function setReason_code($reason_code)
{
$this->reason_code = $reason_code;
return $this;
}
/**
* Reason code for the transaction state being Pending or Reversed.
* @deprecated Instead use getReasonCode
*
* @return string
*/
public function getReason_code()
{
return $this->reason_code;
}
/**
* Protection Eligibility of the Payer
* Valid Values: ["ELIGIBLE", "PARTIALLY_ELIGIBLE", "INELIGIBLE"]
@@ -367,31 +242,6 @@ class Order extends PayPalModel
return $this->{"protection-eligibility"};
}
/**
* Protection Eligibility of the Payer
*
* @deprecated Instead use setProtectionEligibility
*
* @param string $protection-eligibility
* @return $this
*/
public function setProtection_eligibility($protection_eligibility)
{
$this->{"protection-eligibility"} = $protection_eligibility;
return $this;
}
/**
* Protection Eligibility of the Payer
* @deprecated Instead use getProtectionEligibility
*
* @return string
*/
public function getProtection_eligibility()
{
return $this->{"protection-eligibility"};
}
/**
* Protection Eligibility Type of the Payer
* Valid Values: ["ELIGIBLE", "ITEM_NOT_RECEIVED_ELIGIBLE", "INELIGIBLE", "UNAUTHORIZED_PAYMENT_ELIGIBLE"]
@@ -416,31 +266,6 @@ class Order extends PayPalModel
return $this->{"protection-eligibility_type"};
}
/**
* Protection Eligibility Type of the Payer
*
* @deprecated Instead use setProtectionEligibilityType
*
* @param string $protection-eligibility_type
* @return $this
*/
public function setProtection_eligibility_type($protection_eligibility_type)
{
$this->{"protection-eligibility_type"} = $protection_eligibility_type;
return $this;
}
/**
* Protection Eligibility Type of the Payer
* @deprecated Instead use getProtectionEligibilityType
*
* @return string
*/
public function getProtection_eligibility_type()
{
return $this->{"protection-eligibility_type"};
}
/**
* Sets Links
*

View File

@@ -39,31 +39,6 @@ class OverrideChargeModel extends PayPalModel
return $this->charge_id;
}
/**
* ID of charge model.
*
* @deprecated Instead use setChargeId
*
* @param string $charge_id
* @return $this
*/
public function setCharge_id($charge_id)
{
$this->charge_id = $charge_id;
return $this;
}
/**
* ID of charge model.
* @deprecated Instead use getChargeId
*
* @return string
*/
public function getCharge_id()
{
return $this->charge_id;
}
/**
* Updated Amount to be associated with this charge model.
*

View File

@@ -66,31 +66,6 @@ class Payee extends PayPalModel
return $this->merchant_id;
}
/**
* Encrypted PayPal Account identifier for the Payee.
*
* @deprecated Instead use setMerchantId
*
* @param string $merchant_id
* @return $this
*/
public function setMerchant_id($merchant_id)
{
$this->merchant_id = $merchant_id;
return $this;
}
/**
* Encrypted PayPal Account identifier for the Payee.
* @deprecated Instead use getMerchantId
*
* @return string
*/
public function getMerchant_id()
{
return $this->merchant_id;
}
/**
* Information related to the Payer. In case of PayPal Wallet payment, this information will be filled in by PayPal after the user approves the payment using their PayPal Wallet.
*

View File

@@ -43,31 +43,6 @@ class Payer extends PayPalModel
return $this->payment_method;
}
/**
* Payment method being used - PayPal Wallet payment, Bank Direct Debit, or Direct Credit card.
*
* @deprecated Instead use setPaymentMethod
*
* @param string $payment_method
* @return $this
*/
public function setPayment_method($payment_method)
{
$this->payment_method = $payment_method;
return $this;
}
/**
* Payment method being used - PayPal Wallet payment, Bank Direct Debit, or Direct Credit card.
* @deprecated Instead use getPaymentMethod
*
* @return string
*/
public function getPayment_method()
{
return $this->payment_method;
}
/**
* Status of Payer PayPal Account.
* Valid Values: ["VERIFIED", "UNVERIFIED"]
@@ -145,31 +120,6 @@ class Payer extends PayPalModel
);
}
/**
* List of funding instruments from which the funds of the current payment come. Typically a credit card.
*
* @deprecated Instead use setFundingInstruments
*
* @param \PayPal\Api\FundingInstrument $funding_instruments
* @return $this
*/
public function setFunding_instruments($funding_instruments)
{
$this->funding_instruments = $funding_instruments;
return $this;
}
/**
* List of funding instruments from which the funds of the current payment come. Typically a credit card.
* @deprecated Instead use getFundingInstruments
*
* @return \PayPal\Api\FundingInstrument
*/
public function getFunding_instruments()
{
return $this->funding_instruments;
}
/**
* Id of user selected funding option for the payment. 'OneOf' funding_instruments or funding_option_id to be present.
*
@@ -193,31 +143,6 @@ class Payer extends PayPalModel
return $this->funding_option_id;
}
/**
* Id of user selected funding option for the payment. 'OneOf' funding_instruments or funding_option_id to be present.
*
* @deprecated Instead use setFundingOptionId
*
* @param string $funding_option_id
* @return $this
*/
public function setFunding_option_id($funding_option_id)
{
$this->funding_option_id = $funding_option_id;
return $this;
}
/**
* Id of user selected funding option for the payment. 'OneOf' funding_instruments or funding_option_id to be present.
* @deprecated Instead use getFundingOptionId
*
* @return string
*/
public function getFunding_option_id()
{
return $this->funding_option_id;
}
/**
* Information related to the Payer.
*
@@ -241,29 +166,4 @@ class Payer extends PayPalModel
return $this->payer_info;
}
/**
* Information related to the Payer.
*
* @deprecated Instead use setPayerInfo
*
* @param \PayPal\Api\PayerInfo $payer_info
* @return $this
*/
public function setPayer_info($payer_info)
{
$this->payer_info = $payer_info;
return $this;
}
/**
* Information related to the Payer.
* @deprecated Instead use getPayerInfo
*
* @return \PayPal\Api\PayerInfo
*/
public function getPayer_info()
{
return $this->payer_info;
}
}

View File

@@ -73,31 +73,6 @@ class PayerInfo extends PayPalModel
return $this->external_remember_me_id;
}
/**
* External Remember Me id representing the Payer
*
* @deprecated Instead use setExternalRememberMeId
*
* @param string $external_remember_me_id
* @return $this
*/
public function setExternal_remember_me_id($external_remember_me_id)
{
$this->external_remember_me_id = $external_remember_me_id;
return $this;
}
/**
* External Remember Me id representing the Payer
* @deprecated Instead use getExternalRememberMeId
*
* @return string
*/
public function getExternal_remember_me_id()
{
return $this->external_remember_me_id;
}
/**
* Account Number representing the Payer
*
@@ -121,31 +96,6 @@ class PayerInfo extends PayPalModel
return $this->buyer_account_number;
}
/**
* Account Number representing the Payer
*
* @deprecated Instead use setBuyerAccountNumber
*
* @param string $buyer_account_number
* @return $this
*/
public function setBuyer_account_number($buyer_account_number)
{
$this->buyer_account_number = $buyer_account_number;
return $this;
}
/**
* Account Number representing the Payer
* @deprecated Instead use getBuyerAccountNumber
*
* @return string
*/
public function getBuyer_account_number()
{
return $this->buyer_account_number;
}
/**
* First Name of the Payer.
*
@@ -169,31 +119,6 @@ class PayerInfo extends PayPalModel
return $this->first_name;
}
/**
* First Name of the Payer.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* First Name of the Payer.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Last Name of the Payer.
*
@@ -217,31 +142,6 @@ class PayerInfo extends PayPalModel
return $this->last_name;
}
/**
* Last Name of the Payer.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Last Name of the Payer.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* PayPal assigned Payer ID.
*
@@ -265,31 +165,6 @@ class PayerInfo extends PayPalModel
return $this->payer_id;
}
/**
* PayPal assigned Payer ID.
*
* @deprecated Instead use setPayerId
*
* @param string $payer_id
* @return $this
*/
public function setPayer_id($payer_id)
{
$this->payer_id = $payer_id;
return $this;
}
/**
* PayPal assigned Payer ID.
* @deprecated Instead use getPayerId
*
* @return string
*/
public function getPayer_id()
{
return $this->payer_id;
}
/**
* Phone number representing the Payer.
*
@@ -337,31 +212,6 @@ class PayerInfo extends PayPalModel
return $this->phone_type;
}
/**
* Phone type
*
* @deprecated Instead use setPhoneType
*
* @param string $phone_type
* @return $this
*/
public function setPhone_type($phone_type)
{
$this->phone_type = $phone_type;
return $this;
}
/**
* Phone type
* @deprecated Instead use getPhoneType
*
* @return string
*/
public function getPhone_type()
{
return $this->phone_type;
}
/**
* Birth date of the Payer in ISO8601 format (YYYY-MM-DD).
*
@@ -385,31 +235,6 @@ class PayerInfo extends PayPalModel
return $this->birth_date;
}
/**
* Birth date of the Payer in ISO8601 format (YYYY-MM-DD).
*
* @deprecated Instead use setBirthDate
*
* @param string $birth_date
* @return $this
*/
public function setBirth_date($birth_date)
{
$this->birth_date = $birth_date;
return $this;
}
/**
* Birth date of the Payer in ISO8601 format (YYYY-MM-DD).
* @deprecated Instead use getBirthDate
*
* @return string
*/
public function getBirth_date()
{
return $this->birth_date;
}
/**
* Payer's tax ID.
*
@@ -433,31 +258,6 @@ class PayerInfo extends PayPalModel
return $this->tax_id;
}
/**
* Payer's tax ID.
*
* @deprecated Instead use setTaxId
*
* @param string $tax_id
* @return $this
*/
public function setTax_id($tax_id)
{
$this->tax_id = $tax_id;
return $this;
}
/**
* Payer's tax ID.
* @deprecated Instead use getTaxId
*
* @return string
*/
public function getTax_id()
{
return $this->tax_id;
}
/**
* Payer's tax ID type.
* Valid Values: ["BR_CPF", "BR_CNPJ"]
@@ -482,31 +282,6 @@ class PayerInfo extends PayPalModel
return $this->tax_id_type;
}
/**
* Payer's tax ID type.
*
* @deprecated Instead use setTaxIdType
*
* @param string $tax_id_type
* @return $this
*/
public function setTax_id_type($tax_id_type)
{
$this->tax_id_type = $tax_id_type;
return $this;
}
/**
* Payer's tax ID type.
* @deprecated Instead use getTaxIdType
*
* @return string
*/
public function getTax_id_type()
{
return $this->tax_id_type;
}
/**
* Billing address of the Payer.
*
@@ -530,31 +305,6 @@ class PayerInfo extends PayPalModel
return $this->billing_address;
}
/**
* Billing address of the Payer.
*
* @deprecated Instead use setBillingAddress
*
* @param \PayPal\Api\Address $billing_address
* @return $this
*/
public function setBilling_address($billing_address)
{
$this->billing_address = $billing_address;
return $this;
}
/**
* Billing address of the Payer.
* @deprecated Instead use getBillingAddress
*
* @return \PayPal\Api\Address
*/
public function getBilling_address()
{
return $this->billing_address;
}
/**
* Obsolete. Use shipping address present in purchase unit.
*
@@ -578,29 +328,4 @@ class PayerInfo extends PayPalModel
return $this->shipping_address;
}
/**
* Obsolete. Use shipping address present in purchase unit.
*
* @deprecated Instead use setShippingAddress
*
* @param \PayPal\Api\ShippingAddress $shipping_address
* @return $this
*/
public function setShipping_address($shipping_address)
{
$this->shipping_address = $shipping_address;
return $this;
}
/**
* Obsolete. Use shipping address present in purchase unit.
* @deprecated Instead use getShippingAddress
*
* @return \PayPal\Api\ShippingAddress
*/
public function getShipping_address()
{
return $this->shipping_address;
}
}

View File

@@ -31,25 +31,6 @@ use PayPal\Validation\ArgumentValidator;
*/
class Payment extends PayPalResourceModel
{
/**
* OAuth Credentials to use for this call
*
* @var \PayPal\Auth\OAuthTokenCredential $credential
*/
protected static $credential;
/**
* Sets Credential
*
* @deprecated Pass ApiContext to create/get methods instead
* @param \PayPal\Auth\OAuthTokenCredential $credential
*/
public static function setCredential($credential)
{
self::$credential = $credential;
}
/**
* Identifier of the payment resource created.
*
@@ -98,31 +79,6 @@ class Payment extends PayPalResourceModel
return $this->create_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created in UTC ISO8601 format.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
@@ -147,31 +103,6 @@ class Payment extends PayPalResourceModel
return $this->update_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Intent of the payment - Sale or Authorization or Order.
* Valid Values: ["sale", "authorize", "order"]
@@ -316,31 +247,6 @@ class Payment extends PayPalResourceModel
return $this->redirect_urls;
}
/**
* Redirect urls required only when using payment_method as PayPal - the only settings supported are return and cancel urls.
*
* @deprecated Instead use setRedirectUrls
*
* @param \PayPal\Api\RedirectUrls $redirect_urls
* @return $this
*/
public function setRedirect_urls($redirect_urls)
{
$this->redirect_urls = $redirect_urls;
return $this;
}
/**
* Redirect urls required only when using payment_method as PayPal - the only settings supported are return and cancel urls.
* @deprecated Instead use getRedirectUrls
*
* @return \PayPal\Api\RedirectUrls
*/
public function getRedirect_urls()
{
return $this->redirect_urls;
}
/**
* Set Experience_profile_id
* experience_profile_id of the payment

View File

@@ -122,31 +122,6 @@ class PaymentCard extends PayPalModel
return $this->expire_month;
}
/**
* 2 digit card expiry month.
*
* @deprecated Instead use setExpireMonth
*
* @param int $expire_month
* @return $this
*/
public function setExpire_month($expire_month)
{
$this->expire_month = $expire_month;
return $this;
}
/**
* 2 digit card expiry month.
* @deprecated Instead use getExpireMonth
*
* @return int
*/
public function getExpire_month()
{
return $this->expire_month;
}
/**
* 4 digit card expiry year.
*
@@ -170,31 +145,6 @@ class PaymentCard extends PayPalModel
return $this->expire_year;
}
/**
* 4 digit card expiry year.
*
* @deprecated Instead use setExpireYear
*
* @param int $expire_year
* @return $this
*/
public function setExpire_year($expire_year)
{
$this->expire_year = $expire_year;
return $this;
}
/**
* 4 digit card expiry year.
* @deprecated Instead use getExpireYear
*
* @return int
*/
public function getExpire_year()
{
return $this->expire_year;
}
/**
* 2 digit card start month.
*
@@ -218,31 +168,6 @@ class PaymentCard extends PayPalModel
return $this->start_month;
}
/**
* 2 digit card start month.
*
* @deprecated Instead use setStartMonth
*
* @param int $start_month
* @return $this
*/
public function setStart_month($start_month)
{
$this->start_month = $start_month;
return $this;
}
/**
* 2 digit card start month.
* @deprecated Instead use getStartMonth
*
* @return int
*/
public function getStart_month()
{
return $this->start_month;
}
/**
* 4 digit card start year.
*
@@ -266,31 +191,6 @@ class PaymentCard extends PayPalModel
return $this->start_year;
}
/**
* 4 digit card start year.
*
* @deprecated Instead use setStartYear
*
* @param int $start_year
* @return $this
*/
public function setStart_year($start_year)
{
$this->start_year = $start_year;
return $this;
}
/**
* 4 digit card start year.
* @deprecated Instead use getStartYear
*
* @return int
*/
public function getStart_year()
{
return $this->start_year;
}
/**
* Card validation code. Only supported when making a Payment, but not when saving a payment card for future use.
*
@@ -337,31 +237,6 @@ class PaymentCard extends PayPalModel
return $this->first_name;
}
/**
* Card holder's first name.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* Card holder's first name.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Card holder's last name.
*
@@ -385,31 +260,6 @@ class PaymentCard extends PayPalModel
return $this->last_name;
}
/**
* Card holder's last name.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Card holder's last name.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* Billing Address associated with this card.
*
@@ -433,31 +283,6 @@ class PaymentCard extends PayPalModel
return $this->billing_address;
}
/**
* Billing Address associated with this card.
*
* @deprecated Instead use setBillingAddress
*
* @param \PayPal\Api\Address $billing_address
* @return $this
*/
public function setBilling_address($billing_address)
{
$this->billing_address = $billing_address;
return $this;
}
/**
* Billing Address associated with this card.
* @deprecated Instead use getBillingAddress
*
* @return \PayPal\Api\Address
*/
public function getBilling_address()
{
return $this->billing_address;
}
/**
* A unique identifier of the customer to whom this card account belongs. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
@@ -481,31 +306,6 @@ class PaymentCard extends PayPalModel
return $this->external_customer_id;
}
/**
* A unique identifier of the customer to whom this card account belongs. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
* @deprecated Instead use setExternalCustomerId
*
* @param string $external_customer_id
* @return $this
*/
public function setExternal_customer_id($external_customer_id)
{
$this->external_customer_id = $external_customer_id;
return $this;
}
/**
* A unique identifier of the customer to whom this card account belongs. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
* @deprecated Instead use getExternalCustomerId
*
* @return string
*/
public function getExternal_customer_id()
{
return $this->external_customer_id;
}
/**
* State of the funding instrument.
* Valid Values: ["EXPIRED", "ACTIVE"]
@@ -553,31 +353,6 @@ class PaymentCard extends PayPalModel
return $this->valid_until;
}
/**
* Date/Time until this resource can be used to fund a payment.
*
* @deprecated Instead use setValidUntil
*
* @param string $valid_until
* @return $this
*/
public function setValid_until($valid_until)
{
$this->valid_until = $valid_until;
return $this;
}
/**
* Date/Time until this resource can be used to fund a payment.
* @deprecated Instead use getValidUntil
*
* @return string
*/
public function getValid_until()
{
return $this->valid_until;
}
/**
* Sets Links
*

View File

@@ -43,31 +43,6 @@ class PaymentCardToken extends PayPalModel
return $this->payment_card_id;
}
/**
* ID of a previously saved Payment Card resource.
*
* @deprecated Instead use setPaymentCardId
*
* @param string $payment_card_id
* @return $this
*/
public function setPayment_card_id($payment_card_id)
{
$this->payment_card_id = $payment_card_id;
return $this;
}
/**
* ID of a previously saved Payment Card resource.
* @deprecated Instead use getPaymentCardId
*
* @return string
*/
public function getPayment_card_id()
{
return $this->payment_card_id;
}
/**
* The unique identifier of the payer used when saving this payment card.
*
@@ -91,31 +66,6 @@ class PaymentCardToken extends PayPalModel
return $this->external_customer_id;
}
/**
* The unique identifier of the payer used when saving this payment card.
*
* @deprecated Instead use setExternalCustomerId
*
* @param string $external_customer_id
* @return $this
*/
public function setExternal_customer_id($external_customer_id)
{
$this->external_customer_id = $external_customer_id;
return $this;
}
/**
* The unique identifier of the payer used when saving this payment card.
* @deprecated Instead use getExternalCustomerId
*
* @return string
*/
public function getExternal_customer_id()
{
return $this->external_customer_id;
}
/**
* Last 4 digits of the card number from the saved card.
*
@@ -186,31 +136,6 @@ class PaymentCardToken extends PayPalModel
return $this->expire_month;
}
/**
* Expiry month from the saved card with value 1 - 12.
*
* @deprecated Instead use setExpireMonth
*
* @param int $expire_month
* @return $this
*/
public function setExpire_month($expire_month)
{
$this->expire_month = $expire_month;
return $this;
}
/**
* Expiry month from the saved card with value 1 - 12.
* @deprecated Instead use getExpireMonth
*
* @return int
*/
public function getExpire_month()
{
return $this->expire_month;
}
/**
* Four digit expiry year from the saved card, represented as YYYY format.
*
@@ -234,29 +159,4 @@ class PaymentCardToken extends PayPalModel
return $this->expire_year;
}
/**
* Four digit expiry year from the saved card, represented as YYYY format.
*
* @deprecated Instead use setExpireYear
*
* @param int $expire_year
* @return $this
*/
public function setExpire_year($expire_year)
{
$this->expire_year = $expire_year;
return $this;
}
/**
* Four digit expiry year from the saved card, represented as YYYY format.
* @deprecated Instead use getExpireYear
*
* @return int
*/
public function getExpire_year()
{
return $this->expire_year;
}
}

View File

@@ -114,31 +114,6 @@ class PaymentDefinition extends PayPalModel
return $this->frequency_interval;
}
/**
* How frequently the customer should be charged.
*
* @deprecated Instead use setFrequencyInterval
*
* @param string $frequency_interval
* @return $this
*/
public function setFrequency_interval($frequency_interval)
{
$this->frequency_interval = $frequency_interval;
return $this;
}
/**
* How frequently the customer should be charged.
* @deprecated Instead use getFrequencyInterval
*
* @return string
*/
public function getFrequency_interval()
{
return $this->frequency_interval;
}
/**
* Frequency of the payment definition offered. Allowed values: `WEEK`, `DAY`, `YEAR`, `MONTH`.
*
@@ -261,29 +236,4 @@ class PaymentDefinition extends PayPalModel
);
}
/**
* Array of charge_models for this payment definition.
*
* @deprecated Instead use setChargeModels
*
* @param \PayPal\Api\ChargeModel $charge_models
* @return $this
*/
public function setCharge_models($charge_models)
{
$this->charge_models = $charge_models;
return $this;
}
/**
* Array of charge_models for this payment definition.
* @deprecated Instead use getChargeModels
*
* @return \PayPal\Api\ChargeModel
*/
public function getCharge_models()
{
return $this->charge_models;
}
}

View File

@@ -67,31 +67,6 @@ class PaymentDetail extends PayPalModel
return $this->transaction_id;
}
/**
* PayPal payment transaction id. Mandatory field in case the type value is PAYPAL.
*
* @deprecated Instead use setTransactionId
*
* @param string $transaction_id
* @return $this
*/
public function setTransaction_id($transaction_id)
{
$this->transaction_id = $transaction_id;
return $this;
}
/**
* PayPal payment transaction id. Mandatory field in case the type value is PAYPAL.
* @deprecated Instead use getTransactionId
*
* @return string
*/
public function getTransaction_id()
{
return $this->transaction_id;
}
/**
* Type of the transaction.
* Valid Values: ["SALE", "AUTHORIZATION", "CAPTURE"]
@@ -116,31 +91,6 @@ class PaymentDetail extends PayPalModel
return $this->transaction_type;
}
/**
* Type of the transaction.
*
* @deprecated Instead use setTransactionType
*
* @param string $transaction_type
* @return $this
*/
public function setTransaction_type($transaction_type)
{
$this->transaction_type = $transaction_type;
return $this;
}
/**
* Type of the transaction.
* @deprecated Instead use getTransactionType
*
* @return string
*/
public function getTransaction_type()
{
return $this->transaction_type;
}
/**
* Date when the invoice was paid. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*

View File

@@ -41,31 +41,6 @@ class PaymentExecution extends PayPalModel
return $this->payer_id;
}
/**
* PayPal assigned Payer ID returned in the approval return url.
*
* @deprecated Instead use setPayerId
*
* @param string $payer_id
* @return $this
*/
public function setPayer_id($payer_id)
{
$this->payer_id = $payer_id;
return $this;
}
/**
* PayPal assigned Payer ID returned in the approval return url.
* @deprecated Instead use getPayerId
*
* @return string
*/
public function getPayer_id()
{
return $this->payer_id;
}
/**
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element.
*

View File

@@ -90,29 +90,4 @@ class PaymentHistory extends PayPalModel
return $this->next_id;
}
/**
* Identifier of the next element to get the next range of results.
*
* @deprecated Instead use setNextId
*
* @param string $next_id
* @return $this
*/
public function setNext_id($next_id)
{
$this->next_id = $next_id;
return $this;
}
/**
* Identifier of the next element to get the next range of results.
* @deprecated Instead use getNextId
*
* @return string
*/
public function getNext_id()
{
return $this->next_id;
}
}

View File

@@ -40,29 +40,4 @@ class PaymentOptions extends PayPalModel
return $this->allowed_payment_method;
}
/**
* Payment method requested for this purchase unit
*
* @deprecated Instead use setAllowedPaymentMethod
*
* @param string $allowed_payment_method
* @return $this
*/
public function setAllowed_payment_method($allowed_payment_method)
{
$this->allowed_payment_method = $allowed_payment_method;
return $this;
}
/**
* Payment method requested for this purchase unit
* @deprecated Instead use getAllowedPaymentMethod
*
* @return string
*/
public function getAllowed_payment_method()
{
return $this->allowed_payment_method;
}
}

View File

@@ -40,31 +40,6 @@ class PaymentTerm extends PayPalModel
return $this->term_type;
}
/**
* Terms by which the invoice payment is due.
*
* @deprecated Instead use setTermType
*
* @param string $term_type
* @return $this
*/
public function setTerm_type($term_type)
{
$this->term_type = $term_type;
return $this;
}
/**
* Terms by which the invoice payment is due.
* @deprecated Instead use getTermType
*
* @return string
*/
public function getTerm_type()
{
return $this->term_type;
}
/**
* Date on which invoice payment is due. It must be always a future date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -88,29 +63,4 @@ class PaymentTerm extends PayPalModel
return $this->due_date;
}
/**
* Date on which invoice payment is due. It must be always a future date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setDueDate
*
* @param string $due_date
* @return $this
*/
public function setDue_date($due_date)
{
$this->due_date = $due_date;
return $this;
}
/**
* Date on which invoice payment is due. It must be always a future date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getDueDate
*
* @return string
*/
public function getDue_date()
{
return $this->due_date;
}
}

View File

@@ -43,31 +43,6 @@ class Payout extends PayPalResourceModel
return $this->sender_batch_header;
}
/**
* The original batch header as provided by the payment sender.
*
* @deprecated Instead use setSenderBatchHeader
*
* @param \PayPal\Api\PayoutSenderBatchHeader $sender_batch_header
* @return $this
*/
public function setSender_batch_header($sender_batch_header)
{
$this->sender_batch_header = $sender_batch_header;
return $this;
}
/**
* The original batch header as provided by the payment sender.
* @deprecated Instead use getSenderBatchHeader
*
* @return \PayPal\Api\PayoutSenderBatchHeader
*/
public function getSender_batch_header()
{
return $this->sender_batch_header;
}
/**
* An array of payout items (that is, a set of individual payouts).
*

View File

@@ -40,31 +40,6 @@ class PayoutBatch extends PayPalModel
return $this->batch_header;
}
/**
* A batch header that includes the generated batch status.
*
* @deprecated Instead use setBatchHeader
*
* @param \PayPal\Api\PayoutBatchHeader $batch_header
* @return $this
*/
public function setBatch_header($batch_header)
{
$this->batch_header = $batch_header;
return $this;
}
/**
* A batch header that includes the generated batch status.
* @deprecated Instead use getBatchHeader
*
* @return \PayPal\Api\PayoutBatchHeader
*/
public function getBatch_header()
{
return $this->batch_header;
}
/**
* Array of the items in a batch payout.
*

View File

@@ -46,31 +46,6 @@ class PayoutBatchHeader extends PayPalModel
return $this->payout_batch_id;
}
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
*
* @deprecated Instead use setPayoutBatchId
*
* @param string $payout_batch_id
* @return $this
*/
public function setPayout_batch_id($payout_batch_id)
{
$this->payout_batch_id = $payout_batch_id;
return $this;
}
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
* @deprecated Instead use getPayoutBatchId
*
* @return string
*/
public function getPayout_batch_id()
{
return $this->payout_batch_id;
}
/**
* Generated batch status.
*
@@ -94,31 +69,6 @@ class PayoutBatchHeader extends PayPalModel
return $this->batch_status;
}
/**
* Generated batch status.
*
* @deprecated Instead use setBatchStatus
*
* @param string $batch_status
* @return $this
*/
public function setBatch_status($batch_status)
{
$this->batch_status = $batch_status;
return $this;
}
/**
* Generated batch status.
* @deprecated Instead use getBatchStatus
*
* @return string
*/
public function getBatch_status()
{
return $this->batch_status;
}
/**
* The time the batch entered processing.
*
@@ -142,31 +92,6 @@ class PayoutBatchHeader extends PayPalModel
return $this->time_created;
}
/**
* The time the batch entered processing.
*
* @deprecated Instead use setTimeCreated
*
* @param string $time_created
* @return $this
*/
public function setTime_created($time_created)
{
$this->time_created = $time_created;
return $this;
}
/**
* The time the batch entered processing.
* @deprecated Instead use getTimeCreated
*
* @return string
*/
public function getTime_created()
{
return $this->time_created;
}
/**
* The time that processing for the batch was completed.
*
@@ -190,31 +115,6 @@ class PayoutBatchHeader extends PayPalModel
return $this->time_completed;
}
/**
* The time that processing for the batch was completed.
*
* @deprecated Instead use setTimeCompleted
*
* @param string $time_completed
* @return $this
*/
public function setTime_completed($time_completed)
{
$this->time_completed = $time_completed;
return $this;
}
/**
* The time that processing for the batch was completed.
* @deprecated Instead use getTimeCompleted
*
* @return string
*/
public function getTime_completed()
{
return $this->time_completed;
}
/**
* The original batch header as provided by the payment sender.
*
@@ -238,31 +138,6 @@ class PayoutBatchHeader extends PayPalModel
return $this->sender_batch_header;
}
/**
* The original batch header as provided by the payment sender.
*
* @deprecated Instead use setSenderBatchHeader
*
* @param \PayPal\Api\PayoutSenderBatchHeader $sender_batch_header
* @return $this
*/
public function setSender_batch_header($sender_batch_header)
{
$this->sender_batch_header = $sender_batch_header;
return $this;
}
/**
* The original batch header as provided by the payment sender.
* @deprecated Instead use getSenderBatchHeader
*
* @return \PayPal\Api\PayoutSenderBatchHeader
*/
public function getSender_batch_header()
{
return $this->sender_batch_header;
}
/**
* Total amount, in U.S. dollars, requested for the applicable payouts.
*

View File

@@ -45,31 +45,6 @@ class PayoutItem extends PayPalResourceModel
return $this->recipient_type;
}
/**
* The type of identification for the payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
*
* @deprecated Instead use setRecipientType
*
* @param string $recipient_type
* @return $this
*/
public function setRecipient_type($recipient_type)
{
$this->recipient_type = $recipient_type;
return $this;
}
/**
* The type of identification for the payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
* @deprecated Instead use getRecipientType
*
* @return string
*/
public function getRecipient_type()
{
return $this->recipient_type;
}
/**
* The amount of money to pay a receiver.
*
@@ -162,31 +137,6 @@ class PayoutItem extends PayPalResourceModel
return $this->sender_item_id;
}
/**
* A sender-specific ID number, used in an accounting system for tracking purposes. 30 characters max.
*
* @deprecated Instead use setSenderItemId
*
* @param string $sender_item_id
* @return $this
*/
public function setSender_item_id($sender_item_id)
{
$this->sender_item_id = $sender_item_id;
return $this;
}
/**
* A sender-specific ID number, used in an accounting system for tracking purposes. 30 characters max.
* @deprecated Instead use getSenderItemId
*
* @return string
*/
public function getSender_item_id()
{
return $this->sender_item_id;
}
/**
* Obtain the status of a payout item by passing the item ID to the request URI.
*

View File

@@ -47,31 +47,6 @@ class PayoutItemDetails extends PayPalModel
return $this->payout_item_id;
}
/**
* An ID for an individual payout. Provided by PayPal, such as in the case of getting the status of a batch request. 30 characters max.
*
* @deprecated Instead use setPayoutItemId
*
* @param string $payout_item_id
* @return $this
*/
public function setPayout_item_id($payout_item_id)
{
$this->payout_item_id = $payout_item_id;
return $this;
}
/**
* An ID for an individual payout. Provided by PayPal, such as in the case of getting the status of a batch request. 30 characters max.
* @deprecated Instead use getPayoutItemId
*
* @return string
*/
public function getPayout_item_id()
{
return $this->payout_item_id;
}
/**
* Generated ID for the transaction. 30 characters max.
*
@@ -95,31 +70,6 @@ class PayoutItemDetails extends PayPalModel
return $this->transaction_id;
}
/**
* Generated ID for the transaction. 30 characters max.
*
* @deprecated Instead use setTransactionId
*
* @param string $transaction_id
* @return $this
*/
public function setTransaction_id($transaction_id)
{
$this->transaction_id = $transaction_id;
return $this;
}
/**
* Generated ID for the transaction. 30 characters max.
* @deprecated Instead use getTransactionId
*
* @return string
*/
public function getTransaction_id()
{
return $this->transaction_id;
}
/**
* Status of a transaction.
*
@@ -143,31 +93,6 @@ class PayoutItemDetails extends PayPalModel
return $this->transaction_status;
}
/**
* Status of a transaction.
*
* @deprecated Instead use setTransactionStatus
*
* @param string $transaction_status
* @return $this
*/
public function setTransaction_status($transaction_status)
{
$this->transaction_status = $transaction_status;
return $this;
}
/**
* Status of a transaction.
* @deprecated Instead use getTransactionStatus
*
* @return string
*/
public function getTransaction_status()
{
return $this->transaction_status;
}
/**
* Amount of money in U.S. dollars for fees.
*
@@ -191,31 +116,6 @@ class PayoutItemDetails extends PayPalModel
return $this->payout_item_fee;
}
/**
* Amount of money in U.S. dollars for fees.
*
* @deprecated Instead use setPayoutItemFee
*
* @param \PayPal\Api\Currency $payout_item_fee
* @return $this
*/
public function setPayout_item_fee($payout_item_fee)
{
$this->payout_item_fee = $payout_item_fee;
return $this;
}
/**
* Amount of money in U.S. dollars for fees.
* @deprecated Instead use getPayoutItemFee
*
* @return \PayPal\Api\Currency
*/
public function getPayout_item_fee()
{
return $this->payout_item_fee;
}
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
*
@@ -239,31 +139,6 @@ class PayoutItemDetails extends PayPalModel
return $this->payout_batch_id;
}
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
*
* @deprecated Instead use setPayoutBatchId
*
* @param string $payout_batch_id
* @return $this
*/
public function setPayout_batch_id($payout_batch_id)
{
$this->payout_batch_id = $payout_batch_id;
return $this;
}
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
* @deprecated Instead use getPayoutBatchId
*
* @return string
*/
public function getPayout_batch_id()
{
return $this->payout_batch_id;
}
/**
* Sender-created ID for tracking the batch in an accounting system. 30 characters max.
*
@@ -287,31 +162,6 @@ class PayoutItemDetails extends PayPalModel
return $this->sender_batch_id;
}
/**
* Sender-created ID for tracking the batch in an accounting system. 30 characters max.
*
* @deprecated Instead use setSenderBatchId
*
* @param string $sender_batch_id
* @return $this
*/
public function setSender_batch_id($sender_batch_id)
{
$this->sender_batch_id = $sender_batch_id;
return $this;
}
/**
* Sender-created ID for tracking the batch in an accounting system. 30 characters max.
* @deprecated Instead use getSenderBatchId
*
* @return string
*/
public function getSender_batch_id()
{
return $this->sender_batch_id;
}
/**
* The data for a payout item that the sender initially provided.
*
@@ -335,31 +185,6 @@ class PayoutItemDetails extends PayPalModel
return $this->payout_item;
}
/**
* The data for a payout item that the sender initially provided.
*
* @deprecated Instead use setPayoutItem
*
* @param \PayPal\Api\PayoutItem $payout_item
* @return $this
*/
public function setPayout_item($payout_item)
{
$this->payout_item = $payout_item;
return $this;
}
/**
* The data for a payout item that the sender initially provided.
* @deprecated Instead use getPayoutItem
*
* @return \PayPal\Api\PayoutItem
*/
public function getPayout_item()
{
return $this->payout_item;
}
/**
* Time of the last processing for this item.
*
@@ -383,31 +208,6 @@ class PayoutItemDetails extends PayPalModel
return $this->time_processed;
}
/**
* Time of the last processing for this item.
*
* @deprecated Instead use setTimeProcessed
*
* @param string $time_processed
* @return $this
*/
public function setTime_processed($time_processed)
{
$this->time_processed = $time_processed;
return $this;
}
/**
* Time of the last processing for this item.
* @deprecated Instead use getTimeProcessed
*
* @return string
*/
public function getTime_processed()
{
return $this->time_processed;
}
/**
* Sets Error
*

View File

@@ -40,31 +40,6 @@ class PayoutSenderBatchHeader extends PayPalModel
return $this->sender_batch_id;
}
/**
* Sender-created ID for tracking the batch payout in an accounting system. 30 characters max.
*
* @deprecated Instead use setSenderBatchId
*
* @param string $sender_batch_id
* @return $this
*/
public function setSender_batch_id($sender_batch_id)
{
$this->sender_batch_id = $sender_batch_id;
return $this;
}
/**
* Sender-created ID for tracking the batch payout in an accounting system. 30 characters max.
* @deprecated Instead use getSenderBatchId
*
* @return string
*/
public function getSender_batch_id()
{
return $this->sender_batch_id;
}
/**
* The subject line text for the email that PayPal sends when a payout item is completed. (The subject line is the same for all recipients.) Maximum of 255 single-byte alphanumeric characters.
*
@@ -88,31 +63,6 @@ class PayoutSenderBatchHeader extends PayPalModel
return $this->email_subject;
}
/**
* The subject line text for the email that PayPal sends when a payout item is completed. (The subject line is the same for all recipients.) Maximum of 255 single-byte alphanumeric characters.
*
* @deprecated Instead use setEmailSubject
*
* @param string $email_subject
* @return $this
*/
public function setEmail_subject($email_subject)
{
$this->email_subject = $email_subject;
return $this;
}
/**
* The subject line text for the email that PayPal sends when a payout item is completed. (The subject line is the same for all recipients.) Maximum of 255 single-byte alphanumeric characters.
* @deprecated Instead use getEmailSubject
*
* @return string
*/
public function getEmail_subject()
{
return $this->email_subject;
}
/**
* The type of ID for a payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
*
@@ -136,29 +86,4 @@ class PayoutSenderBatchHeader extends PayPalModel
return $this->recipient_type;
}
/**
* The type of ID for a payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
*
* @deprecated Instead use setRecipientType
*
* @param string $recipient_type
* @return $this
*/
public function setRecipient_type($recipient_type)
{
$this->recipient_type = $recipient_type;
return $this;
}
/**
* The type of ID for a payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
* @deprecated Instead use getRecipientType
*
* @return string
*/
public function getRecipient_type()
{
return $this->recipient_type;
}
}

View File

@@ -40,31 +40,6 @@ class Phone extends PayPalModel
return $this->country_code;
}
/**
* Country code (in E.164 format). Assume length is n.
*
* @deprecated Instead use setCountryCode
*
* @param string $country_code
* @return $this
*/
public function setCountry_code($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* Country code (in E.164 format). Assume length is n.
* @deprecated Instead use getCountryCode
*
* @return string
*/
public function getCountry_code()
{
return $this->country_code;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
*
@@ -88,31 +63,6 @@ class Phone extends PayPalModel
return $this->national_number;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
*
* @deprecated Instead use setNationalNumber
*
* @param string $national_number
* @return $this
*/
public function setNational_number($national_number)
{
$this->national_number = $national_number;
return $this;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
* @deprecated Instead use getNationalNumber
*
* @return string
*/
public function getNational_number()
{
return $this->national_number;
}
/**
* Phone extension
*

View File

@@ -167,31 +167,6 @@ class Plan extends PayPalResourceModel
return $this->create_time;
}
/**
* Time when the billing plan was created. Format YYYY-MM-DDTimeTimezone, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time when the billing plan was created. Format YYYY-MM-DDTimeTimezone, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time when this billing plan was updated. Format YYYY-MM-DDTimeTimezone, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -215,31 +190,6 @@ class Plan extends PayPalResourceModel
return $this->update_time;
}
/**
* Time when this billing plan was updated. Format YYYY-MM-DDTimeTimezone, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time when this billing plan was updated. Format YYYY-MM-DDTimeTimezone, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Array of payment definitions for this billing plan.
*
@@ -293,31 +243,6 @@ class Plan extends PayPalResourceModel
);
}
/**
* Array of payment definitions for this billing plan.
*
* @deprecated Instead use setPaymentDefinitions
*
* @param \PayPal\Api\PaymentDefinition $payment_definitions
* @return $this
*/
public function setPayment_definitions($payment_definitions)
{
$this->payment_definitions = $payment_definitions;
return $this;
}
/**
* Array of payment definitions for this billing plan.
* @deprecated Instead use getPaymentDefinitions
*
* @return \PayPal\Api\PaymentDefinition
*/
public function getPayment_definitions()
{
return $this->payment_definitions;
}
/**
* Array of terms for this billing plan.
*
@@ -394,31 +319,6 @@ class Plan extends PayPalResourceModel
return $this->merchant_preferences;
}
/**
* Specific preferences such as: set up fee, max fail attempts, autobill amount, and others that are configured for this billing plan.
*
* @deprecated Instead use setMerchantPreferences
*
* @param \PayPal\Api\MerchantPreferences $merchant_preferences
* @return $this
*/
public function setMerchant_preferences($merchant_preferences)
{
$this->merchant_preferences = $merchant_preferences;
return $this;
}
/**
* Specific preferences such as: set up fee, max fail attempts, autobill amount, and others that are configured for this billing plan.
* @deprecated Instead use getMerchantPreferences
*
* @return \PayPal\Api\MerchantPreferences
*/
public function getMerchant_preferences()
{
return $this->merchant_preferences;
}
/**
* Retrieve the details for a particular billing plan by passing the billing plan ID to the request URI.
*

View File

@@ -94,31 +94,6 @@ class PlanList extends PayPalModel
return $this->total_items;
}
/**
* Total number of items.
*
* @deprecated Instead use setTotalItems
*
* @param string $total_items
* @return $this
*/
public function setTotal_items($total_items)
{
$this->total_items = $total_items;
return $this;
}
/**
* Total number of items.
* @deprecated Instead use getTotalItems
*
* @return string
*/
public function getTotal_items()
{
return $this->total_items;
}
/**
* Total number of pages.
*
@@ -142,31 +117,6 @@ class PlanList extends PayPalModel
return $this->total_pages;
}
/**
* Total number of pages.
*
* @deprecated Instead use setTotalPages
*
* @param string $total_pages
* @return $this
*/
public function setTotal_pages($total_pages)
{
$this->total_pages = $total_pages;
return $this;
}
/**
* Total number of pages.
* @deprecated Instead use getTotalPages
*
* @return string
*/
public function getTotal_pages()
{
return $this->total_pages;
}
/**
* Sets Links
*

View File

@@ -41,31 +41,6 @@ class Presentation extends PayPalModel
return $this->brand_name;
}
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
*
* @deprecated Instead use setBrandName
*
* @param string $brand_name
* @return $this
*/
public function setBrand_name($brand_name)
{
$this->brand_name = $brand_name;
return $this;
}
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
* @deprecated Instead use getBrandName
*
* @return string
*/
public function getBrand_name()
{
return $this->brand_name;
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
*
@@ -90,31 +65,6 @@ class Presentation extends PayPalModel
return $this->logo_image;
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
*
* @deprecated Instead use setLogoImage
*
* @param string $logo_image
* @return $this
*/
public function setLogo_image($logo_image)
{
$this->logo_image = $logo_image;
return $this;
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
* @deprecated Instead use getLogoImage
*
* @return string
*/
public function getLogo_image()
{
return $this->logo_image;
}
/**
* Locale of pages displayed by PayPal payment experience.
*
@@ -139,29 +89,4 @@ class Presentation extends PayPalModel
return $this->locale_code;
}
/**
* Locale of pages displayed by PayPal payment experience.
*
* @deprecated Instead use setLocaleCode
*
* @param string $locale_code
* @return $this
*/
public function setLocale_code($locale_code)
{
$this->locale_code = $locale_code;
return $this;
}
/**
* Locale of pages displayed by PayPal payment experience.
* @deprecated Instead use getLocaleCode
*
* @return string
*/
public function getLocale_code()
{
return $this->locale_code;
}
}

View File

@@ -43,37 +43,12 @@ class RedirectUrls extends PayPalModel
return $this->return_url;
}
/**
* Url where the payer would be redirected to after approving the payment.
*
* @deprecated Instead use setReturnUrl
*
* @param string $return_url
* @return $this
*/
public function setReturn_url($return_url)
{
$this->return_url = $return_url;
return $this;
}
/**
* Url where the payer would be redirected to after approving the payment.
* @deprecated Instead use getReturnUrl
*
* @return string
*/
public function getReturn_url()
{
return $this->return_url;
}
/**
* Url where the payer would be redirected to after canceling the payment.
*
*
* @param string $cancel_url
* @throws InvalidArgumentException
* @throws \InvalidArgumentException
* @return $this
*/
public function setCancelUrl($cancel_url)
@@ -93,29 +68,4 @@ class RedirectUrls extends PayPalModel
return $this->cancel_url;
}
/**
* Url where the payer would be redirected to after canceling the payment.
*
* @deprecated Instead use setCancelUrl
*
* @param string $cancel_url
* @return $this
*/
public function setCancel_url($cancel_url)
{
$this->cancel_url = $cancel_url;
return $this;
}
/**
* Url where the payer would be redirected to after canceling the payment.
* @deprecated Instead use getCancelUrl
*
* @return string
*/
public function getCancel_url()
{
return $this->cancel_url;
}
}

View File

@@ -28,23 +28,6 @@ use PayPal\Validation\ArgumentValidator;
*/
class Refund extends PayPalModel implements IResource
{
/**
* OAuth Credentials to use for this call
*
* @var \PayPal\Auth\OAuthTokenCredential $credential
*/
protected static $credential;
/**
* Sets Credential
*
* @deprecated Pass ApiContext to create/get methods instead
* @param \PayPal\Auth\OAuthTokenCredential $credential
*/
public static function setCredential($credential)
{
self::$credential = $credential;
}
/**
* Identifier of the refund transaction in UTC ISO8601 format.
@@ -94,31 +77,6 @@ class Refund extends PayPalModel implements IResource
return $this->create_time;
}
/**
* Time the resource was created in UTC ISO8601 format.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created in UTC ISO8601 format.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
@@ -143,31 +101,6 @@ class Refund extends PayPalModel implements IResource
return $this->update_time;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was last updated in UTC ISO8601 format.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Details including both refunded amount (to Payer) and refunded fee (to Payee).If amount is not specified, it's assumed to be full refund.
*
@@ -240,31 +173,6 @@ class Refund extends PayPalModel implements IResource
return $this->sale_id;
}
/**
* ID of the Sale transaction being refunded.
*
* @deprecated Instead use setSaleId
*
* @param string $sale_id
* @return $this
*/
public function setSale_id($sale_id)
{
$this->sale_id = $sale_id;
return $this;
}
/**
* ID of the Sale transaction being refunded.
* @deprecated Instead use getSaleId
*
* @return string
*/
public function getSale_id()
{
return $this->sale_id;
}
/**
* ID of the Capture transaction being refunded.
*
@@ -289,31 +197,6 @@ class Refund extends PayPalModel implements IResource
return $this->capture_id;
}
/**
* ID of the Capture transaction being refunded.
*
* @deprecated Instead use setCaptureId
*
* @param string $capture_id
* @return $this
*/
public function setCapture_id($capture_id)
{
$this->capture_id = $capture_id;
return $this;
}
/**
* ID of the Capture transaction being refunded.
* @deprecated Instead use getCaptureId
*
* @return string
*/
public function getCapture_id()
{
return $this->capture_id;
}
/**
* ID of the Payment resource that this transaction is based on.
*
@@ -338,31 +221,6 @@ class Refund extends PayPalModel implements IResource
return $this->parent_payment;
}
/**
* ID of the Payment resource that this transaction is based on.
*
* @deprecated Instead use setParentPayment
*
* @param string $parent_payment
* @return $this
*/
public function setParent_payment($parent_payment)
{
$this->parent_payment = $parent_payment;
return $this;
}
/**
* ID of the Payment resource that this transaction is based on.
* @deprecated Instead use getParentPayment
*
* @return string
*/
public function getParent_payment()
{
return $this->parent_payment;
}
/**
* Description of what is being refunded for.
*

View File

@@ -30,24 +30,6 @@ use PayPal\Validation\ArgumentValidator;
*/
class Sale extends PayPalResourceModel
{
/**
* OAuth Credentials to use for this call
*
* @var \PayPal\Auth\OAuthTokenCredential $credential
*/
protected static $credential;
/**
* Sets Credential
*
* @deprecated Pass ApiContext to create/get methods instead
* @param \PayPal\Auth\OAuthTokenCredential $credential
*/
public static function setCredential($credential)
{
self::$credential = $credential;
}
/**
* Identifier of the authorization transaction.
*
@@ -96,31 +78,6 @@ class Sale extends PayPalResourceModel
return $this->create_time;
}
/**
* Time the resource was created.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Time the resource was last updated.
*
@@ -145,31 +102,6 @@ class Sale extends PayPalResourceModel
return $this->update_time;
}
/**
* Time the resource was last updated.
*
* @deprecated Instead use setUpdateTime
*
* @param string $update_time
* @return $this
*/
public function setUpdate_time($update_time)
{
$this->update_time = $update_time;
return $this;
}
/**
* Time the resource was last updated.
* @deprecated Instead use getUpdateTime
*
* @return string
*/
public function getUpdate_time()
{
return $this->update_time;
}
/**
* Amount being collected.
*
@@ -218,31 +150,6 @@ class Sale extends PayPalResourceModel
return $this->payment_mode;
}
/**
* specifies payment mode of the transaction
*
* @deprecated Instead use setPaymentMode
*
* @param string $payment_mode
* @return $this
*/
public function setPayment_mode($payment_mode)
{
$this->payment_mode = $payment_mode;
return $this;
}
/**
* specifies payment mode of the transaction
* @deprecated Instead use getPaymentMode
*
* @return string
*/
public function getPayment_mode()
{
return $this->payment_mode;
}
/**
* Reason of Pending transaction.
*
@@ -267,31 +174,6 @@ class Sale extends PayPalResourceModel
return $this->pending_reason;
}
/**
* Reason of Pending transaction.
*
* @deprecated Instead use setPendingReason
*
* @param string $pending_reason
* @return $this
*/
public function setPending_reason($pending_reason)
{
$this->pending_reason = $pending_reason;
return $this;
}
/**
* Reason of Pending transaction.
* @deprecated Instead use getPendingReason
*
* @return string
*/
public function getPending_reason()
{
return $this->pending_reason;
}
/**
* State of the sale transaction.
* Valid Values: ["pending", "completed", "refunded", "partially_refunded"]
@@ -340,31 +222,6 @@ class Sale extends PayPalResourceModel
return $this->reason_code;
}
/**
* Reason code for the transaction state being Pending or Reversed.
*
* @deprecated Instead use setReasonCode
*
* @param string $reason_code
* @return $this
*/
public function setReason_code($reason_code)
{
$this->reason_code = $reason_code;
return $this;
}
/**
* Reason code for the transaction state being Pending or Reversed.
* @deprecated Instead use getReasonCode
*
* @return string
*/
public function getReason_code()
{
return $this->reason_code;
}
/**
* Protection Eligibility of the Payer
* Valid Values: ["ELIGIBLE", "PARTIALLY_ELIGIBLE", "INELIGIBLE"]
@@ -389,31 +246,6 @@ class Sale extends PayPalResourceModel
return $this->protection_eligibility;
}
/**
* Protection Eligibility of the Payer
*
* @deprecated Instead use setProtectionEligibility
*
* @param string $protection_eligibility
* @return $this
*/
public function setProtection_eligibility($protection_eligibility)
{
$this->protection_eligibility = $protection_eligibility;
return $this;
}
/**
* Protection Eligibility of the Payer
* @deprecated Instead use getProtectionEligibility
*
* @return string
*/
public function getProtection_eligibility()
{
return $this->protection_eligibility;
}
/**
* Protection Eligibility Type of the Payer
* Valid Values: ["ELIGIBLE", "ITEM_NOT_RECEIVED_ELIGIBLE", "INELIGIBLE", "UNAUTHORIZED_PAYMENT_ELIGIBLE"]
@@ -438,31 +270,6 @@ class Sale extends PayPalResourceModel
return $this->protection_eligibility_type;
}
/**
* Protection Eligibility Type of the Payer
*
* @deprecated Instead use setProtectionEligibilityType
*
* @param string $protection_eligibility_type
* @return $this
*/
public function setProtection_eligibility_type($protection_eligibility_type)
{
$this->protection_eligibility_type = $protection_eligibility_type;
return $this;
}
/**
* Protection Eligibility Type of the Payer
* @deprecated Instead use getProtectionEligibilityType
*
* @return string
*/
public function getProtection_eligibility_type()
{
return $this->protection_eligibility_type;
}
/**
* Expected clearing time for eCheck Transactions
*
@@ -487,31 +294,6 @@ class Sale extends PayPalResourceModel
return $this->clearing_time;
}
/**
* Expected clearing time for eCheck Transactions
*
* @deprecated Instead use setClearingTime
*
* @param string $clearing_time
* @return $this
*/
public function setClearing_time($clearing_time)
{
$this->clearing_time = $clearing_time;
return $this;
}
/**
* Expected clearing time for eCheck Transactions
* @deprecated Instead use getClearingTime
*
* @return string
*/
public function getClearing_time()
{
return $this->clearing_time;
}
/**
* ID of the Payment resource that this transaction is based on.
*
@@ -536,31 +318,6 @@ class Sale extends PayPalResourceModel
return $this->parent_payment;
}
/**
* ID of the Payment resource that this transaction is based on.
*
* @deprecated Instead use setParentPayment
*
* @param string $parent_payment
* @return $this
*/
public function setParent_payment($parent_payment)
{
$this->parent_payment = $parent_payment;
return $this;
}
/**
* ID of the Payment resource that this transaction is based on.
* @deprecated Instead use getParentPayment
*
* @return string
*/
public function getParent_payment()
{
return $this->parent_payment;
}
/**
* Obtain the Sale transaction resource for the given identifier.
*

View File

@@ -79,31 +79,6 @@ class Search extends PayPalModel
return $this->recipient_first_name;
}
/**
* Initial letters of the recipient's first name.
*
* @deprecated Instead use setRecipientFirstName
*
* @param string $recipient_first_name
* @return $this
*/
public function setRecipient_first_name($recipient_first_name)
{
$this->recipient_first_name = $recipient_first_name;
return $this;
}
/**
* Initial letters of the recipient's first name.
* @deprecated Instead use getRecipientFirstName
*
* @return string
*/
public function getRecipient_first_name()
{
return $this->recipient_first_name;
}
/**
* Initial letters of the recipient's last name.
*
@@ -127,31 +102,6 @@ class Search extends PayPalModel
return $this->recipient_last_name;
}
/**
* Initial letters of the recipient's last name.
*
* @deprecated Instead use setRecipientLastName
*
* @param string $recipient_last_name
* @return $this
*/
public function setRecipient_last_name($recipient_last_name)
{
$this->recipient_last_name = $recipient_last_name;
return $this;
}
/**
* Initial letters of the recipient's last name.
* @deprecated Instead use getRecipientLastName
*
* @return string
*/
public function getRecipient_last_name()
{
return $this->recipient_last_name;
}
/**
* Initial letters of the recipient's business name.
*
@@ -175,31 +125,6 @@ class Search extends PayPalModel
return $this->recipient_business_name;
}
/**
* Initial letters of the recipient's business name.
*
* @deprecated Instead use setRecipientBusinessName
*
* @param string $recipient_business_name
* @return $this
*/
public function setRecipient_business_name($recipient_business_name)
{
$this->recipient_business_name = $recipient_business_name;
return $this;
}
/**
* Initial letters of the recipient's business name.
* @deprecated Instead use getRecipientBusinessName
*
* @return string
*/
public function getRecipient_business_name()
{
return $this->recipient_business_name;
}
/**
* The invoice number that appears on the invoice.
*
@@ -270,31 +195,6 @@ class Search extends PayPalModel
return $this->lower_total_amount;
}
/**
* Lower limit of total amount.
*
* @deprecated Instead use setLowerTotalAmount
*
* @param \PayPal\Api\Currency $lower_total_amount
* @return $this
*/
public function setLower_total_amount($lower_total_amount)
{
$this->lower_total_amount = $lower_total_amount;
return $this;
}
/**
* Lower limit of total amount.
* @deprecated Instead use getLowerTotalAmount
*
* @return \PayPal\Api\Currency
*/
public function getLower_total_amount()
{
return $this->lower_total_amount;
}
/**
* Upper limit of total amount.
*
@@ -318,31 +218,6 @@ class Search extends PayPalModel
return $this->upper_total_amount;
}
/**
* Upper limit of total amount.
*
* @deprecated Instead use setUpperTotalAmount
*
* @param \PayPal\Api\Currency $upper_total_amount
* @return $this
*/
public function setUpper_total_amount($upper_total_amount)
{
$this->upper_total_amount = $upper_total_amount;
return $this;
}
/**
* Upper limit of total amount.
* @deprecated Instead use getUpperTotalAmount
*
* @return \PayPal\Api\Currency
*/
public function getUpper_total_amount()
{
return $this->upper_total_amount;
}
/**
* Start invoice date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -366,31 +241,6 @@ class Search extends PayPalModel
return $this->start_invoice_date;
}
/**
* Start invoice date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setStartInvoiceDate
*
* @param string $start_invoice_date
* @return $this
*/
public function setStart_invoice_date($start_invoice_date)
{
$this->start_invoice_date = $start_invoice_date;
return $this;
}
/**
* Start invoice date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getStartInvoiceDate
*
* @return string
*/
public function getStart_invoice_date()
{
return $this->start_invoice_date;
}
/**
* End invoice date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -414,31 +264,6 @@ class Search extends PayPalModel
return $this->end_invoice_date;
}
/**
* End invoice date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setEndInvoiceDate
*
* @param string $end_invoice_date
* @return $this
*/
public function setEnd_invoice_date($end_invoice_date)
{
$this->end_invoice_date = $end_invoice_date;
return $this;
}
/**
* End invoice date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getEndInvoiceDate
*
* @return string
*/
public function getEnd_invoice_date()
{
return $this->end_invoice_date;
}
/**
* Start invoice due date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -462,31 +287,6 @@ class Search extends PayPalModel
return $this->start_due_date;
}
/**
* Start invoice due date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setStartDueDate
*
* @param string $start_due_date
* @return $this
*/
public function setStart_due_date($start_due_date)
{
$this->start_due_date = $start_due_date;
return $this;
}
/**
* Start invoice due date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getStartDueDate
*
* @return string
*/
public function getStart_due_date()
{
return $this->start_due_date;
}
/**
* End invoice due date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -510,31 +310,6 @@ class Search extends PayPalModel
return $this->end_due_date;
}
/**
* End invoice due date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setEndDueDate
*
* @param string $end_due_date
* @return $this
*/
public function setEnd_due_date($end_due_date)
{
$this->end_due_date = $end_due_date;
return $this;
}
/**
* End invoice due date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getEndDueDate
*
* @return string
*/
public function getEnd_due_date()
{
return $this->end_due_date;
}
/**
* Start invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -558,31 +333,6 @@ class Search extends PayPalModel
return $this->start_payment_date;
}
/**
* Start invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setStartPaymentDate
*
* @param string $start_payment_date
* @return $this
*/
public function setStart_payment_date($start_payment_date)
{
$this->start_payment_date = $start_payment_date;
return $this;
}
/**
* Start invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getStartPaymentDate
*
* @return string
*/
public function getStart_payment_date()
{
return $this->start_payment_date;
}
/**
* End invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -606,31 +356,6 @@ class Search extends PayPalModel
return $this->end_payment_date;
}
/**
* End invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setEndPaymentDate
*
* @param string $end_payment_date
* @return $this
*/
public function setEnd_payment_date($end_payment_date)
{
$this->end_payment_date = $end_payment_date;
return $this;
}
/**
* End invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getEndPaymentDate
*
* @return string
*/
public function getEnd_payment_date()
{
return $this->end_payment_date;
}
/**
* Start invoice creation date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -654,31 +379,6 @@ class Search extends PayPalModel
return $this->start_creation_date;
}
/**
* Start invoice creation date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setStartCreationDate
*
* @param string $start_creation_date
* @return $this
*/
public function setStart_creation_date($start_creation_date)
{
$this->start_creation_date = $start_creation_date;
return $this;
}
/**
* Start invoice creation date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getStartCreationDate
*
* @return string
*/
public function getStart_creation_date()
{
return $this->start_creation_date;
}
/**
* End invoice creation date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
@@ -702,31 +402,6 @@ class Search extends PayPalModel
return $this->end_creation_date;
}
/**
* End invoice creation date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setEndCreationDate
*
* @param string $end_creation_date
* @return $this
*/
public function setEnd_creation_date($end_creation_date)
{
$this->end_creation_date = $end_creation_date;
return $this;
}
/**
* End invoice creation date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getEndCreationDate
*
* @return string
*/
public function getEnd_creation_date()
{
return $this->end_creation_date;
}
/**
* Offset of the search results.
*
@@ -773,31 +448,6 @@ class Search extends PayPalModel
return $this->page_size;
}
/**
* Page size of the search results.
*
* @deprecated Instead use setPageSize
*
* @param \PayPal\Api\number $page_size
* @return $this
*/
public function setPage_size($page_size)
{
$this->page_size = $page_size;
return $this;
}
/**
* Page size of the search results.
* @deprecated Instead use getPageSize
*
* @return \PayPal\Api\number
*/
public function getPage_size()
{
return $this->page_size;
}
/**
* A flag indicating whether total count is required in the response.
*
@@ -821,29 +471,4 @@ class Search extends PayPalModel
return $this->total_count_required;
}
/**
* A flag indicating whether total count is required in the response.
*
* @deprecated Instead use setTotalCountRequired
*
* @param bool $total_count_required
* @return $this
*/
public function setTotal_count_required($total_count_required)
{
$this->total_count_required = $total_count_required;
return $this;
}
/**
* A flag indicating whether total count is required in the response.
* @deprecated Instead use getTotalCountRequired
*
* @return bool
*/
public function getTotal_count_required()
{
return $this->total_count_required;
}
}

View File

@@ -63,31 +63,6 @@ class ShippingAddress extends Address
return $this->recipient_name;
}
/**
* Name of the recipient at this address.
*
* @deprecated Instead use setRecipientName
*
* @param string $recipient_name
* @return $this
*/
public function setRecipient_name($recipient_name)
{
$this->recipient_name = $recipient_name;
return $this;
}
/**
* Name of the recipient at this address.
* @deprecated Instead use getRecipientName
*
* @return string
*/
public function getRecipient_name()
{
return $this->recipient_name;
}
/**
* Default shipping address of the Payer.
*
@@ -111,29 +86,4 @@ class ShippingAddress extends Address
return $this->default_address;
}
/**
* Default shipping address of the Payer.
*
* @deprecated Instead use setDefaultAddress
*
* @param bool $default_address
* @return $this
*/
public function setDefault_address($default_address)
{
$this->default_address = $default_address;
return $this;
}
/**
* Default shipping address of the Payer.
* @deprecated Instead use getDefaultAddress
*
* @return bool
*/
public function getDefault_address()
{
return $this->default_address;
}
}

View File

@@ -42,31 +42,6 @@ class ShippingInfo extends PayPalModel
return $this->first_name;
}
/**
* First name of the invoice recipient. 30 characters max.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* First name of the invoice recipient. 30 characters max.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Last name of the invoice recipient. 30 characters max.
*
@@ -90,31 +65,6 @@ class ShippingInfo extends PayPalModel
return $this->last_name;
}
/**
* Last name of the invoice recipient. 30 characters max.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Last name of the invoice recipient. 30 characters max.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* Company business name of the invoice recipient. 100 characters max.
*
@@ -138,31 +88,6 @@ class ShippingInfo extends PayPalModel
return $this->business_name;
}
/**
* Company business name of the invoice recipient. 100 characters max.
*
* @deprecated Instead use setBusinessName
*
* @param string $business_name
* @return $this
*/
public function setBusiness_name($business_name)
{
$this->business_name = $business_name;
return $this;
}
/**
* Company business name of the invoice recipient. 100 characters max.
* @deprecated Instead use getBusinessName
*
* @return string
*/
public function getBusiness_name()
{
return $this->business_name;
}
/**
*
*
@@ -208,24 +133,4 @@ class ShippingInfo extends PayPalModel
return $this->address;
}
/**
* @deprecated This will not be supported soon. Kept for backward Compatibility
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @deprecated This will not be supported soon. Kept for backward Compatibility
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
}

View File

@@ -89,31 +89,6 @@ class Terms extends PayPalModel
return $this->max_billing_amount;
}
/**
* Max Amount associated with this term.
*
* @deprecated Instead use setMaxBillingAmount
*
* @param \PayPal\Api\Currency $max_billing_amount
* @return $this
*/
public function setMax_billing_amount($max_billing_amount)
{
$this->max_billing_amount = $max_billing_amount;
return $this;
}
/**
* Max Amount associated with this term.
* @deprecated Instead use getMaxBillingAmount
*
* @return \PayPal\Api\Currency
*/
public function getMax_billing_amount()
{
return $this->max_billing_amount;
}
/**
* How many times money can be pulled during this term.
*
@@ -160,31 +135,6 @@ class Terms extends PayPalModel
return $this->amount_range;
}
/**
* Amount_range associated with this term.
*
* @deprecated Instead use setAmountRange
*
* @param \PayPal\Api\Currency $amount_range
* @return $this
*/
public function setAmount_range($amount_range)
{
$this->amount_range = $amount_range;
return $this;
}
/**
* Amount_range associated with this term.
* @deprecated Instead use getAmountRange
*
* @return \PayPal\Api\Currency
*/
public function getAmount_range()
{
return $this->amount_range;
}
/**
* Buyer's ability to edit the amount in this term.
*
@@ -208,29 +158,4 @@ class Terms extends PayPalModel
return $this->buyer_editable;
}
/**
* Buyer's ability to edit the amount in this term.
*
* @deprecated Instead use setBuyerEditable
*
* @param string $buyer_editable
* @return $this
*/
public function setBuyer_editable($buyer_editable)
{
$this->buyer_editable = $buyer_editable;
return $this;
}
/**
* Buyer's ability to edit the amount in this term.
* @deprecated Instead use getBuyerEditable
*
* @return string
*/
public function getBuyer_editable()
{
return $this->buyer_editable;
}
}

View File

@@ -12,7 +12,7 @@ use PayPal\Rest\ApiContext;
*
* @package PayPal\Api
*
* @property self transactions
* @property Transaction transactions
*/
class Transaction extends TransactionBase
{

View File

@@ -40,29 +40,4 @@ class TransactionBase extends CartBase
return $this->related_resources;
}
/**
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
*
* @deprecated Instead use setRelatedResources
*
* @param \PayPal\Api\RelatedResources $related_resources
* @return $this
*/
public function setRelated_resources($related_resources)
{
$this->related_resources = $related_resources;
return $this;
}
/**
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
* @deprecated Instead use getRelatedResources
*
* @return \PayPal\Api\RelatedResources
*/
public function getRelated_resources()
{
return $this->related_resources;
}
}

View File

@@ -95,31 +95,6 @@ class WebProfile extends PayPalResourceModel
return $this->flow_config;
}
/**
* Parameters for flow configuration.
*
* @deprecated Instead use setFlowConfig
*
* @param \PayPal\Api\FlowConfig $flow_config
* @return $this
*/
public function setFlow_config($flow_config)
{
$this->flow_config = $flow_config;
return $this;
}
/**
* Parameters for flow configuration.
* @deprecated Instead use getFlowConfig
*
* @return \PayPal\Api\FlowConfig
*/
public function getFlow_config()
{
return $this->flow_config;
}
/**
* Parameters for input fields customization.
*
@@ -144,31 +119,6 @@ class WebProfile extends PayPalResourceModel
return $this->input_fields;
}
/**
* Parameters for input fields customization.
*
* @deprecated Instead use setInputFields
*
* @param \PayPal\Api\InputFields $input_fields
* @return $this
*/
public function setInput_fields($input_fields)
{
$this->input_fields = $input_fields;
return $this;
}
/**
* Parameters for input fields customization.
* @deprecated Instead use getInputFields
*
* @return \PayPal\Api\InputFields
*/
public function getInput_fields()
{
return $this->input_fields;
}
/**
* Parameters for style and presentation.
*

View File

@@ -122,32 +122,6 @@ class Webhook extends PayPalResourceModel
);
}
/**
* List of Webhooks event-types.
*
* @deprecated Instead use setEventTypes
*
* @param \PayPal\Api\WebhookEventType $event_types
* @return $this
*/
public function setEvent_types($event_types)
{
$this->event_types = $event_types;
return $this;
}
/**
* List of Webhooks event-types.
* @deprecated Instead use getEventTypes
*
* @return \PayPal\Api\WebhookEventType
*/
public function getEvent_types()
{
return $this->event_types;
}
/**
* Creates the Webhook for the application associated with the access token.
*

View File

@@ -71,31 +71,6 @@ class WebhookEvent extends PayPalResourceModel
return $this->create_time;
}
/**
* Time the resource was created.
*
* @deprecated Instead use setCreateTime
*
* @param string $create_time
* @return $this
*/
public function setCreate_time($create_time)
{
$this->create_time = $create_time;
return $this;
}
/**
* Time the resource was created.
* @deprecated Instead use getCreateTime
*
* @return string
*/
public function getCreate_time()
{
return $this->create_time;
}
/**
* Name of the resource contained in resource element.
*
@@ -119,31 +94,6 @@ class WebhookEvent extends PayPalResourceModel
return $this->resource_type;
}
/**
* Name of the resource contained in resource element.
*
* @deprecated Instead use setResourceType
*
* @param string $resource_type
* @return $this
*/
public function setResource_type($resource_type)
{
$this->resource_type = $resource_type;
return $this;
}
/**
* Name of the resource contained in resource element.
* @deprecated Instead use getResourceType
*
* @return string
*/
public function getResource_type()
{
return $this->resource_type;
}
/**
* Name of the event type that occurred on resource, identified by data_resource element, to trigger the Webhooks event.
*
@@ -167,31 +117,6 @@ class WebhookEvent extends PayPalResourceModel
return $this->event_type;
}
/**
* Name of the event type that occurred on resource, identified by data_resource element, to trigger the Webhooks event.
*
* @deprecated Instead use setEventType
*
* @param string $event_type
* @return $this
*/
public function setEvent_type($event_type)
{
$this->event_type = $event_type;
return $this;
}
/**
* Name of the event type that occurred on resource, identified by data_resource element, to trigger the Webhooks event.
* @deprecated Instead use getEventType
*
* @return string
*/
public function getEvent_type()
{
return $this->event_type;
}
/**
* A summary description of the event. E.g. A successful payment authorization was created for $$
*

View File

@@ -68,29 +68,4 @@ class WebhookEventTypeList extends PayPalModel
);
}
/**
* A list of Webhooks event-types
*
* @deprecated Instead use setEventTypes
*
* @param \PayPal\Api\WebhookEventType $event_types
* @return $this
*/
public function setEvent_types($event_types)
{
$this->event_types = $event_types;
return $this;
}
/**
* A list of Webhooks event-types
* @deprecated Instead use getEventTypes
*
* @return \PayPal\Api\WebhookEventType
*/
public function getEvent_types()
{
return $this->event_types;
}
}

View File

@@ -16,18 +16,6 @@ class FormatConverter {
return sprintf($formatter, $value);
}
/**
* Format the input data to two decimal places
*
* @deprecated Use formatToNumber instead
* @param $value
* @return string
*/
public static function formatToTwoDecimalPlaces($value)
{
return self::formatToNumber($value);
}
/**
* Format the input data with decimal places
*