From b011d17cde4107c6fa9ffd1a602497f2593ba05b Mon Sep 17 00:00:00 2001 From: japatel Date: Thu, 8 Jan 2015 22:23:58 -0600 Subject: [PATCH] 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 --- lib/PayPal/Api/Agreement.php | 175 ------ lib/PayPal/Api/AgreementDetails.php | 200 ------- lib/PayPal/Api/AgreementTransaction.php | 200 ------- lib/PayPal/Api/AgreementTransactions.php | 25 - lib/PayPal/Api/Authorization.php | 218 -------- lib/PayPal/Api/BankAccount.php | 524 ------------------ lib/PayPal/Api/BankAccountsList.php | 50 -- lib/PayPal/Api/BankToken.php | 75 --- lib/PayPal/Api/BaseAddress.php | 50 -- lib/PayPal/Api/BillingInfo.php | 125 ----- lib/PayPal/Api/CancelNotification.php | 50 -- lib/PayPal/Api/Capture.php | 118 ---- lib/PayPal/Api/CarrierAccountToken.php | 50 -- lib/PayPal/Api/CartBase.php | 125 ----- lib/PayPal/Api/CreditCard.php | 225 -------- lib/PayPal/Api/CreditCardHistory.php | 50 -- lib/PayPal/Api/CreditCardList.php | 50 -- lib/PayPal/Api/CreditCardToken.php | 100 ---- lib/PayPal/Api/Details.php | 75 --- lib/PayPal/Api/Error.php | 50 -- lib/PayPal/Api/ExtendedBankAccount.php | 25 - lib/PayPal/Api/FlowConfig.php | 50 -- lib/PayPal/Api/FundingInstrument.php | 150 ----- lib/PayPal/Api/InputFields.php | 75 --- lib/PayPal/Api/Invoice.php | 364 ------------ lib/PayPal/Api/InvoiceItem.php | 25 - lib/PayPal/Api/InvoiceSearchResponse.php | 25 - lib/PayPal/Api/InvoicingMetaData.php | 250 --------- lib/PayPal/Api/InvoicingNotification.php | 25 - lib/PayPal/Api/InvoicingPaymentDetail.php | 50 -- lib/PayPal/Api/Item.php | 50 -- lib/PayPal/Api/ItemList.php | 26 - lib/PayPal/Api/MerchantInfo.php | 125 ----- lib/PayPal/Api/MerchantPreferences.php | 225 -------- lib/PayPal/Api/Metadata.php | 250 --------- lib/PayPal/Api/Notification.php | 25 - lib/PayPal/Api/OpenIdAddress.php | 5 + lib/PayPal/Api/OpenIdError.php | 3 + lib/PayPal/Api/OpenIdSession.php | 1 + lib/PayPal/Api/OpenIdTokeninfo.php | 6 + lib/PayPal/Api/OpenIdUserinfo.php | 21 + lib/PayPal/Api/Order.php | 175 ------ lib/PayPal/Api/OverrideChargeModel.php | 25 - lib/PayPal/Api/Payee.php | 25 - lib/PayPal/Api/Payer.php | 100 ---- lib/PayPal/Api/PayerInfo.php | 275 --------- lib/PayPal/Api/Payment.php | 94 ---- lib/PayPal/Api/PaymentCard.php | 225 -------- lib/PayPal/Api/PaymentCardToken.php | 100 ---- lib/PayPal/Api/PaymentDefinition.php | 50 -- lib/PayPal/Api/PaymentDetail.php | 50 -- lib/PayPal/Api/PaymentExecution.php | 25 - lib/PayPal/Api/PaymentHistory.php | 25 - lib/PayPal/Api/PaymentOptions.php | 25 - lib/PayPal/Api/PaymentTerm.php | 50 -- lib/PayPal/Api/Payout.php | 25 - lib/PayPal/Api/PayoutBatch.php | 25 - lib/PayPal/Api/PayoutBatchHeader.php | 125 ----- lib/PayPal/Api/PayoutItem.php | 50 -- lib/PayPal/Api/PayoutItemDetails.php | 200 ------- lib/PayPal/Api/PayoutSenderBatchHeader.php | 75 --- lib/PayPal/Api/Phone.php | 50 -- lib/PayPal/Api/Plan.php | 100 ---- lib/PayPal/Api/PlanList.php | 50 -- lib/PayPal/Api/Presentation.php | 75 --- lib/PayPal/Api/RedirectUrls.php | 52 +- lib/PayPal/Api/Refund.php | 142 ----- lib/PayPal/Api/Sale.php | 243 -------- lib/PayPal/Api/Search.php | 375 ------------- lib/PayPal/Api/ShippingAddress.php | 50 -- lib/PayPal/Api/ShippingInfo.php | 95 ---- lib/PayPal/Api/Terms.php | 75 --- lib/PayPal/Api/Transaction.php | 2 +- lib/PayPal/Api/TransactionBase.php | 25 - lib/PayPal/Api/WebProfile.php | 50 -- lib/PayPal/Api/Webhook.php | 26 - lib/PayPal/Api/WebhookEvent.php | 75 --- lib/PayPal/Api/WebhookEventTypeList.php | 25 - lib/PayPal/Converter/FormatConverter.php | 12 - tests/PayPal/Test/Api/AddressTest.php | 40 -- .../Test/Api/AgreementStateDescriptorTest.php | 22 - tests/PayPal/Test/Api/AgreementTest.php | 75 --- .../Test/Api/AgreementTransactionTest.php | 94 ---- .../Test/Api/AgreementTransactionsTest.php | 31 -- tests/PayPal/Test/Api/BankAccountTest.php | 210 ------- .../PayPal/Test/Api/BankAccountsListTest.php | 40 -- tests/PayPal/Test/Api/BankTokenTest.php | 49 -- tests/PayPal/Test/Api/BillingInfoTest.php | 67 --- .../Test/Api/CancelNotificationTest.php | 40 -- tests/PayPal/Test/Api/ChargeModelTest.php | 22 - tests/PayPal/Test/Api/CostTest.php | 24 +- .../Test/Api/CreateProfileResponseTest.php | 22 - tests/PayPal/Test/Api/CreditCardListTest.php | 40 -- tests/PayPal/Test/Api/CreditCardTest.php | 102 ---- tests/PayPal/Test/Api/CreditCardTokenTest.php | 58 -- tests/PayPal/Test/Api/CreditTest.php | 22 - tests/PayPal/Test/Api/CurrencyTest.php | 22 - tests/PayPal/Test/Api/CustomAmountTest.php | 22 - tests/PayPal/Test/Api/ErrorDetailsTest.php | 22 - tests/PayPal/Test/Api/ErrorTest.php | 40 -- .../Test/Api/ExtendedBankAccountTest.php | 31 -- tests/PayPal/Test/Api/FlowConfigTest.php | 37 -- .../PayPal/Test/Api/FundingInstrumentTest.php | 75 --- tests/PayPal/Test/Api/HyperSchemaTest.php | 22 - tests/PayPal/Test/Api/ImageTest.php | 22 - tests/PayPal/Test/Api/InputFieldsTest.php | 49 -- tests/PayPal/Test/Api/InvoiceAddressTest.php | 40 -- tests/PayPal/Test/Api/InvoiceItemTest.php | 31 -- .../Test/Api/InvoiceSearchResponseTest.php | 31 -- tests/PayPal/Test/Api/InvoiceTest.php | 144 ----- tests/PayPal/Test/Api/LinksTest.php | 22 - tests/PayPal/Test/Api/MerchantInfoTest.php | 67 --- .../Test/Api/MerchantPreferencesTest.php | 89 +-- tests/PayPal/Test/Api/MetadataTest.php | 102 ---- tests/PayPal/Test/Api/NotificationTest.php | 30 - .../Test/Api/OverrideChargeModelTest.php | 31 -- tests/PayPal/Test/Api/PatchRequestTest.php | 22 - tests/PayPal/Test/Api/PatchTest.php | 22 - tests/PayPal/Test/Api/PayerInfoTest.php | 121 ---- tests/PayPal/Test/Api/PayerTest.php | 58 -- tests/PayPal/Test/Api/PaymentCardTest.php | 103 ---- .../PayPal/Test/Api/PaymentCardTokenTest.php | 58 -- .../PayPal/Test/Api/PaymentDefinitionTest.php | 40 -- tests/PayPal/Test/Api/PaymentDetailTest.php | 40 -- tests/PayPal/Test/Api/PaymentTermTest.php | 42 +- .../PayPal/Test/Api/PayoutBatchHeaderTest.php | 67 --- tests/PayPal/Test/Api/PayoutBatchTest.php | 31 -- .../PayPal/Test/Api/PayoutItemDetailsTest.php | 94 ---- tests/PayPal/Test/Api/PayoutItemTest.php | 39 -- .../Test/Api/PayoutSenderBatchHeaderTest.php | 49 -- tests/PayPal/Test/Api/PayoutTest.php | 30 - tests/PayPal/Test/Api/PhoneTest.php | 40 -- tests/PayPal/Test/Api/PlanListTest.php | 40 -- tests/PayPal/Test/Api/PlanTest.php | 57 -- tests/PayPal/Test/Api/PresentationTest.php | 49 -- tests/PayPal/Test/Api/RefundDetailTest.php | 22 - tests/PayPal/Test/Api/SearchTest.php | 157 ------ tests/PayPal/Test/Api/ShippingAddressTest.php | 40 -- tests/PayPal/Test/Api/ShippingCostTest.php | 22 - tests/PayPal/Test/Api/ShippingInfoTest.php | 49 -- tests/PayPal/Test/Api/TaxTest.php | 22 - tests/PayPal/Test/Api/TermsTest.php | 49 -- tests/PayPal/Test/Api/WebProfileTest.php | 39 -- .../PayPal/Test/Api/WebhookEventListTest.php | 22 - tests/PayPal/Test/Api/WebhookEventTest.php | 48 -- .../Test/Api/WebhookEventTypeListTest.php | 31 -- .../PayPal/Test/Api/WebhookEventTypeTest.php | 21 - tests/PayPal/Test/Api/WebhookListTest.php | 22 - tests/PayPal/Test/Api/WebhookTest.php | 29 - .../Test/Common/FormatConverterTest.php | 2 +- 150 files changed, 47 insertions(+), 10994 deletions(-) diff --git a/lib/PayPal/Api/Agreement.php b/lib/PayPal/Api/Agreement.php index a5f4c98..0348de5 100644 --- a/lib/PayPal/Api/Agreement.php +++ b/lib/PayPal/Api/Agreement.php @@ -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 * diff --git a/lib/PayPal/Api/AgreementDetails.php b/lib/PayPal/Api/AgreementDetails.php index 2c6c655..94e90cd 100644 --- a/lib/PayPal/Api/AgreementDetails.php +++ b/lib/PayPal/Api/AgreementDetails.php @@ -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; - } - } diff --git a/lib/PayPal/Api/AgreementTransaction.php b/lib/PayPal/Api/AgreementTransaction.php index 012460a..6f97f3b 100644 --- a/lib/PayPal/Api/AgreementTransaction.php +++ b/lib/PayPal/Api/AgreementTransaction.php @@ -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; - } - } diff --git a/lib/PayPal/Api/AgreementTransactions.php b/lib/PayPal/Api/AgreementTransactions.php index 91e1177..30d4527 100644 --- a/lib/PayPal/Api/AgreementTransactions.php +++ b/lib/PayPal/Api/AgreementTransactions.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Authorization.php b/lib/PayPal/Api/Authorization.php index fe21e7a..5f0a23b 100644 --- a/lib/PayPal/Api/Authorization.php +++ b/lib/PayPal/Api/Authorization.php @@ -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 * diff --git a/lib/PayPal/Api/BankAccount.php b/lib/PayPal/Api/BankAccount.php index 17a1cd8..99750f1 100644 --- a/lib/PayPal/Api/BankAccount.php +++ b/lib/PayPal/Api/BankAccount.php @@ -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. * diff --git a/lib/PayPal/Api/BankAccountsList.php b/lib/PayPal/Api/BankAccountsList.php index a63b3da..9120941 100644 --- a/lib/PayPal/Api/BankAccountsList.php +++ b/lib/PayPal/Api/BankAccountsList.php @@ -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; - } - } diff --git a/lib/PayPal/Api/BankToken.php b/lib/PayPal/Api/BankToken.php index 1bf4e71..6cbee49 100644 --- a/lib/PayPal/Api/BankToken.php +++ b/lib/PayPal/Api/BankToken.php @@ -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; - } - } diff --git a/lib/PayPal/Api/BaseAddress.php b/lib/PayPal/Api/BaseAddress.php index b32b180..2087b61 100644 --- a/lib/PayPal/Api/BaseAddress.php +++ b/lib/PayPal/Api/BaseAddress.php @@ -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. * diff --git a/lib/PayPal/Api/BillingInfo.php b/lib/PayPal/Api/BillingInfo.php index adc33a6..3b0a4cd 100644 --- a/lib/PayPal/Api/BillingInfo.php +++ b/lib/PayPal/Api/BillingInfo.php @@ -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. * diff --git a/lib/PayPal/Api/CancelNotification.php b/lib/PayPal/Api/CancelNotification.php index 3ca09e4..612b302 100644 --- a/lib/PayPal/Api/CancelNotification.php +++ b/lib/PayPal/Api/CancelNotification.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Capture.php b/lib/PayPal/Api/Capture.php index 92bb9c2..b679eae 100644 --- a/lib/PayPal/Api/Capture.php +++ b/lib/PayPal/Api/Capture.php @@ -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 * diff --git a/lib/PayPal/Api/CarrierAccountToken.php b/lib/PayPal/Api/CarrierAccountToken.php index 29ba74b..1ed4cdc 100644 --- a/lib/PayPal/Api/CarrierAccountToken.php +++ b/lib/PayPal/Api/CarrierAccountToken.php @@ -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; - } - } diff --git a/lib/PayPal/Api/CartBase.php b/lib/PayPal/Api/CartBase.php index 14ca13c..03f2a7a 100644 --- a/lib/PayPal/Api/CartBase.php +++ b/lib/PayPal/Api/CartBase.php @@ -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; - } - } diff --git a/lib/PayPal/Api/CreditCard.php b/lib/PayPal/Api/CreditCard.php index 53e77a3..a7dccbb 100644 --- a/lib/PayPal/Api/CreditCard.php +++ b/lib/PayPal/Api/CreditCard.php @@ -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). * diff --git a/lib/PayPal/Api/CreditCardHistory.php b/lib/PayPal/Api/CreditCardHistory.php index 8d60bd8..636429c 100644 --- a/lib/PayPal/Api/CreditCardHistory.php +++ b/lib/PayPal/Api/CreditCardHistory.php @@ -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; - } - } diff --git a/lib/PayPal/Api/CreditCardList.php b/lib/PayPal/Api/CreditCardList.php index c567580..fa92e9e 100644 --- a/lib/PayPal/Api/CreditCardList.php +++ b/lib/PayPal/Api/CreditCardList.php @@ -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; - } - } diff --git a/lib/PayPal/Api/CreditCardToken.php b/lib/PayPal/Api/CreditCardToken.php index 6ff994b..7bbb0dd 100644 --- a/lib/PayPal/Api/CreditCardToken.php +++ b/lib/PayPal/Api/CreditCardToken.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Details.php b/lib/PayPal/Api/Details.php index 73f199f..8e36248 100644 --- a/lib/PayPal/Api/Details.php +++ b/lib/PayPal/Api/Details.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Error.php b/lib/PayPal/Api/Error.php index cb1e733..75ba3d2 100644 --- a/lib/PayPal/Api/Error.php +++ b/lib/PayPal/Api/Error.php @@ -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 * diff --git a/lib/PayPal/Api/ExtendedBankAccount.php b/lib/PayPal/Api/ExtendedBankAccount.php index f05c621..69baec9 100644 --- a/lib/PayPal/Api/ExtendedBankAccount.php +++ b/lib/PayPal/Api/ExtendedBankAccount.php @@ -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; - } - } diff --git a/lib/PayPal/Api/FlowConfig.php b/lib/PayPal/Api/FlowConfig.php index 7faf1e8..a8ae332 100644 --- a/lib/PayPal/Api/FlowConfig.php +++ b/lib/PayPal/Api/FlowConfig.php @@ -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; - } - } diff --git a/lib/PayPal/Api/FundingInstrument.php b/lib/PayPal/Api/FundingInstrument.php index c563368..9ee0646 100644 --- a/lib/PayPal/Api/FundingInstrument.php +++ b/lib/PayPal/Api/FundingInstrument.php @@ -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. * diff --git a/lib/PayPal/Api/InputFields.php b/lib/PayPal/Api/InputFields.php index 08a833e..0bcf805 100644 --- a/lib/PayPal/Api/InputFields.php +++ b/lib/PayPal/Api/InputFields.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Invoice.php b/lib/PayPal/Api/Invoice.php index 3340644..1413215 100644 --- a/lib/PayPal/Api/Invoice.php +++ b/lib/PayPal/Api/Invoice.php @@ -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. * diff --git a/lib/PayPal/Api/InvoiceItem.php b/lib/PayPal/Api/InvoiceItem.php index 8ac2b3a..14cfe9b 100644 --- a/lib/PayPal/Api/InvoiceItem.php +++ b/lib/PayPal/Api/InvoiceItem.php @@ -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. * diff --git a/lib/PayPal/Api/InvoiceSearchResponse.php b/lib/PayPal/Api/InvoiceSearchResponse.php index 667f583..0634eb6 100644 --- a/lib/PayPal/Api/InvoiceSearchResponse.php +++ b/lib/PayPal/Api/InvoiceSearchResponse.php @@ -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. * diff --git a/lib/PayPal/Api/InvoicingMetaData.php b/lib/PayPal/Api/InvoicingMetaData.php index 1b39cc9..ee17273 100644 --- a/lib/PayPal/Api/InvoicingMetaData.php +++ b/lib/PayPal/Api/InvoicingMetaData.php @@ -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; - } - } diff --git a/lib/PayPal/Api/InvoicingNotification.php b/lib/PayPal/Api/InvoicingNotification.php index d3599db..e9a53d0 100644 --- a/lib/PayPal/Api/InvoicingNotification.php +++ b/lib/PayPal/Api/InvoicingNotification.php @@ -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; - } - } diff --git a/lib/PayPal/Api/InvoicingPaymentDetail.php b/lib/PayPal/Api/InvoicingPaymentDetail.php index 9a71f4f..c13a27d 100644 --- a/lib/PayPal/Api/InvoicingPaymentDetail.php +++ b/lib/PayPal/Api/InvoicingPaymentDetail.php @@ -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). * diff --git a/lib/PayPal/Api/Item.php b/lib/PayPal/Api/Item.php index 40c850b..7fcc5ca 100644 --- a/lib/PayPal/Api/Item.php +++ b/lib/PayPal/Api/Item.php @@ -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; - } - } diff --git a/lib/PayPal/Api/ItemList.php b/lib/PayPal/Api/ItemList.php index 5c8a728..4e7666b 100644 --- a/lib/PayPal/Api/ItemList.php +++ b/lib/PayPal/Api/ItemList.php @@ -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; - } - } diff --git a/lib/PayPal/Api/MerchantInfo.php b/lib/PayPal/Api/MerchantInfo.php index c60363d..4d97d8c 100644 --- a/lib/PayPal/Api/MerchantInfo.php +++ b/lib/PayPal/Api/MerchantInfo.php @@ -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; - } - } diff --git a/lib/PayPal/Api/MerchantPreferences.php b/lib/PayPal/Api/MerchantPreferences.php index f6a8850..b51d604 100644 --- a/lib/PayPal/Api/MerchantPreferences.php +++ b/lib/PayPal/Api/MerchantPreferences.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Metadata.php b/lib/PayPal/Api/Metadata.php index 8fb38ac..d4f3eaf 100644 --- a/lib/PayPal/Api/Metadata.php +++ b/lib/PayPal/Api/Metadata.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Notification.php b/lib/PayPal/Api/Notification.php index 80cc33f..743f001 100644 --- a/lib/PayPal/Api/Notification.php +++ b/lib/PayPal/Api/Notification.php @@ -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; - } - } diff --git a/lib/PayPal/Api/OpenIdAddress.php b/lib/PayPal/Api/OpenIdAddress.php index 925374a..4bfe2dd 100644 --- a/lib/PayPal/Api/OpenIdAddress.php +++ b/lib/PayPal/Api/OpenIdAddress.php @@ -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) { diff --git a/lib/PayPal/Api/OpenIdError.php b/lib/PayPal/Api/OpenIdError.php index 56d3966..18b488b 100644 --- a/lib/PayPal/Api/OpenIdError.php +++ b/lib/PayPal/Api/OpenIdError.php @@ -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) { diff --git a/lib/PayPal/Api/OpenIdSession.php b/lib/PayPal/Api/OpenIdSession.php index 5ee06d3..cd6c397 100644 --- a/lib/PayPal/Api/OpenIdSession.php +++ b/lib/PayPal/Api/OpenIdSession.php @@ -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) { diff --git a/lib/PayPal/Api/OpenIdTokeninfo.php b/lib/PayPal/Api/OpenIdTokeninfo.php index 8eccd8f..39a660a 100644 --- a/lib/PayPal/Api/OpenIdTokeninfo.php +++ b/lib/PayPal/Api/OpenIdTokeninfo.php @@ -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) { diff --git a/lib/PayPal/Api/OpenIdUserinfo.php b/lib/PayPal/Api/OpenIdUserinfo.php index 5e10e19..445505a 100644 --- a/lib/PayPal/Api/OpenIdUserinfo.php +++ b/lib/PayPal/Api/OpenIdUserinfo.php @@ -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) { diff --git a/lib/PayPal/Api/Order.php b/lib/PayPal/Api/Order.php index 726def1..9db965b 100644 --- a/lib/PayPal/Api/Order.php +++ b/lib/PayPal/Api/Order.php @@ -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 * diff --git a/lib/PayPal/Api/OverrideChargeModel.php b/lib/PayPal/Api/OverrideChargeModel.php index 24eca73..b911c17 100644 --- a/lib/PayPal/Api/OverrideChargeModel.php +++ b/lib/PayPal/Api/OverrideChargeModel.php @@ -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. * diff --git a/lib/PayPal/Api/Payee.php b/lib/PayPal/Api/Payee.php index f68df14..31344cd 100644 --- a/lib/PayPal/Api/Payee.php +++ b/lib/PayPal/Api/Payee.php @@ -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. * diff --git a/lib/PayPal/Api/Payer.php b/lib/PayPal/Api/Payer.php index c3160e3..a012a74 100644 --- a/lib/PayPal/Api/Payer.php +++ b/lib/PayPal/Api/Payer.php @@ -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; - } - } diff --git a/lib/PayPal/Api/PayerInfo.php b/lib/PayPal/Api/PayerInfo.php index e84fc93..f57ecb4 100644 --- a/lib/PayPal/Api/PayerInfo.php +++ b/lib/PayPal/Api/PayerInfo.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Payment.php b/lib/PayPal/Api/Payment.php index 2019f0a..26ef4f0 100644 --- a/lib/PayPal/Api/Payment.php +++ b/lib/PayPal/Api/Payment.php @@ -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 diff --git a/lib/PayPal/Api/PaymentCard.php b/lib/PayPal/Api/PaymentCard.php index fc64c0e..3a3152d 100644 --- a/lib/PayPal/Api/PaymentCard.php +++ b/lib/PayPal/Api/PaymentCard.php @@ -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 * diff --git a/lib/PayPal/Api/PaymentCardToken.php b/lib/PayPal/Api/PaymentCardToken.php index f96c45c..d5fbe6c 100644 --- a/lib/PayPal/Api/PaymentCardToken.php +++ b/lib/PayPal/Api/PaymentCardToken.php @@ -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; - } - } diff --git a/lib/PayPal/Api/PaymentDefinition.php b/lib/PayPal/Api/PaymentDefinition.php index c6b7734..36cb799 100644 --- a/lib/PayPal/Api/PaymentDefinition.php +++ b/lib/PayPal/Api/PaymentDefinition.php @@ -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; - } - } diff --git a/lib/PayPal/Api/PaymentDetail.php b/lib/PayPal/Api/PaymentDetail.php index 2ff0df0..6cd29ea 100644 --- a/lib/PayPal/Api/PaymentDetail.php +++ b/lib/PayPal/Api/PaymentDetail.php @@ -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). * diff --git a/lib/PayPal/Api/PaymentExecution.php b/lib/PayPal/Api/PaymentExecution.php index 9a00645..6a814db 100644 --- a/lib/PayPal/Api/PaymentExecution.php +++ b/lib/PayPal/Api/PaymentExecution.php @@ -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. * diff --git a/lib/PayPal/Api/PaymentHistory.php b/lib/PayPal/Api/PaymentHistory.php index 6452acf..95c71ae 100644 --- a/lib/PayPal/Api/PaymentHistory.php +++ b/lib/PayPal/Api/PaymentHistory.php @@ -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; - } - } diff --git a/lib/PayPal/Api/PaymentOptions.php b/lib/PayPal/Api/PaymentOptions.php index 4211113..5f46b22 100644 --- a/lib/PayPal/Api/PaymentOptions.php +++ b/lib/PayPal/Api/PaymentOptions.php @@ -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; - } - } diff --git a/lib/PayPal/Api/PaymentTerm.php b/lib/PayPal/Api/PaymentTerm.php index 935830c..0a0dbab 100644 --- a/lib/PayPal/Api/PaymentTerm.php +++ b/lib/PayPal/Api/PaymentTerm.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Payout.php b/lib/PayPal/Api/Payout.php index 3492e91..44715da 100644 --- a/lib/PayPal/Api/Payout.php +++ b/lib/PayPal/Api/Payout.php @@ -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). * diff --git a/lib/PayPal/Api/PayoutBatch.php b/lib/PayPal/Api/PayoutBatch.php index 2d01d1a..47c1c03 100644 --- a/lib/PayPal/Api/PayoutBatch.php +++ b/lib/PayPal/Api/PayoutBatch.php @@ -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. * diff --git a/lib/PayPal/Api/PayoutBatchHeader.php b/lib/PayPal/Api/PayoutBatchHeader.php index ddcfdee..c46125c 100644 --- a/lib/PayPal/Api/PayoutBatchHeader.php +++ b/lib/PayPal/Api/PayoutBatchHeader.php @@ -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. * diff --git a/lib/PayPal/Api/PayoutItem.php b/lib/PayPal/Api/PayoutItem.php index 88b91d4..4a97dd5 100644 --- a/lib/PayPal/Api/PayoutItem.php +++ b/lib/PayPal/Api/PayoutItem.php @@ -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. * diff --git a/lib/PayPal/Api/PayoutItemDetails.php b/lib/PayPal/Api/PayoutItemDetails.php index 404e385..c674247 100644 --- a/lib/PayPal/Api/PayoutItemDetails.php +++ b/lib/PayPal/Api/PayoutItemDetails.php @@ -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 * diff --git a/lib/PayPal/Api/PayoutSenderBatchHeader.php b/lib/PayPal/Api/PayoutSenderBatchHeader.php index d9f5ac2..2cd0f64 100644 --- a/lib/PayPal/Api/PayoutSenderBatchHeader.php +++ b/lib/PayPal/Api/PayoutSenderBatchHeader.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Phone.php b/lib/PayPal/Api/Phone.php index 07e8ec7..dab3701 100644 --- a/lib/PayPal/Api/Phone.php +++ b/lib/PayPal/Api/Phone.php @@ -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 * diff --git a/lib/PayPal/Api/Plan.php b/lib/PayPal/Api/Plan.php index 7e83831..4201903 100644 --- a/lib/PayPal/Api/Plan.php +++ b/lib/PayPal/Api/Plan.php @@ -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. * diff --git a/lib/PayPal/Api/PlanList.php b/lib/PayPal/Api/PlanList.php index d8cb675..495599b 100644 --- a/lib/PayPal/Api/PlanList.php +++ b/lib/PayPal/Api/PlanList.php @@ -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 * diff --git a/lib/PayPal/Api/Presentation.php b/lib/PayPal/Api/Presentation.php index 4b41858..e75aa80 100644 --- a/lib/PayPal/Api/Presentation.php +++ b/lib/PayPal/Api/Presentation.php @@ -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; - } - } diff --git a/lib/PayPal/Api/RedirectUrls.php b/lib/PayPal/Api/RedirectUrls.php index 3f334c1..a07de52 100644 --- a/lib/PayPal/Api/RedirectUrls.php +++ b/lib/PayPal/Api/RedirectUrls.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Refund.php b/lib/PayPal/Api/Refund.php index b0c76c0..d2596ef 100644 --- a/lib/PayPal/Api/Refund.php +++ b/lib/PayPal/Api/Refund.php @@ -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. * diff --git a/lib/PayPal/Api/Sale.php b/lib/PayPal/Api/Sale.php index dbfd9a3..fefeee6 100644 --- a/lib/PayPal/Api/Sale.php +++ b/lib/PayPal/Api/Sale.php @@ -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. * diff --git a/lib/PayPal/Api/Search.php b/lib/PayPal/Api/Search.php index fcde390..0594f9a 100644 --- a/lib/PayPal/Api/Search.php +++ b/lib/PayPal/Api/Search.php @@ -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; - } - } diff --git a/lib/PayPal/Api/ShippingAddress.php b/lib/PayPal/Api/ShippingAddress.php index 2ad7a4c..ad89c9f 100644 --- a/lib/PayPal/Api/ShippingAddress.php +++ b/lib/PayPal/Api/ShippingAddress.php @@ -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; - } - } diff --git a/lib/PayPal/Api/ShippingInfo.php b/lib/PayPal/Api/ShippingInfo.php index 1a897a3..ed4b2a7 100644 --- a/lib/PayPal/Api/ShippingInfo.php +++ b/lib/PayPal/Api/ShippingInfo.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Terms.php b/lib/PayPal/Api/Terms.php index f380e85..8bc1c84 100644 --- a/lib/PayPal/Api/Terms.php +++ b/lib/PayPal/Api/Terms.php @@ -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; - } - } diff --git a/lib/PayPal/Api/Transaction.php b/lib/PayPal/Api/Transaction.php index c14f6c8..48c5629 100644 --- a/lib/PayPal/Api/Transaction.php +++ b/lib/PayPal/Api/Transaction.php @@ -12,7 +12,7 @@ use PayPal\Rest\ApiContext; * * @package PayPal\Api * - * @property self transactions + * @property Transaction transactions */ class Transaction extends TransactionBase { diff --git a/lib/PayPal/Api/TransactionBase.php b/lib/PayPal/Api/TransactionBase.php index 03aded4..9038065 100644 --- a/lib/PayPal/Api/TransactionBase.php +++ b/lib/PayPal/Api/TransactionBase.php @@ -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; - } - } diff --git a/lib/PayPal/Api/WebProfile.php b/lib/PayPal/Api/WebProfile.php index 761733c..3f9c209 100644 --- a/lib/PayPal/Api/WebProfile.php +++ b/lib/PayPal/Api/WebProfile.php @@ -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. * diff --git a/lib/PayPal/Api/Webhook.php b/lib/PayPal/Api/Webhook.php index 66b8478..d6098f4 100644 --- a/lib/PayPal/Api/Webhook.php +++ b/lib/PayPal/Api/Webhook.php @@ -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. * diff --git a/lib/PayPal/Api/WebhookEvent.php b/lib/PayPal/Api/WebhookEvent.php index 05c3f44..353f4e2 100644 --- a/lib/PayPal/Api/WebhookEvent.php +++ b/lib/PayPal/Api/WebhookEvent.php @@ -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 $$ * diff --git a/lib/PayPal/Api/WebhookEventTypeList.php b/lib/PayPal/Api/WebhookEventTypeList.php index e812c93..61c0d65 100644 --- a/lib/PayPal/Api/WebhookEventTypeList.php +++ b/lib/PayPal/Api/WebhookEventTypeList.php @@ -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; - } - } diff --git a/lib/PayPal/Converter/FormatConverter.php b/lib/PayPal/Converter/FormatConverter.php index e9b0a47..dd66eb8 100644 --- a/lib/PayPal/Converter/FormatConverter.php +++ b/lib/PayPal/Converter/FormatConverter.php @@ -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 * diff --git a/tests/PayPal/Test/Api/AddressTest.php b/tests/PayPal/Test/Api/AddressTest.php index 5ff8132..7ae1ed0 100644 --- a/tests/PayPal/Test/Api/AddressTest.php +++ b/tests/PayPal/Test/Api/AddressTest.php @@ -65,44 +65,4 @@ class AddressTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPhone(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Address $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCountry_code(), "TestSample"); - $this->assertEquals($obj->getPostal_code(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param Address $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Country_code - $obj->setCountryCode(null); - $this->assertNull($obj->getCountry_code()); - $this->assertNull($obj->getCountryCode()); - $this->assertSame($obj->getCountryCode(), $obj->getCountry_code()); - $obj->setCountry_code("TestSample"); - $this->assertEquals($obj->getCountry_code(), "TestSample"); - - // Check for Postal_code - $obj->setPostalCode(null); - $this->assertNull($obj->getPostal_code()); - $this->assertNull($obj->getPostalCode()); - $this->assertSame($obj->getPostalCode(), $obj->getPostal_code()); - $obj->setPostal_code("TestSample"); - $this->assertEquals($obj->getPostal_code(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/AgreementStateDescriptorTest.php b/tests/PayPal/Test/Api/AgreementStateDescriptorTest.php index c55a4c8..68508cb 100644 --- a/tests/PayPal/Test/Api/AgreementStateDescriptorTest.php +++ b/tests/PayPal/Test/Api/AgreementStateDescriptorTest.php @@ -55,26 +55,4 @@ class AgreementStateDescriptorTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param AgreementStateDescriptor $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param AgreementStateDescriptor $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/AgreementTest.php b/tests/PayPal/Test/Api/AgreementTest.php index 026404f..d0d9b3b 100644 --- a/tests/PayPal/Test/Api/AgreementTest.php +++ b/tests/PayPal/Test/Api/AgreementTest.php @@ -81,81 +81,6 @@ class AgreementTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Agreement $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getStart_date(), "TestSample"); - $this->assertEquals($obj->getShipping_address(), AddressTest::getObject()); - $this->assertEquals($obj->getOverride_merchant_preferences(), MerchantPreferencesTest::getObject()); - $this->assertEquals($obj->getOverride_charge_models(), OverrideChargeModelTest::getObject()); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param Agreement $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Start_date - $obj->setStartDate(null); - $this->assertNull($obj->getStart_date()); - $this->assertNull($obj->getStartDate()); - $this->assertSame($obj->getStartDate(), $obj->getStart_date()); - $obj->setStart_date("TestSample"); - $this->assertEquals($obj->getStart_date(), "TestSample"); - - // Check for Shipping_address - $obj->setShippingAddress(null); - $this->assertNull($obj->getShipping_address()); - $this->assertNull($obj->getShippingAddress()); - $this->assertSame($obj->getShippingAddress(), $obj->getShipping_address()); - $obj->setShipping_address(AddressTest::getObject()); - $this->assertEquals($obj->getShipping_address(), AddressTest::getObject()); - - // Check for Override_merchant_preferences - $obj->setOverrideMerchantPreferences(null); - $this->assertNull($obj->getOverride_merchant_preferences()); - $this->assertNull($obj->getOverrideMerchantPreferences()); - $this->assertSame($obj->getOverrideMerchantPreferences(), $obj->getOverride_merchant_preferences()); - $obj->setOverride_merchant_preferences(MerchantPreferencesTest::getObject()); - $this->assertEquals($obj->getOverride_merchant_preferences(), MerchantPreferencesTest::getObject()); - - // Check for Override_charge_models - $obj->setOverrideChargeModels(null); - $this->assertNull($obj->getOverride_charge_models()); - $this->assertNull($obj->getOverrideChargeModels()); - $this->assertSame($obj->getOverrideChargeModels(), $obj->getOverride_charge_models()); - $obj->setOverride_charge_models(OverrideChargeModelTest::getObject()); - $this->assertEquals($obj->getOverride_charge_models(), OverrideChargeModelTest::getObject()); - - // Check for Create_time - $obj->setCreateTime(null); - $this->assertNull($obj->getCreate_time()); - $this->assertNull($obj->getCreateTime()); - $this->assertSame($obj->getCreateTime(), $obj->getCreate_time()); - $obj->setCreate_time("TestSample"); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - - // Check for Update_time - $obj->setUpdateTime(null); - $this->assertNull($obj->getUpdate_time()); - $this->assertNull($obj->getUpdateTime()); - $this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time()); - $obj->setUpdate_time("TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param Agreement $obj diff --git a/tests/PayPal/Test/Api/AgreementTransactionTest.php b/tests/PayPal/Test/Api/AgreementTransactionTest.php index db10c5d..ca2a741 100644 --- a/tests/PayPal/Test/Api/AgreementTransactionTest.php +++ b/tests/PayPal/Test/Api/AgreementTransactionTest.php @@ -71,98 +71,4 @@ class AgreementTransactionTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getTimeZone(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param AgreementTransaction $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getTransaction_id(), "TestSample"); - $this->assertEquals($obj->getTransaction_type(), "TestSample"); - $this->assertEquals($obj->getFee_amount(), CurrencyTest::getObject()); - $this->assertEquals($obj->getNet_amount(), CurrencyTest::getObject()); - $this->assertEquals($obj->getPayer_email(), "TestSample"); - $this->assertEquals($obj->getPayer_name(), "TestSample"); - $this->assertEquals($obj->getTime_updated(), "TestSample"); - $this->assertEquals($obj->getTime_zone(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param AgreementTransaction $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Transaction_id - $obj->setTransactionId(null); - $this->assertNull($obj->getTransaction_id()); - $this->assertNull($obj->getTransactionId()); - $this->assertSame($obj->getTransactionId(), $obj->getTransaction_id()); - $obj->setTransaction_id("TestSample"); - $this->assertEquals($obj->getTransaction_id(), "TestSample"); - - // Check for Transaction_type - $obj->setTransactionType(null); - $this->assertNull($obj->getTransaction_type()); - $this->assertNull($obj->getTransactionType()); - $this->assertSame($obj->getTransactionType(), $obj->getTransaction_type()); - $obj->setTransaction_type("TestSample"); - $this->assertEquals($obj->getTransaction_type(), "TestSample"); - - // Check for Fee_amount - $obj->setFeeAmount(null); - $this->assertNull($obj->getFee_amount()); - $this->assertNull($obj->getFeeAmount()); - $this->assertSame($obj->getFeeAmount(), $obj->getFee_amount()); - $obj->setFee_amount(CurrencyTest::getObject()); - $this->assertEquals($obj->getFee_amount(), CurrencyTest::getObject()); - - // Check for Net_amount - $obj->setNetAmount(null); - $this->assertNull($obj->getNet_amount()); - $this->assertNull($obj->getNetAmount()); - $this->assertSame($obj->getNetAmount(), $obj->getNet_amount()); - $obj->setNet_amount(CurrencyTest::getObject()); - $this->assertEquals($obj->getNet_amount(), CurrencyTest::getObject()); - - // Check for Payer_email - $obj->setPayerEmail(null); - $this->assertNull($obj->getPayer_email()); - $this->assertNull($obj->getPayerEmail()); - $this->assertSame($obj->getPayerEmail(), $obj->getPayer_email()); - $obj->setPayer_email("TestSample"); - $this->assertEquals($obj->getPayer_email(), "TestSample"); - - // Check for Payer_name - $obj->setPayerName(null); - $this->assertNull($obj->getPayer_name()); - $this->assertNull($obj->getPayerName()); - $this->assertSame($obj->getPayerName(), $obj->getPayer_name()); - $obj->setPayer_name("TestSample"); - $this->assertEquals($obj->getPayer_name(), "TestSample"); - - // Check for Time_updated - $obj->setTimeUpdated(null); - $this->assertNull($obj->getTime_updated()); - $this->assertNull($obj->getTimeUpdated()); - $this->assertSame($obj->getTimeUpdated(), $obj->getTime_updated()); - $obj->setTime_updated("TestSample"); - $this->assertEquals($obj->getTime_updated(), "TestSample"); - - // Check for Time_zone - $obj->setTimeZone(null); - $this->assertNull($obj->getTime_zone()); - $this->assertNull($obj->getTimeZone()); - $this->assertSame($obj->getTimeZone(), $obj->getTime_zone()); - $obj->setTime_zone("TestSample"); - $this->assertEquals($obj->getTime_zone(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/AgreementTransactionsTest.php b/tests/PayPal/Test/Api/AgreementTransactionsTest.php index 71367f7..df96665 100644 --- a/tests/PayPal/Test/Api/AgreementTransactionsTest.php +++ b/tests/PayPal/Test/Api/AgreementTransactionsTest.php @@ -53,35 +53,4 @@ class AgreementTransactionsTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAgreementTransactionList(), AgreementTransactionTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param AgreementTransactions $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getAgreement_transaction_list(), AgreementTransactionTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param AgreementTransactions $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Agreement_transaction_list - $obj->setAgreementTransactionList(null); - $this->assertNull($obj->getAgreement_transaction_list()); - $this->assertNull($obj->getAgreementTransactionList()); - $this->assertSame($obj->getAgreementTransactionList(), $obj->getAgreement_transaction_list()); - $obj->setAgreement_transaction_list(AgreementTransactionTest::getObject()); - $this->assertEquals($obj->getAgreement_transaction_list(), AgreementTransactionTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/BankAccountTest.php b/tests/PayPal/Test/Api/BankAccountTest.php index 1be51a7..1607d99 100644 --- a/tests/PayPal/Test/Api/BankAccountTest.php +++ b/tests/PayPal/Test/Api/BankAccountTest.php @@ -102,216 +102,6 @@ class BankAccountTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param BankAccount $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getAccount_number(), "TestSample"); - $this->assertEquals($obj->getAccount_number_type(), "TestSample"); - $this->assertEquals($obj->getRouting_number(), "TestSample"); - $this->assertEquals($obj->getAccount_type(), "TestSample"); - $this->assertEquals($obj->getAccount_name(), "TestSample"); - $this->assertEquals($obj->getCheck_type(), "TestSample"); - $this->assertEquals($obj->getAuth_type(), "TestSample"); - $this->assertEquals($obj->getAuth_capture_timestamp(), "TestSample"); - $this->assertEquals($obj->getBank_name(), "TestSample"); - $this->assertEquals($obj->getCountry_code(), "TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - $this->assertEquals($obj->getBirth_date(), "TestSample"); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - $this->assertEquals($obj->getConfirmation_status(), "TestSample"); - $this->assertEquals($obj->getPayer_id(), "TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - $this->assertEquals($obj->getMerchant_id(), "TestSample"); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - $this->assertEquals($obj->getValid_until(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param BankAccount $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Account_number - $obj->setAccountNumber(null); - $this->assertNull($obj->getAccount_number()); - $this->assertNull($obj->getAccountNumber()); - $this->assertSame($obj->getAccountNumber(), $obj->getAccount_number()); - $obj->setAccount_number("TestSample"); - $this->assertEquals($obj->getAccount_number(), "TestSample"); - - // Check for Account_number_type - $obj->setAccountNumberType(null); - $this->assertNull($obj->getAccount_number_type()); - $this->assertNull($obj->getAccountNumberType()); - $this->assertSame($obj->getAccountNumberType(), $obj->getAccount_number_type()); - $obj->setAccount_number_type("TestSample"); - $this->assertEquals($obj->getAccount_number_type(), "TestSample"); - - // Check for Routing_number - $obj->setRoutingNumber(null); - $this->assertNull($obj->getRouting_number()); - $this->assertNull($obj->getRoutingNumber()); - $this->assertSame($obj->getRoutingNumber(), $obj->getRouting_number()); - $obj->setRouting_number("TestSample"); - $this->assertEquals($obj->getRouting_number(), "TestSample"); - - // Check for Account_type - $obj->setAccountType(null); - $this->assertNull($obj->getAccount_type()); - $this->assertNull($obj->getAccountType()); - $this->assertSame($obj->getAccountType(), $obj->getAccount_type()); - $obj->setAccount_type("TestSample"); - $this->assertEquals($obj->getAccount_type(), "TestSample"); - - // Check for Account_name - $obj->setAccountName(null); - $this->assertNull($obj->getAccount_name()); - $this->assertNull($obj->getAccountName()); - $this->assertSame($obj->getAccountName(), $obj->getAccount_name()); - $obj->setAccount_name("TestSample"); - $this->assertEquals($obj->getAccount_name(), "TestSample"); - - // Check for Check_type - $obj->setCheckType(null); - $this->assertNull($obj->getCheck_type()); - $this->assertNull($obj->getCheckType()); - $this->assertSame($obj->getCheckType(), $obj->getCheck_type()); - $obj->setCheck_type("TestSample"); - $this->assertEquals($obj->getCheck_type(), "TestSample"); - - // Check for Auth_type - $obj->setAuthType(null); - $this->assertNull($obj->getAuth_type()); - $this->assertNull($obj->getAuthType()); - $this->assertSame($obj->getAuthType(), $obj->getAuth_type()); - $obj->setAuth_type("TestSample"); - $this->assertEquals($obj->getAuth_type(), "TestSample"); - - // Check for Auth_capture_timestamp - $obj->setAuthCaptureTimestamp(null); - $this->assertNull($obj->getAuth_capture_timestamp()); - $this->assertNull($obj->getAuthCaptureTimestamp()); - $this->assertSame($obj->getAuthCaptureTimestamp(), $obj->getAuth_capture_timestamp()); - $obj->setAuth_capture_timestamp("TestSample"); - $this->assertEquals($obj->getAuth_capture_timestamp(), "TestSample"); - - // Check for Bank_name - $obj->setBankName(null); - $this->assertNull($obj->getBank_name()); - $this->assertNull($obj->getBankName()); - $this->assertSame($obj->getBankName(), $obj->getBank_name()); - $obj->setBank_name("TestSample"); - $this->assertEquals($obj->getBank_name(), "TestSample"); - - // Check for Country_code - $obj->setCountryCode(null); - $this->assertNull($obj->getCountry_code()); - $this->assertNull($obj->getCountryCode()); - $this->assertSame($obj->getCountryCode(), $obj->getCountry_code()); - $obj->setCountry_code("TestSample"); - $this->assertEquals($obj->getCountry_code(), "TestSample"); - - // Check for First_name - $obj->setFirstName(null); - $this->assertNull($obj->getFirst_name()); - $this->assertNull($obj->getFirstName()); - $this->assertSame($obj->getFirstName(), $obj->getFirst_name()); - $obj->setFirst_name("TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - - // Check for Last_name - $obj->setLastName(null); - $this->assertNull($obj->getLast_name()); - $this->assertNull($obj->getLastName()); - $this->assertSame($obj->getLastName(), $obj->getLast_name()); - $obj->setLast_name("TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - - // Check for Birth_date - $obj->setBirthDate(null); - $this->assertNull($obj->getBirth_date()); - $this->assertNull($obj->getBirthDate()); - $this->assertSame($obj->getBirthDate(), $obj->getBirth_date()); - $obj->setBirth_date("TestSample"); - $this->assertEquals($obj->getBirth_date(), "TestSample"); - - // Check for Billing_address - $obj->setBillingAddress(null); - $this->assertNull($obj->getBilling_address()); - $this->assertNull($obj->getBillingAddress()); - $this->assertSame($obj->getBillingAddress(), $obj->getBilling_address()); - $obj->setBilling_address(AddressTest::getObject()); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - - // Check for Confirmation_status - $obj->setConfirmationStatus(null); - $this->assertNull($obj->getConfirmation_status()); - $this->assertNull($obj->getConfirmationStatus()); - $this->assertSame($obj->getConfirmationStatus(), $obj->getConfirmation_status()); - $obj->setConfirmation_status("TestSample"); - $this->assertEquals($obj->getConfirmation_status(), "TestSample"); - - // Check for Payer_id - $obj->setPayerId(null); - $this->assertNull($obj->getPayer_id()); - $this->assertNull($obj->getPayerId()); - $this->assertSame($obj->getPayerId(), $obj->getPayer_id()); - $obj->setPayer_id("TestSample"); - $this->assertEquals($obj->getPayer_id(), "TestSample"); - - // Check for External_customer_id - $obj->setExternalCustomerId(null); - $this->assertNull($obj->getExternal_customer_id()); - $this->assertNull($obj->getExternalCustomerId()); - $this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id()); - $obj->setExternal_customer_id("TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - - // Check for Merchant_id - $obj->setMerchantId(null); - $this->assertNull($obj->getMerchant_id()); - $this->assertNull($obj->getMerchantId()); - $this->assertSame($obj->getMerchantId(), $obj->getMerchant_id()); - $obj->setMerchant_id("TestSample"); - $this->assertEquals($obj->getMerchant_id(), "TestSample"); - - // Check for Create_time - $obj->setCreateTime(null); - $this->assertNull($obj->getCreate_time()); - $this->assertNull($obj->getCreateTime()); - $this->assertSame($obj->getCreateTime(), $obj->getCreate_time()); - $obj->setCreate_time("TestSample"); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - - // Check for Update_time - $obj->setUpdateTime(null); - $this->assertNull($obj->getUpdate_time()); - $this->assertNull($obj->getUpdateTime()); - $this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time()); - $obj->setUpdate_time("TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - - // Check for Valid_until - $obj->setValidUntil(null); - $this->assertNull($obj->getValid_until()); - $this->assertNull($obj->getValidUntil()); - $this->assertSame($obj->getValidUntil(), $obj->getValid_until()); - $obj->setValid_until("TestSample"); - $this->assertEquals($obj->getValid_until(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param BankAccount $obj diff --git a/tests/PayPal/Test/Api/BankAccountsListTest.php b/tests/PayPal/Test/Api/BankAccountsListTest.php index efc1889..51d80ea 100644 --- a/tests/PayPal/Test/Api/BankAccountsListTest.php +++ b/tests/PayPal/Test/Api/BankAccountsListTest.php @@ -57,44 +57,4 @@ class BankAccountsListTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getNextId(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param BankAccountsList $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getBank_accounts(), BankAccountTest::getObject()); - $this->assertEquals($obj->getNext_id(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param BankAccountsList $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Bank_accounts - $obj->setBankAccounts(null); - $this->assertNull($obj->getBank_accounts()); - $this->assertNull($obj->getBankAccounts()); - $this->assertSame($obj->getBankAccounts(), $obj->getBank_accounts()); - $obj->setBank_accounts(BankAccountTest::getObject()); - $this->assertEquals($obj->getBank_accounts(), BankAccountTest::getObject()); - - // Check for Next_id - $obj->setNextId(null); - $this->assertNull($obj->getNext_id()); - $this->assertNull($obj->getNextId()); - $this->assertSame($obj->getNextId(), $obj->getNext_id()); - $obj->setNext_id("TestSample"); - $this->assertEquals($obj->getNext_id(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/BankTokenTest.php b/tests/PayPal/Test/Api/BankTokenTest.php index d26b158..aa3de98 100644 --- a/tests/PayPal/Test/Api/BankTokenTest.php +++ b/tests/PayPal/Test/Api/BankTokenTest.php @@ -57,53 +57,4 @@ class BankTokenTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getMandateReferenceNumber(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param BankToken $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getBank_id(), "TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - $this->assertEquals($obj->getMandate_reference_number(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param BankToken $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Bank_id - $obj->setBankId(null); - $this->assertNull($obj->getBank_id()); - $this->assertNull($obj->getBankId()); - $this->assertSame($obj->getBankId(), $obj->getBank_id()); - $obj->setBank_id("TestSample"); - $this->assertEquals($obj->getBank_id(), "TestSample"); - - // Check for External_customer_id - $obj->setExternalCustomerId(null); - $this->assertNull($obj->getExternal_customer_id()); - $this->assertNull($obj->getExternalCustomerId()); - $this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id()); - $obj->setExternal_customer_id("TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - - // Check for Mandate_reference_number - $obj->setMandateReferenceNumber(null); - $this->assertNull($obj->getMandate_reference_number()); - $this->assertNull($obj->getMandateReferenceNumber()); - $this->assertSame($obj->getMandateReferenceNumber(), $obj->getMandate_reference_number()); - $obj->setMandate_reference_number("TestSample"); - $this->assertEquals($obj->getMandate_reference_number(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/BillingInfoTest.php b/tests/PayPal/Test/Api/BillingInfoTest.php index 6aeec9f..2d7de85 100644 --- a/tests/PayPal/Test/Api/BillingInfoTest.php +++ b/tests/PayPal/Test/Api/BillingInfoTest.php @@ -69,71 +69,4 @@ class BillingInfoTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPhone(), PhoneTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param BillingInfo $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getFirst_name(), "TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - $this->assertEquals($obj->getBusiness_name(), "TestSample"); - $this->assertEquals($obj->getAdditional_info(), "TestSample"); - $this->assertEquals($obj->getNotification_channel(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param BillingInfo $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for First_name - $obj->setFirstName(null); - $this->assertNull($obj->getFirst_name()); - $this->assertNull($obj->getFirstName()); - $this->assertSame($obj->getFirstName(), $obj->getFirst_name()); - $obj->setFirst_name("TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - - // Check for Last_name - $obj->setLastName(null); - $this->assertNull($obj->getLast_name()); - $this->assertNull($obj->getLastName()); - $this->assertSame($obj->getLastName(), $obj->getLast_name()); - $obj->setLast_name("TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - - // Check for Business_name - $obj->setBusinessName(null); - $this->assertNull($obj->getBusiness_name()); - $this->assertNull($obj->getBusinessName()); - $this->assertSame($obj->getBusinessName(), $obj->getBusiness_name()); - $obj->setBusiness_name("TestSample"); - $this->assertEquals($obj->getBusiness_name(), "TestSample"); - - // Check for Additional_info - $obj->setAdditionalInfo(null); - $this->assertNull($obj->getAdditional_info()); - $this->assertNull($obj->getAdditionalInfo()); - $this->assertSame($obj->getAdditionalInfo(), $obj->getAdditional_info()); - $obj->setAdditional_info("TestSample"); - $this->assertEquals($obj->getAdditional_info(), "TestSample"); - - // Check for Notification_channel - $obj->setNotificationChannel(null); - $this->assertNull($obj->getNotification_channel()); - $this->assertNull($obj->getNotificationChannel()); - $this->assertSame($obj->getNotificationChannel(), $obj->getNotification_channel()); - $obj->setNotification_channel("TestSample"); - $this->assertEquals($obj->getNotification_channel(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/CancelNotificationTest.php b/tests/PayPal/Test/Api/CancelNotificationTest.php index 0c4590a..d3c0376 100644 --- a/tests/PayPal/Test/Api/CancelNotificationTest.php +++ b/tests/PayPal/Test/Api/CancelNotificationTest.php @@ -59,44 +59,4 @@ class CancelNotificationTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getSendToPayer(), true); } - /** - * @depends testSerializationDeserialization - * @param CancelNotification $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getSend_to_merchant(), true); - $this->assertEquals($obj->getSend_to_payer(), true); - } - - /** - * @depends testSerializationDeserialization - * @param CancelNotification $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Send_to_merchant - $obj->setSendToMerchant(null); - $this->assertNull($obj->getSend_to_merchant()); - $this->assertNull($obj->getSendToMerchant()); - $this->assertSame($obj->getSendToMerchant(), $obj->getSend_to_merchant()); - $obj->setSend_to_merchant(true); - $this->assertEquals($obj->getSend_to_merchant(), true); - - // Check for Send_to_payer - $obj->setSendToPayer(null); - $this->assertNull($obj->getSend_to_payer()); - $this->assertNull($obj->getSendToPayer()); - $this->assertSame($obj->getSendToPayer(), $obj->getSend_to_payer()); - $obj->setSend_to_payer(true); - $this->assertEquals($obj->getSend_to_payer(), true); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ChargeModelTest.php b/tests/PayPal/Test/Api/ChargeModelTest.php index a20a625..ed78c22 100644 --- a/tests/PayPal/Test/Api/ChargeModelTest.php +++ b/tests/PayPal/Test/Api/ChargeModelTest.php @@ -57,26 +57,4 @@ class ChargeModelTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param ChargeModel $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param ChargeModel $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/CostTest.php b/tests/PayPal/Test/Api/CostTest.php index 6ca7228..89f38df 100644 --- a/tests/PayPal/Test/Api/CostTest.php +++ b/tests/PayPal/Test/Api/CostTest.php @@ -56,27 +56,5 @@ class CostTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPercent(), "12.34"); $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); } - - /** - * @depends testSerializationDeserialization - * @param Cost $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param Cost $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - + } diff --git a/tests/PayPal/Test/Api/CreateProfileResponseTest.php b/tests/PayPal/Test/Api/CreateProfileResponseTest.php index 7e8a51c..05f3f5e 100644 --- a/tests/PayPal/Test/Api/CreateProfileResponseTest.php +++ b/tests/PayPal/Test/Api/CreateProfileResponseTest.php @@ -53,26 +53,4 @@ class CreateProfileResponseTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getId(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param CreateProfileResponse $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param CreateProfileResponse $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/CreditCardListTest.php b/tests/PayPal/Test/Api/CreditCardListTest.php index dd44684..285d046 100644 --- a/tests/PayPal/Test/Api/CreditCardListTest.php +++ b/tests/PayPal/Test/Api/CreditCardListTest.php @@ -57,44 +57,4 @@ class CreditCardListTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getNextId(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param CreditCardList $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCredit_cards(), CreditCardTest::getObject()); - $this->assertEquals($obj->getNext_id(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param CreditCardList $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Credit_cards - $obj->setCreditCards(null); - $this->assertNull($obj->getCredit_cards()); - $this->assertNull($obj->getCreditCards()); - $this->assertSame($obj->getCreditCards(), $obj->getCredit_cards()); - $obj->setCredit_cards(CreditCardTest::getObject()); - $this->assertEquals($obj->getCredit_cards(), CreditCardTest::getObject()); - - // Check for Next_id - $obj->setNextId(null); - $this->assertNull($obj->getNext_id()); - $this->assertNull($obj->getNextId()); - $this->assertSame($obj->getNextId(), $obj->getNext_id()); - $obj->setNext_id("TestSample"); - $this->assertEquals($obj->getNext_id(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/CreditCardTest.php b/tests/PayPal/Test/Api/CreditCardTest.php index 09adb7c..00782d9 100644 --- a/tests/PayPal/Test/Api/CreditCardTest.php +++ b/tests/PayPal/Test/Api/CreditCardTest.php @@ -84,108 +84,6 @@ class CreditCardTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param CreditCard $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getExpire_month(), 123); - $this->assertEquals($obj->getExpire_year(), 123); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - $this->assertEquals($obj->getValid_until(), "TestSample"); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param CreditCard $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Expire_month - $obj->setExpireMonth(null); - $this->assertNull($obj->getExpire_month()); - $this->assertNull($obj->getExpireMonth()); - $this->assertSame($obj->getExpireMonth(), $obj->getExpire_month()); - $obj->setExpire_month(123); - $this->assertEquals($obj->getExpire_month(), 123); - - // Check for Expire_year - $obj->setExpireYear(null); - $this->assertNull($obj->getExpire_year()); - $this->assertNull($obj->getExpireYear()); - $this->assertSame($obj->getExpireYear(), $obj->getExpire_year()); - $obj->setExpire_year(123); - $this->assertEquals($obj->getExpire_year(), 123); - - // Check for First_name - $obj->setFirstName(null); - $this->assertNull($obj->getFirst_name()); - $this->assertNull($obj->getFirstName()); - $this->assertSame($obj->getFirstName(), $obj->getFirst_name()); - $obj->setFirst_name("TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - - // Check for Last_name - $obj->setLastName(null); - $this->assertNull($obj->getLast_name()); - $this->assertNull($obj->getLastName()); - $this->assertSame($obj->getLastName(), $obj->getLast_name()); - $obj->setLast_name("TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - - // Check for Billing_address - $obj->setBillingAddress(null); - $this->assertNull($obj->getBilling_address()); - $this->assertNull($obj->getBillingAddress()); - $this->assertSame($obj->getBillingAddress(), $obj->getBilling_address()); - $obj->setBilling_address(AddressTest::getObject()); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - - // Check for External_customer_id - $obj->setExternalCustomerId(null); - $this->assertNull($obj->getExternal_customer_id()); - $this->assertNull($obj->getExternalCustomerId()); - $this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id()); - $obj->setExternal_customer_id("TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - - // Check for Valid_until - $obj->setValidUntil(null); - $this->assertNull($obj->getValid_until()); - $this->assertNull($obj->getValidUntil()); - $this->assertSame($obj->getValidUntil(), $obj->getValid_until()); - $obj->setValid_until("TestSample"); - $this->assertEquals($obj->getValid_until(), "TestSample"); - - // Check for Create_time - $obj->setCreateTime(null); - $this->assertNull($obj->getCreate_time()); - $this->assertNull($obj->getCreateTime()); - $this->assertSame($obj->getCreateTime(), $obj->getCreate_time()); - $obj->setCreate_time("TestSample"); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - - // Check for Update_time - $obj->setUpdateTime(null); - $this->assertNull($obj->getUpdate_time()); - $this->assertNull($obj->getUpdateTime()); - $this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time()); - $obj->setUpdate_time("TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param CreditCard $obj diff --git a/tests/PayPal/Test/Api/CreditCardTokenTest.php b/tests/PayPal/Test/Api/CreditCardTokenTest.php index de8facc..f6cb7c8 100644 --- a/tests/PayPal/Test/Api/CreditCardTokenTest.php +++ b/tests/PayPal/Test/Api/CreditCardTokenTest.php @@ -63,62 +63,4 @@ class CreditCardTokenTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getExpireYear(), 123); } - /** - * @depends testSerializationDeserialization - * @param CreditCardToken $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCredit_card_id(), "TestSample"); - $this->assertEquals($obj->getPayer_id(), "TestSample"); - $this->assertEquals($obj->getExpire_month(), 123); - $this->assertEquals($obj->getExpire_year(), 123); - } - - /** - * @depends testSerializationDeserialization - * @param CreditCardToken $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Credit_card_id - $obj->setCreditCardId(null); - $this->assertNull($obj->getCredit_card_id()); - $this->assertNull($obj->getCreditCardId()); - $this->assertSame($obj->getCreditCardId(), $obj->getCredit_card_id()); - $obj->setCredit_card_id("TestSample"); - $this->assertEquals($obj->getCredit_card_id(), "TestSample"); - - // Check for Payer_id - $obj->setPayerId(null); - $this->assertNull($obj->getPayer_id()); - $this->assertNull($obj->getPayerId()); - $this->assertSame($obj->getPayerId(), $obj->getPayer_id()); - $obj->setPayer_id("TestSample"); - $this->assertEquals($obj->getPayer_id(), "TestSample"); - - // Check for Expire_month - $obj->setExpireMonth(null); - $this->assertNull($obj->getExpire_month()); - $this->assertNull($obj->getExpireMonth()); - $this->assertSame($obj->getExpireMonth(), $obj->getExpire_month()); - $obj->setExpire_month(123); - $this->assertEquals($obj->getExpire_month(), 123); - - // Check for Expire_year - $obj->setExpireYear(null); - $this->assertNull($obj->getExpire_year()); - $this->assertNull($obj->getExpireYear()); - $this->assertSame($obj->getExpireYear(), $obj->getExpire_year()); - $obj->setExpire_year(123); - $this->assertEquals($obj->getExpire_year(), 123); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/CreditTest.php b/tests/PayPal/Test/Api/CreditTest.php index 9aca208..fa5352a 100644 --- a/tests/PayPal/Test/Api/CreditTest.php +++ b/tests/PayPal/Test/Api/CreditTest.php @@ -57,26 +57,4 @@ class CreditTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getTerms(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Credit $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param Credit $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/CurrencyTest.php b/tests/PayPal/Test/Api/CurrencyTest.php index 1b3254e..328190a 100644 --- a/tests/PayPal/Test/Api/CurrencyTest.php +++ b/tests/PayPal/Test/Api/CurrencyTest.php @@ -57,26 +57,4 @@ class CurrencyTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getValue(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Currency $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param Currency $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/CustomAmountTest.php b/tests/PayPal/Test/Api/CustomAmountTest.php index 7f971bc..fa765f5 100644 --- a/tests/PayPal/Test/Api/CustomAmountTest.php +++ b/tests/PayPal/Test/Api/CustomAmountTest.php @@ -55,26 +55,4 @@ class CustomAmountTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param CustomAmount $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param CustomAmount $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ErrorDetailsTest.php b/tests/PayPal/Test/Api/ErrorDetailsTest.php index aa7e678..1643d04 100644 --- a/tests/PayPal/Test/Api/ErrorDetailsTest.php +++ b/tests/PayPal/Test/Api/ErrorDetailsTest.php @@ -55,26 +55,4 @@ class ErrorDetailsTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getIssue(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param ErrorDetails $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param ErrorDetails $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ErrorTest.php b/tests/PayPal/Test/Api/ErrorTest.php index 744fa25..de97617 100644 --- a/tests/PayPal/Test/Api/ErrorTest.php +++ b/tests/PayPal/Test/Api/ErrorTest.php @@ -63,44 +63,4 @@ class ErrorTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Error $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getDebug_id(), "TestSample"); - $this->assertEquals($obj->getInformation_link(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param Error $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Debug_id - $obj->setDebugId(null); - $this->assertNull($obj->getDebug_id()); - $this->assertNull($obj->getDebugId()); - $this->assertSame($obj->getDebugId(), $obj->getDebug_id()); - $obj->setDebug_id("TestSample"); - $this->assertEquals($obj->getDebug_id(), "TestSample"); - - // Check for Information_link - $obj->setInformationLink(null); - $this->assertNull($obj->getInformation_link()); - $this->assertNull($obj->getInformationLink()); - $this->assertSame($obj->getInformationLink(), $obj->getInformation_link()); - $obj->setInformation_link("TestSample"); - $this->assertEquals($obj->getInformation_link(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ExtendedBankAccountTest.php b/tests/PayPal/Test/Api/ExtendedBankAccountTest.php index a2af11b..7a8d83e 100644 --- a/tests/PayPal/Test/Api/ExtendedBankAccountTest.php +++ b/tests/PayPal/Test/Api/ExtendedBankAccountTest.php @@ -53,35 +53,4 @@ class ExtendedBankAccountTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getMandateReferenceNumber(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param ExtendedBankAccount $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getMandate_reference_number(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param ExtendedBankAccount $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Mandate_reference_number - $obj->setMandateReferenceNumber(null); - $this->assertNull($obj->getMandate_reference_number()); - $this->assertNull($obj->getMandateReferenceNumber()); - $this->assertSame($obj->getMandateReferenceNumber(), $obj->getMandate_reference_number()); - $obj->setMandate_reference_number("TestSample"); - $this->assertEquals($obj->getMandate_reference_number(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/FlowConfigTest.php b/tests/PayPal/Test/Api/FlowConfigTest.php index 50ca5d4..5c47b90 100644 --- a/tests/PayPal/Test/Api/FlowConfigTest.php +++ b/tests/PayPal/Test/Api/FlowConfigTest.php @@ -55,36 +55,6 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getBankTxnPendingUrl(), "http://www.google.com"); } - /** - * @depends testSerializationDeserialization - * @param FlowConfig $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getLanding_page_type(), "TestSample"); - $this->assertEquals($obj->getBank_txn_pending_url(), "http://www.google.com"); - } - - /** - * @depends testSerializationDeserialization - * @param FlowConfig $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Landing_page_type - $obj->setLandingPageType(null); - $this->assertNull($obj->getLanding_page_type()); - $this->assertNull($obj->getLandingPageType()); - $this->assertSame($obj->getLandingPageType(), $obj->getLanding_page_type()); - $obj->setLanding_page_type("TestSample"); - $this->assertEquals($obj->getLanding_page_type(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage BankTxnPendingUrl is not a fully qualified URL @@ -95,11 +65,4 @@ class FlowConfigTest extends \PHPUnit_Framework_TestCase $obj->setBankTxnPendingUrl(null); } - public function testUrlValidationForBankTxnPendingUrlDeprecated() - { - $obj = new FlowConfig(); - $obj->setBank_txn_pending_url(null); - $this->assertNull($obj->getBank_txn_pending_url()); - } - } diff --git a/tests/PayPal/Test/Api/FundingInstrumentTest.php b/tests/PayPal/Test/Api/FundingInstrumentTest.php index 0e68360..d64ca5b 100644 --- a/tests/PayPal/Test/Api/FundingInstrumentTest.php +++ b/tests/PayPal/Test/Api/FundingInstrumentTest.php @@ -65,80 +65,5 @@ class FundingInstrumentTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getCredit(), CreditTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param FundingInstrument $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCredit_card(), CreditCardTest::getObject()); - $this->assertEquals($obj->getCredit_card_token(), CreditCardTokenTest::getObject()); - $this->assertEquals($obj->getPayment_card(), PaymentCardTest::getObject()); - $this->assertEquals($obj->getPayment_card_token(), PaymentCardTokenTest::getObject()); - $this->assertEquals($obj->getBank_account(), ExtendedBankAccountTest::getObject()); - $this->assertEquals($obj->getBank_account_token(), BankTokenTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param FundingInstrument $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Credit_card - $obj->setCreditCard(null); - $this->assertNull($obj->getCredit_card()); - $this->assertNull($obj->getCreditCard()); - $this->assertSame($obj->getCreditCard(), $obj->getCredit_card()); - $obj->setCredit_card(CreditCardTest::getObject()); - $this->assertEquals($obj->getCredit_card(), CreditCardTest::getObject()); - - // Check for Credit_card_token - $obj->setCreditCardToken(null); - $this->assertNull($obj->getCredit_card_token()); - $this->assertNull($obj->getCreditCardToken()); - $this->assertSame($obj->getCreditCardToken(), $obj->getCredit_card_token()); - $obj->setCredit_card_token(CreditCardTokenTest::getObject()); - $this->assertEquals($obj->getCredit_card_token(), CreditCardTokenTest::getObject()); - - // Check for Payment_card - $obj->setPaymentCard(null); - $this->assertNull($obj->getPayment_card()); - $this->assertNull($obj->getPaymentCard()); - $this->assertSame($obj->getPaymentCard(), $obj->getPayment_card()); - $obj->setPayment_card(PaymentCardTest::getObject()); - $this->assertEquals($obj->getPayment_card(), PaymentCardTest::getObject()); - - // Check for Payment_card_token - $obj->setPaymentCardToken(null); - $this->assertNull($obj->getPayment_card_token()); - $this->assertNull($obj->getPaymentCardToken()); - $this->assertSame($obj->getPaymentCardToken(), $obj->getPayment_card_token()); - $obj->setPayment_card_token(PaymentCardTokenTest::getObject()); - $this->assertEquals($obj->getPayment_card_token(), PaymentCardTokenTest::getObject()); - - // Check for Bank_account - $obj->setBankAccount(null); - $this->assertNull($obj->getBank_account()); - $this->assertNull($obj->getBankAccount()); - $this->assertSame($obj->getBankAccount(), $obj->getBank_account()); - $obj->setBank_account(ExtendedBankAccountTest::getObject()); - $this->assertEquals($obj->getBank_account(), ExtendedBankAccountTest::getObject()); - - // Check for Bank_account_token - $obj->setBankAccountToken(null); - $this->assertNull($obj->getBank_account_token()); - $this->assertNull($obj->getBankAccountToken()); - $this->assertSame($obj->getBankAccountToken(), $obj->getBank_account_token()); - $obj->setBank_account_token(BankTokenTest::getObject()); - $this->assertEquals($obj->getBank_account_token(), BankTokenTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - } diff --git a/tests/PayPal/Test/Api/HyperSchemaTest.php b/tests/PayPal/Test/Api/HyperSchemaTest.php index 61dde52..a9be72a 100644 --- a/tests/PayPal/Test/Api/HyperSchemaTest.php +++ b/tests/PayPal/Test/Api/HyperSchemaTest.php @@ -63,26 +63,4 @@ class HyperSchemaTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getMediaType(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param HyperSchema $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param HyperSchema $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ImageTest.php b/tests/PayPal/Test/Api/ImageTest.php index aa310f6..f96901d 100644 --- a/tests/PayPal/Test/Api/ImageTest.php +++ b/tests/PayPal/Test/Api/ImageTest.php @@ -53,26 +53,4 @@ class ImageTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getImage(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Image $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param Image $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/InputFieldsTest.php b/tests/PayPal/Test/Api/InputFieldsTest.php index 8a84fa0..cef0319 100644 --- a/tests/PayPal/Test/Api/InputFieldsTest.php +++ b/tests/PayPal/Test/Api/InputFieldsTest.php @@ -57,53 +57,4 @@ class InputFieldsTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAddressOverride(), 123); } - /** - * @depends testSerializationDeserialization - * @param InputFields $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getAllow_note(), true); - $this->assertEquals($obj->getNo_shipping(), 123); - $this->assertEquals($obj->getAddress_override(), 123); - } - - /** - * @depends testSerializationDeserialization - * @param InputFields $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Allow_note - $obj->setAllowNote(null); - $this->assertNull($obj->getAllow_note()); - $this->assertNull($obj->getAllowNote()); - $this->assertSame($obj->getAllowNote(), $obj->getAllow_note()); - $obj->setAllow_note(true); - $this->assertEquals($obj->getAllow_note(), true); - - // Check for No_shipping - $obj->setNoShipping(null); - $this->assertNull($obj->getNo_shipping()); - $this->assertNull($obj->getNoShipping()); - $this->assertSame($obj->getNoShipping(), $obj->getNo_shipping()); - $obj->setNo_shipping(123); - $this->assertEquals($obj->getNo_shipping(), 123); - - // Check for Address_override - $obj->setAddressOverride(null); - $this->assertNull($obj->getAddress_override()); - $this->assertNull($obj->getAddressOverride()); - $this->assertSame($obj->getAddressOverride(), $obj->getAddress_override()); - $obj->setAddress_override(123); - $this->assertEquals($obj->getAddress_override(), 123); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/InvoiceAddressTest.php b/tests/PayPal/Test/Api/InvoiceAddressTest.php index 1e39684..dd47fc2 100644 --- a/tests/PayPal/Test/Api/InvoiceAddressTest.php +++ b/tests/PayPal/Test/Api/InvoiceAddressTest.php @@ -65,44 +65,4 @@ class InvoiceAddressTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPhone(), PhoneTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param InvoiceAddress $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCountry_code(), "TestSample"); - $this->assertEquals($obj->getPostal_code(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param InvoiceAddress $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Country_code - $obj->setCountryCode(null); - $this->assertNull($obj->getCountry_code()); - $this->assertNull($obj->getCountryCode()); - $this->assertSame($obj->getCountryCode(), $obj->getCountry_code()); - $obj->setCountry_code("TestSample"); - $this->assertEquals($obj->getCountry_code(), "TestSample"); - - // Check for Postal_code - $obj->setPostalCode(null); - $this->assertNull($obj->getPostal_code()); - $this->assertNull($obj->getPostalCode()); - $this->assertSame($obj->getPostalCode(), $obj->getPostal_code()); - $obj->setPostal_code("TestSample"); - $this->assertEquals($obj->getPostal_code(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/InvoiceItemTest.php b/tests/PayPal/Test/Api/InvoiceItemTest.php index 7daa1a5..15e0e6c 100644 --- a/tests/PayPal/Test/Api/InvoiceItemTest.php +++ b/tests/PayPal/Test/Api/InvoiceItemTest.php @@ -65,35 +65,4 @@ class InvoiceItemTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getDiscount(), CostTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param InvoiceItem $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getUnit_price(), CurrencyTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param InvoiceItem $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Unit_price - $obj->setUnitPrice(null); - $this->assertNull($obj->getUnit_price()); - $this->assertNull($obj->getUnitPrice()); - $this->assertSame($obj->getUnitPrice(), $obj->getUnit_price()); - $obj->setUnit_price(CurrencyTest::getObject()); - $this->assertEquals($obj->getUnit_price(), CurrencyTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/InvoiceSearchResponseTest.php b/tests/PayPal/Test/Api/InvoiceSearchResponseTest.php index 0d0365f..3d1503d 100644 --- a/tests/PayPal/Test/Api/InvoiceSearchResponseTest.php +++ b/tests/PayPal/Test/Api/InvoiceSearchResponseTest.php @@ -55,35 +55,4 @@ class InvoiceSearchResponseTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getInvoices(), InvoiceTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param InvoiceSearchResponse $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getTotal_count(), 123); - } - - /** - * @depends testSerializationDeserialization - * @param InvoiceSearchResponse $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Total_count - $obj->setTotalCount(null); - $this->assertNull($obj->getTotal_count()); - $this->assertNull($obj->getTotalCount()); - $this->assertSame($obj->getTotalCount(), $obj->getTotal_count()); - $obj->setTotal_count(123); - $this->assertEquals($obj->getTotal_count(), 123); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/InvoiceTest.php b/tests/PayPal/Test/Api/InvoiceTest.php index 8d8c8e8..9a4a9ce 100644 --- a/tests/PayPal/Test/Api/InvoiceTest.php +++ b/tests/PayPal/Test/Api/InvoiceTest.php @@ -103,144 +103,6 @@ class InvoiceTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAdditionalData(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Invoice $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getMerchant_info(), MerchantInfoTest::getObject()); - $this->assertEquals($obj->getBilling_info(), BillingInfoTest::getObject()); - $this->assertEquals($obj->getShipping_info(), ShippingInfoTest::getObject()); - $this->assertEquals($obj->getInvoice_date(), "TestSample"); - $this->assertEquals($obj->getPayment_term(), PaymentTermTest::getObject()); - $this->assertEquals($obj->getShipping_cost(), ShippingCostTest::getObject()); - $this->assertEquals($obj->getTax_calculated_after_discount(), true); - $this->assertEquals($obj->getTax_inclusive(), true); - $this->assertEquals($obj->getMerchant_memo(), "TestSample"); - $this->assertEquals($obj->getLogo_url(), "http://www.google.com"); - $this->assertEquals($obj->getTotal_amount(), CurrencyTest::getObject()); - $this->assertEquals($obj->getPayment_details(), PaymentDetailTest::getObject()); - $this->assertEquals($obj->getRefund_details(), RefundDetailTest::getObject()); - $this->assertEquals($obj->getAdditional_data(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param Invoice $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Merchant_info - $obj->setMerchantInfo(null); - $this->assertNull($obj->getMerchant_info()); - $this->assertNull($obj->getMerchantInfo()); - $this->assertSame($obj->getMerchantInfo(), $obj->getMerchant_info()); - $obj->setMerchant_info(MerchantInfoTest::getObject()); - $this->assertEquals($obj->getMerchant_info(), MerchantInfoTest::getObject()); - - // Check for Billing_info - $obj->setBillingInfo(null); - $this->assertNull($obj->getBilling_info()); - $this->assertNull($obj->getBillingInfo()); - $this->assertSame($obj->getBillingInfo(), $obj->getBilling_info()); - $obj->setBilling_info(BillingInfoTest::getObject()); - $this->assertEquals($obj->getBilling_info(), BillingInfoTest::getObject()); - - // Check for Shipping_info - $obj->setShippingInfo(null); - $this->assertNull($obj->getShipping_info()); - $this->assertNull($obj->getShippingInfo()); - $this->assertSame($obj->getShippingInfo(), $obj->getShipping_info()); - $obj->setShipping_info(ShippingInfoTest::getObject()); - $this->assertEquals($obj->getShipping_info(), ShippingInfoTest::getObject()); - - // Check for Invoice_date - $obj->setInvoiceDate(null); - $this->assertNull($obj->getInvoice_date()); - $this->assertNull($obj->getInvoiceDate()); - $this->assertSame($obj->getInvoiceDate(), $obj->getInvoice_date()); - $obj->setInvoice_date("TestSample"); - $this->assertEquals($obj->getInvoice_date(), "TestSample"); - - // Check for Payment_term - $obj->setPaymentTerm(null); - $this->assertNull($obj->getPayment_term()); - $this->assertNull($obj->getPaymentTerm()); - $this->assertSame($obj->getPaymentTerm(), $obj->getPayment_term()); - $obj->setPayment_term(PaymentTermTest::getObject()); - $this->assertEquals($obj->getPayment_term(), PaymentTermTest::getObject()); - - // Check for Shipping_cost - $obj->setShippingCost(null); - $this->assertNull($obj->getShipping_cost()); - $this->assertNull($obj->getShippingCost()); - $this->assertSame($obj->getShippingCost(), $obj->getShipping_cost()); - $obj->setShipping_cost(ShippingCostTest::getObject()); - $this->assertEquals($obj->getShipping_cost(), ShippingCostTest::getObject()); - - // Check for Tax_calculated_after_discount - $obj->setTaxCalculatedAfterDiscount(null); - $this->assertNull($obj->getTax_calculated_after_discount()); - $this->assertNull($obj->getTaxCalculatedAfterDiscount()); - $this->assertSame($obj->getTaxCalculatedAfterDiscount(), $obj->getTax_calculated_after_discount()); - $obj->setTax_calculated_after_discount(true); - $this->assertEquals($obj->getTax_calculated_after_discount(), true); - - // Check for Tax_inclusive - $obj->setTaxInclusive(null); - $this->assertNull($obj->getTax_inclusive()); - $this->assertNull($obj->getTaxInclusive()); - $this->assertSame($obj->getTaxInclusive(), $obj->getTax_inclusive()); - $obj->setTax_inclusive(true); - $this->assertEquals($obj->getTax_inclusive(), true); - - // Check for Merchant_memo - $obj->setMerchantMemo(null); - $this->assertNull($obj->getMerchant_memo()); - $this->assertNull($obj->getMerchantMemo()); - $this->assertSame($obj->getMerchantMemo(), $obj->getMerchant_memo()); - $obj->setMerchant_memo("TestSample"); - $this->assertEquals($obj->getMerchant_memo(), "TestSample"); - - // Check for Total_amount - $obj->setTotalAmount(null); - $this->assertNull($obj->getTotal_amount()); - $this->assertNull($obj->getTotalAmount()); - $this->assertSame($obj->getTotalAmount(), $obj->getTotal_amount()); - $obj->setTotal_amount(CurrencyTest::getObject()); - $this->assertEquals($obj->getTotal_amount(), CurrencyTest::getObject()); - - // Check for Payment_details - $obj->setPaymentDetails(null); - $this->assertNull($obj->getPayment_details()); - $this->assertNull($obj->getPaymentDetails()); - $this->assertSame($obj->getPaymentDetails(), $obj->getPayment_details()); - $obj->setPayment_details(PaymentDetailTest::getObject()); - $this->assertEquals($obj->getPayment_details(), PaymentDetailTest::getObject()); - - // Check for Refund_details - $obj->setRefundDetails(null); - $this->assertNull($obj->getRefund_details()); - $this->assertNull($obj->getRefundDetails()); - $this->assertSame($obj->getRefundDetails(), $obj->getRefund_details()); - $obj->setRefund_details(RefundDetailTest::getObject()); - $this->assertEquals($obj->getRefund_details(), RefundDetailTest::getObject()); - - // Check for Additional_data - $obj->setAdditionalData(null); - $this->assertNull($obj->getAdditional_data()); - $this->assertNull($obj->getAdditionalData()); - $this->assertSame($obj->getAdditionalData(), $obj->getAdditional_data()); - $obj->setAdditional_data("TestSample"); - $this->assertEquals($obj->getAdditional_data(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage LogoUrl is not a fully qualified URL @@ -251,12 +113,6 @@ class InvoiceTest extends \PHPUnit_Framework_TestCase $obj->setLogoUrl(null); } - public function testUrlValidationForLogoUrlDeprecated() - { - $obj = new Invoice(); - $obj->setLogo_url(null); - $this->assertNull($obj->getLogo_url()); - } /** * @dataProvider mockProvider * @param Invoice $obj diff --git a/tests/PayPal/Test/Api/LinksTest.php b/tests/PayPal/Test/Api/LinksTest.php index 07a5491..d9b23c3 100644 --- a/tests/PayPal/Test/Api/LinksTest.php +++ b/tests/PayPal/Test/Api/LinksTest.php @@ -63,26 +63,4 @@ class LinksTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getSchema(), HyperSchemaTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Links $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param Links $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/MerchantInfoTest.php b/tests/PayPal/Test/Api/MerchantInfoTest.php index 885577e..56da4fd 100644 --- a/tests/PayPal/Test/Api/MerchantInfoTest.php +++ b/tests/PayPal/Test/Api/MerchantInfoTest.php @@ -71,71 +71,4 @@ class MerchantInfoTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAdditionalInfo(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param MerchantInfo $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getFirst_name(), "TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - $this->assertEquals($obj->getBusiness_name(), "TestSample"); - $this->assertEquals($obj->getTax_id(), "TestSample"); - $this->assertEquals($obj->getAdditional_info(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param MerchantInfo $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for First_name - $obj->setFirstName(null); - $this->assertNull($obj->getFirst_name()); - $this->assertNull($obj->getFirstName()); - $this->assertSame($obj->getFirstName(), $obj->getFirst_name()); - $obj->setFirst_name("TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - - // Check for Last_name - $obj->setLastName(null); - $this->assertNull($obj->getLast_name()); - $this->assertNull($obj->getLastName()); - $this->assertSame($obj->getLastName(), $obj->getLast_name()); - $obj->setLast_name("TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - - // Check for Business_name - $obj->setBusinessName(null); - $this->assertNull($obj->getBusiness_name()); - $this->assertNull($obj->getBusinessName()); - $this->assertSame($obj->getBusinessName(), $obj->getBusiness_name()); - $obj->setBusiness_name("TestSample"); - $this->assertEquals($obj->getBusiness_name(), "TestSample"); - - // Check for Tax_id - $obj->setTaxId(null); - $this->assertNull($obj->getTax_id()); - $this->assertNull($obj->getTaxId()); - $this->assertSame($obj->getTaxId(), $obj->getTax_id()); - $obj->setTax_id("TestSample"); - $this->assertEquals($obj->getTax_id(), "TestSample"); - - // Check for Additional_info - $obj->setAdditionalInfo(null); - $this->assertNull($obj->getAdditional_info()); - $this->assertNull($obj->getAdditionalInfo()); - $this->assertSame($obj->getAdditionalInfo(), $obj->getAdditional_info()); - $obj->setAdditional_info("TestSample"); - $this->assertEquals($obj->getAdditional_info(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/MerchantPreferencesTest.php b/tests/PayPal/Test/Api/MerchantPreferencesTest.php index 0ae5987..4583e1c 100644 --- a/tests/PayPal/Test/Api/MerchantPreferencesTest.php +++ b/tests/PayPal/Test/Api/MerchantPreferencesTest.php @@ -71,83 +71,6 @@ class MerchantPreferencesTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getCharSet(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param MerchantPreferences $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getSetup_fee(), CurrencyTest::getObject()); - $this->assertEquals($obj->getCancel_url(), "http://www.google.com"); - $this->assertEquals($obj->getReturn_url(), "http://www.google.com"); - $this->assertEquals($obj->getNotify_url(), "http://www.google.com"); - $this->assertEquals($obj->getMax_fail_attempts(), "TestSample"); - $this->assertEquals($obj->getAuto_bill_amount(), "TestSample"); - $this->assertEquals($obj->getInitial_fail_amount_action(), "TestSample"); - $this->assertEquals($obj->getAccepted_payment_type(), "TestSample"); - $this->assertEquals($obj->getChar_set(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param MerchantPreferences $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Setup_fee - $obj->setSetupFee(null); - $this->assertNull($obj->getSetup_fee()); - $this->assertNull($obj->getSetupFee()); - $this->assertSame($obj->getSetupFee(), $obj->getSetup_fee()); - $obj->setSetup_fee(CurrencyTest::getObject()); - $this->assertEquals($obj->getSetup_fee(), CurrencyTest::getObject()); - - // Check for Max_fail_attempts - $obj->setMaxFailAttempts(null); - $this->assertNull($obj->getMax_fail_attempts()); - $this->assertNull($obj->getMaxFailAttempts()); - $this->assertSame($obj->getMaxFailAttempts(), $obj->getMax_fail_attempts()); - $obj->setMax_fail_attempts("TestSample"); - $this->assertEquals($obj->getMax_fail_attempts(), "TestSample"); - - // Check for Auto_bill_amount - $obj->setAutoBillAmount(null); - $this->assertNull($obj->getAuto_bill_amount()); - $this->assertNull($obj->getAutoBillAmount()); - $this->assertSame($obj->getAutoBillAmount(), $obj->getAuto_bill_amount()); - $obj->setAuto_bill_amount("TestSample"); - $this->assertEquals($obj->getAuto_bill_amount(), "TestSample"); - - // Check for Initial_fail_amount_action - $obj->setInitialFailAmountAction(null); - $this->assertNull($obj->getInitial_fail_amount_action()); - $this->assertNull($obj->getInitialFailAmountAction()); - $this->assertSame($obj->getInitialFailAmountAction(), $obj->getInitial_fail_amount_action()); - $obj->setInitial_fail_amount_action("TestSample"); - $this->assertEquals($obj->getInitial_fail_amount_action(), "TestSample"); - - // Check for Accepted_payment_type - $obj->setAcceptedPaymentType(null); - $this->assertNull($obj->getAccepted_payment_type()); - $this->assertNull($obj->getAcceptedPaymentType()); - $this->assertSame($obj->getAcceptedPaymentType(), $obj->getAccepted_payment_type()); - $obj->setAccepted_payment_type("TestSample"); - $this->assertEquals($obj->getAccepted_payment_type(), "TestSample"); - - // Check for Char_set - $obj->setCharSet(null); - $this->assertNull($obj->getChar_set()); - $this->assertNull($obj->getCharSet()); - $this->assertSame($obj->getCharSet(), $obj->getChar_set()); - $obj->setChar_set("TestSample"); - $this->assertEquals($obj->getChar_set(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage CancelUrl is not a fully qualified URL @@ -179,20 +102,20 @@ class MerchantPreferencesTest extends \PHPUnit_Framework_TestCase public function testUrlValidationForCancelUrlDeprecated() { $obj = new MerchantPreferences(); - $obj->setCancel_url(null); - $this->assertNull($obj->getCancel_url()); + $obj->setCancelUrl(null); + $this->assertNull($obj->getCancelUrl()); } public function testUrlValidationForReturnUrlDeprecated() { $obj = new MerchantPreferences(); - $obj->setReturn_url(null); - $this->assertNull($obj->getReturn_url()); + $obj->setReturnUrl(null); + $this->assertNull($obj->getReturnUrl()); } public function testUrlValidationForNotifyUrlDeprecated() { $obj = new MerchantPreferences(); - $obj->setNotify_url(null); - $this->assertNull($obj->getNotify_url()); + $obj->setNotifyUrl(null); + $this->assertNull($obj->getNotifyUrl()); } } diff --git a/tests/PayPal/Test/Api/MetadataTest.php b/tests/PayPal/Test/Api/MetadataTest.php index ff52a74..47f2835 100644 --- a/tests/PayPal/Test/Api/MetadataTest.php +++ b/tests/PayPal/Test/Api/MetadataTest.php @@ -71,108 +71,6 @@ class MetadataTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPayerViewUrl(), "http://www.google.com"); } - /** - * @depends testSerializationDeserialization - * @param Metadata $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCreated_date(), "TestSample"); - $this->assertEquals($obj->getCreated_by(), "TestSample"); - $this->assertEquals($obj->getCancelled_date(), "TestSample"); - $this->assertEquals($obj->getCancelled_by(), "TestSample"); - $this->assertEquals($obj->getLast_updated_date(), "TestSample"); - $this->assertEquals($obj->getLast_updated_by(), "TestSample"); - $this->assertEquals($obj->getFirst_sent_date(), "TestSample"); - $this->assertEquals($obj->getLast_sent_date(), "TestSample"); - $this->assertEquals($obj->getLast_sent_by(), "TestSample"); - $this->assertEquals($obj->getPayer_view_url(), "http://www.google.com"); - } - - /** - * @depends testSerializationDeserialization - * @param Metadata $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Created_date - $obj->setCreatedDate(null); - $this->assertNull($obj->getCreated_date()); - $this->assertNull($obj->getCreatedDate()); - $this->assertSame($obj->getCreatedDate(), $obj->getCreated_date()); - $obj->setCreated_date("TestSample"); - $this->assertEquals($obj->getCreated_date(), "TestSample"); - - // Check for Created_by - $obj->setCreatedBy(null); - $this->assertNull($obj->getCreated_by()); - $this->assertNull($obj->getCreatedBy()); - $this->assertSame($obj->getCreatedBy(), $obj->getCreated_by()); - $obj->setCreated_by("TestSample"); - $this->assertEquals($obj->getCreated_by(), "TestSample"); - - // Check for Cancelled_date - $obj->setCancelledDate(null); - $this->assertNull($obj->getCancelled_date()); - $this->assertNull($obj->getCancelledDate()); - $this->assertSame($obj->getCancelledDate(), $obj->getCancelled_date()); - $obj->setCancelled_date("TestSample"); - $this->assertEquals($obj->getCancelled_date(), "TestSample"); - - // Check for Cancelled_by - $obj->setCancelledBy(null); - $this->assertNull($obj->getCancelled_by()); - $this->assertNull($obj->getCancelledBy()); - $this->assertSame($obj->getCancelledBy(), $obj->getCancelled_by()); - $obj->setCancelled_by("TestSample"); - $this->assertEquals($obj->getCancelled_by(), "TestSample"); - - // Check for Last_updated_date - $obj->setLastUpdatedDate(null); - $this->assertNull($obj->getLast_updated_date()); - $this->assertNull($obj->getLastUpdatedDate()); - $this->assertSame($obj->getLastUpdatedDate(), $obj->getLast_updated_date()); - $obj->setLast_updated_date("TestSample"); - $this->assertEquals($obj->getLast_updated_date(), "TestSample"); - - // Check for Last_updated_by - $obj->setLastUpdatedBy(null); - $this->assertNull($obj->getLast_updated_by()); - $this->assertNull($obj->getLastUpdatedBy()); - $this->assertSame($obj->getLastUpdatedBy(), $obj->getLast_updated_by()); - $obj->setLast_updated_by("TestSample"); - $this->assertEquals($obj->getLast_updated_by(), "TestSample"); - - // Check for First_sent_date - $obj->setFirstSentDate(null); - $this->assertNull($obj->getFirst_sent_date()); - $this->assertNull($obj->getFirstSentDate()); - $this->assertSame($obj->getFirstSentDate(), $obj->getFirst_sent_date()); - $obj->setFirst_sent_date("TestSample"); - $this->assertEquals($obj->getFirst_sent_date(), "TestSample"); - - // Check for Last_sent_date - $obj->setLastSentDate(null); - $this->assertNull($obj->getLast_sent_date()); - $this->assertNull($obj->getLastSentDate()); - $this->assertSame($obj->getLastSentDate(), $obj->getLast_sent_date()); - $obj->setLast_sent_date("TestSample"); - $this->assertEquals($obj->getLast_sent_date(), "TestSample"); - - // Check for Last_sent_by - $obj->setLastSentBy(null); - $this->assertNull($obj->getLast_sent_by()); - $this->assertNull($obj->getLastSentBy()); - $this->assertSame($obj->getLastSentBy(), $obj->getLast_sent_by()); - $obj->setLast_sent_by("TestSample"); - $this->assertEquals($obj->getLast_sent_by(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage PayerViewUrl is not a fully qualified URL diff --git a/tests/PayPal/Test/Api/NotificationTest.php b/tests/PayPal/Test/Api/NotificationTest.php index bc6fee1..a89e6f4 100644 --- a/tests/PayPal/Test/Api/NotificationTest.php +++ b/tests/PayPal/Test/Api/NotificationTest.php @@ -57,35 +57,5 @@ class NotificationTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getSendToMerchant(), true); } - /** - * @depends testSerializationDeserialization - * @param Notification $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getSend_to_merchant(), true); - } - - /** - * @depends testSerializationDeserialization - * @param Notification $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Send_to_merchant - $obj->setSendToMerchant(null); - $this->assertNull($obj->getSend_to_merchant()); - $this->assertNull($obj->getSendToMerchant()); - $this->assertSame($obj->getSendToMerchant(), $obj->getSend_to_merchant()); - $obj->setSend_to_merchant(true); - $this->assertEquals($obj->getSend_to_merchant(), true); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - } diff --git a/tests/PayPal/Test/Api/OverrideChargeModelTest.php b/tests/PayPal/Test/Api/OverrideChargeModelTest.php index c2cd8e4..4271fc9 100644 --- a/tests/PayPal/Test/Api/OverrideChargeModelTest.php +++ b/tests/PayPal/Test/Api/OverrideChargeModelTest.php @@ -55,35 +55,4 @@ class OverrideChargeModelTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param OverrideChargeModel $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCharge_id(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param OverrideChargeModel $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Charge_id - $obj->setChargeId(null); - $this->assertNull($obj->getCharge_id()); - $this->assertNull($obj->getChargeId()); - $this->assertSame($obj->getChargeId(), $obj->getCharge_id()); - $obj->setCharge_id("TestSample"); - $this->assertEquals($obj->getCharge_id(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PatchRequestTest.php b/tests/PayPal/Test/Api/PatchRequestTest.php index 23decf7..d14c040 100644 --- a/tests/PayPal/Test/Api/PatchRequestTest.php +++ b/tests/PayPal/Test/Api/PatchRequestTest.php @@ -52,26 +52,4 @@ class PatchRequestTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPatches(), PatchTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PatchRequest $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param PatchRequest $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PatchTest.php b/tests/PayPal/Test/Api/PatchTest.php index 633e726..42e0855 100644 --- a/tests/PayPal/Test/Api/PatchTest.php +++ b/tests/PayPal/Test/Api/PatchTest.php @@ -59,26 +59,4 @@ class PatchTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getFrom(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Patch $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param Patch $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PayerInfoTest.php b/tests/PayPal/Test/Api/PayerInfoTest.php index 2b9c765..34342d8 100644 --- a/tests/PayPal/Test/Api/PayerInfoTest.php +++ b/tests/PayPal/Test/Api/PayerInfoTest.php @@ -77,125 +77,4 @@ class PayerInfoTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getShippingAddress(), ShippingAddressTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PayerInfo $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getExternal_remember_me_id(), "TestSample"); - $this->assertEquals($obj->getBuyer_account_number(), "TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - $this->assertEquals($obj->getPayer_id(), "TestSample"); - $this->assertEquals($obj->getPhone_type(), "TestSample"); - $this->assertEquals($obj->getBirth_date(), "TestSample"); - $this->assertEquals($obj->getTax_id(), "TestSample"); - $this->assertEquals($obj->getTax_id_type(), "TestSample"); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - $this->assertEquals($obj->getShipping_address(), ShippingAddressTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param PayerInfo $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for External_remember_me_id - $obj->setExternalRememberMeId(null); - $this->assertNull($obj->getExternal_remember_me_id()); - $this->assertNull($obj->getExternalRememberMeId()); - $this->assertSame($obj->getExternalRememberMeId(), $obj->getExternal_remember_me_id()); - $obj->setExternal_remember_me_id("TestSample"); - $this->assertEquals($obj->getExternal_remember_me_id(), "TestSample"); - - // Check for Buyer_account_number - $obj->setBuyerAccountNumber(null); - $this->assertNull($obj->getBuyer_account_number()); - $this->assertNull($obj->getBuyerAccountNumber()); - $this->assertSame($obj->getBuyerAccountNumber(), $obj->getBuyer_account_number()); - $obj->setBuyer_account_number("TestSample"); - $this->assertEquals($obj->getBuyer_account_number(), "TestSample"); - - // Check for First_name - $obj->setFirstName(null); - $this->assertNull($obj->getFirst_name()); - $this->assertNull($obj->getFirstName()); - $this->assertSame($obj->getFirstName(), $obj->getFirst_name()); - $obj->setFirst_name("TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - - // Check for Last_name - $obj->setLastName(null); - $this->assertNull($obj->getLast_name()); - $this->assertNull($obj->getLastName()); - $this->assertSame($obj->getLastName(), $obj->getLast_name()); - $obj->setLast_name("TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - - // Check for Payer_id - $obj->setPayerId(null); - $this->assertNull($obj->getPayer_id()); - $this->assertNull($obj->getPayerId()); - $this->assertSame($obj->getPayerId(), $obj->getPayer_id()); - $obj->setPayer_id("TestSample"); - $this->assertEquals($obj->getPayer_id(), "TestSample"); - - // Check for Phone_type - $obj->setPhoneType(null); - $this->assertNull($obj->getPhone_type()); - $this->assertNull($obj->getPhoneType()); - $this->assertSame($obj->getPhoneType(), $obj->getPhone_type()); - $obj->setPhone_type("TestSample"); - $this->assertEquals($obj->getPhone_type(), "TestSample"); - - // Check for Birth_date - $obj->setBirthDate(null); - $this->assertNull($obj->getBirth_date()); - $this->assertNull($obj->getBirthDate()); - $this->assertSame($obj->getBirthDate(), $obj->getBirth_date()); - $obj->setBirth_date("TestSample"); - $this->assertEquals($obj->getBirth_date(), "TestSample"); - - // Check for Tax_id - $obj->setTaxId(null); - $this->assertNull($obj->getTax_id()); - $this->assertNull($obj->getTaxId()); - $this->assertSame($obj->getTaxId(), $obj->getTax_id()); - $obj->setTax_id("TestSample"); - $this->assertEquals($obj->getTax_id(), "TestSample"); - - // Check for Tax_id_type - $obj->setTaxIdType(null); - $this->assertNull($obj->getTax_id_type()); - $this->assertNull($obj->getTaxIdType()); - $this->assertSame($obj->getTaxIdType(), $obj->getTax_id_type()); - $obj->setTax_id_type("TestSample"); - $this->assertEquals($obj->getTax_id_type(), "TestSample"); - - // Check for Billing_address - $obj->setBillingAddress(null); - $this->assertNull($obj->getBilling_address()); - $this->assertNull($obj->getBillingAddress()); - $this->assertSame($obj->getBillingAddress(), $obj->getBilling_address()); - $obj->setBilling_address(AddressTest::getObject()); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - - // Check for Shipping_address - $obj->setShippingAddress(null); - $this->assertNull($obj->getShipping_address()); - $this->assertNull($obj->getShippingAddress()); - $this->assertSame($obj->getShippingAddress(), $obj->getShipping_address()); - $obj->setShipping_address(ShippingAddressTest::getObject()); - $this->assertEquals($obj->getShipping_address(), ShippingAddressTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PayerTest.php b/tests/PayPal/Test/Api/PayerTest.php index 235583d..3d3a6c4 100644 --- a/tests/PayPal/Test/Api/PayerTest.php +++ b/tests/PayPal/Test/Api/PayerTest.php @@ -61,62 +61,4 @@ class PayerTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPayerInfo(), PayerInfoTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Payer $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getPayment_method(), "TestSample"); - $this->assertEquals($obj->getFunding_instruments(), FundingInstrumentTest::getObject()); - $this->assertEquals($obj->getFunding_option_id(), "TestSample"); - $this->assertEquals($obj->getPayer_info(), PayerInfoTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param Payer $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Payment_method - $obj->setPaymentMethod(null); - $this->assertNull($obj->getPayment_method()); - $this->assertNull($obj->getPaymentMethod()); - $this->assertSame($obj->getPaymentMethod(), $obj->getPayment_method()); - $obj->setPayment_method("TestSample"); - $this->assertEquals($obj->getPayment_method(), "TestSample"); - - // Check for Funding_instruments - $obj->setFundingInstruments(null); - $this->assertNull($obj->getFunding_instruments()); - $this->assertNull($obj->getFundingInstruments()); - $this->assertSame($obj->getFundingInstruments(), $obj->getFunding_instruments()); - $obj->setFunding_instruments(FundingInstrumentTest::getObject()); - $this->assertEquals($obj->getFunding_instruments(), FundingInstrumentTest::getObject()); - - // Check for Funding_option_id - $obj->setFundingOptionId(null); - $this->assertNull($obj->getFunding_option_id()); - $this->assertNull($obj->getFundingOptionId()); - $this->assertSame($obj->getFundingOptionId(), $obj->getFunding_option_id()); - $obj->setFunding_option_id("TestSample"); - $this->assertEquals($obj->getFunding_option_id(), "TestSample"); - - // Check for Payer_info - $obj->setPayerInfo(null); - $this->assertNull($obj->getPayer_info()); - $this->assertNull($obj->getPayerInfo()); - $this->assertSame($obj->getPayerInfo(), $obj->getPayer_info()); - $obj->setPayer_info(PayerInfoTest::getObject()); - $this->assertEquals($obj->getPayer_info(), PayerInfoTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PaymentCardTest.php b/tests/PayPal/Test/Api/PaymentCardTest.php index 564b7d2..e1ba461 100644 --- a/tests/PayPal/Test/Api/PaymentCardTest.php +++ b/tests/PayPal/Test/Api/PaymentCardTest.php @@ -81,107 +81,4 @@ class PaymentCardTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PaymentCard $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getExpire_month(), 123); - $this->assertEquals($obj->getExpire_year(), 123); - $this->assertEquals($obj->getStart_month(), 123); - $this->assertEquals($obj->getStart_year(), 123); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - $this->assertEquals($obj->getValid_until(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param PaymentCard $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Expire_month - $obj->setExpireMonth(null); - $this->assertNull($obj->getExpire_month()); - $this->assertNull($obj->getExpireMonth()); - $this->assertSame($obj->getExpireMonth(), $obj->getExpire_month()); - $obj->setExpire_month(123); - $this->assertEquals($obj->getExpire_month(), 123); - - // Check for Expire_year - $obj->setExpireYear(null); - $this->assertNull($obj->getExpire_year()); - $this->assertNull($obj->getExpireYear()); - $this->assertSame($obj->getExpireYear(), $obj->getExpire_year()); - $obj->setExpire_year(123); - $this->assertEquals($obj->getExpire_year(), 123); - - // Check for Start_month - $obj->setStartMonth(null); - $this->assertNull($obj->getStart_month()); - $this->assertNull($obj->getStartMonth()); - $this->assertSame($obj->getStartMonth(), $obj->getStart_month()); - $obj->setStart_month(123); - $this->assertEquals($obj->getStart_month(), 123); - - // Check for Start_year - $obj->setStartYear(null); - $this->assertNull($obj->getStart_year()); - $this->assertNull($obj->getStartYear()); - $this->assertSame($obj->getStartYear(), $obj->getStart_year()); - $obj->setStart_year(123); - $this->assertEquals($obj->getStart_year(), 123); - - // Check for First_name - $obj->setFirstName(null); - $this->assertNull($obj->getFirst_name()); - $this->assertNull($obj->getFirstName()); - $this->assertSame($obj->getFirstName(), $obj->getFirst_name()); - $obj->setFirst_name("TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - - // Check for Last_name - $obj->setLastName(null); - $this->assertNull($obj->getLast_name()); - $this->assertNull($obj->getLastName()); - $this->assertSame($obj->getLastName(), $obj->getLast_name()); - $obj->setLast_name("TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - - // Check for Billing_address - $obj->setBillingAddress(null); - $this->assertNull($obj->getBilling_address()); - $this->assertNull($obj->getBillingAddress()); - $this->assertSame($obj->getBillingAddress(), $obj->getBilling_address()); - $obj->setBilling_address(AddressTest::getObject()); - $this->assertEquals($obj->getBilling_address(), AddressTest::getObject()); - - // Check for External_customer_id - $obj->setExternalCustomerId(null); - $this->assertNull($obj->getExternal_customer_id()); - $this->assertNull($obj->getExternalCustomerId()); - $this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id()); - $obj->setExternal_customer_id("TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - - // Check for Valid_until - $obj->setValidUntil(null); - $this->assertNull($obj->getValid_until()); - $this->assertNull($obj->getValidUntil()); - $this->assertSame($obj->getValidUntil(), $obj->getValid_until()); - $obj->setValid_until("TestSample"); - $this->assertEquals($obj->getValid_until(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PaymentCardTokenTest.php b/tests/PayPal/Test/Api/PaymentCardTokenTest.php index 132743a..2001330 100644 --- a/tests/PayPal/Test/Api/PaymentCardTokenTest.php +++ b/tests/PayPal/Test/Api/PaymentCardTokenTest.php @@ -63,62 +63,4 @@ class PaymentCardTokenTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getExpireYear(), 123); } - /** - * @depends testSerializationDeserialization - * @param PaymentCardToken $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getPayment_card_id(), "TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - $this->assertEquals($obj->getExpire_month(), 123); - $this->assertEquals($obj->getExpire_year(), 123); - } - - /** - * @depends testSerializationDeserialization - * @param PaymentCardToken $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Payment_card_id - $obj->setPaymentCardId(null); - $this->assertNull($obj->getPayment_card_id()); - $this->assertNull($obj->getPaymentCardId()); - $this->assertSame($obj->getPaymentCardId(), $obj->getPayment_card_id()); - $obj->setPayment_card_id("TestSample"); - $this->assertEquals($obj->getPayment_card_id(), "TestSample"); - - // Check for External_customer_id - $obj->setExternalCustomerId(null); - $this->assertNull($obj->getExternal_customer_id()); - $this->assertNull($obj->getExternalCustomerId()); - $this->assertSame($obj->getExternalCustomerId(), $obj->getExternal_customer_id()); - $obj->setExternal_customer_id("TestSample"); - $this->assertEquals($obj->getExternal_customer_id(), "TestSample"); - - // Check for Expire_month - $obj->setExpireMonth(null); - $this->assertNull($obj->getExpire_month()); - $this->assertNull($obj->getExpireMonth()); - $this->assertSame($obj->getExpireMonth(), $obj->getExpire_month()); - $obj->setExpire_month(123); - $this->assertEquals($obj->getExpire_month(), 123); - - // Check for Expire_year - $obj->setExpireYear(null); - $this->assertNull($obj->getExpire_year()); - $this->assertNull($obj->getExpireYear()); - $this->assertSame($obj->getExpireYear(), $obj->getExpire_year()); - $obj->setExpire_year(123); - $this->assertEquals($obj->getExpire_year(), 123); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PaymentDefinitionTest.php b/tests/PayPal/Test/Api/PaymentDefinitionTest.php index 74f0e89..fee1bbd 100644 --- a/tests/PayPal/Test/Api/PaymentDefinitionTest.php +++ b/tests/PayPal/Test/Api/PaymentDefinitionTest.php @@ -67,44 +67,4 @@ class PaymentDefinitionTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getChargeModels(), ChargeModelTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PaymentDefinition $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getFrequency_interval(), "TestSample"); - $this->assertEquals($obj->getCharge_models(), ChargeModelTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param PaymentDefinition $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Frequency_interval - $obj->setFrequencyInterval(null); - $this->assertNull($obj->getFrequency_interval()); - $this->assertNull($obj->getFrequencyInterval()); - $this->assertSame($obj->getFrequencyInterval(), $obj->getFrequency_interval()); - $obj->setFrequency_interval("TestSample"); - $this->assertEquals($obj->getFrequency_interval(), "TestSample"); - - // Check for Charge_models - $obj->setChargeModels(null); - $this->assertNull($obj->getCharge_models()); - $this->assertNull($obj->getChargeModels()); - $this->assertSame($obj->getChargeModels(), $obj->getCharge_models()); - $obj->setCharge_models(ChargeModelTest::getObject()); - $this->assertEquals($obj->getCharge_models(), ChargeModelTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PaymentDetailTest.php b/tests/PayPal/Test/Api/PaymentDetailTest.php index f299c37..fe0aa76 100644 --- a/tests/PayPal/Test/Api/PaymentDetailTest.php +++ b/tests/PayPal/Test/Api/PaymentDetailTest.php @@ -63,44 +63,4 @@ class PaymentDetailTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getNote(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param PaymentDetail $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getTransaction_id(), "TestSample"); - $this->assertEquals($obj->getTransaction_type(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param PaymentDetail $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Transaction_id - $obj->setTransactionId(null); - $this->assertNull($obj->getTransaction_id()); - $this->assertNull($obj->getTransactionId()); - $this->assertSame($obj->getTransactionId(), $obj->getTransaction_id()); - $obj->setTransaction_id("TestSample"); - $this->assertEquals($obj->getTransaction_id(), "TestSample"); - - // Check for Transaction_type - $obj->setTransactionType(null); - $this->assertNull($obj->getTransaction_type()); - $this->assertNull($obj->getTransactionType()); - $this->assertSame($obj->getTransactionType(), $obj->getTransaction_type()); - $obj->setTransaction_type("TestSample"); - $this->assertEquals($obj->getTransaction_type(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PaymentTermTest.php b/tests/PayPal/Test/Api/PaymentTermTest.php index 573af12..fcddfee 100644 --- a/tests/PayPal/Test/Api/PaymentTermTest.php +++ b/tests/PayPal/Test/Api/PaymentTermTest.php @@ -54,45 +54,5 @@ class PaymentTermTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getTermType(), "TestSample"); $this->assertEquals($obj->getDueDate(), "TestSample"); } - - /** - * @depends testSerializationDeserialization - * @param PaymentTerm $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getTerm_type(), "TestSample"); - $this->assertEquals($obj->getDue_date(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param PaymentTerm $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Term_type - $obj->setTermType(null); - $this->assertNull($obj->getTerm_type()); - $this->assertNull($obj->getTermType()); - $this->assertSame($obj->getTermType(), $obj->getTerm_type()); - $obj->setTerm_type("TestSample"); - $this->assertEquals($obj->getTerm_type(), "TestSample"); - - // Check for Due_date - $obj->setDueDate(null); - $this->assertNull($obj->getDue_date()); - $this->assertNull($obj->getDueDate()); - $this->assertSame($obj->getDueDate(), $obj->getDue_date()); - $obj->setDue_date("TestSample"); - $this->assertEquals($obj->getDue_date(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - + } diff --git a/tests/PayPal/Test/Api/PayoutBatchHeaderTest.php b/tests/PayPal/Test/Api/PayoutBatchHeaderTest.php index e9d2acf..8f8cca5 100644 --- a/tests/PayPal/Test/Api/PayoutBatchHeaderTest.php +++ b/tests/PayPal/Test/Api/PayoutBatchHeaderTest.php @@ -69,71 +69,4 @@ class PayoutBatchHeaderTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PayoutBatchHeader $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getPayout_batch_id(), "TestSample"); - $this->assertEquals($obj->getBatch_status(), "TestSample"); - $this->assertEquals($obj->getTime_created(), "TestSample"); - $this->assertEquals($obj->getTime_completed(), "TestSample"); - $this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param PayoutBatchHeader $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Payout_batch_id - $obj->setPayoutBatchId(null); - $this->assertNull($obj->getPayout_batch_id()); - $this->assertNull($obj->getPayoutBatchId()); - $this->assertSame($obj->getPayoutBatchId(), $obj->getPayout_batch_id()); - $obj->setPayout_batch_id("TestSample"); - $this->assertEquals($obj->getPayout_batch_id(), "TestSample"); - - // Check for Batch_status - $obj->setBatchStatus(null); - $this->assertNull($obj->getBatch_status()); - $this->assertNull($obj->getBatchStatus()); - $this->assertSame($obj->getBatchStatus(), $obj->getBatch_status()); - $obj->setBatch_status("TestSample"); - $this->assertEquals($obj->getBatch_status(), "TestSample"); - - // Check for Time_created - $obj->setTimeCreated(null); - $this->assertNull($obj->getTime_created()); - $this->assertNull($obj->getTimeCreated()); - $this->assertSame($obj->getTimeCreated(), $obj->getTime_created()); - $obj->setTime_created("TestSample"); - $this->assertEquals($obj->getTime_created(), "TestSample"); - - // Check for Time_completed - $obj->setTimeCompleted(null); - $this->assertNull($obj->getTime_completed()); - $this->assertNull($obj->getTimeCompleted()); - $this->assertSame($obj->getTimeCompleted(), $obj->getTime_completed()); - $obj->setTime_completed("TestSample"); - $this->assertEquals($obj->getTime_completed(), "TestSample"); - - // Check for Sender_batch_header - $obj->setSenderBatchHeader(null); - $this->assertNull($obj->getSender_batch_header()); - $this->assertNull($obj->getSenderBatchHeader()); - $this->assertSame($obj->getSenderBatchHeader(), $obj->getSender_batch_header()); - $obj->setSender_batch_header(PayoutSenderBatchHeaderTest::getObject()); - $this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PayoutBatchTest.php b/tests/PayPal/Test/Api/PayoutBatchTest.php index 34804d5..bf7c9c2 100644 --- a/tests/PayPal/Test/Api/PayoutBatchTest.php +++ b/tests/PayPal/Test/Api/PayoutBatchTest.php @@ -55,35 +55,4 @@ class PayoutBatchTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getItems(), PayoutItemDetailsTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PayoutBatch $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getBatch_header(), PayoutBatchHeaderTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param PayoutBatch $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Batch_header - $obj->setBatchHeader(null); - $this->assertNull($obj->getBatch_header()); - $this->assertNull($obj->getBatchHeader()); - $this->assertSame($obj->getBatchHeader(), $obj->getBatch_header()); - $obj->setBatch_header(PayoutBatchHeaderTest::getObject()); - $this->assertEquals($obj->getBatch_header(), PayoutBatchHeaderTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PayoutItemDetailsTest.php b/tests/PayPal/Test/Api/PayoutItemDetailsTest.php index 391e84c..64a02a1 100644 --- a/tests/PayPal/Test/Api/PayoutItemDetailsTest.php +++ b/tests/PayPal/Test/Api/PayoutItemDetailsTest.php @@ -71,98 +71,4 @@ class PayoutItemDetailsTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PayoutItemDetails $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getPayout_item_id(), "TestSample"); - $this->assertEquals($obj->getTransaction_id(), "TestSample"); - $this->assertEquals($obj->getTransaction_status(), "TestSample"); - $this->assertEquals($obj->getPayout_item_fee(), CurrencyTest::getObject()); - $this->assertEquals($obj->getPayout_batch_id(), "TestSample"); - $this->assertEquals($obj->getSender_batch_id(), "TestSample"); - $this->assertEquals($obj->getPayout_item(), PayoutItemTest::getObject()); - $this->assertEquals($obj->getTime_processed(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param PayoutItemDetails $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Payout_item_id - $obj->setPayoutItemId(null); - $this->assertNull($obj->getPayout_item_id()); - $this->assertNull($obj->getPayoutItemId()); - $this->assertSame($obj->getPayoutItemId(), $obj->getPayout_item_id()); - $obj->setPayout_item_id("TestSample"); - $this->assertEquals($obj->getPayout_item_id(), "TestSample"); - - // Check for Transaction_id - $obj->setTransactionId(null); - $this->assertNull($obj->getTransaction_id()); - $this->assertNull($obj->getTransactionId()); - $this->assertSame($obj->getTransactionId(), $obj->getTransaction_id()); - $obj->setTransaction_id("TestSample"); - $this->assertEquals($obj->getTransaction_id(), "TestSample"); - - // Check for Transaction_status - $obj->setTransactionStatus(null); - $this->assertNull($obj->getTransaction_status()); - $this->assertNull($obj->getTransactionStatus()); - $this->assertSame($obj->getTransactionStatus(), $obj->getTransaction_status()); - $obj->setTransaction_status( "TestSample"); - $this->assertEquals($obj->getTransaction_status(), "TestSample"); - - // Check for Payout_item_fee - $obj->setPayoutItemFee(null); - $this->assertNull($obj->getPayout_item_fee()); - $this->assertNull($obj->getPayoutItemFee()); - $this->assertSame($obj->getPayoutItemFee(), $obj->getPayout_item_fee()); - $obj->setPayout_item_fee(CurrencyTest::getObject()); - $this->assertEquals($obj->getPayout_item_fee(), CurrencyTest::getObject()); - - // Check for Payout_batch_id - $obj->setPayoutBatchId(null); - $this->assertNull($obj->getPayout_batch_id()); - $this->assertNull($obj->getPayoutBatchId()); - $this->assertSame($obj->getPayoutBatchId(), $obj->getPayout_batch_id()); - $obj->setPayout_batch_id("TestSample"); - $this->assertEquals($obj->getPayout_batch_id(), "TestSample"); - - // Check for Sender_batch_id - $obj->setSenderBatchId(null); - $this->assertNull($obj->getSender_batch_id()); - $this->assertNull($obj->getSenderBatchId()); - $this->assertSame($obj->getSenderBatchId(), $obj->getSender_batch_id()); - $obj->setSender_batch_id("TestSample"); - $this->assertEquals($obj->getSender_batch_id(), "TestSample"); - - // Check for Payout_item - $obj->setPayoutItem(null); - $this->assertNull($obj->getPayout_item()); - $this->assertNull($obj->getPayoutItem()); - $this->assertSame($obj->getPayoutItem(), $obj->getPayout_item()); - $obj->setPayout_item(PayoutItemTest::getObject()); - $this->assertEquals($obj->getPayout_item(), PayoutItemTest::getObject()); - - // Check for Time_processed - $obj->setTimeProcessed(null); - $this->assertNull($obj->getTime_processed()); - $this->assertNull($obj->getTimeProcessed()); - $this->assertSame($obj->getTimeProcessed(), $obj->getTime_processed()); - $obj->setTime_processed("TestSample"); - $this->assertEquals($obj->getTime_processed(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PayoutItemTest.php b/tests/PayPal/Test/Api/PayoutItemTest.php index 6496a31..b479c64 100644 --- a/tests/PayPal/Test/Api/PayoutItemTest.php +++ b/tests/PayPal/Test/Api/PayoutItemTest.php @@ -65,45 +65,6 @@ class PayoutItemTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getSenderItemId(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param PayoutItem $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getRecipient_type(), "TestSample"); - $this->assertEquals($obj->getSender_item_id(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param PayoutItem $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Recipient_type - $obj->setRecipientType(null); - $this->assertNull($obj->getRecipient_type()); - $this->assertNull($obj->getRecipientType()); - $this->assertSame($obj->getRecipientType(), $obj->getRecipient_type()); - $obj->setRecipient_type("TestSample"); - $this->assertEquals($obj->getRecipient_type(), "TestSample"); - - // Check for Sender_item_id - $obj->setSenderItemId(null); - $this->assertNull($obj->getSender_item_id()); - $this->assertNull($obj->getSenderItemId()); - $this->assertSame($obj->getSenderItemId(), $obj->getSender_item_id()); - $obj->setSender_item_id("TestSample"); - $this->assertEquals($obj->getSender_item_id(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param PayoutItem $obj diff --git a/tests/PayPal/Test/Api/PayoutSenderBatchHeaderTest.php b/tests/PayPal/Test/Api/PayoutSenderBatchHeaderTest.php index 0d1d78e..f3fbf0f 100644 --- a/tests/PayPal/Test/Api/PayoutSenderBatchHeaderTest.php +++ b/tests/PayPal/Test/Api/PayoutSenderBatchHeaderTest.php @@ -57,53 +57,4 @@ class PayoutSenderBatchHeaderTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getRecipientType(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param PayoutSenderBatchHeader $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getSender_batch_id(), "TestSample"); - $this->assertEquals($obj->getEmail_subject(), "TestSample"); - $this->assertEquals($obj->getRecipient_type(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param PayoutSenderBatchHeader $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Sender_batch_id - $obj->setSenderBatchId(null); - $this->assertNull($obj->getSender_batch_id()); - $this->assertNull($obj->getSenderBatchId()); - $this->assertSame($obj->getSenderBatchId(), $obj->getSender_batch_id()); - $obj->setSender_batch_id("TestSample"); - $this->assertEquals($obj->getSender_batch_id(), "TestSample"); - - // Check for Email_subject - $obj->setEmailSubject(null); - $this->assertNull($obj->getEmail_subject()); - $this->assertNull($obj->getEmailSubject()); - $this->assertSame($obj->getEmailSubject(), $obj->getEmail_subject()); - $obj->setEmail_subject("TestSample"); - $this->assertEquals($obj->getEmail_subject(), "TestSample"); - - // Check for Recipient_type - $obj->setRecipientType(null); - $this->assertNull($obj->getRecipient_type()); - $this->assertNull($obj->getRecipientType()); - $this->assertSame($obj->getRecipientType(), $obj->getRecipient_type()); - $obj->setRecipient_type("TestSample"); - $this->assertEquals($obj->getRecipient_type(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PayoutTest.php b/tests/PayPal/Test/Api/PayoutTest.php index 2d52f7e..155e12e 100644 --- a/tests/PayPal/Test/Api/PayoutTest.php +++ b/tests/PayPal/Test/Api/PayoutTest.php @@ -56,36 +56,6 @@ class PayoutTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Payout $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param Payout $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Sender_batch_header - $obj->setSenderBatchHeader(null); - $this->assertNull($obj->getSender_batch_header()); - $this->assertNull($obj->getSenderBatchHeader()); - $this->assertSame($obj->getSenderBatchHeader(), $obj->getSender_batch_header()); - $obj->setSender_batch_header(PayoutSenderBatchHeaderTest::getObject()); - $this->assertEquals($obj->getSender_batch_header(), PayoutSenderBatchHeaderTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param Payout $obj diff --git a/tests/PayPal/Test/Api/PhoneTest.php b/tests/PayPal/Test/Api/PhoneTest.php index 9e7903c..aca488d 100644 --- a/tests/PayPal/Test/Api/PhoneTest.php +++ b/tests/PayPal/Test/Api/PhoneTest.php @@ -55,44 +55,4 @@ class PhoneTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getNationalNumber(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Phone $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCountry_code(), "TestSample"); - $this->assertEquals($obj->getNational_number(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param Phone $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Country_code - $obj->setCountryCode(null); - $this->assertNull($obj->getCountry_code()); - $this->assertNull($obj->getCountryCode()); - $this->assertSame($obj->getCountryCode(), $obj->getCountry_code()); - $obj->setCountry_code("TestSample"); - $this->assertEquals($obj->getCountry_code(), "TestSample"); - - // Check for National_number - $obj->setNationalNumber(null); - $this->assertNull($obj->getNational_number()); - $this->assertNull($obj->getNationalNumber()); - $this->assertSame($obj->getNationalNumber(), $obj->getNational_number()); - $obj->setNational_number("TestSample"); - $this->assertEquals($obj->getNational_number(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PlanListTest.php b/tests/PayPal/Test/Api/PlanListTest.php index f0ca05f..3301e57 100644 --- a/tests/PayPal/Test/Api/PlanListTest.php +++ b/tests/PayPal/Test/Api/PlanListTest.php @@ -59,44 +59,4 @@ class PlanListTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param PlanList $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getTotal_items(), "TestSample"); - $this->assertEquals($obj->getTotal_pages(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param PlanList $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Total_items - $obj->setTotalItems(null); - $this->assertNull($obj->getTotal_items()); - $this->assertNull($obj->getTotalItems()); - $this->assertSame($obj->getTotalItems(), $obj->getTotal_items()); - $obj->setTotal_items("TestSample"); - $this->assertEquals($obj->getTotal_items(), "TestSample"); - - // Check for Total_pages - $obj->setTotalPages(null); - $this->assertNull($obj->getTotal_pages()); - $this->assertNull($obj->getTotalPages()); - $this->assertSame($obj->getTotalPages(), $obj->getTotal_pages()); - $obj->setTotal_pages("TestSample"); - $this->assertEquals($obj->getTotal_pages(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/PlanTest.php b/tests/PayPal/Test/Api/PlanTest.php index e0edbbd..82ba1bb 100644 --- a/tests/PayPal/Test/Api/PlanTest.php +++ b/tests/PayPal/Test/Api/PlanTest.php @@ -77,63 +77,6 @@ class PlanTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Plan $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCreate_time(), "TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - $this->assertEquals($obj->getPayment_definitions(), PaymentDefinitionTest::getObject()); - $this->assertEquals($obj->getMerchant_preferences(), MerchantPreferencesTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param Plan $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Create_time - $obj->setCreateTime(null); - $this->assertNull($obj->getCreate_time()); - $this->assertNull($obj->getCreateTime()); - $this->assertSame($obj->getCreateTime(), $obj->getCreate_time()); - $obj->setCreate_time("TestSample"); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - - // Check for Update_time - $obj->setUpdateTime(null); - $this->assertNull($obj->getUpdate_time()); - $this->assertNull($obj->getUpdateTime()); - $this->assertSame($obj->getUpdateTime(), $obj->getUpdate_time()); - $obj->setUpdate_time("TestSample"); - $this->assertEquals($obj->getUpdate_time(), "TestSample"); - - // Check for Payment_definitions - $obj->setPaymentDefinitions(null); - $this->assertNull($obj->getPayment_definitions()); - $this->assertNull($obj->getPaymentDefinitions()); - $this->assertSame($obj->getPaymentDefinitions(), $obj->getPayment_definitions()); - $obj->setPayment_definitions(PaymentDefinitionTest::getObject()); - $this->assertEquals($obj->getPayment_definitions(), PaymentDefinitionTest::getObject()); - - // Check for Merchant_preferences - $obj->setMerchantPreferences(null); - $this->assertNull($obj->getMerchant_preferences()); - $this->assertNull($obj->getMerchantPreferences()); - $this->assertSame($obj->getMerchantPreferences(), $obj->getMerchant_preferences()); - $obj->setMerchant_preferences(MerchantPreferencesTest::getObject()); - $this->assertEquals($obj->getMerchant_preferences(), MerchantPreferencesTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param Plan $obj diff --git a/tests/PayPal/Test/Api/PresentationTest.php b/tests/PayPal/Test/Api/PresentationTest.php index 4603e20..debef88 100644 --- a/tests/PayPal/Test/Api/PresentationTest.php +++ b/tests/PayPal/Test/Api/PresentationTest.php @@ -57,53 +57,4 @@ class PresentationTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLocaleCode(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Presentation $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getBrand_name(), "TestSample"); - $this->assertEquals($obj->getLogo_image(), "TestSample"); - $this->assertEquals($obj->getLocale_code(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param Presentation $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Brand_name - $obj->setBrandName(null); - $this->assertNull($obj->getBrand_name()); - $this->assertNull($obj->getBrandName()); - $this->assertSame($obj->getBrandName(), $obj->getBrand_name()); - $obj->setBrand_name("TestSample"); - $this->assertEquals($obj->getBrand_name(), "TestSample"); - - // Check for Logo_image - $obj->setLogoImage(null); - $this->assertNull($obj->getLogo_image()); - $this->assertNull($obj->getLogoImage()); - $this->assertSame($obj->getLogoImage(), $obj->getLogo_image()); - $obj->setLogo_image("TestSample"); - $this->assertEquals($obj->getLogo_image(), "TestSample"); - - // Check for Locale_code - $obj->setLocaleCode(null); - $this->assertNull($obj->getLocale_code()); - $this->assertNull($obj->getLocaleCode()); - $this->assertSame($obj->getLocaleCode(), $obj->getLocale_code()); - $obj->setLocale_code("TestSample"); - $this->assertEquals($obj->getLocale_code(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/RefundDetailTest.php b/tests/PayPal/Test/Api/RefundDetailTest.php index 3ff56b3..6ccd4f6 100644 --- a/tests/PayPal/Test/Api/RefundDetailTest.php +++ b/tests/PayPal/Test/Api/RefundDetailTest.php @@ -57,26 +57,4 @@ class RefundDetailTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getNote(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param RefundDetail $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param RefundDetail $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/SearchTest.php b/tests/PayPal/Test/Api/SearchTest.php index ce8ec2a..d5495b8 100644 --- a/tests/PayPal/Test/Api/SearchTest.php +++ b/tests/PayPal/Test/Api/SearchTest.php @@ -89,161 +89,4 @@ class SearchTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getTotalCountRequired(), true); } - /** - * @depends testSerializationDeserialization - * @param Search $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getRecipient_first_name(), "TestSample"); - $this->assertEquals($obj->getRecipient_last_name(), "TestSample"); - $this->assertEquals($obj->getRecipient_business_name(), "TestSample"); - $this->assertEquals($obj->getLower_total_amount(), CurrencyTest::getObject()); - $this->assertEquals($obj->getUpper_total_amount(), CurrencyTest::getObject()); - $this->assertEquals($obj->getStart_invoice_date(), "TestSample"); - $this->assertEquals($obj->getEnd_invoice_date(), "TestSample"); - $this->assertEquals($obj->getStart_due_date(), "TestSample"); - $this->assertEquals($obj->getEnd_due_date(), "TestSample"); - $this->assertEquals($obj->getStart_payment_date(), "TestSample"); - $this->assertEquals($obj->getEnd_payment_date(), "TestSample"); - $this->assertEquals($obj->getStart_creation_date(), "TestSample"); - $this->assertEquals($obj->getEnd_creation_date(), "TestSample"); - $this->assertEquals($obj->getPage_size(), "12.34"); - $this->assertEquals($obj->getTotal_count_required(), true); - } - - /** - * @depends testSerializationDeserialization - * @param Search $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Recipient_first_name - $obj->setRecipientFirstName(null); - $this->assertNull($obj->getRecipient_first_name()); - $this->assertNull($obj->getRecipientFirstName()); - $this->assertSame($obj->getRecipientFirstName(), $obj->getRecipient_first_name()); - $obj->setRecipient_first_name("TestSample"); - $this->assertEquals($obj->getRecipient_first_name(), "TestSample"); - - // Check for Recipient_last_name - $obj->setRecipientLastName(null); - $this->assertNull($obj->getRecipient_last_name()); - $this->assertNull($obj->getRecipientLastName()); - $this->assertSame($obj->getRecipientLastName(), $obj->getRecipient_last_name()); - $obj->setRecipient_last_name("TestSample"); - $this->assertEquals($obj->getRecipient_last_name(), "TestSample"); - - // Check for Recipient_business_name - $obj->setRecipientBusinessName(null); - $this->assertNull($obj->getRecipient_business_name()); - $this->assertNull($obj->getRecipientBusinessName()); - $this->assertSame($obj->getRecipientBusinessName(), $obj->getRecipient_business_name()); - $obj->setRecipient_business_name("TestSample"); - $this->assertEquals($obj->getRecipient_business_name(), "TestSample"); - - // Check for Lower_total_amount - $obj->setLowerTotalAmount(null); - $this->assertNull($obj->getLower_total_amount()); - $this->assertNull($obj->getLowerTotalAmount()); - $this->assertSame($obj->getLowerTotalAmount(), $obj->getLower_total_amount()); - $obj->setLower_total_amount(CurrencyTest::getObject()); - $this->assertEquals($obj->getLower_total_amount(), CurrencyTest::getObject()); - - // Check for Upper_total_amount - $obj->setUpperTotalAmount(null); - $this->assertNull($obj->getUpper_total_amount()); - $this->assertNull($obj->getUpperTotalAmount()); - $this->assertSame($obj->getUpperTotalAmount(), $obj->getUpper_total_amount()); - $obj->setUpper_total_amount(CurrencyTest::getObject()); - $this->assertEquals($obj->getUpper_total_amount(), CurrencyTest::getObject()); - - // Check for Start_invoice_date - $obj->setStartInvoiceDate(null); - $this->assertNull($obj->getStart_invoice_date()); - $this->assertNull($obj->getStartInvoiceDate()); - $this->assertSame($obj->getStartInvoiceDate(), $obj->getStart_invoice_date()); - $obj->setStart_invoice_date("TestSample"); - $this->assertEquals($obj->getStart_invoice_date(), "TestSample"); - - // Check for End_invoice_date - $obj->setEndInvoiceDate(null); - $this->assertNull($obj->getEnd_invoice_date()); - $this->assertNull($obj->getEndInvoiceDate()); - $this->assertSame($obj->getEndInvoiceDate(), $obj->getEnd_invoice_date()); - $obj->setEnd_invoice_date("TestSample"); - $this->assertEquals($obj->getEnd_invoice_date(), "TestSample"); - - // Check for Start_due_date - $obj->setStartDueDate(null); - $this->assertNull($obj->getStart_due_date()); - $this->assertNull($obj->getStartDueDate()); - $this->assertSame($obj->getStartDueDate(), $obj->getStart_due_date()); - $obj->setStart_due_date("TestSample"); - $this->assertEquals($obj->getStart_due_date(), "TestSample"); - - // Check for End_due_date - $obj->setEndDueDate(null); - $this->assertNull($obj->getEnd_due_date()); - $this->assertNull($obj->getEndDueDate()); - $this->assertSame($obj->getEndDueDate(), $obj->getEnd_due_date()); - $obj->setEnd_due_date("TestSample"); - $this->assertEquals($obj->getEnd_due_date(), "TestSample"); - - // Check for Start_payment_date - $obj->setStartPaymentDate(null); - $this->assertNull($obj->getStart_payment_date()); - $this->assertNull($obj->getStartPaymentDate()); - $this->assertSame($obj->getStartPaymentDate(), $obj->getStart_payment_date()); - $obj->setStart_payment_date("TestSample"); - $this->assertEquals($obj->getStart_payment_date(), "TestSample"); - - // Check for End_payment_date - $obj->setEndPaymentDate(null); - $this->assertNull($obj->getEnd_payment_date()); - $this->assertNull($obj->getEndPaymentDate()); - $this->assertSame($obj->getEndPaymentDate(), $obj->getEnd_payment_date()); - $obj->setEnd_payment_date("TestSample"); - $this->assertEquals($obj->getEnd_payment_date(), "TestSample"); - - // Check for Start_creation_date - $obj->setStartCreationDate(null); - $this->assertNull($obj->getStart_creation_date()); - $this->assertNull($obj->getStartCreationDate()); - $this->assertSame($obj->getStartCreationDate(), $obj->getStart_creation_date()); - $obj->setStart_creation_date("TestSample"); - $this->assertEquals($obj->getStart_creation_date(), "TestSample"); - - // Check for End_creation_date - $obj->setEndCreationDate(null); - $this->assertNull($obj->getEnd_creation_date()); - $this->assertNull($obj->getEndCreationDate()); - $this->assertSame($obj->getEndCreationDate(), $obj->getEnd_creation_date()); - $obj->setEnd_creation_date("TestSample"); - $this->assertEquals($obj->getEnd_creation_date(), "TestSample"); - - // Check for Page_size - $obj->setPageSize(null); - $this->assertNull($obj->getPage_size()); - $this->assertNull($obj->getPageSize()); - $this->assertSame($obj->getPageSize(), $obj->getPage_size()); - $obj->setPage_size("12.34"); - $this->assertEquals($obj->getPage_size(), "12.34"); - - // Check for Total_count_required - $obj->setTotalCountRequired(null); - $this->assertNull($obj->getTotal_count_required()); - $this->assertNull($obj->getTotalCountRequired()); - $this->assertSame($obj->getTotalCountRequired(), $obj->getTotal_count_required()); - $obj->setTotal_count_required(true); - $this->assertEquals($obj->getTotal_count_required(), true); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ShippingAddressTest.php b/tests/PayPal/Test/Api/ShippingAddressTest.php index 37d729b..bbe02b0 100644 --- a/tests/PayPal/Test/Api/ShippingAddressTest.php +++ b/tests/PayPal/Test/Api/ShippingAddressTest.php @@ -57,44 +57,4 @@ class ShippingAddressTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getDefaultAddress(), true); } - /** - * @depends testSerializationDeserialization - * @param ShippingAddress $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getRecipient_name(), "TestSample"); - $this->assertEquals($obj->getDefault_address(), true); - } - - /** - * @depends testSerializationDeserialization - * @param ShippingAddress $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Recipient_name - $obj->setRecipientName(null); - $this->assertNull($obj->getRecipient_name()); - $this->assertNull($obj->getRecipientName()); - $this->assertSame($obj->getRecipientName(), $obj->getRecipient_name()); - $obj->setRecipient_name("TestSample"); - $this->assertEquals($obj->getRecipient_name(), "TestSample"); - - // Check for Default_address - $obj->setDefaultAddress(null); - $this->assertNull($obj->getDefault_address()); - $this->assertNull($obj->getDefaultAddress()); - $this->assertSame($obj->getDefaultAddress(), $obj->getDefault_address()); - $obj->setDefault_address(true); - $this->assertEquals($obj->getDefault_address(), true); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ShippingCostTest.php b/tests/PayPal/Test/Api/ShippingCostTest.php index 3dca5ff..8cbf446 100644 --- a/tests/PayPal/Test/Api/ShippingCostTest.php +++ b/tests/PayPal/Test/Api/ShippingCostTest.php @@ -55,26 +55,4 @@ class ShippingCostTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getTax(), TaxTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param ShippingCost $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param ShippingCost $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/ShippingInfoTest.php b/tests/PayPal/Test/Api/ShippingInfoTest.php index 4d22b27..1ac4e2d 100644 --- a/tests/PayPal/Test/Api/ShippingInfoTest.php +++ b/tests/PayPal/Test/Api/ShippingInfoTest.php @@ -59,53 +59,4 @@ class ShippingInfoTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAddress(), AddressTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param ShippingInfo $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getFirst_name(), "TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - $this->assertEquals($obj->getBusiness_name(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param ShippingInfo $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for First_name - $obj->setFirstName(null); - $this->assertNull($obj->getFirst_name()); - $this->assertNull($obj->getFirstName()); - $this->assertSame($obj->getFirstName(), $obj->getFirst_name()); - $obj->setFirst_name("TestSample"); - $this->assertEquals($obj->getFirst_name(), "TestSample"); - - // Check for Last_name - $obj->setLastName(null); - $this->assertNull($obj->getLast_name()); - $this->assertNull($obj->getLastName()); - $this->assertSame($obj->getLastName(), $obj->getLast_name()); - $obj->setLast_name("TestSample"); - $this->assertEquals($obj->getLast_name(), "TestSample"); - - // Check for Business_name - $obj->setBusinessName(null); - $this->assertNull($obj->getBusiness_name()); - $this->assertNull($obj->getBusinessName()); - $this->assertSame($obj->getBusinessName(), $obj->getBusiness_name()); - $obj->setBusiness_name("TestSample"); - $this->assertEquals($obj->getBusiness_name(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/TaxTest.php b/tests/PayPal/Test/Api/TaxTest.php index 8650b51..bd75a8b 100644 --- a/tests/PayPal/Test/Api/TaxTest.php +++ b/tests/PayPal/Test/Api/TaxTest.php @@ -59,26 +59,4 @@ class TaxTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getAmount(), CurrencyTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Tax $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param Tax $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/TermsTest.php b/tests/PayPal/Test/Api/TermsTest.php index f2ecd58..c835d34 100644 --- a/tests/PayPal/Test/Api/TermsTest.php +++ b/tests/PayPal/Test/Api/TermsTest.php @@ -63,53 +63,4 @@ class TermsTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getBuyerEditable(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param Terms $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getMax_billing_amount(), CurrencyTest::getObject()); - $this->assertEquals($obj->getAmount_range(), CurrencyTest::getObject()); - $this->assertEquals($obj->getBuyer_editable(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param Terms $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Max_billing_amount - $obj->setMaxBillingAmount(null); - $this->assertNull($obj->getMax_billing_amount()); - $this->assertNull($obj->getMaxBillingAmount()); - $this->assertSame($obj->getMaxBillingAmount(), $obj->getMax_billing_amount()); - $obj->setMax_billing_amount(CurrencyTest::getObject()); - $this->assertEquals($obj->getMax_billing_amount(), CurrencyTest::getObject()); - - // Check for Amount_range - $obj->setAmountRange(null); - $this->assertNull($obj->getAmount_range()); - $this->assertNull($obj->getAmountRange()); - $this->assertSame($obj->getAmountRange(), $obj->getAmount_range()); - $obj->setAmount_range(CurrencyTest::getObject()); - $this->assertEquals($obj->getAmount_range(), CurrencyTest::getObject()); - - // Check for Buyer_editable - $obj->setBuyerEditable(null); - $this->assertNull($obj->getBuyer_editable()); - $this->assertNull($obj->getBuyerEditable()); - $this->assertSame($obj->getBuyerEditable(), $obj->getBuyer_editable()); - $obj->setBuyer_editable("TestSample"); - $this->assertEquals($obj->getBuyer_editable(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/WebProfileTest.php b/tests/PayPal/Test/Api/WebProfileTest.php index 2383638..ad276c0 100644 --- a/tests/PayPal/Test/Api/WebProfileTest.php +++ b/tests/PayPal/Test/Api/WebProfileTest.php @@ -65,45 +65,6 @@ class WebProfileTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getPresentation(), PresentationTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param WebProfile $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getFlow_config(), FlowConfigTest::getObject()); - $this->assertEquals($obj->getInput_fields(), InputFieldsTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param WebProfile $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Flow_config - $obj->setFlowConfig(null); - $this->assertNull($obj->getFlow_config()); - $this->assertNull($obj->getFlowConfig()); - $this->assertSame($obj->getFlowConfig(), $obj->getFlow_config()); - $obj->setFlow_config(FlowConfigTest::getObject()); - $this->assertEquals($obj->getFlow_config(), FlowConfigTest::getObject()); - - // Check for Input_fields - $obj->setInputFields(null); - $this->assertNull($obj->getInput_fields()); - $this->assertNull($obj->getInputFields()); - $this->assertSame($obj->getInputFields(), $obj->getInput_fields()); - $obj->setInput_fields(InputFieldsTest::getObject()); - $this->assertEquals($obj->getInput_fields(), InputFieldsTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param WebProfile $obj diff --git a/tests/PayPal/Test/Api/WebhookEventListTest.php b/tests/PayPal/Test/Api/WebhookEventListTest.php index 82c5703..aae8b9a 100644 --- a/tests/PayPal/Test/Api/WebhookEventListTest.php +++ b/tests/PayPal/Test/Api/WebhookEventListTest.php @@ -57,26 +57,4 @@ class WebhookEventListTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param WebhookEventList $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param WebhookEventList $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/WebhookEventTest.php b/tests/PayPal/Test/Api/WebhookEventTest.php index 12212b5..99acb63 100644 --- a/tests/PayPal/Test/Api/WebhookEventTest.php +++ b/tests/PayPal/Test/Api/WebhookEventTest.php @@ -69,54 +69,6 @@ class WebhookEventTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param WebhookEvent $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getCreate_time(), "TestSample"); - $this->assertEquals($obj->getResource_type(), "TestSample"); - $this->assertEquals($obj->getEvent_type(), "TestSample"); - } - - /** - * @depends testSerializationDeserialization - * @param WebhookEvent $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Create_time - $obj->setCreateTime(null); - $this->assertNull($obj->getCreate_time()); - $this->assertNull($obj->getCreateTime()); - $this->assertSame($obj->getCreateTime(), $obj->getCreate_time()); - $obj->setCreate_time("TestSample"); - $this->assertEquals($obj->getCreate_time(), "TestSample"); - - // Check for Resource_type - $obj->setResourceType(null); - $this->assertNull($obj->getResource_type()); - $this->assertNull($obj->getResourceType()); - $this->assertSame($obj->getResourceType(), $obj->getResource_type()); - $obj->setResource_type("TestSample"); - $this->assertEquals($obj->getResource_type(), "TestSample"); - - // Check for Event_type - $obj->setEventType(null); - $this->assertNull($obj->getEvent_type()); - $this->assertNull($obj->getEventType()); - $this->assertSame($obj->getEventType(), $obj->getEvent_type()); - $obj->setEvent_type("TestSample"); - $this->assertEquals($obj->getEvent_type(), "TestSample"); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param WebhookEvent $obj diff --git a/tests/PayPal/Test/Api/WebhookEventTypeListTest.php b/tests/PayPal/Test/Api/WebhookEventTypeListTest.php index 9382c8f..a38a52c 100644 --- a/tests/PayPal/Test/Api/WebhookEventTypeListTest.php +++ b/tests/PayPal/Test/Api/WebhookEventTypeListTest.php @@ -53,35 +53,4 @@ class WebhookEventTypeListTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getEventTypes(), WebhookEventTypeTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param WebhookEventTypeList $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param WebhookEventTypeList $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Event_types - $obj->setEventTypes(null); - $this->assertNull($obj->getEvent_types()); - $this->assertNull($obj->getEventTypes()); - $this->assertSame($obj->getEventTypes(), $obj->getEvent_types()); - $obj->setEvent_types(WebhookEventTypeTest::getObject()); - $this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/WebhookEventTypeTest.php b/tests/PayPal/Test/Api/WebhookEventTypeTest.php index b1202fe..f107209 100644 --- a/tests/PayPal/Test/Api/WebhookEventTypeTest.php +++ b/tests/PayPal/Test/Api/WebhookEventTypeTest.php @@ -59,27 +59,6 @@ class WebhookEventTypeTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getDescription(), "TestSample"); } - /** - * @depends testSerializationDeserialization - * @param WebhookEventType $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param WebhookEventType $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - /** * @dataProvider mockProvider * @param WebhookEventType $obj diff --git a/tests/PayPal/Test/Api/WebhookListTest.php b/tests/PayPal/Test/Api/WebhookListTest.php index ae94e15..4eb2cef 100644 --- a/tests/PayPal/Test/Api/WebhookListTest.php +++ b/tests/PayPal/Test/Api/WebhookListTest.php @@ -53,26 +53,4 @@ class WebhookListTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getWebhooks(), WebhookTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param WebhookList $obj - */ - public function testDeprecatedGetters($obj) - { - } - - /** - * @depends testSerializationDeserialization - * @param WebhookList $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - - - } diff --git a/tests/PayPal/Test/Api/WebhookTest.php b/tests/PayPal/Test/Api/WebhookTest.php index 35d9255..99382db 100644 --- a/tests/PayPal/Test/Api/WebhookTest.php +++ b/tests/PayPal/Test/Api/WebhookTest.php @@ -63,35 +63,6 @@ class WebhookTest extends \PHPUnit_Framework_TestCase $this->assertEquals($obj->getLinks(), LinksTest::getObject()); } - /** - * @depends testSerializationDeserialization - * @param Webhook $obj - */ - public function testDeprecatedGetters($obj) - { - $this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject()); - } - - /** - * @depends testSerializationDeserialization - * @param Webhook $obj - */ - public function testDeprecatedSetterNormalGetter($obj) - { - - // Check for Event_types - $obj->setEventTypes(null); - $this->assertNull($obj->getEvent_types()); - $this->assertNull($obj->getEventTypes()); - $this->assertSame($obj->getEventTypes(), $obj->getEvent_types()); - $obj->setEvent_types(WebhookEventTypeTest::getObject()); - $this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject()); - - //Test All Deprecated Getters and Normal Getters - $this->testDeprecatedGetters($obj); - $this->testGetters($obj); - } - /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Url is not a fully qualified URL diff --git a/tests/PayPal/Test/Common/FormatConverterTest.php b/tests/PayPal/Test/Common/FormatConverterTest.php index fc694d0..6317eb8 100644 --- a/tests/PayPal/Test/Common/FormatConverterTest.php +++ b/tests/PayPal/Test/Common/FormatConverterTest.php @@ -66,7 +66,7 @@ class FormatConverterTest extends \PHPUnit_Framework_TestCase */ public function testFormatToTwoDecimalPlaces($input, $expected) { - $result = FormatConverter::formatToTwoDecimalPlaces($input); + $result = FormatConverter::formatToNumber($input); $this->assertEquals($expected, $result); }