Version Notes
ADDED: multilanguage feature for Login with Amazon
ADDED: store name to SetOrderReferenceDetails call
ADDED: reason code of the transaction status directly to the order comments
ADDED: re-authorization after the first authorization expires
ADDED: putting order on hold for some kinds of closed authorization
UPDATED: Amazon Payments SDK library to 1.0.14
FIXED: Firefox redirect experience issue
FIXED: helper function for splitting full customer name
Download this release
Release Info
Developer | creativestyle GmbH |
Extension | Creativestyle_AmazonPayments |
Version | 1.7.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.4 to 1.7.2
- app/code/community/Creativestyle/AmazonPayments/Block/Button/Js.php +4 -0
- app/code/community/Creativestyle/AmazonPayments/Helper/Data.php +2 -2
- app/code/community/Creativestyle/AmazonPayments/Helper/Debug.php +5 -1
- app/code/community/Creativestyle/AmazonPayments/Model/Api/Advanced.php +6 -2
- app/code/community/Creativestyle/AmazonPayments/Model/Api/Ipn.php +1 -1
- app/code/community/Creativestyle/AmazonPayments/Model/Config.php +31 -14
- app/code/community/Creativestyle/AmazonPayments/Model/Lookup/Language.php +71 -0
- app/code/community/Creativestyle/AmazonPayments/Model/Processor/Order.php +23 -1
- app/code/community/Creativestyle/AmazonPayments/Model/Processor/Payment.php +2 -1
- app/code/community/Creativestyle/AmazonPayments/Model/Processor/TransactionAdapter.php +12 -0
- app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/SystemController.php +2 -1
- app/code/community/Creativestyle/AmazonPayments/controllers/Advanced/LoginController.php +3 -1
- app/code/community/Creativestyle/AmazonPayments/etc/config.xml +2 -2
- app/code/community/Creativestyle/AmazonPayments/etc/system.xml +10 -0
- app/design/frontend/base/default/template/creativestyle/amazonpayments/button/js.phtml +4 -0
- app/design/frontend/base/default/template/creativestyle/amazonpayments/checkout/js.phtml +1 -1
- app/design/frontend/base/default/template/creativestyle/amazonpayments/checkout/sandbox_toolbox.phtml +1 -1
- app/locale/de_DE/Creativestyle_AmazonPayments.csv +61 -26
- app/locale/en_GB/Creativestyle_AmazonPayments.csv +56 -20
- app/locale/en_US/Creativestyle_AmazonPayments.csv +54 -18
- app/locale/es_ES/Creativestyle_AmazonPayments.csv +191 -0
- app/locale/fr_FR/Creativestyle_AmazonPayments.csv +191 -0
- app/locale/it_IT/Creativestyle_AmazonPayments.csv +191 -0
- js/creativestyle/apa_checkout.js +13 -4
- js/creativestyle/apa_checkout.min.js +1 -1
- lib/OffAmazonPayments/HttpRequest/HttpException.php +26 -0
- lib/OffAmazonPayments/HttpRequest/IHttpRequest.php +29 -0
- lib/OffAmazonPayments/HttpRequest/IHttpRequestFactory.php +39 -0
- lib/OffAmazonPayments/HttpRequest/Impl/HttpRequestCurlImpl.php +159 -0
- lib/OffAmazonPayments/HttpRequest/Impl/HttpRequestFactoryCurlImpl.php +161 -0
- lib/OffAmazonPayments/Model.php +1 -1
- lib/OffAmazonPayments/OffAmazonPaymentsServiceUtils.php +134 -0
- lib/OffAmazonPaymentsNotifications/Client.php +9 -4
- lib/OffAmazonPaymentsNotifications/Impl/Certificate.php +1 -2
- lib/OffAmazonPaymentsNotifications/Impl/IpnNotificationParser.php +1 -1
- lib/OffAmazonPaymentsNotifications/Impl/Message.php +1 -1
- lib/OffAmazonPaymentsNotifications/Impl/OpenSslVerifySignature.php +27 -24
- lib/OffAmazonPaymentsNotifications/Impl/SnsMessageParser.php +1 -1
- lib/OffAmazonPaymentsNotifications/Impl/SnsMessageValidator.php +1 -2
- lib/OffAmazonPaymentsNotifications/Impl/VerifySignature.php +1 -1
- lib/OffAmazonPaymentsNotifications/Impl/XmlNotificationParser.php +1 -1
- lib/OffAmazonPaymentsNotifications/Interface.php +1 -2
- lib/OffAmazonPaymentsNotifications/InvalidCertificateException.php +1 -2
- lib/OffAmazonPaymentsNotifications/InvalidMessageException.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/AuthorizationDetails.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/AuthorizationNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/BillingAgreement.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/BillingAgreementLimits.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/BillingAgreementNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/BillingAgreementStatus.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/CaptureDetails.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/CaptureNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/IdList.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/IpnNotificationMetadata.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/NotificationImpl.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/NotificationMetadataImpl.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/OrderItemCategories.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/OrderReference.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/OrderReferenceNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/OrderReferenceStatus.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/OrderTotal.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/Price.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/ProviderCreditNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalSummary.php +0 -3
- lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalSummaryList.php +0 -3
- lib/OffAmazonPaymentsNotifications/Model/ProviderCreditSummaryList.php +0 -3
- lib/OffAmazonPaymentsNotifications/Model/RefundDetails.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/RefundNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/SellerBillingAgreementAttributes.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/SellerOrderAttributes.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/SnsNotificationMetadata.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/SolutionProviderMerchantNotification.php +1 -1
- lib/OffAmazonPaymentsNotifications/Model/SolutionProviderOptions.php +0 -3
- lib/OffAmazonPaymentsNotifications/Model/Status.php +1 -1
- lib/OffAmazonPaymentsNotifications/Notification.php +1 -1
- lib/OffAmazonPaymentsNotifications/NotificationMetadata.php +1 -1
- lib/OffAmazonPaymentsService/Client.php +835 -854
- lib/OffAmazonPaymentsService/Environments.php +1 -1
- lib/OffAmazonPaymentsService/Exception.php +9 -9
- lib/OffAmazonPaymentsService/Interface.php +1 -1
- lib/OffAmazonPaymentsService/MerchantValues.php +132 -82
- lib/OffAmazonPaymentsService/MerchantValuesBuilder.php +82 -0
- lib/OffAmazonPaymentsService/Model.php +1 -1
- lib/OffAmazonPaymentsService/Model/Address.php +138 -95
- lib/OffAmazonPaymentsService/Model/AuthorizationDetails.php +174 -142
- lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementRequest.php +149 -112
- lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResponse.php +41 -45
- lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResult.php +24 -24
- lib/OffAmazonPaymentsService/Model/AuthorizeRequest.php +158 -91
- lib/OffAmazonPaymentsService/Model/AuthorizeResponse.php +53 -46
- lib/OffAmazonPaymentsService/Model/AuthorizeResult.php +5 -5
- lib/OffAmazonPaymentsService/Model/BillingAddress.php +2 -3
- lib/OffAmazonPaymentsService/Model/BillingAgreementAttributes.php +2 -3
- lib/OffAmazonPaymentsService/Model/BillingAgreementDetails.php +54 -2
- lib/OffAmazonPaymentsService/Model/BillingAgreementLimits.php +2 -3
- lib/OffAmazonPaymentsService/Model/BillingAgreementStatus.php +1 -1
- lib/OffAmazonPaymentsService/Model/Buyer.php +2 -2
- lib/OffAmazonPaymentsService/Model/CancelOrderReferenceRequest.php +93 -47
- lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResponse.php +52 -47
- lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResult.php +1 -1
- lib/OffAmazonPaymentsService/Model/CaptureDetails.php +138 -113
- lib/OffAmazonPaymentsService/Model/CaptureRequest.php +122 -64
- lib/OffAmazonPaymentsService/Model/CaptureResponse.php +53 -47
- lib/OffAmazonPaymentsService/Model/CaptureResult.php +23 -20
- lib/OffAmazonPaymentsService/Model/CloseAuthorizationRequest.php +76 -30
- lib/OffAmazonPaymentsService/Model/CloseAuthorizationResponse.php +54 -47
- lib/OffAmazonPaymentsService/Model/CloseAuthorizationResult.php +1 -1
- lib/OffAmazonPaymentsService/Model/CloseBillingAgreementRequest.php +76 -39
- lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResponse.php +8 -9
- lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResult.php +1 -1
- lib/OffAmazonPaymentsService/Model/CloseOrderReferenceRequest.php +77 -30
- lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResponse.php +55 -47
- lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResult.php +1 -1
- lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementRequest.php +52 -15
- lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResponse.php +29 -30
- lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResult.php +7 -7
- lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceRequest.php +79 -36
- lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceResponse.php +50 -46
- lib/OffAmazonPaymentsService/Model/Constraint.php +42 -36
- lib/OffAmazonPaymentsService/Model/Constraints.php +37 -30
- lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdRequest.php +126 -89
- lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResponse.php +29 -30
- lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResult.php +16 -17
- lib/OffAmazonPaymentsService/Model/Destination.php +45 -39
- lib/OffAmazonPaymentsService/Model/Error.php +74 -62
- lib/OffAmazonPaymentsService/Model/ErrorResponse.php +70 -58
- lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsRequest.php +79 -36
- lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsResponse.php +73 -65
- lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsResult.php +32 -29
- lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsRequest.php +85 -48
- lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResponse.php +28 -28
- lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResult.php +16 -17
- lib/OffAmazonPaymentsService/Model/GetCaptureDetailsRequest.php +65 -22
- lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResponse.php +67 -59
- lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResult.php +34 -34
- lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsRequest.php +91 -45
- lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResponse.php +56 -48
- lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResult.php +34 -34
- lib/OffAmazonPaymentsService/Model/GetProviderCreditDetailsRequest.php +79 -39
- lib/OffAmazonPaymentsService/Model/GetProviderCreditDetailsResponse.php +72 -64
- lib/OffAmazonPaymentsService/Model/GetProviderCreditDetailsResult.php +33 -33
- lib/OffAmazonPaymentsService/Model/GetProviderCreditReversalDetailsRequest.php +79 -39
- lib/OffAmazonPaymentsService/Model/GetProviderCreditReversalDetailsResponse.php +70 -64
- lib/OffAmazonPaymentsService/Model/GetProviderCreditReversalDetailsResult.php +33 -33
- lib/OffAmazonPaymentsService/Model/GetRefundDetailsRequest.php +80 -40
- lib/OffAmazonPaymentsService/Model/GetRefundDetailsResponse.php +56 -48
- lib/OffAmazonPaymentsService/Model/GetRefundDetailsResult.php +24 -24
- lib/OffAmazonPaymentsService/Model/IdList.php +26 -22
- lib/OffAmazonPaymentsService/Model/OrderItemCategories.php +26 -22
- lib/OffAmazonPaymentsService/Model/OrderReferenceAttributes.php +56 -47
- lib/OffAmazonPaymentsService/Model/OrderReferenceDetails.php +285 -188
- lib/OffAmazonPaymentsService/Model/OrderReferenceStatus.php +73 -64
- lib/OffAmazonPaymentsService/Model/OrderTotal.php +43 -40
- lib/OffAmazonPaymentsService/Model/ParentDetails.php +36 -35
- lib/OffAmazonPaymentsService/Model/Price.php +43 -40
- lib/OffAmazonPaymentsService/Model/ProviderCredit.php +45 -42
- lib/OffAmazonPaymentsService/Model/ProviderCreditDetails.php +159 -135
- lib/OffAmazonPaymentsService/Model/ProviderCreditList.php +37 -33
- lib/OffAmazonPaymentsService/Model/ProviderCreditReversal.php +45 -42
- lib/OffAmazonPaymentsService/Model/ProviderCreditReversalDetails.php +138 -117
- lib/OffAmazonPaymentsService/Model/ProviderCreditReversalList.php +37 -33
- lib/OffAmazonPaymentsService/Model/ProviderCreditReversalSummary.php +42 -39
- lib/OffAmazonPaymentsService/Model/ProviderCreditReversalSummaryList.php +37 -33
- lib/OffAmazonPaymentsService/Model/ProviderCreditSummary.php +42 -39
- lib/OffAmazonPaymentsService/Model/ProviderCreditSummaryList.php +37 -33
- lib/OffAmazonPaymentsService/Model/RefundDetails.php +170 -140
- lib/OffAmazonPaymentsService/Model/RefundRequest.php +156 -98
- lib/OffAmazonPaymentsService/Model/RefundResponse.php +73 -65
- lib/OffAmazonPaymentsService/Model/RefundResult.php +34 -34
- lib/OffAmazonPaymentsService/Model/ResponseHeaderMetadata.php +37 -33
- lib/OffAmazonPaymentsService/Model/ResponseMetadata.php +28 -28
- lib/OffAmazonPaymentsService/Model/ReverseProviderCreditRequest.php +127 -78
- lib/OffAmazonPaymentsService/Model/ReverseProviderCreditResponse.php +72 -64
- lib/OffAmazonPaymentsService/Model/ReverseProviderCreditResult.php +33 -33
- lib/OffAmazonPaymentsService/Model/SellerBillingAgreementAttributes.php +48 -48
- lib/OffAmazonPaymentsService/Model/SellerOrderAttributes.php +76 -67
- lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsRequest.php +60 -22
- lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResponse.php +29 -30
- lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResult.php +16 -17
- lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsRequest.php +96 -55
- lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResponse.php +73 -65
- lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResult.php +34 -34
- lib/OffAmazonPaymentsService/Model/Status.php +73 -64
- lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementRequest.php +54 -18
- lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResponse.php +30 -30
- lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResult.php +23 -25
- lib/OffAmazonPaymentsService/RegionSpecificProperties.php +2 -3
- lib/OffAmazonPaymentsService/Regions.php +1 -2
- package.xml +13 -10
app/code/community/Creativestyle/AmazonPayments/Block/Button/Js.php
CHANGED
@@ -50,6 +50,10 @@ class Creativestyle_AmazonPayments_Block_Button_Js
|
|
50 |
return '{}';
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
53 |
public function getCallbackName() {
|
54 |
return 'window.onAmazonPaymentsReady';
|
55 |
}
|
50 |
return '{}';
|
51 |
}
|
52 |
|
53 |
+
public function getDisplayLanguage() {
|
54 |
+
return $this->_getConfig()->getDisplayLanguage();
|
55 |
+
}
|
56 |
+
|
57 |
public function getCallbackName() {
|
58 |
return 'window.onAmazonPaymentsReady';
|
59 |
}
|
app/code/community/Creativestyle/AmazonPayments/Helper/Data.php
CHANGED
@@ -126,8 +126,8 @@ class Creativestyle_AmazonPayments_Helper_Data extends Mage_Core_Helper_Abstract
|
|
126 |
$explodedName = explode(' ', trim($customerName));
|
127 |
$result = array();
|
128 |
if (count($explodedName) > 1) {
|
129 |
-
$result['firstname'] =
|
130 |
-
$result['lastname'] =
|
131 |
} else {
|
132 |
$result['firstname'] = $emptyValuePlaceholder ? Mage::helper('amazonpayments')->__($emptyValuePlaceholder) : null;
|
133 |
$result['lastname'] = reset($explodedName);
|
126 |
$explodedName = explode(' ', trim($customerName));
|
127 |
$result = array();
|
128 |
if (count($explodedName) > 1) {
|
129 |
+
$result['firstname'] = array_shift($explodedName);
|
130 |
+
$result['lastname'] = implode(' ', $explodedName);
|
131 |
} else {
|
132 |
$result['firstname'] = $emptyValuePlaceholder ? Mage::helper('amazonpayments')->__($emptyValuePlaceholder) : null;
|
133 |
$result['lastname'] = reset($explodedName);
|
app/code/community/Creativestyle/AmazonPayments/Helper/Debug.php
CHANGED
@@ -204,7 +204,11 @@ class Creativestyle_AmazonPayments_Helper_Debug extends Mage_Core_Helper_Abstrac
|
|
204 |
protected function _getGeneralDebugData() {
|
205 |
return array(
|
206 |
'Pay with Amazon extension version' => (string)Mage::getConfig()->getNode('modules/Creativestyle_AmazonPayments/version'),
|
207 |
-
'Pay with Amazon SDK library version' => OffAmazonPaymentsService_Client::APPLICATION_LIBRARY_VERSION
|
|
|
|
|
|
|
|
|
208 |
'Magento version' => trim(Mage::getVersion() . ' ' . $this->_getMagentoEdition()),
|
209 |
'PHP version' => PHP_VERSION,
|
210 |
'Magento Compiler enabled' => defined('COMPILER_INCLUDE_PATH'),
|
204 |
protected function _getGeneralDebugData() {
|
205 |
return array(
|
206 |
'Pay with Amazon extension version' => (string)Mage::getConfig()->getNode('modules/Creativestyle_AmazonPayments/version'),
|
207 |
+
'Pay with Amazon SDK library version' => defined('OffAmazonPaymentsService_Client::APPLICATION_LIBRARY_VERSION')
|
208 |
+
? OffAmazonPaymentsService_Client::APPLICATION_LIBRARY_VERSION
|
209 |
+
: defined('OffAmazonPayments_OffAmazonPaymentsServiceUtils::APPLICATION_LIBRARY_VERSION')
|
210 |
+
? OffAmazonPayments_OffAmazonPaymentsServiceUtils::APPLICATION_LIBRARY_VERSION
|
211 |
+
: 'Unknown',
|
212 |
'Magento version' => trim(Mage::getVersion() . ' ' . $this->_getMagentoEdition()),
|
213 |
'PHP version' => PHP_VERSION,
|
214 |
'Magento Compiler enabled' => defined('COMPILER_INCLUDE_PATH'),
|
app/code/community/Creativestyle/AmazonPayments/Model/Api/Advanced.php
CHANGED
@@ -37,7 +37,7 @@ class Creativestyle_AmazonPayments_Model_Api_Advanced extends Creativestyle_Amaz
|
|
37 |
return null;
|
38 |
}
|
39 |
|
40 |
-
public function setOrderReferenceDetails($orderReferenceId, $orderAmount, $orderCurrency, $magentoOrderId = null) {
|
41 |
$request = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest(array(
|
42 |
'SellerId' => $this->getMerchantId(),
|
43 |
'AmazonOrderReferenceId' => $orderReferenceId,
|
@@ -47,7 +47,11 @@ class Creativestyle_AmazonPayments_Model_Api_Advanced extends Creativestyle_Amaz
|
|
47 |
'Amount' => $orderAmount,
|
48 |
'CurrencyCode' => $orderCurrency
|
49 |
),
|
50 |
-
'SellerOrderAttributes' =>
|
|
|
|
|
|
|
|
|
51 |
)
|
52 |
));
|
53 |
$response = $this->_getApi()->setOrderReferenceDetails($request);
|
37 |
return null;
|
38 |
}
|
39 |
|
40 |
+
public function setOrderReferenceDetails($orderReferenceId, $orderAmount, $orderCurrency, $magentoOrderId = null, $storeName = null) {
|
41 |
$request = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest(array(
|
42 |
'SellerId' => $this->getMerchantId(),
|
43 |
'AmazonOrderReferenceId' => $orderReferenceId,
|
47 |
'Amount' => $orderAmount,
|
48 |
'CurrencyCode' => $orderCurrency
|
49 |
),
|
50 |
+
'SellerOrderAttributes' => array(
|
51 |
+
'SellerOrderId' => $magentoOrderId ? $magentoOrderId : null,
|
52 |
+
'StoreName' => $storeName ? $storeName : null,
|
53 |
+
'CustomInformation' => 'Created by Creativestyle_AmazonPayments/' . (string)Mage::getConfig()->getNode('modules/Creativestyle_AmazonPayments/version') . ' (Platform=Magento/' . trim(Mage::getVersion()) . ')'
|
54 |
+
)
|
55 |
)
|
56 |
));
|
57 |
$response = $this->_getApi()->setOrderReferenceDetails($request);
|
app/code/community/Creativestyle/AmazonPayments/Model/Api/Ipn.php
CHANGED
@@ -22,7 +22,7 @@ class Creativestyle_AmazonPayments_Model_Api_Ipn extends Creativestyle_AmazonPay
|
|
22 |
|
23 |
protected function _getApi() {
|
24 |
if (null === $this->_api) {
|
25 |
-
$this->_api = new OffAmazonPaymentsNotifications_Client();
|
26 |
}
|
27 |
return $this->_api;
|
28 |
}
|
22 |
|
23 |
protected function _getApi() {
|
24 |
if (null === $this->_api) {
|
25 |
+
$this->_api = new OffAmazonPaymentsNotifications_Client($this->_getConfig()->getConnectionData(null, $this->_store));
|
26 |
}
|
27 |
return $this->_api;
|
28 |
}
|
app/code/community/Creativestyle/AmazonPayments/Model/Config.php
CHANGED
@@ -32,6 +32,7 @@ class Creativestyle_AmazonPayments_Model_Config {
|
|
32 |
|
33 |
const XML_PATH_LOGIN_ACTIVE = 'amazonpayments/login/active';
|
34 |
const XML_PATH_LOGIN_CLIENT_ID = 'amazonpayments/login/client_id';
|
|
|
35 |
const XML_PATH_LOGIN_AUTHENTICATION = 'amazonpayments/login/authentication';
|
36 |
|
37 |
const XML_PATH_EMAIL_ORDER_CONFIRMATION = 'amazonpayments/email/order_confirmation';
|
@@ -77,7 +78,8 @@ class Creativestyle_AmazonPayments_Model_Config {
|
|
77 |
'serviceURL' => '',
|
78 |
'widgetURL' => '',
|
79 |
'caBundleFile' => '',
|
80 |
-
'clientId' => ''
|
|
|
81 |
);
|
82 |
}
|
83 |
return $this->_config[$store];
|
@@ -114,19 +116,20 @@ class Creativestyle_AmazonPayments_Model_Config {
|
|
114 |
|
115 |
public function getMerchantValues($store = null) {
|
116 |
if (null === $this->_merchantValues) {
|
117 |
-
$this->_merchantValues =
|
118 |
-
$this->getConnectionData('merchantId', $store),
|
119 |
-
$this->getConnectionData('accessKey', $store),
|
120 |
-
$this->getConnectionData('secretKey', $store),
|
121 |
-
$this->getConnectionData('applicationName', $store),
|
122 |
-
$this->getConnectionData('applicationVersion', $store),
|
123 |
-
$this->getConnectionData('region', $store),
|
124 |
-
$this->getConnectionData('environment', $store),
|
125 |
-
$this->getConnectionData('serviceURL', $store),
|
126 |
-
$this->getConnectionData('widgetURL', $store),
|
127 |
-
$this->getConnectionData('caBundleFile', $store),
|
128 |
-
$this->getConnectionData('clientId', $store)
|
129 |
-
|
|
|
130 |
}
|
131 |
return $this->_merchantValues;
|
132 |
}
|
@@ -335,6 +338,10 @@ class Creativestyle_AmazonPayments_Model_Config {
|
|
335 |
}
|
336 |
|
337 |
public function isCurrentLocaleAllowed($store = null) {
|
|
|
|
|
|
|
|
|
338 |
$currentLocale = Mage::app()->getLocale()->getLocaleCode();
|
339 |
$language = strtolower($currentLocale);
|
340 |
if (strpos($language, '_')) {
|
@@ -362,4 +369,14 @@ class Creativestyle_AmazonPayments_Model_Config {
|
|
362 |
public function isResponsive($store = null) {
|
363 |
return Mage::getStoreConfigFlag(self::XML_PATH_DESIGN_RESPONSIVE, $store);
|
364 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
}
|
32 |
|
33 |
const XML_PATH_LOGIN_ACTIVE = 'amazonpayments/login/active';
|
34 |
const XML_PATH_LOGIN_CLIENT_ID = 'amazonpayments/login/client_id';
|
35 |
+
const XML_PATH_LOGIN_LANGUAGE = 'amazonpayments/login/language';
|
36 |
const XML_PATH_LOGIN_AUTHENTICATION = 'amazonpayments/login/authentication';
|
37 |
|
38 |
const XML_PATH_EMAIL_ORDER_CONFIRMATION = 'amazonpayments/email/order_confirmation';
|
78 |
'serviceURL' => '',
|
79 |
'widgetURL' => '',
|
80 |
'caBundleFile' => '',
|
81 |
+
'clientId' => '',
|
82 |
+
'cnName' => 'sns.amazonaws.com'
|
83 |
);
|
84 |
}
|
85 |
return $this->_config[$store];
|
116 |
|
117 |
public function getMerchantValues($store = null) {
|
118 |
if (null === $this->_merchantValues) {
|
119 |
+
$this->_merchantValues = OffAmazonPaymentsService_MerchantValuesBuilder::create(array(
|
120 |
+
'merchantId' => $this->getConnectionData('merchantId', $store),
|
121 |
+
'accessKey' => $this->getConnectionData('accessKey', $store),
|
122 |
+
'secretKey' => $this->getConnectionData('secretKey', $store),
|
123 |
+
'applicationName' => $this->getConnectionData('applicationName', $store),
|
124 |
+
'applicationVersion' => $this->getConnectionData('applicationVersion', $store),
|
125 |
+
'region' => $this->getConnectionData('region', $store),
|
126 |
+
'environment' => $this->getConnectionData('environment', $store),
|
127 |
+
'serviceUrl' => $this->getConnectionData('serviceURL', $store),
|
128 |
+
'widgetUrl' => $this->getConnectionData('widgetURL', $store),
|
129 |
+
'caBundleFile' => $this->getConnectionData('caBundleFile', $store),
|
130 |
+
'clientId' => $this->getConnectionData('clientId', $store),
|
131 |
+
'cnName' => $this->getConnectionData('cnName', $store)
|
132 |
+
))->build();
|
133 |
}
|
134 |
return $this->_merchantValues;
|
135 |
}
|
338 |
}
|
339 |
|
340 |
public function isCurrentLocaleAllowed($store = null) {
|
341 |
+
// no language restriction for enabled LwA
|
342 |
+
if (Mage::getStoreConfigFlag(self::XML_PATH_LOGIN_ACTIVE, $store)) {
|
343 |
+
return true;
|
344 |
+
}
|
345 |
$currentLocale = Mage::app()->getLocale()->getLocaleCode();
|
346 |
$language = strtolower($currentLocale);
|
347 |
if (strpos($language, '_')) {
|
369 |
public function isResponsive($store = null) {
|
370 |
return Mage::getStoreConfigFlag(self::XML_PATH_DESIGN_RESPONSIVE, $store);
|
371 |
}
|
372 |
+
|
373 |
+
public function getDisplayLanguage($store = null) {
|
374 |
+
$displayLanguage = Mage::getStoreConfig(self::XML_PATH_LOGIN_LANGUAGE, $store);
|
375 |
+
if (!$displayLanguage) {
|
376 |
+
$currentLocale = Mage::app()->getLocale()->getLocaleCode();
|
377 |
+
$displayLanguage = Mage::getSingleton('amazonpayments/lookup_language')->getLanguageByLocale($currentLocale);
|
378 |
+
}
|
379 |
+
return $displayLanguage;
|
380 |
+
}
|
381 |
+
|
382 |
}
|
app/code/community/Creativestyle/AmazonPayments/Model/Lookup/Language.php
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* This file is part of the official Amazon Payments Advanced extension
|
5 |
+
* for Magento (c) creativestyle GmbH <amazon@creativestyle.de>
|
6 |
+
* All rights reserved
|
7 |
+
*
|
8 |
+
* Reuse or modification of this source code is not allowed
|
9 |
+
* without written permission from creativestyle GmbH
|
10 |
+
*
|
11 |
+
* @category Creativestyle
|
12 |
+
* @package Creativestyle_AmazonPayments
|
13 |
+
* @copyright Copyright (c) 2014 creativestyle GmbH
|
14 |
+
* @author Marek Zabrowarny / creativestyle GmbH <amazon@creativestyle.de>
|
15 |
+
*/
|
16 |
+
class Creativestyle_AmazonPayments_Model_Lookup_Language extends Creativestyle_AmazonPayments_Model_Lookup_Abstract {
|
17 |
+
|
18 |
+
const LANGUAGE_EN_GB = 'en-GB';
|
19 |
+
const LANGUAGE_DE_DE = 'de-DE';
|
20 |
+
const LANGUAGE_FR_FR = 'fr-FR';
|
21 |
+
const LANGUAGE_IT_IT = 'it-IT';
|
22 |
+
const LANGUAGE_ES_ES = 'es-ES';
|
23 |
+
|
24 |
+
public function toOptionArray() {
|
25 |
+
if (null === $this->_options) {
|
26 |
+
$this->_options = array(
|
27 |
+
array(
|
28 |
+
'value' => '',
|
29 |
+
'label' => Mage::helper('amazonpayments')->__('Auto')
|
30 |
+
),
|
31 |
+
array(
|
32 |
+
'value' => self::LANGUAGE_EN_GB,
|
33 |
+
'label' => Mage::helper('amazonpayments')->__('English')
|
34 |
+
),
|
35 |
+
array(
|
36 |
+
'value' => self::LANGUAGE_DE_DE,
|
37 |
+
'label' => Mage::helper('amazonpayments')->__('German')
|
38 |
+
),
|
39 |
+
array(
|
40 |
+
'value' => self::LANGUAGE_FR_FR,
|
41 |
+
'label' => Mage::helper('amazonpayments')->__('French')
|
42 |
+
),
|
43 |
+
array(
|
44 |
+
'value' => self::LANGUAGE_IT_IT,
|
45 |
+
'label' => Mage::helper('amazonpayments')->__('Italian')
|
46 |
+
),
|
47 |
+
array(
|
48 |
+
'value' => self::LANGUAGE_ES_ES,
|
49 |
+
'label' => Mage::helper('amazonpayments')->__('Spanish')
|
50 |
+
)
|
51 |
+
);
|
52 |
+
}
|
53 |
+
return $this->_options;
|
54 |
+
}
|
55 |
+
|
56 |
+
public function getLanguageByLocale($locale) {
|
57 |
+
$allowedLanguages = array(self::LANGUAGE_EN_GB, self::LANGUAGE_DE_DE, self::LANGUAGE_FR_FR, self::LANGUAGE_IT_IT, self::LANGUAGE_ES_ES);
|
58 |
+
$locale = str_replace('_', '-', $locale);
|
59 |
+
if (in_array($locale, $allowedLanguages)) {
|
60 |
+
return $locale;
|
61 |
+
}
|
62 |
+
$localeLanguage = substr($locale, 0, 2);
|
63 |
+
foreach ($allowedLanguages as $allowedLanguage) {
|
64 |
+
if (false !== strpos($allowedLanguage, $localeLanguage)) {
|
65 |
+
return $allowedLanguage;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
return null;
|
69 |
+
}
|
70 |
+
|
71 |
+
}
|
app/code/community/Creativestyle/AmazonPayments/Model/Processor/Order.php
CHANGED
@@ -226,12 +226,30 @@ class Creativestyle_AmazonPayments_Model_Processor_Order {
|
|
226 |
));
|
227 |
break; // AUTH_PENDING
|
228 |
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_OPEN:
|
229 |
-
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_CLOSED:
|
230 |
$stateObject->setData(array(
|
231 |
'state' => Mage_Sales_Model_Order::STATE_PROCESSING,
|
232 |
'status' => $this->_getConfig()->getAuthorizedOrderStatus($this->_store)
|
233 |
));
|
234 |
break; // AUTH_OPEN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_DECLINED:
|
236 |
$stateObject->setData(array(
|
237 |
'hold_before_state' => $stateObject->getState(),
|
@@ -273,6 +291,10 @@ class Creativestyle_AmazonPayments_Model_Processor_Order {
|
|
273 |
$this->getOrder()->getBaseCurrency()->formatTxt($transactionAdapter->getTransactionAmount()),
|
274 |
$transactionAdapter->getTransactionId(),
|
275 |
sprintf('<strong>%s</strong>', strtoupper($transactionAdapter->getStatusChange(Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_KEY)))
|
|
|
|
|
|
|
|
|
276 |
));
|
277 |
|
278 |
return $this;
|
226 |
));
|
227 |
break; // AUTH_PENDING
|
228 |
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_OPEN:
|
|
|
229 |
$stateObject->setData(array(
|
230 |
'state' => Mage_Sales_Model_Order::STATE_PROCESSING,
|
231 |
'status' => $this->_getConfig()->getAuthorizedOrderStatus($this->_store)
|
232 |
));
|
233 |
break; // AUTH_OPEN
|
234 |
+
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_CLOSED:
|
235 |
+
switch ($transactionAdapter->getStatusChange(Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_REASON_CODE_KEY)) {
|
236 |
+
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_REASON_EXPIRED_UNUSED:
|
237 |
+
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_REASON_AMAZON_CLOSED:
|
238 |
+
$stateObject->setData(array(
|
239 |
+
'hold_before_state' => $stateObject->getState(),
|
240 |
+
'hold_before_status' => $stateObject->getStatus(),
|
241 |
+
'state' => Mage_Sales_Model_Order::STATE_HOLDED,
|
242 |
+
'status' => $this->_getConfig()->getHoldedOrderStatus($this->_store)
|
243 |
+
));
|
244 |
+
break;
|
245 |
+
default:
|
246 |
+
$stateObject->setData(array(
|
247 |
+
'state' => Mage_Sales_Model_Order::STATE_PROCESSING,
|
248 |
+
'status' => $this->_getConfig()->getAuthorizedOrderStatus($this->_store)
|
249 |
+
));
|
250 |
+
break;
|
251 |
+
}
|
252 |
+
break; // AUTH_OPEN
|
253 |
case Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_DECLINED:
|
254 |
$stateObject->setData(array(
|
255 |
'hold_before_state' => $stateObject->getState(),
|
291 |
$this->getOrder()->getBaseCurrency()->formatTxt($transactionAdapter->getTransactionAmount()),
|
292 |
$transactionAdapter->getTransactionId(),
|
293 |
sprintf('<strong>%s</strong>', strtoupper($transactionAdapter->getStatusChange(Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_STATE_KEY)))
|
294 |
+
. (
|
295 |
+
$transactionAdapter->getStatusChange(Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_REASON_CODE_KEY) ?
|
296 |
+
' (' . $transactionAdapter->getStatusChange(Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter::TRANSACTION_REASON_CODE_KEY) . ')' : ''
|
297 |
+
)
|
298 |
));
|
299 |
|
300 |
return $this;
|
app/code/community/Creativestyle/AmazonPayments/Model/Processor/Payment.php
CHANGED
@@ -91,7 +91,8 @@ class Creativestyle_AmazonPayments_Model_Processor_Payment {
|
|
91 |
$transactionSequenceId,
|
92 |
$amount,
|
93 |
$this->getPayment()->getOrder()->getBaseCurrencyCode(),
|
94 |
-
$this->getPayment()->getOrder()->getIncrementId()
|
|
|
95 |
);
|
96 |
}
|
97 |
$this->_getApi()->confirmOrderReference($transactionSequenceId);
|
91 |
$transactionSequenceId,
|
92 |
$amount,
|
93 |
$this->getPayment()->getOrder()->getBaseCurrencyCode(),
|
94 |
+
$this->getPayment()->getOrder()->getIncrementId(),
|
95 |
+
$this->getPayment()->getOrder()->getStore()->getFrontendName() . ' (' . $this->getPayment()->getOrder()->getStore()->getName() . ')'
|
96 |
);
|
97 |
}
|
98 |
$this->_getApi()->confirmOrderReference($transactionSequenceId);
|
app/code/community/Creativestyle/AmazonPayments/Model/Processor/TransactionAdapter.php
CHANGED
@@ -18,6 +18,7 @@ class Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter {
|
|
18 |
const TRANSACTION_STATE_KEY = 'State';
|
19 |
const TRANSACTION_REASON_CODE_KEY = 'ReasonCode';
|
20 |
const TRANSACTION_REASON_DESCRIPTION_KEY = 'ReasonDescription';
|
|
|
21 |
|
22 |
const TRANSACTION_STATE_DRAFT = 'Draft';
|
23 |
const TRANSACTION_STATE_PENDING = 'Pending';
|
@@ -31,6 +32,8 @@ class Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter {
|
|
31 |
const TRANSACTION_REASON_INVALID_PAYMENT = 'InvalidPaymentMethod';
|
32 |
const TRANSACTION_REASON_TIMEOUT = 'TransactionTimedOut';
|
33 |
const TRANSACTION_REASON_AMAZON_REJECTED = 'AmazonRejected';
|
|
|
|
|
34 |
|
35 |
/**
|
36 |
* TODO: [$_store description]
|
@@ -99,6 +102,11 @@ class Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter {
|
|
99 |
if ($transactionStatus->isSetReasonDescription()) {
|
100 |
$status[self::TRANSACTION_REASON_DESCRIPTION_KEY] = $transactionStatus->getReasonDescription();
|
101 |
}
|
|
|
|
|
|
|
|
|
|
|
102 |
if (null !== $key) {
|
103 |
if (array_key_exists($key, $status)) {
|
104 |
return $status[$key];
|
@@ -376,6 +384,10 @@ class Creativestyle_AmazonPayments_Model_Processor_TransactionAdapter {
|
|
376 |
}
|
377 |
}
|
378 |
}
|
|
|
|
|
|
|
|
|
379 |
break;
|
380 |
}
|
381 |
return null;
|
18 |
const TRANSACTION_STATE_KEY = 'State';
|
19 |
const TRANSACTION_REASON_CODE_KEY = 'ReasonCode';
|
20 |
const TRANSACTION_REASON_DESCRIPTION_KEY = 'ReasonDescription';
|
21 |
+
const TRANSACTION_LANGUAGE_KEY = 'Language';
|
22 |
|
23 |
const TRANSACTION_STATE_DRAFT = 'Draft';
|
24 |
const TRANSACTION_STATE_PENDING = 'Pending';
|
32 |
const TRANSACTION_REASON_INVALID_PAYMENT = 'InvalidPaymentMethod';
|
33 |
const TRANSACTION_REASON_TIMEOUT = 'TransactionTimedOut';
|
34 |
const TRANSACTION_REASON_AMAZON_REJECTED = 'AmazonRejected';
|
35 |
+
const TRANSACTION_REASON_AMAZON_CLOSED = 'AmazonClosed';
|
36 |
+
const TRANSACTION_REASON_EXPIRED_UNUSED = 'ExpiredUnused';
|
37 |
|
38 |
/**
|
39 |
* TODO: [$_store description]
|
102 |
if ($transactionStatus->isSetReasonDescription()) {
|
103 |
$status[self::TRANSACTION_REASON_DESCRIPTION_KEY] = $transactionStatus->getReasonDescription();
|
104 |
}
|
105 |
+
if (is_callable(array($this->getTransactionDetails(), 'isSetOrderLanguage'))) {
|
106 |
+
if ($this->getTransactionDetails()->isSetOrderLanguage()) {
|
107 |
+
$status[self::TRANSACTION_LANGUAGE_KEY] = $this->getTransactionDetails()->getOrderLanguage();
|
108 |
+
}
|
109 |
+
}
|
110 |
if (null !== $key) {
|
111 |
if (array_key_exists($key, $status)) {
|
112 |
return $status[$key];
|
384 |
}
|
385 |
}
|
386 |
}
|
387 |
+
if ($this->_extractTransactionStatus(self::TRANSACTION_STATE_KEY) == self::TRANSACTION_STATE_CLOSED
|
388 |
+
&& $this->_extractTransactionStatus(self::TRANSACTION_REASON_CODE_KEY) == self::TRANSACTION_REASON_EXPIRED_UNUSED) {
|
389 |
+
$order->getPayment()->getMethodInstance()->authorize($order->getPayment(), $this->getTransactionAmount());
|
390 |
+
}
|
391 |
break;
|
392 |
}
|
393 |
return null;
|
app/code/community/Creativestyle/AmazonPayments/controllers/Adminhtml/SystemController.php
CHANGED
@@ -34,7 +34,8 @@ class Creativestyle_AmazonPayments_Adminhtml_SystemController extends Mage_Admin
|
|
34 |
'serviceURL' => '',
|
35 |
'widgetURL' => '',
|
36 |
'caBundleFile' => '',
|
37 |
-
'clientId' => ''
|
|
|
38 |
));
|
39 |
$apiRequest = new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest(array(
|
40 |
'SellerId' => trim($merchantId),
|
34 |
'serviceURL' => '',
|
35 |
'widgetURL' => '',
|
36 |
'caBundleFile' => '',
|
37 |
+
'clientId' => '',
|
38 |
+
'cnName' => 'sns.amazonaws.com'
|
39 |
));
|
40 |
$apiRequest = new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest(array(
|
41 |
'SellerId' => trim($merchantId),
|
app/code/community/Creativestyle/AmazonPayments/controllers/Advanced/LoginController.php
CHANGED
@@ -18,7 +18,9 @@ class Creativestyle_AmazonPayments_Advanced_LoginController extends Mage_Core_Co
|
|
18 |
const ACCESS_TOKEN_PARAM_NAME = 'access_token';
|
19 |
|
20 |
private function _extractAccessTokenFromUrl() {
|
21 |
-
|
|
|
|
|
22 |
}
|
23 |
|
24 |
private function _getApi() {
|
18 |
const ACCESS_TOKEN_PARAM_NAME = 'access_token';
|
19 |
|
20 |
private function _extractAccessTokenFromUrl() {
|
21 |
+
$accessToken = $this->getRequest()->getParam(self::ACCESS_TOKEN_PARAM_NAME, null);
|
22 |
+
$accessToken = str_replace('|', '%7C', $accessToken);
|
23 |
+
return $accessToken;
|
24 |
}
|
25 |
|
26 |
private function _getApi() {
|
app/code/community/Creativestyle/AmazonPayments/etc/config.xml
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<config>
|
18 |
<modules>
|
19 |
<Creativestyle_AmazonPayments>
|
20 |
-
<version>1.
|
21 |
</Creativestyle_AmazonPayments>
|
22 |
</modules>
|
23 |
<global>
|
@@ -243,7 +243,7 @@
|
|
243 |
<ExpiredUnused>
|
244 |
<simulation_allowed>1</simulation_allowed>
|
245 |
<simulation_options>
|
246 |
-
<ExpirationTimeInMins type="int">
|
247 |
</simulation_options>
|
248 |
</ExpiredUnused>
|
249 |
<MaxCapturesProcessed>
|
17 |
<config>
|
18 |
<modules>
|
19 |
<Creativestyle_AmazonPayments>
|
20 |
+
<version>1.7.2</version>
|
21 |
</Creativestyle_AmazonPayments>
|
22 |
</modules>
|
23 |
<global>
|
243 |
<ExpiredUnused>
|
244 |
<simulation_allowed>1</simulation_allowed>
|
245 |
<simulation_options>
|
246 |
+
<ExpirationTimeInMins type="int">5</ExpirationTimeInMins>
|
247 |
</simulation_options>
|
248 |
</ExpiredUnused>
|
249 |
<MaxCapturesProcessed>
|
app/code/community/Creativestyle/AmazonPayments/etc/system.xml
CHANGED
@@ -247,6 +247,16 @@
|
|
247 |
<show_in_store>1</show_in_store>
|
248 |
<depends><active>1</active></depends>
|
249 |
</client_id>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
<authentication>
|
251 |
<label>Authentication Experience</label>
|
252 |
<frontend_type>select</frontend_type>
|
247 |
<show_in_store>1</show_in_store>
|
248 |
<depends><active>1</active></depends>
|
249 |
</client_id>
|
250 |
+
<language>
|
251 |
+
<label>Display Language</label>
|
252 |
+
<frontend_type>select</frontend_type>
|
253 |
+
<source_model>amazonpayments/lookup_language</source_model>
|
254 |
+
<sort_order>25</sort_order>
|
255 |
+
<show_in_default>1</show_in_default>
|
256 |
+
<show_in_website>1</show_in_website>
|
257 |
+
<show_in_store>1</show_in_store>
|
258 |
+
<depends><active>1</active></depends>
|
259 |
+
</language>
|
260 |
<authentication>
|
261 |
<label>Authentication Experience</label>
|
262 |
<frontend_type>select</frontend_type>
|
app/design/frontend/base/default/template/creativestyle/amazonpayments/button/js.phtml
CHANGED
@@ -23,6 +23,10 @@ APA.setup('<?php echo $this->getMerchantId(); ?>', {
|
|
23 |
live: <?php echo ($this->isLive() ? 'true' : 'false'); ?>,
|
24 |
popup: <?php echo ($this->isPopup() ? 'true' : 'false'); ?>,
|
25 |
virtual: <?php echo ($this->isVirtual() ? 'true' : 'false'); ?>,
|
|
|
|
|
|
|
|
|
26 |
layers: {
|
27 |
payButtons: '.payButtonWidget',
|
28 |
loginButtons: '.loginButtonWidget',
|
23 |
live: <?php echo ($this->isLive() ? 'true' : 'false'); ?>,
|
24 |
popup: <?php echo ($this->isPopup() ? 'true' : 'false'); ?>,
|
25 |
virtual: <?php echo ($this->isVirtual() ? 'true' : 'false'); ?>,
|
26 |
+
<?php if ($this->getDisplayLanguage()): ?>
|
27 |
+
language: '<?php echo $this->getDisplayLanguage(); ?>',
|
28 |
+
|
29 |
+
<?php endif; ?>
|
30 |
layers: {
|
31 |
payButtons: '.payButtonWidget',
|
32 |
loginButtons: '.loginButtonWidget',
|
app/design/frontend/base/default/template/creativestyle/amazonpayments/checkout/js.phtml
CHANGED
@@ -19,7 +19,7 @@ var quoteBaseGrandTotal = <?php echo (float)$this->getQuoteBaseGrandTotal(); ?>;
|
|
19 |
var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
|
20 |
var lastPrice;
|
21 |
if (typeof Translator != 'undefined') {
|
22 |
-
Translator.add('There was an error processing your order. Please contact us or try again later.', '<?php echo $this->__('There was an error processing your order. Please contact us or try again later.'); ?>');
|
23 |
}
|
24 |
|
25 |
APA.setup('<?php echo $this->getMerchantId(); ?>', {
|
19 |
var checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
|
20 |
var lastPrice;
|
21 |
if (typeof Translator != 'undefined') {
|
22 |
+
Translator.add('There was an error processing your order. Please contact us or try again later.', '<?php echo $this->jsQuoteEscape($this->__('There was an error processing your order. Please contact us or try again later.')); ?>');
|
23 |
}
|
24 |
|
25 |
APA.setup('<?php echo $this->getMerchantId(); ?>', {
|
app/design/frontend/base/default/template/creativestyle/amazonpayments/checkout/sandbox_toolbox.phtml
CHANGED
@@ -26,6 +26,6 @@
|
|
26 |
APA.Toolbox.initialize(
|
27 |
<?php echo $this->getSimulationOptions(); ?>,
|
28 |
{object: 'simulation_object', state: 'simulation_state', reason: 'simulation_reason'},
|
29 |
-
{object: '<?php echo $this->__('--- Select object ---'); ?>', state: '<?php echo $this->__('--- Select state to simulate ---'); ?>', reason: '<?php echo $this->__('--- Select reason code ---'); ?>'}
|
30 |
);
|
31 |
</script>
|
26 |
APA.Toolbox.initialize(
|
27 |
<?php echo $this->getSimulationOptions(); ?>,
|
28 |
{object: 'simulation_object', state: 'simulation_state', reason: 'simulation_reason'},
|
29 |
+
{object: '<?php echo $this->jsQuoteEscape($this->__('--- Select object ---')); ?>', state: '<?php echo $this->jsQuoteEscape($this->__('--- Select state to simulate ---')); ?>', reason: '<?php echo $this->jsQuoteEscape($this->__('--- Select reason code ---')); ?>'}
|
30 |
);
|
31 |
</script>
|
app/locale/de_DE/Creativestyle_AmazonPayments.csv
CHANGED
@@ -4,55 +4,61 @@
|
|
4 |
"""Pay with Amazon"" button color","""Bezahlen mit Amazon""-Button Farbe"
|
5 |
"""Pay with Amazon"" button size","""Bezahlen mit Amazon""-Button Größe"
|
6 |
"""Pay with Amazon"" button type","""Bezahlen mit Amazon""-Button Typ"
|
|
|
7 |
"* Required Fields","* Pflichtfelder"
|
8 |
"--- Select object ---","--- Objekt auswählen ---"
|
9 |
"--- Select reason code ---","--- Reason code auswählen ---"
|
10 |
"--- Select state to simulate ---","--- Simulationsstatus auswählen ---"
|
11 |
-
"-
|
12 |
"1 day","1 Tag"
|
13 |
"1 hour","1 Stunde"
|
14 |
-
"2 days","2 Tage"
|
15 |
-
"2 hours","2 Stunden"
|
16 |
-
"3 days","3 Tage"
|
17 |
-
"4 hours","4 Stunden"
|
18 |
-
"5 minutes","5 Minuten"
|
19 |
-
"7 days","7 Tage"
|
20 |
-
"8 hours","8 Stunden"
|
21 |
"10 minutes","10 Minuten"
|
22 |
"12 hours","12 Stunden"
|
23 |
"14 days","14 Tage"
|
24 |
"15 days","15 Tage"
|
25 |
"15 minutes","15 Minuten"
|
|
|
|
|
|
|
26 |
"30 days","30 Tage"
|
27 |
"30 minutes","30 Minuten"
|
|
|
|
|
|
|
|
|
28 |
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Erweiterungen</div>"
|
29 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","Mit <strong>Amazon Payments</strong> können Sie die in Ihrem Amazon-Account hinterlegten Zahlungs- und Versandinformationen nutzen, um schnell und sicher einzukaufen."
|
30 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","Mit <strong>Amazon Payments</strong> können Sie die in Ihrem Amazon-Account hinterlegten Zahlungs- und Versandinformationen nutzen, um schnell und sicher einzukaufen. Zudem genießen Sie den Käuferschutz, den Amazon mit der A-bis-z-Garantie bietet."
|
31 |
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Belastung (Capture) über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
32 |
-
"A capture request for %s has been submitted to Amazon Payments.","Eine Belastung (Capture) über %s wurde an Amazon Payments geschickt."
|
33 |
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Rückerstattung (Refund) über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
34 |
-
"A refund request for %s has been submitted to Amazon Payments.","Eine Rückerstattung (Refund) über %s wurde an Amazon Payments geschickt."
|
35 |
"Access Key ID","Access Key ID"
|
36 |
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Kontoinformationen finden Sie <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">hier</a>"
|
37 |
"Action","Aktion"
|
38 |
-
"Add New","
|
39 |
"Address widget height","Höhe Addressbuchwidget"
|
40 |
"Address widget width","Breite Addressbuchwidget"
|
41 |
"Allowed IPs (comma separated)","Erlaubte IPs (Kommagetrennt)"
|
42 |
"Amazon Cronjobs","Amazon Cronjobs"
|
|
|
|
|
|
|
43 |
"Amazon Payments Account","Amazon Payments Konto"
|
44 |
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Autorisierung über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
45 |
-
"An authorize request for %s has been submitted to Amazon Payments.","Eine Autorisierung über %s wurde an Amazon Payments geschickt."
|
46 |
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Bestellung über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
47 |
-
"
|
48 |
"Appearance Settings","Gestaltungseinstellungen"
|
49 |
"Appearance Settings for Login and Pay with Amazon","Gestaltungseinstellungen für Login und Bezahlen mit Amazon"
|
50 |
"Appearance Settings for standalone Pay with Amazon","Gestaltungseinstellungen für Bezahlen mit Amazon"
|
|
|
|
|
|
|
51 |
"Authorize","Autorisieren"
|
52 |
"Authorize & capture","Autorisieren & erfassen"
|
|
|
53 |
"Back","Zurück"
|
54 |
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","Wenn Sie Login und Bezahlen mit Amazon nutzen, müssen Sie im Webshop kein Kundenkonto einrichten, sondern können sich direkt mit den Daten aus Ihrem Amazon-Konto anmelden."
|
55 |
"Client ID","Client ID"
|
|
|
56 |
"Common Appearance Settings","Allgemeine Gestaltungseinstellungen"
|
57 |
"Congratulations! Your Amazon Payments account settings seem to be OK.","Glückwunsch! Ihre Amazon Payments Kontoinformationen sind korrekt."
|
58 |
"creativestyle Extensions","creativestyle Erweiterungen"
|
@@ -63,21 +69,27 @@
|
|
63 |
"Declined Payment Email Sender","Absender für die Email für abgelehnte Zahlungen"
|
64 |
"Declined Payment Email Template","Email Template für abgelehnte Zahlungen"
|
65 |
"Developer Options","Entwickler Optionen"
|
|
|
66 |
"Download as CSV","Herunterladen als CSV"
|
67 |
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Sobald 8 Megabyte überschritten werden, wird eine neue Datei erstellt."
|
68 |
"Email Options","Email Optionen"
|
69 |
"Enable Instant Payment Notifications","Instant Payment Notifications aktiviert"
|
70 |
"Enable logging","Logging einschalten"
|
71 |
"Enable Login with Amazon","Login mit Amazon aktivieren"
|
72 |
-
"Enable Pay with Amazon","Bezahlen mit Amazon
|
|
|
73 |
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Geben Sie einen Wert zwischen 200 und 600 Pixel. Für ein einspaltiges Widget geben Sie bitte ein Breite von weniger als 400 ein."
|
74 |
"Enter a value between 228 and 400 pixels","Geben Sie einen Wert zwischen 228 und 400 Pixel"
|
75 |
"ERP mode","ERP Modus"
|
76 |
"Event Observers","Event Observers"
|
77 |
"Exception code","Exception Code"
|
|
|
78 |
"Exception message","Exception Nachricht"
|
|
|
|
|
79 |
"General Info","Allgemeine Infos"
|
80 |
"General Settings","Allgemeine Einstellungen"
|
|
|
81 |
"Germany","Deutschland"
|
82 |
"Gold","Golden"
|
83 |
"http://www.creativestyle.net","http://www.creativestyle.de"
|
@@ -86,43 +98,62 @@
|
|
86 |
"Installed Magento extensions","Installierte Magento Erweiterungen"
|
87 |
"Installed PHP modules","Installierte PHP Module"
|
88 |
"Invalid password","Falsches Passwort"
|
|
|
89 |
"IPN endpoint URL","IPN Endpunkt URL"
|
90 |
-
"IPN
|
|
|
|
|
91 |
"Large","Groß"
|
92 |
-
"Large (151 x 27 pixels)","Groß (151 x 27 Pixel)"
|
93 |
"Leave empty for access from any location","Leer lassen für den Zugriff von jedem beliebigen Standort"
|
94 |
"Light gray","Hellgrau"
|
|
|
95 |
"Login and Pay with Amazon","Login und Bezahlen mit Amazon"
|
96 |
"Login with Amazon","Login mit Amazon"
|
97 |
"Magento Settings","Magento Settings"
|
98 |
-
"Manual authorization","Manuel
|
99 |
"Marketplace","Marktplatz"
|
100 |
"Medium","Mittel"
|
101 |
-
"Medium (126 x 24 pixels)","Mittel (126 x 24 Pixel)"
|
102 |
"Merchant ID","Händlernummer"
|
|
|
|
|
103 |
"Next page","Nächste Seite"
|
104 |
"No, use data polling instead","Nein, data polling anstelle benutzen"
|
105 |
-
"Notification type","
|
106 |
"of %s pages","von %s Seiten"
|
107 |
"Orange (recommended)","Orange (empfohlen)"
|
108 |
"Order status on authorization","Status der Bestellung nach der Autorisierung"
|
109 |
"Page","Seite"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
"Payment Action","Zahlungsvorgang"
|
111 |
"Payment widget height","Payment widget height"
|
112 |
"Payment widget width","Payment widget width"
|
113 |
-
"Pay with Amazon","Bezahlen mit Amazon"
|
114 |
-
"Pay with Amazon API Calls","Pay with Amazon API Calls"
|
115 |
-
"Pay with Amazon Exceptions","Pay with Amazon Exceptions"
|
116 |
"per page","pro Seite"
|
|
|
117 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Diese URL bitte in dem Feld <strong>Händler-URL</strong> in den <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integrationseinstellungen</a> in der Amazon Sellercentral einstellen."
|
118 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central.","Diese URL bitte in dem Feld <strong>Händler-URL</strong> in den Integrationseinstellungen in der Amazon Sellercentral einstellen."
|
119 |
"Please enter your shop password to match it with your Amazon account.","Bitte geben Sie Ihr Shop Passwort ein damit die Kontos verknüpft werden."
|
120 |
"Please fill in required data that cannot be retrieved from your Amazon account.","Bitte füllen Sie folgende obligatorische Felder aus die wir nicht aus dem Amazon Konto übernehmen konnten."
|
121 |
"Please note that the total amount of the order will be charged at order placement.","Bitte beachten Sie dass der komplette Betrag bei Bestellung belastet wird."
|
122 |
"Please provide all required data.","Bitte füllen Sie die obligatorischen Felder aus."
|
|
|
123 |
"Preview","Vorschau"
|
124 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
"Sandbox Mode","Sandbox-Modus"
|
|
|
126 |
"Secret Access Key","Secret Access Key"
|
127 |
"Select appropriate store view scope to display IPN endpoint URL","Bitte den richtigen Konfigurationsumfang in der Liste der Läden auswählen um die IPN endpoint URLs anzuzeigen."
|
128 |
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Auswählen ob eine Bestätigungsemail für neue Bestellungen durch den Shop verschickt wird."
|
@@ -130,7 +161,10 @@
|
|
130 |
"Settings","Einstellungen"
|
131 |
"Show Sandbox Toolbox","Sandbox Toolbox anzeigen"
|
132 |
"Small","Klein"
|
|
|
|
|
133 |
"Stores","Stores"
|
|
|
134 |
"Tan","Beige"
|
135 |
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","Es gab ein Problem mit der ausgewählten Zahlungsart aus ihrem Amazon Konto. Bitte wählen Sie eine andere Zahlungsart aus Ihrem Amazon Konto oder wählen Sie einen anderen Checkout im Warenkorb."
|
136 |
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","Es gab ein Problem mit der ausgewählten Zahlungsart aus ihrem Amazon Konto. Bitte ändern Sie die gewünschte Zahlungsart oder legen Sie eine neue Zahlungsart an."
|
@@ -141,16 +175,17 @@
|
|
141 |
"United Kingdom","Vereinigtes Königreich"
|
142 |
"United States","Vereinigte Staaten"
|
143 |
"URL","URL"
|
|
|
144 |
"Use your Amazon Account","Melden Sie sich mit ihrem Amazon Konto an"
|
|
|
145 |
"View","Ansicht"
|
146 |
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Besuchen Sie <a href=""%s"" target=""_blank"">%s</a> um mehr Informationen zu erhalten."
|
147 |
"Wallet widget height","Höhe Zahlartenwidget"
|
148 |
"Wallet widget width","Breite Zahlartenwidget"
|
149 |
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Auswahl ob die Toolbox zum simulieren von verschiedenen Zahlungsscenarios (inklusive Ablehnungen) im Sandbox Modus angezeigt wird"
|
150 |
-
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","Mit Login und Bezahlen über Amazon können Sie im Webshop mit den Zahlungs- und Versandinformationen aus Ihrem Amazon-Kundenkonto bezahlen. Das macht Einkaufen bei uns schnell, einfach und sicher."
|
151 |
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Ihre Access Key ID ist nicht korrekt."
|
152 |
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Ihre Händlernummer ist nicht korrekt."
|
153 |
-
"Whoops! Your Secret Access Key seems to be invalid.","Whoops! Ihr Secret Access Key ist nicht korrekt.""With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
|
|
154 |
"X-Large","Sehr groß"
|
155 |
-
"X-Large (173 x 27 pixels)","Sehr groß (173 x 27 Pixel)"
|
156 |
"You have aborted the login with Amazon. Please contact us or try again.","Sie haben den Login mit Amazon abgebrochen. Kontaktieren Sie uns oder probieren Sie es bitte später erneut."
|
4 |
"""Pay with Amazon"" button color","""Bezahlen mit Amazon""-Button Farbe"
|
5 |
"""Pay with Amazon"" button size","""Bezahlen mit Amazon""-Button Größe"
|
6 |
"""Pay with Amazon"" button type","""Bezahlen mit Amazon""-Button Typ"
|
7 |
+
"%s API Call | %s","%s API Aufruf | %s"
|
8 |
"* Required Fields","* Pflichtfelder"
|
9 |
"--- Select object ---","--- Objekt auswählen ---"
|
10 |
"--- Select reason code ---","--- Reason code auswählen ---"
|
11 |
"--- Select state to simulate ---","--- Simulationsstatus auswählen ---"
|
12 |
+
"-OR-","-ODER-"
|
13 |
"1 day","1 Tag"
|
14 |
"1 hour","1 Stunde"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
"10 minutes","10 Minuten"
|
16 |
"12 hours","12 Stunden"
|
17 |
"14 days","14 Tage"
|
18 |
"15 days","15 Tage"
|
19 |
"15 minutes","15 Minuten"
|
20 |
+
"2 days","2 Tage"
|
21 |
+
"2 hours","2 Stunden"
|
22 |
+
"3 days","3 Tage"
|
23 |
"30 days","30 Tage"
|
24 |
"30 minutes","30 Minuten"
|
25 |
+
"4 hours","4 Stunden"
|
26 |
+
"5 minutes","5 Minuten"
|
27 |
+
"7 days","7 Tage"
|
28 |
+
"8 hours","8 Stunden"
|
29 |
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Erweiterungen</div>"
|
30 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","Mit <strong>Amazon Payments</strong> können Sie die in Ihrem Amazon-Account hinterlegten Zahlungs- und Versandinformationen nutzen, um schnell und sicher einzukaufen."
|
31 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","Mit <strong>Amazon Payments</strong> können Sie die in Ihrem Amazon-Account hinterlegten Zahlungs- und Versandinformationen nutzen, um schnell und sicher einzukaufen. Zudem genießen Sie den Käuferschutz, den Amazon mit der A-bis-z-Garantie bietet."
|
32 |
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Belastung (Capture) über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
|
|
33 |
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Rückerstattung (Refund) über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
|
|
34 |
"Access Key ID","Access Key ID"
|
35 |
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Kontoinformationen finden Sie <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">hier</a>"
|
36 |
"Action","Aktion"
|
37 |
+
"Add New","Neu hinzufügen"
|
38 |
"Address widget height","Höhe Addressbuchwidget"
|
39 |
"Address widget width","Breite Addressbuchwidget"
|
40 |
"Allowed IPs (comma separated)","Erlaubte IPs (Kommagetrennt)"
|
41 |
"Amazon Cronjobs","Amazon Cronjobs"
|
42 |
+
"Amazon logo","Amazon Logo"
|
43 |
+
"Amazon Order Reference ID: %s","Amazon Bestellreferenz: %s"
|
44 |
+
"Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>","Amazon Bestellreferenz: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>"
|
45 |
"Amazon Payments Account","Amazon Payments Konto"
|
46 |
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Autorisierung über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
|
|
47 |
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","Eine Bestellung über %s wurde von Amazon Payments bearbeitet (%s). Der neue Status ist %s."
|
48 |
+
"API Call details","API Call Details"
|
49 |
"Appearance Settings","Gestaltungseinstellungen"
|
50 |
"Appearance Settings for Login and Pay with Amazon","Gestaltungseinstellungen für Login und Bezahlen mit Amazon"
|
51 |
"Appearance Settings for standalone Pay with Amazon","Gestaltungseinstellungen für Bezahlen mit Amazon"
|
52 |
+
"Asynchronous","Asynchron"
|
53 |
+
"Authentication Experience","Login Experience"
|
54 |
+
"Authorization Processing Mode","Autorisierungsmodus"
|
55 |
"Authorize","Autorisieren"
|
56 |
"Authorize & capture","Autorisieren & erfassen"
|
57 |
+
"Auto","Auto"
|
58 |
"Back","Zurück"
|
59 |
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","Wenn Sie Login und Bezahlen mit Amazon nutzen, müssen Sie im Webshop kein Kundenkonto einrichten, sondern können sich direkt mit den Daten aus Ihrem Amazon-Konto anmelden."
|
60 |
"Client ID","Client ID"
|
61 |
+
"Code","Code"
|
62 |
"Common Appearance Settings","Allgemeine Gestaltungseinstellungen"
|
63 |
"Congratulations! Your Amazon Payments account settings seem to be OK.","Glückwunsch! Ihre Amazon Payments Kontoinformationen sind korrekt."
|
64 |
"creativestyle Extensions","creativestyle Erweiterungen"
|
69 |
"Declined Payment Email Sender","Absender für die Email für abgelehnte Zahlungen"
|
70 |
"Declined Payment Email Template","Email Template für abgelehnte Zahlungen"
|
71 |
"Developer Options","Entwickler Optionen"
|
72 |
+
"Display Language","Sprache"
|
73 |
"Download as CSV","Herunterladen als CSV"
|
74 |
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Sobald 8 Megabyte überschritten werden, wird eine neue Datei erstellt."
|
75 |
"Email Options","Email Optionen"
|
76 |
"Enable Instant Payment Notifications","Instant Payment Notifications aktiviert"
|
77 |
"Enable logging","Logging einschalten"
|
78 |
"Enable Login with Amazon","Login mit Amazon aktivieren"
|
79 |
+
"Enable Pay with Amazon","Bezahlen mit Amazon aktivieren"
|
80 |
+
"English","Englisch"
|
81 |
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Geben Sie einen Wert zwischen 200 und 600 Pixel. Für ein einspaltiges Widget geben Sie bitte ein Breite von weniger als 400 ein."
|
82 |
"Enter a value between 228 and 400 pixels","Geben Sie einen Wert zwischen 228 und 400 Pixel"
|
83 |
"ERP mode","ERP Modus"
|
84 |
"Event Observers","Event Observers"
|
85 |
"Exception code","Exception Code"
|
86 |
+
"Exception details","Exception Details"
|
87 |
"Exception message","Exception Nachricht"
|
88 |
+
"Extracted XML message","Ausgelesene XML Nachricht"
|
89 |
+
"French","Französich"
|
90 |
"General Info","Allgemeine Infos"
|
91 |
"General Settings","Allgemeine Einstellungen"
|
92 |
+
"German","Deutsch"
|
93 |
"Germany","Deutschland"
|
94 |
"Gold","Golden"
|
95 |
"http://www.creativestyle.net","http://www.creativestyle.de"
|
98 |
"Installed Magento extensions","Installierte Magento Erweiterungen"
|
99 |
"Installed PHP modules","Installierte PHP Module"
|
100 |
"Invalid password","Falsches Passwort"
|
101 |
+
"IPN %s | %s","IPN %s | %s"
|
102 |
"IPN endpoint URL","IPN Endpunkt URL"
|
103 |
+
"IPN Notification","IPN Nachricht"
|
104 |
+
"IPN Notifications","IPN Nachrichten"
|
105 |
+
"Italian","Italienisch"
|
106 |
"Large","Groß"
|
|
|
107 |
"Leave empty for access from any location","Leer lassen für den Zugriff von jedem beliebigen Standort"
|
108 |
"Light gray","Hellgrau"
|
109 |
+
"Login","Login"
|
110 |
"Login and Pay with Amazon","Login und Bezahlen mit Amazon"
|
111 |
"Login with Amazon","Login mit Amazon"
|
112 |
"Magento Settings","Magento Settings"
|
113 |
+
"Manual authorization","Manuel autorisieren"
|
114 |
"Marketplace","Marktplatz"
|
115 |
"Medium","Mittel"
|
|
|
116 |
"Merchant ID","Händlernummer"
|
117 |
+
"Message","Message"
|
118 |
+
"New order status","Neuer Bestellstatus"
|
119 |
"Next page","Nächste Seite"
|
120 |
"No, use data polling instead","Nein, data polling anstelle benutzen"
|
121 |
+
"Notification type","Nachrichtentyp"
|
122 |
"of %s pages","von %s Seiten"
|
123 |
"Orange (recommended)","Orange (empfohlen)"
|
124 |
"Order status on authorization","Status der Bestellung nach der Autorisierung"
|
125 |
"Page","Seite"
|
126 |
+
"Pay","Bezahlen"
|
127 |
+
"Pay with Amazon","Bezahlen mit Amazon"
|
128 |
+
"Pay with Amazon (Sandbox)","Bezahlen mit Amazon (Sandbox)"
|
129 |
+
"Pay with Amazon API Call","Bezahlen mit Amazon API Aufruf"
|
130 |
+
"Pay with Amazon API Calls","Bezahlen mit Amazon API Aufrufe"
|
131 |
+
"Pay with Amazon Exception","Bezahlen mit Amazon Exception"
|
132 |
+
"Pay with Amazon Exception | %s","Bezahlen mit Amazon Exception | %s"
|
133 |
+
"Pay with Amazon Exceptions","Bezahlen mit Amazon Exceptions"
|
134 |
"Payment Action","Zahlungsvorgang"
|
135 |
"Payment widget height","Payment widget height"
|
136 |
"Payment widget width","Payment widget width"
|
|
|
|
|
|
|
137 |
"per page","pro Seite"
|
138 |
+
"Please agree to all the terms and conditions before placing the order.","Bitte den Geschäftsbedingungen zustimmen vor dem Abschluss der Bestellung."
|
139 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Diese URL bitte in dem Feld <strong>Händler-URL</strong> in den <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integrationseinstellungen</a> in der Amazon Sellercentral einstellen."
|
140 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central.","Diese URL bitte in dem Feld <strong>Händler-URL</strong> in den Integrationseinstellungen in der Amazon Sellercentral einstellen."
|
141 |
"Please enter your shop password to match it with your Amazon account.","Bitte geben Sie Ihr Shop Passwort ein damit die Kontos verknüpft werden."
|
142 |
"Please fill in required data that cannot be retrieved from your Amazon account.","Bitte füllen Sie folgende obligatorische Felder aus die wir nicht aus dem Amazon Konto übernehmen konnten."
|
143 |
"Please note that the total amount of the order will be charged at order placement.","Bitte beachten Sie dass der komplette Betrag bei Bestellung belastet wird."
|
144 |
"Please provide all required data.","Bitte füllen Sie die obligatorischen Felder aus."
|
145 |
+
"Pop-up","Pop-up"
|
146 |
"Preview","Vorschau"
|
147 |
+
"Query","Query"
|
148 |
+
"Redirect","Weiterleitung"
|
149 |
+
"Redirecting, please wait...","Ein Moment bitte, Sie werden weitergeleitet..."
|
150 |
+
"Request Body","Anfrage Body"
|
151 |
+
"Request Headers","Anfrage Headers"
|
152 |
+
"Response","Antwort"
|
153 |
+
"Response code","Antwort Code"
|
154 |
+
"Response headers","Antwort Headers"
|
155 |
"Sandbox Mode","Sandbox-Modus"
|
156 |
+
"Sandbox Toolbox","Sandbox Toolbox"
|
157 |
"Secret Access Key","Secret Access Key"
|
158 |
"Select appropriate store view scope to display IPN endpoint URL","Bitte den richtigen Konfigurationsumfang in der Liste der Läden auswählen um die IPN endpoint URLs anzuzeigen."
|
159 |
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Auswählen ob eine Bestätigungsemail für neue Bestellungen durch den Shop verschickt wird."
|
161 |
"Settings","Einstellungen"
|
162 |
"Show Sandbox Toolbox","Sandbox Toolbox anzeigen"
|
163 |
"Small","Klein"
|
164 |
+
"Spanish","Spanisch"
|
165 |
+
"Stack trace","Stack trace"
|
166 |
"Stores","Stores"
|
167 |
+
"Synchronous","Synchron"
|
168 |
"Tan","Beige"
|
169 |
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","Es gab ein Problem mit der ausgewählten Zahlungsart aus ihrem Amazon Konto. Bitte wählen Sie eine andere Zahlungsart aus Ihrem Amazon Konto oder wählen Sie einen anderen Checkout im Warenkorb."
|
170 |
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","Es gab ein Problem mit der ausgewählten Zahlungsart aus ihrem Amazon Konto. Bitte ändern Sie die gewünschte Zahlungsart oder legen Sie eine neue Zahlungsart an."
|
175 |
"United Kingdom","Vereinigtes Königreich"
|
176 |
"United States","Vereinigte Staaten"
|
177 |
"URL","URL"
|
178 |
+
"Use responsive widgets","Responsive widgets"
|
179 |
"Use your Amazon Account","Melden Sie sich mit ihrem Amazon Konto an"
|
180 |
+
"Validate Amazon Payments account","Amazon Payments Konto validieren"
|
181 |
"View","Ansicht"
|
182 |
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Besuchen Sie <a href=""%s"" target=""_blank"">%s</a> um mehr Informationen zu erhalten."
|
183 |
"Wallet widget height","Höhe Zahlartenwidget"
|
184 |
"Wallet widget width","Breite Zahlartenwidget"
|
185 |
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Auswahl ob die Toolbox zum simulieren von verschiedenen Zahlungsscenarios (inklusive Ablehnungen) im Sandbox Modus angezeigt wird"
|
|
|
186 |
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Ihre Access Key ID ist nicht korrekt."
|
187 |
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Ihre Händlernummer ist nicht korrekt."
|
188 |
+
"Whoops! Your Secret Access Key seems to be invalid.","Whoops! Ihr Secret Access Key ist nicht korrekt.""With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
189 |
+
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","Mit Login und Bezahlen über Amazon können Sie im Webshop mit den Zahlungs- und Versandinformationen aus Ihrem Amazon-Kundenkonto bezahlen. Das macht Einkaufen bei uns schnell, einfach und sicher."
|
190 |
"X-Large","Sehr groß"
|
|
|
191 |
"You have aborted the login with Amazon. Please contact us or try again.","Sie haben den Login mit Amazon abgebrochen. Kontaktieren Sie uns oder probieren Sie es bitte später erneut."
|
app/locale/en_GB/Creativestyle_AmazonPayments.csv
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
"""Pay with Amazon"" button color","""Pay with Amazon"" button colour"
|
5 |
"""Pay with Amazon"" button size","""Pay with Amazon"" button size"
|
6 |
"""Pay with Amazon"" button type","""Pay with Amazon"" button type"
|
|
|
7 |
"* Required Fields","* Required Fields"
|
8 |
"--- Select object ---","--- Select object ---"
|
9 |
"--- Select reason code ---","--- Select reason code ---"
|
@@ -11,27 +12,25 @@
|
|
11 |
"-OR-","-OR-"
|
12 |
"1 day","1 day"
|
13 |
"1 hour","1 hour"
|
14 |
-
"2 days","2 days"
|
15 |
-
"2 hours","2 hours"
|
16 |
-
"3 days","3 days"
|
17 |
-
"4 hours","4 hours"
|
18 |
-
"5 minutes","5 minutes"
|
19 |
-
"7 days","7 days"
|
20 |
-
"8 hours","8 hours"
|
21 |
"10 minutes","10 minutes"
|
22 |
"12 hours","12 hours"
|
23 |
"14 days","14 days"
|
24 |
"15 days","15 days"
|
25 |
"15 minutes","15 minutes"
|
|
|
|
|
|
|
26 |
"30 days","30 days"
|
27 |
"30 minutes","30 minutes"
|
|
|
|
|
|
|
|
|
28 |
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
|
29 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details."
|
30 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee."
|
31 |
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
|
32 |
-
"A capture request for %s has been submitted to Amazon Payments.","A capture request for %s has been submitted to Amazon Payments."
|
33 |
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","A refund of %s has been processed by Amazon Payments (%s). The new status is %s."
|
34 |
-
"A refund request for %s has been submitted to Amazon Payments.","A refund request for %s has been submitted to Amazon Payments."
|
35 |
"Access Key ID","Access Key ID"
|
36 |
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>"
|
37 |
"Action","Action"
|
@@ -40,29 +39,37 @@
|
|
40 |
"Address widget width","Address widget width"
|
41 |
"Allowed IPs (comma separated)","Allowed IPs (comma separated)"
|
42 |
"Amazon Cronjobs","Amazon Cronjobs"
|
|
|
|
|
|
|
43 |
"Amazon Payments Account","Amazon Payments Account"
|
44 |
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","An authorization of %s has been processed by Amazon Payments (%s). The new status is %s."
|
45 |
-
"An authorize request for %s has been submitted to Amazon Payments.","An authorize request for %s has been submitted to Amazon Payments."
|
46 |
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","An order of %s has been processed by Amazon Payments (%s). The new status is %s."
|
47 |
-
"
|
48 |
"Appearance Settings","Appearance Settings"
|
49 |
"Appearance Settings for Login and Pay with Amazon","Appearance Settings for Login and Pay with Amazon"
|
50 |
"Appearance Settings for standalone Pay with Amazon","Appearance Settings for standalone Pay with Amazon"
|
|
|
|
|
|
|
51 |
"Authorize","Authorize"
|
52 |
"Authorize & capture","Authorize & capture"
|
|
|
53 |
"Back","Back"
|
54 |
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop."
|
55 |
"Client ID","Client ID"
|
|
|
56 |
"Common Appearance Settings","Common Appearance Settings"
|
57 |
"Congratulations! Your Amazon Payments account settings seem to be OK.","Congratulations! Your Amazon Payments account settings seem to be OK."
|
58 |
"creativestyle Extensions","creativestyle Extensions"
|
59 |
-
"Dark gray","Dark
|
60 |
"Data polling frequency","Data polling frequency"
|
61 |
"Date","Date"
|
62 |
"Debug data","Debug data"
|
63 |
"Declined Payment Email Sender","Declined Payment Email Sender"
|
64 |
"Declined Payment Email Template","Declined Payment Email Template"
|
65 |
"Developer Options","Developer Options"
|
|
|
66 |
"Download as CSV","Download as CSV"
|
67 |
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Each logfile will be rotated when it exceeds size of 8 Megabytes"
|
68 |
"Email Options","Email Options"
|
@@ -70,14 +77,19 @@
|
|
70 |
"Enable logging","Enable logging"
|
71 |
"Enable Login with Amazon","Enable Login with Amazon"
|
72 |
"Enable Pay with Amazon","Enable Pay with Amazon"
|
|
|
73 |
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400."
|
74 |
"Enter a value between 228 and 400 pixels","Enter a value between 228 and 400 pixels"
|
75 |
"ERP mode","ERP mode"
|
76 |
"Event Observers","Event Observers"
|
77 |
"Exception code","Exception code"
|
|
|
78 |
"Exception message","Exception message"
|
|
|
|
|
79 |
"General Info","General Info"
|
80 |
"General Settings","General Settings"
|
|
|
81 |
"Germany","Germany"
|
82 |
"Gold","Gold"
|
83 |
"http://www.creativestyle.net","http://www.creativestyle.net"
|
@@ -86,20 +98,24 @@
|
|
86 |
"Installed Magento extensions","Installed Magento extensions"
|
87 |
"Installed PHP modules","Installed PHP modules"
|
88 |
"Invalid password","Invalid password"
|
|
|
89 |
"IPN endpoint URL","IPN endpoint URL"
|
|
|
90 |
"IPN Notifications","IPN Notifications"
|
|
|
91 |
"Large","Large"
|
92 |
-
"Large (151 x 27 pixels)","Large (151 x 27 pixels)"
|
93 |
"Leave empty for access from any location","Leave empty for access from any location"
|
94 |
-
"Light gray","Light
|
|
|
95 |
"Login and Pay with Amazon","Login and Pay with Amazon"
|
96 |
"Login with Amazon","Login with Amazon"
|
97 |
"Magento Settings","Magento Settings"
|
98 |
"Manual authorization","Manual authorization"
|
99 |
"Marketplace","Marketplace"
|
100 |
"Medium","Medium"
|
101 |
-
"Medium (126 x 24 pixels)","Medium (126 x 24 pixels)"
|
102 |
"Merchant ID","Merchant ID"
|
|
|
|
|
103 |
"Next page","Next page"
|
104 |
"No, use data polling instead","No, use data polling instead"
|
105 |
"Notification type","Notification type"
|
@@ -107,21 +123,37 @@
|
|
107 |
"Orange (recommended)","Orange (recommended)"
|
108 |
"Order status on authorization","Order status on authorization"
|
109 |
"Page","Page"
|
110 |
-
"
|
111 |
-
"Payment widget height","Payment widget height"
|
112 |
-
"Payment widget width","Payment widget width"
|
113 |
"Pay with Amazon","Pay with Amazon"
|
|
|
|
|
114 |
"Pay with Amazon API Calls","Pay with Amazon API Calls"
|
|
|
|
|
115 |
"Pay with Amazon Exceptions","Pay with Amazon Exceptions"
|
|
|
|
|
|
|
116 |
"per page","per page"
|
|
|
117 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central."
|
|
|
118 |
"Please enter your shop password to match it with your Amazon account.","Please enter your shop password to match it with your Amazon account."
|
119 |
"Please fill in required data that cannot be retrieved from your Amazon account.","Please fill in required data that cannot be retrieved from your Amazon account."
|
120 |
"Please note that the total amount of the order will be charged at order placement.","Please note that the total amount of the order will be charged at order placement."
|
121 |
"Please provide all required data.","Please provide all required data."
|
|
|
122 |
"Preview","Preview"
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
"Response code","Response code"
|
|
|
124 |
"Sandbox Mode","Sandbox Mode"
|
|
|
125 |
"Secret Access Key","Secret Access Key"
|
126 |
"Select appropriate store view scope to display IPN endpoint URL","Select appropriate store view scope to display IPN endpoint URL"
|
127 |
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Select whether an email confirmation for newly placed orders shall be sent by the shop"
|
@@ -129,7 +161,10 @@
|
|
129 |
"Settings","Settings"
|
130 |
"Show Sandbox Toolbox","Show Sandbox Toolbox"
|
131 |
"Small","Small"
|
|
|
|
|
132 |
"Stores","Stores"
|
|
|
133 |
"Tan","Tan"
|
134 |
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method."
|
135 |
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one."
|
@@ -140,7 +175,9 @@
|
|
140 |
"United Kingdom","United Kingdom"
|
141 |
"United States","United States"
|
142 |
"URL","URL"
|
|
|
143 |
"Use your Amazon Account","Use your Amazon Account"
|
|
|
144 |
"View","View"
|
145 |
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visit <a href=""%s"" target=""_blank"">%s</a> to get more information."
|
146 |
"Wallet widget height","Wallet widget height"
|
@@ -148,8 +185,7 @@
|
|
148 |
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
|
149 |
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Your Access Key ID seems to be invalid."
|
150 |
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Your Merchant ID seems to be invalid."
|
151 |
-
"Whoops! Your Secret Access Key seems to be invalid.","Whoops!
|
152 |
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
153 |
"X-Large","X-Large"
|
154 |
-
"X-Large (173 x 27 pixels)","X-Large (173 x 27 pixels)"
|
155 |
"You have aborted the login with Amazon. Please contact us or try again.","You have aborted the login with Amazon. Please contact us or try again."
|
4 |
"""Pay with Amazon"" button color","""Pay with Amazon"" button colour"
|
5 |
"""Pay with Amazon"" button size","""Pay with Amazon"" button size"
|
6 |
"""Pay with Amazon"" button type","""Pay with Amazon"" button type"
|
7 |
+
"%s API Call | %s","%s API Call | %s"
|
8 |
"* Required Fields","* Required Fields"
|
9 |
"--- Select object ---","--- Select object ---"
|
10 |
"--- Select reason code ---","--- Select reason code ---"
|
12 |
"-OR-","-OR-"
|
13 |
"1 day","1 day"
|
14 |
"1 hour","1 hour"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
"10 minutes","10 minutes"
|
16 |
"12 hours","12 hours"
|
17 |
"14 days","14 days"
|
18 |
"15 days","15 days"
|
19 |
"15 minutes","15 minutes"
|
20 |
+
"2 days","2 days"
|
21 |
+
"2 hours","2 hours"
|
22 |
+
"3 days","3 days"
|
23 |
"30 days","30 days"
|
24 |
"30 minutes","30 minutes"
|
25 |
+
"4 hours","4 hours"
|
26 |
+
"5 minutes","5 minutes"
|
27 |
+
"7 days","7 days"
|
28 |
+
"8 hours","8 hours"
|
29 |
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
|
30 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details."
|
31 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee."
|
32 |
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
|
|
|
33 |
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","A refund of %s has been processed by Amazon Payments (%s). The new status is %s."
|
|
|
34 |
"Access Key ID","Access Key ID"
|
35 |
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>"
|
36 |
"Action","Action"
|
39 |
"Address widget width","Address widget width"
|
40 |
"Allowed IPs (comma separated)","Allowed IPs (comma separated)"
|
41 |
"Amazon Cronjobs","Amazon Cronjobs"
|
42 |
+
"Amazon logo","Amazon logo"
|
43 |
+
"Amazon Order Reference ID: %s","Amazon Order Reference ID: %s"
|
44 |
+
"Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>","Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>"
|
45 |
"Amazon Payments Account","Amazon Payments Account"
|
46 |
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","An authorization of %s has been processed by Amazon Payments (%s). The new status is %s."
|
|
|
47 |
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","An order of %s has been processed by Amazon Payments (%s). The new status is %s."
|
48 |
+
"API Call details","API Call details"
|
49 |
"Appearance Settings","Appearance Settings"
|
50 |
"Appearance Settings for Login and Pay with Amazon","Appearance Settings for Login and Pay with Amazon"
|
51 |
"Appearance Settings for standalone Pay with Amazon","Appearance Settings for standalone Pay with Amazon"
|
52 |
+
"Asynchronous","Asynchronous"
|
53 |
+
"Authentication Experience","Authentication Experience"
|
54 |
+
"Authorization Processing Mode","Authorization Processing Mode"
|
55 |
"Authorize","Authorize"
|
56 |
"Authorize & capture","Authorize & capture"
|
57 |
+
"Auto","Auto"
|
58 |
"Back","Back"
|
59 |
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop."
|
60 |
"Client ID","Client ID"
|
61 |
+
"Code","Code"
|
62 |
"Common Appearance Settings","Common Appearance Settings"
|
63 |
"Congratulations! Your Amazon Payments account settings seem to be OK.","Congratulations! Your Amazon Payments account settings seem to be OK."
|
64 |
"creativestyle Extensions","creativestyle Extensions"
|
65 |
+
"Dark gray","Dark gray"
|
66 |
"Data polling frequency","Data polling frequency"
|
67 |
"Date","Date"
|
68 |
"Debug data","Debug data"
|
69 |
"Declined Payment Email Sender","Declined Payment Email Sender"
|
70 |
"Declined Payment Email Template","Declined Payment Email Template"
|
71 |
"Developer Options","Developer Options"
|
72 |
+
"Display Language","Display Language"
|
73 |
"Download as CSV","Download as CSV"
|
74 |
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Each logfile will be rotated when it exceeds size of 8 Megabytes"
|
75 |
"Email Options","Email Options"
|
77 |
"Enable logging","Enable logging"
|
78 |
"Enable Login with Amazon","Enable Login with Amazon"
|
79 |
"Enable Pay with Amazon","Enable Pay with Amazon"
|
80 |
+
"English","English"
|
81 |
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400."
|
82 |
"Enter a value between 228 and 400 pixels","Enter a value between 228 and 400 pixels"
|
83 |
"ERP mode","ERP mode"
|
84 |
"Event Observers","Event Observers"
|
85 |
"Exception code","Exception code"
|
86 |
+
"Exception details","Exception details"
|
87 |
"Exception message","Exception message"
|
88 |
+
"Extracted XML message","Extracted XML message"
|
89 |
+
"French","French"
|
90 |
"General Info","General Info"
|
91 |
"General Settings","General Settings"
|
92 |
+
"German","German"
|
93 |
"Germany","Germany"
|
94 |
"Gold","Gold"
|
95 |
"http://www.creativestyle.net","http://www.creativestyle.net"
|
98 |
"Installed Magento extensions","Installed Magento extensions"
|
99 |
"Installed PHP modules","Installed PHP modules"
|
100 |
"Invalid password","Invalid password"
|
101 |
+
"IPN %s | %s","IPN %s | %s"
|
102 |
"IPN endpoint URL","IPN endpoint URL"
|
103 |
+
"IPN Notification","IPN Notification"
|
104 |
"IPN Notifications","IPN Notifications"
|
105 |
+
"Italian","Italian"
|
106 |
"Large","Large"
|
|
|
107 |
"Leave empty for access from any location","Leave empty for access from any location"
|
108 |
+
"Light gray","Light gray"
|
109 |
+
"Login","Login"
|
110 |
"Login and Pay with Amazon","Login and Pay with Amazon"
|
111 |
"Login with Amazon","Login with Amazon"
|
112 |
"Magento Settings","Magento Settings"
|
113 |
"Manual authorization","Manual authorization"
|
114 |
"Marketplace","Marketplace"
|
115 |
"Medium","Medium"
|
|
|
116 |
"Merchant ID","Merchant ID"
|
117 |
+
"Message","Message"
|
118 |
+
"New order status","New order status"
|
119 |
"Next page","Next page"
|
120 |
"No, use data polling instead","No, use data polling instead"
|
121 |
"Notification type","Notification type"
|
123 |
"Orange (recommended)","Orange (recommended)"
|
124 |
"Order status on authorization","Order status on authorization"
|
125 |
"Page","Page"
|
126 |
+
"Pay","Pay"
|
|
|
|
|
127 |
"Pay with Amazon","Pay with Amazon"
|
128 |
+
"Pay with Amazon (Sandbox)","Pay with Amazon (Sandbox)"
|
129 |
+
"Pay with Amazon API Call","Pay with Amazon API Call"
|
130 |
"Pay with Amazon API Calls","Pay with Amazon API Calls"
|
131 |
+
"Pay with Amazon Exception","Pay with Amazon Exception"
|
132 |
+
"Pay with Amazon Exception | %s","Pay with Amazon Exception | %s"
|
133 |
"Pay with Amazon Exceptions","Pay with Amazon Exceptions"
|
134 |
+
"Payment Action","Payment Action"
|
135 |
+
"Payment widget height","Payment widget height"
|
136 |
+
"Payment widget width","Payment widget width"
|
137 |
"per page","per page"
|
138 |
+
"Please agree to all the terms and conditions before placing the order.","Please agree to all the terms and conditions before placing the order."
|
139 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central."
|
140 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central.","Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central."
|
141 |
"Please enter your shop password to match it with your Amazon account.","Please enter your shop password to match it with your Amazon account."
|
142 |
"Please fill in required data that cannot be retrieved from your Amazon account.","Please fill in required data that cannot be retrieved from your Amazon account."
|
143 |
"Please note that the total amount of the order will be charged at order placement.","Please note that the total amount of the order will be charged at order placement."
|
144 |
"Please provide all required data.","Please provide all required data."
|
145 |
+
"Pop-up","Pop-up"
|
146 |
"Preview","Preview"
|
147 |
+
"Query","Query"
|
148 |
+
"Redirect","Redirect"
|
149 |
+
"Redirecting, please wait...","Redirecting, please wait..."
|
150 |
+
"Request Body","Request Body"
|
151 |
+
"Request Headers","Request Headers"
|
152 |
+
"Response","Response"
|
153 |
"Response code","Response code"
|
154 |
+
"Response headers","Response headers"
|
155 |
"Sandbox Mode","Sandbox Mode"
|
156 |
+
"Sandbox Toolbox","Sandbox Toolbox"
|
157 |
"Secret Access Key","Secret Access Key"
|
158 |
"Select appropriate store view scope to display IPN endpoint URL","Select appropriate store view scope to display IPN endpoint URL"
|
159 |
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Select whether an email confirmation for newly placed orders shall be sent by the shop"
|
161 |
"Settings","Settings"
|
162 |
"Show Sandbox Toolbox","Show Sandbox Toolbox"
|
163 |
"Small","Small"
|
164 |
+
"Spanish","Spanish"
|
165 |
+
"Stack trace","Stack trace"
|
166 |
"Stores","Stores"
|
167 |
+
"Synchronous","Synchronous"
|
168 |
"Tan","Tan"
|
169 |
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method."
|
170 |
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one."
|
175 |
"United Kingdom","United Kingdom"
|
176 |
"United States","United States"
|
177 |
"URL","URL"
|
178 |
+
"Use responsive widgets","Use responsive widgets"
|
179 |
"Use your Amazon Account","Use your Amazon Account"
|
180 |
+
"Validate Amazon Payments account","Validate Amazon Payments account"
|
181 |
"View","View"
|
182 |
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visit <a href=""%s"" target=""_blank"">%s</a> to get more information."
|
183 |
"Wallet widget height","Wallet widget height"
|
185 |
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
|
186 |
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Your Access Key ID seems to be invalid."
|
187 |
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Your Merchant ID seems to be invalid."
|
188 |
+
"Whoops! Your Secret Access Key seems to be invalid.","Whoops! Ihr Secret Access Key ist nicht korrekt.""With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
189 |
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
190 |
"X-Large","X-Large"
|
|
|
191 |
"You have aborted the login with Amazon. Please contact us or try again.","You have aborted the login with Amazon. Please contact us or try again."
|
app/locale/en_US/Creativestyle_AmazonPayments.csv
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
"""Pay with Amazon"" button color","""Pay with Amazon"" button color"
|
5 |
"""Pay with Amazon"" button size","""Pay with Amazon"" button size"
|
6 |
"""Pay with Amazon"" button type","""Pay with Amazon"" button type"
|
|
|
7 |
"* Required Fields","* Required Fields"
|
8 |
"--- Select object ---","--- Select object ---"
|
9 |
"--- Select reason code ---","--- Select reason code ---"
|
@@ -11,27 +12,25 @@
|
|
11 |
"-OR-","-OR-"
|
12 |
"1 day","1 day"
|
13 |
"1 hour","1 hour"
|
14 |
-
"2 days","2 days"
|
15 |
-
"2 hours","2 hours"
|
16 |
-
"3 days","3 days"
|
17 |
-
"4 hours","4 hours"
|
18 |
-
"5 minutes","5 minutes"
|
19 |
-
"7 days","7 days"
|
20 |
-
"8 hours","8 hours"
|
21 |
"10 minutes","10 minutes"
|
22 |
"12 hours","12 hours"
|
23 |
"14 days","14 days"
|
24 |
"15 days","15 days"
|
25 |
"15 minutes","15 minutes"
|
|
|
|
|
|
|
26 |
"30 days","30 days"
|
27 |
"30 minutes","30 minutes"
|
|
|
|
|
|
|
|
|
28 |
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
|
29 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details."
|
30 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee."
|
31 |
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
|
32 |
-
"A capture request for %s has been submitted to Amazon Payments.","A capture request for %s has been submitted to Amazon Payments."
|
33 |
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","A refund of %s has been processed by Amazon Payments (%s). The new status is %s."
|
34 |
-
"A refund request for %s has been submitted to Amazon Payments.","A refund request for %s has been submitted to Amazon Payments."
|
35 |
"Access Key ID","Access Key ID"
|
36 |
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>"
|
37 |
"Action","Action"
|
@@ -40,19 +39,26 @@
|
|
40 |
"Address widget width","Address widget width"
|
41 |
"Allowed IPs (comma separated)","Allowed IPs (comma separated)"
|
42 |
"Amazon Cronjobs","Amazon Cronjobs"
|
|
|
|
|
|
|
43 |
"Amazon Payments Account","Amazon Payments Account"
|
44 |
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","An authorization of %s has been processed by Amazon Payments (%s). The new status is %s."
|
45 |
-
"An authorize request for %s has been submitted to Amazon Payments.","An authorize request for %s has been submitted to Amazon Payments."
|
46 |
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","An order of %s has been processed by Amazon Payments (%s). The new status is %s."
|
47 |
-
"
|
48 |
"Appearance Settings","Appearance Settings"
|
49 |
"Appearance Settings for Login and Pay with Amazon","Appearance Settings for Login and Pay with Amazon"
|
50 |
"Appearance Settings for standalone Pay with Amazon","Appearance Settings for standalone Pay with Amazon"
|
|
|
|
|
|
|
51 |
"Authorize","Authorize"
|
52 |
"Authorize & capture","Authorize & capture"
|
|
|
53 |
"Back","Back"
|
54 |
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop."
|
55 |
"Client ID","Client ID"
|
|
|
56 |
"Common Appearance Settings","Common Appearance Settings"
|
57 |
"Congratulations! Your Amazon Payments account settings seem to be OK.","Congratulations! Your Amazon Payments account settings seem to be OK."
|
58 |
"creativestyle Extensions","creativestyle Extensions"
|
@@ -63,6 +69,7 @@
|
|
63 |
"Declined Payment Email Sender","Declined Payment Email Sender"
|
64 |
"Declined Payment Email Template","Declined Payment Email Template"
|
65 |
"Developer Options","Developer Options"
|
|
|
66 |
"Download as CSV","Download as CSV"
|
67 |
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Each logfile will be rotated when it exceeds size of 8 Megabytes"
|
68 |
"Email Options","Email Options"
|
@@ -70,14 +77,19 @@
|
|
70 |
"Enable logging","Enable logging"
|
71 |
"Enable Login with Amazon","Enable Login with Amazon"
|
72 |
"Enable Pay with Amazon","Enable Pay with Amazon"
|
|
|
73 |
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400."
|
74 |
"Enter a value between 228 and 400 pixels","Enter a value between 228 and 400 pixels"
|
75 |
"ERP mode","ERP mode"
|
76 |
"Event Observers","Event Observers"
|
77 |
"Exception code","Exception code"
|
|
|
78 |
"Exception message","Exception message"
|
|
|
|
|
79 |
"General Info","General Info"
|
80 |
"General Settings","General Settings"
|
|
|
81 |
"Germany","Germany"
|
82 |
"Gold","Gold"
|
83 |
"http://www.creativestyle.net","http://www.creativestyle.net"
|
@@ -86,20 +98,24 @@
|
|
86 |
"Installed Magento extensions","Installed Magento extensions"
|
87 |
"Installed PHP modules","Installed PHP modules"
|
88 |
"Invalid password","Invalid password"
|
|
|
89 |
"IPN endpoint URL","IPN endpoint URL"
|
|
|
90 |
"IPN Notifications","IPN Notifications"
|
|
|
91 |
"Large","Large"
|
92 |
-
"Large (151 x 27 pixels)","Large (151 x 27 pixels)"
|
93 |
"Leave empty for access from any location","Leave empty for access from any location"
|
94 |
"Light gray","Light gray"
|
|
|
95 |
"Login and Pay with Amazon","Login and Pay with Amazon"
|
96 |
"Login with Amazon","Login with Amazon"
|
97 |
"Magento Settings","Magento Settings"
|
98 |
"Manual authorization","Manual authorization"
|
99 |
"Marketplace","Marketplace"
|
100 |
"Medium","Medium"
|
101 |
-
"Medium (126 x 24 pixels)","Medium (126 x 24 pixels)"
|
102 |
"Merchant ID","Merchant ID"
|
|
|
|
|
103 |
"Next page","Next page"
|
104 |
"No, use data polling instead","No, use data polling instead"
|
105 |
"Notification type","Notification type"
|
@@ -107,21 +123,37 @@
|
|
107 |
"Orange (recommended)","Orange (recommended)"
|
108 |
"Order status on authorization","Order status on authorization"
|
109 |
"Page","Page"
|
110 |
-
"
|
111 |
-
"Payment widget height","Payment widget height"
|
112 |
-
"Payment widget width","Payment widget width"
|
113 |
"Pay with Amazon","Pay with Amazon"
|
|
|
|
|
114 |
"Pay with Amazon API Calls","Pay with Amazon API Calls"
|
|
|
|
|
115 |
"Pay with Amazon Exceptions","Pay with Amazon Exceptions"
|
|
|
|
|
|
|
116 |
"per page","per page"
|
|
|
117 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central."
|
|
|
118 |
"Please enter your shop password to match it with your Amazon account.","Please enter your shop password to match it with your Amazon account."
|
119 |
"Please fill in required data that cannot be retrieved from your Amazon account.","Please fill in required data that cannot be retrieved from your Amazon account."
|
120 |
"Please note that the total amount of the order will be charged at order placement.","Please note that the total amount of the order will be charged at order placement."
|
121 |
"Please provide all required data.","Please provide all required data."
|
|
|
122 |
"Preview","Preview"
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
"Response code","Response code"
|
|
|
124 |
"Sandbox Mode","Sandbox Mode"
|
|
|
125 |
"Secret Access Key","Secret Access Key"
|
126 |
"Select appropriate store view scope to display IPN endpoint URL","Select appropriate store view scope to display IPN endpoint URL"
|
127 |
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Select whether an email confirmation for newly placed orders shall be sent by the shop"
|
@@ -129,7 +161,10 @@
|
|
129 |
"Settings","Settings"
|
130 |
"Show Sandbox Toolbox","Show Sandbox Toolbox"
|
131 |
"Small","Small"
|
|
|
|
|
132 |
"Stores","Stores"
|
|
|
133 |
"Tan","Tan"
|
134 |
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method."
|
135 |
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one."
|
@@ -140,7 +175,9 @@
|
|
140 |
"United Kingdom","United Kingdom"
|
141 |
"United States","United States"
|
142 |
"URL","URL"
|
|
|
143 |
"Use your Amazon Account","Use your Amazon Account"
|
|
|
144 |
"View","View"
|
145 |
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visit <a href=""%s"" target=""_blank"">%s</a> to get more information."
|
146 |
"Wallet widget height","Wallet widget height"
|
@@ -148,8 +185,7 @@
|
|
148 |
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
|
149 |
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Your Access Key ID seems to be invalid."
|
150 |
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Your Merchant ID seems to be invalid."
|
151 |
-
"Whoops! Your Secret Access Key seems to be invalid.","Whoops!
|
152 |
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
153 |
"X-Large","X-Large"
|
154 |
-
"X-Large (173 x 27 pixels)","X-Large (173 x 27 pixels)"
|
155 |
"You have aborted the login with Amazon. Please contact us or try again.","You have aborted the login with Amazon. Please contact us or try again."
|
4 |
"""Pay with Amazon"" button color","""Pay with Amazon"" button color"
|
5 |
"""Pay with Amazon"" button size","""Pay with Amazon"" button size"
|
6 |
"""Pay with Amazon"" button type","""Pay with Amazon"" button type"
|
7 |
+
"%s API Call | %s","%s API Call | %s"
|
8 |
"* Required Fields","* Required Fields"
|
9 |
"--- Select object ---","--- Select object ---"
|
10 |
"--- Select reason code ---","--- Select reason code ---"
|
12 |
"-OR-","-OR-"
|
13 |
"1 day","1 day"
|
14 |
"1 hour","1 hour"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
"10 minutes","10 minutes"
|
16 |
"12 hours","12 hours"
|
17 |
"14 days","14 days"
|
18 |
"15 days","15 days"
|
19 |
"15 minutes","15 minutes"
|
20 |
+
"2 days","2 days"
|
21 |
+
"2 hours","2 hours"
|
22 |
+
"3 days","3 days"
|
23 |
"30 days","30 days"
|
24 |
"30 minutes","30 minutes"
|
25 |
+
"4 hours","4 hours"
|
26 |
+
"5 minutes","5 minutes"
|
27 |
+
"7 days","7 days"
|
28 |
+
"8 hours","8 hours"
|
29 |
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
|
30 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details."
|
31 |
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee."
|
32 |
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","A capture of %s has been processed by Amazon Payments (%s). The new status is %s."
|
|
|
33 |
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","A refund of %s has been processed by Amazon Payments (%s). The new status is %s."
|
|
|
34 |
"Access Key ID","Access Key ID"
|
35 |
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>"
|
36 |
"Action","Action"
|
39 |
"Address widget width","Address widget width"
|
40 |
"Allowed IPs (comma separated)","Allowed IPs (comma separated)"
|
41 |
"Amazon Cronjobs","Amazon Cronjobs"
|
42 |
+
"Amazon logo","Amazon logo"
|
43 |
+
"Amazon Order Reference ID: %s","Amazon Order Reference ID: %s"
|
44 |
+
"Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>","Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>"
|
45 |
"Amazon Payments Account","Amazon Payments Account"
|
46 |
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","An authorization of %s has been processed by Amazon Payments (%s). The new status is %s."
|
|
|
47 |
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","An order of %s has been processed by Amazon Payments (%s). The new status is %s."
|
48 |
+
"API Call details","API Call details"
|
49 |
"Appearance Settings","Appearance Settings"
|
50 |
"Appearance Settings for Login and Pay with Amazon","Appearance Settings for Login and Pay with Amazon"
|
51 |
"Appearance Settings for standalone Pay with Amazon","Appearance Settings for standalone Pay with Amazon"
|
52 |
+
"Asynchronous","Asynchronous"
|
53 |
+
"Authentication Experience","Authentication Experience"
|
54 |
+
"Authorization Processing Mode","Authorization Processing Mode"
|
55 |
"Authorize","Authorize"
|
56 |
"Authorize & capture","Authorize & capture"
|
57 |
+
"Auto","Auto"
|
58 |
"Back","Back"
|
59 |
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop."
|
60 |
"Client ID","Client ID"
|
61 |
+
"Code","Code"
|
62 |
"Common Appearance Settings","Common Appearance Settings"
|
63 |
"Congratulations! Your Amazon Payments account settings seem to be OK.","Congratulations! Your Amazon Payments account settings seem to be OK."
|
64 |
"creativestyle Extensions","creativestyle Extensions"
|
69 |
"Declined Payment Email Sender","Declined Payment Email Sender"
|
70 |
"Declined Payment Email Template","Declined Payment Email Template"
|
71 |
"Developer Options","Developer Options"
|
72 |
+
"Display Language","Display Language"
|
73 |
"Download as CSV","Download as CSV"
|
74 |
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Each logfile will be rotated when it exceeds size of 8 Megabytes"
|
75 |
"Email Options","Email Options"
|
77 |
"Enable logging","Enable logging"
|
78 |
"Enable Login with Amazon","Enable Login with Amazon"
|
79 |
"Enable Pay with Amazon","Enable Pay with Amazon"
|
80 |
+
"English","English"
|
81 |
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400."
|
82 |
"Enter a value between 228 and 400 pixels","Enter a value between 228 and 400 pixels"
|
83 |
"ERP mode","ERP mode"
|
84 |
"Event Observers","Event Observers"
|
85 |
"Exception code","Exception code"
|
86 |
+
"Exception details","Exception details"
|
87 |
"Exception message","Exception message"
|
88 |
+
"Extracted XML message","Extracted XML message"
|
89 |
+
"French","French"
|
90 |
"General Info","General Info"
|
91 |
"General Settings","General Settings"
|
92 |
+
"German","German"
|
93 |
"Germany","Germany"
|
94 |
"Gold","Gold"
|
95 |
"http://www.creativestyle.net","http://www.creativestyle.net"
|
98 |
"Installed Magento extensions","Installed Magento extensions"
|
99 |
"Installed PHP modules","Installed PHP modules"
|
100 |
"Invalid password","Invalid password"
|
101 |
+
"IPN %s | %s","IPN %s | %s"
|
102 |
"IPN endpoint URL","IPN endpoint URL"
|
103 |
+
"IPN Notification","IPN Notification"
|
104 |
"IPN Notifications","IPN Notifications"
|
105 |
+
"Italian","Italian"
|
106 |
"Large","Large"
|
|
|
107 |
"Leave empty for access from any location","Leave empty for access from any location"
|
108 |
"Light gray","Light gray"
|
109 |
+
"Login","Login"
|
110 |
"Login and Pay with Amazon","Login and Pay with Amazon"
|
111 |
"Login with Amazon","Login with Amazon"
|
112 |
"Magento Settings","Magento Settings"
|
113 |
"Manual authorization","Manual authorization"
|
114 |
"Marketplace","Marketplace"
|
115 |
"Medium","Medium"
|
|
|
116 |
"Merchant ID","Merchant ID"
|
117 |
+
"Message","Message"
|
118 |
+
"New order status","New order status"
|
119 |
"Next page","Next page"
|
120 |
"No, use data polling instead","No, use data polling instead"
|
121 |
"Notification type","Notification type"
|
123 |
"Orange (recommended)","Orange (recommended)"
|
124 |
"Order status on authorization","Order status on authorization"
|
125 |
"Page","Page"
|
126 |
+
"Pay","Pay"
|
|
|
|
|
127 |
"Pay with Amazon","Pay with Amazon"
|
128 |
+
"Pay with Amazon (Sandbox)","Pay with Amazon (Sandbox)"
|
129 |
+
"Pay with Amazon API Call","Pay with Amazon API Call"
|
130 |
"Pay with Amazon API Calls","Pay with Amazon API Calls"
|
131 |
+
"Pay with Amazon Exception","Pay with Amazon Exception"
|
132 |
+
"Pay with Amazon Exception | %s","Pay with Amazon Exception | %s"
|
133 |
"Pay with Amazon Exceptions","Pay with Amazon Exceptions"
|
134 |
+
"Payment Action","Payment Action"
|
135 |
+
"Payment widget height","Payment widget height"
|
136 |
+
"Payment widget width","Payment widget width"
|
137 |
"per page","per page"
|
138 |
+
"Please agree to all the terms and conditions before placing the order.","Please agree to all the terms and conditions before placing the order."
|
139 |
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central."
|
140 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central.","Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central."
|
141 |
"Please enter your shop password to match it with your Amazon account.","Please enter your shop password to match it with your Amazon account."
|
142 |
"Please fill in required data that cannot be retrieved from your Amazon account.","Please fill in required data that cannot be retrieved from your Amazon account."
|
143 |
"Please note that the total amount of the order will be charged at order placement.","Please note that the total amount of the order will be charged at order placement."
|
144 |
"Please provide all required data.","Please provide all required data."
|
145 |
+
"Pop-up","Pop-up"
|
146 |
"Preview","Preview"
|
147 |
+
"Query","Query"
|
148 |
+
"Redirect","Redirect"
|
149 |
+
"Redirecting, please wait...","Redirecting, please wait..."
|
150 |
+
"Request Body","Request Body"
|
151 |
+
"Request Headers","Request Headers"
|
152 |
+
"Response","Response"
|
153 |
"Response code","Response code"
|
154 |
+
"Response headers","Response headers"
|
155 |
"Sandbox Mode","Sandbox Mode"
|
156 |
+
"Sandbox Toolbox","Sandbox Toolbox"
|
157 |
"Secret Access Key","Secret Access Key"
|
158 |
"Select appropriate store view scope to display IPN endpoint URL","Select appropriate store view scope to display IPN endpoint URL"
|
159 |
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Select whether an email confirmation for newly placed orders shall be sent by the shop"
|
161 |
"Settings","Settings"
|
162 |
"Show Sandbox Toolbox","Show Sandbox Toolbox"
|
163 |
"Small","Small"
|
164 |
+
"Spanish","Spanish"
|
165 |
+
"Stack trace","Stack trace"
|
166 |
"Stores","Stores"
|
167 |
+
"Synchronous","Synchronous"
|
168 |
"Tan","Tan"
|
169 |
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method."
|
170 |
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one."
|
175 |
"United Kingdom","United Kingdom"
|
176 |
"United States","United States"
|
177 |
"URL","URL"
|
178 |
+
"Use responsive widgets","Use responsive widgets"
|
179 |
"Use your Amazon Account","Use your Amazon Account"
|
180 |
+
"Validate Amazon Payments account","Validate Amazon Payments account"
|
181 |
"View","View"
|
182 |
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visit <a href=""%s"" target=""_blank"">%s</a> to get more information."
|
183 |
"Wallet widget height","Wallet widget height"
|
185 |
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Whether to show a toolbox in the checkout for simulating different payment scenarios."
|
186 |
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Your Access Key ID seems to be invalid."
|
187 |
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Your Merchant ID seems to be invalid."
|
188 |
+
"Whoops! Your Secret Access Key seems to be invalid.","Whoops! Ihr Secret Access Key ist nicht korrekt.""With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
189 |
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
190 |
"X-Large","X-Large"
|
|
|
191 |
"You have aborted the login with Amazon. Please contact us or try again.","You have aborted the login with Amazon. Please contact us or try again."
|
app/locale/es_ES/Creativestyle_AmazonPayments.csv
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""Login with Amazon"" button color","""Login con Amazon""-Color del botón"
|
2 |
+
"""Login with Amazon"" button size","""Login con Amazon""-Tamaño del botón"
|
3 |
+
"""Login with Amazon"" button type","""Login con Amazon""-Tipo de botón"
|
4 |
+
"""Pay with Amazon"" button color","""Pagar con Amazon""-Color del botón"
|
5 |
+
"""Pay with Amazon"" button size","""Pagar con Amazon""-Tamaño del botón"
|
6 |
+
"""Pay with Amazon"" button type","""Pagar con Amazon""-Tipo de botón"
|
7 |
+
"%s API Call | %s","%s Llamada API | %s"
|
8 |
+
"* Required Fields","* Required Fields"
|
9 |
+
"--- Select object ---","--- Seleccionar objeto ---"
|
10 |
+
"--- Select reason code ---","--- Seleccionar razón de rechazo ---"
|
11 |
+
"--- Select state to simulate ---","--- Seleccionar estado a simular ---"
|
12 |
+
"-OR-","-OR-"
|
13 |
+
"1 day","1 día"
|
14 |
+
"1 hour","1 hora"
|
15 |
+
"10 minutes","10 minutos"
|
16 |
+
"12 hours","12 horas"
|
17 |
+
"14 days","14 días"
|
18 |
+
"15 days","15 días"
|
19 |
+
"15 minutes","15 minutos"
|
20 |
+
"2 days","2 días"
|
21 |
+
"2 hours","2 horas"
|
22 |
+
"3 days","3 días"
|
23 |
+
"30 days","30 días"
|
24 |
+
"30 minutes","30 minutos"
|
25 |
+
"4 hours","4 horas"
|
26 |
+
"5 minutes","5 minutos"
|
27 |
+
"7 days","7 días"
|
28 |
+
"8 hours","8 horas"
|
29 |
+
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
|
30 |
+
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","Con <strong>Amazon Payments</strong> puedes comprar rápido, de manera efectiva y segura. Puedes pagar en nuestra página sin tener que volver a introducir tu dirección y datos de pago."
|
31 |
+
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","Con <strong>Amazon Payments</strong> puedes comprar rápido, de manera efectiva y segura. Puedes pagar en nuestra página sin tener que volver a introducir tu dirección y datos de pago. Las transacciones con Amazon están protegidas por la Garantía de la A a la Z."
|
32 |
+
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","Una captura de %s ha sido procesada por Amazon Payments (%s). El nuevo estado es %s."
|
33 |
+
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","A refund of %s has been processed by Amazon Payments (%s). The new status is %s."
|
34 |
+
"Access Key ID","Access Key ID"
|
35 |
+
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Información sobre la cuenta <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">hier</a>"
|
36 |
+
"Action","Acción"
|
37 |
+
"Add New","Añadir nuevo"
|
38 |
+
"Address widget height","Altura del Widget de direcciones"
|
39 |
+
"Address widget width","Anchura del Widget de direcciones"
|
40 |
+
"Allowed IPs (comma separated)","IPs permitidas (separadas por coma)"
|
41 |
+
"Amazon Cronjobs","Cronjobs Amazon"
|
42 |
+
"Amazon logo","Logo de Amazon"
|
43 |
+
"Amazon Order Reference ID: %s","Amazon Order Reference ID: %s"
|
44 |
+
"Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>","Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>"
|
45 |
+
"Amazon Payments Account","Cuenta de Amazon Payments"
|
46 |
+
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","Una autorización de %s ha sido procesada por Amazon Payments (%s). El nuevo estado es %s."
|
47 |
+
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","Un pedido de %s ha sido procesada por Amazon Payments (%s). El nuevo estado es %s."
|
48 |
+
"API Call details","Detalles de las llamadas API"
|
49 |
+
"Appearance Settings","Configuración de apariencia"
|
50 |
+
"Appearance Settings for Login and Pay with Amazon","Configuración de apariencia de Login y Pagar con Amazon"
|
51 |
+
"Appearance Settings for standalone Pay with Amazon","Configuración de apariencia de Pagar con Amazon si Login está desactivado"
|
52 |
+
"Asynchronous","Asíncrono"
|
53 |
+
"Authentication Experience","Experiencia de autentificación"
|
54 |
+
"Authorization Processing Mode","Modo de procesado de la autorización"
|
55 |
+
"Authorize","Autorizar"
|
56 |
+
"Authorize & capture","Autorizar & capturar"
|
57 |
+
"Auto","Auto"
|
58 |
+
"Back","Atrás"
|
59 |
+
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop."
|
60 |
+
"Client ID","Client ID"
|
61 |
+
"Code","Código"
|
62 |
+
"Common Appearance Settings","Configuración General de Apariencia"
|
63 |
+
"Congratulations! Your Amazon Payments account settings seem to be OK.","Congratulations! Your Amazon Payments account settings seem to be OK."
|
64 |
+
"creativestyle Extensions","creativestyle Extensions"
|
65 |
+
"Dark gray","Gris oscuro"
|
66 |
+
"Data polling frequency","Frecuencia de polling de datos"
|
67 |
+
"Date","Fecha"
|
68 |
+
"Debug data","Debug datos"
|
69 |
+
"Declined Payment Email Sender","Remitente del email de pago"
|
70 |
+
"Declined Payment Email Template","Plantilla del email de pago rechazado"
|
71 |
+
"Developer Options","Opciones de desarrollo"
|
72 |
+
"Display Language","Mostrar idioma"
|
73 |
+
"Download as CSV","Descargar en formato CSV"
|
74 |
+
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Un nuevo archivo se generará al sobrepasar 8 Megabytes"
|
75 |
+
"Email Options","Opciones de email"
|
76 |
+
"Enable Instant Payment Notifications","Activar IPNs - Instant Payment Notifications"
|
77 |
+
"Enable logging","Activar Logs"
|
78 |
+
"Enable Login with Amazon","Activar Login con Amazon"
|
79 |
+
"Enable Pay with Amazon","Activar Pagar con Amazon"
|
80 |
+
"English","Inglés"
|
81 |
+
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Introduce un valor entre 200 y 600 píxels. Para widgets de una única columna, introduce una anchura menor que 400 píxels."
|
82 |
+
"Enter a value between 228 and 400 pixels","Introduce un valor entre 228 y 400 píxels"
|
83 |
+
"ERP mode","Modo ERP"
|
84 |
+
"Event Observers","Observadores de eventos"
|
85 |
+
"Exception code","Código de excepción"
|
86 |
+
"Exception details","Detalles de excepción"
|
87 |
+
"Exception message","Mensaje de excepción"
|
88 |
+
"Extracted XML message","Mensaje XML extraído"
|
89 |
+
"French","Francés"
|
90 |
+
"General Info","Información General"
|
91 |
+
"General Settings","Configuración General"
|
92 |
+
"German","Alemán"
|
93 |
+
"Germany","Alemania"
|
94 |
+
"Gold","Dorado"
|
95 |
+
"http://www.creativestyle.net","http://www.creativestyle.net"
|
96 |
+
"http://www.creativestyle.net/services/magento.html","http://www.creativestyle.net/services/magento.html"
|
97 |
+
"In Sandbox Mode you can simulate certain states of selected payment objects.","En modo Sandbox puedes simular algunos estados de los objetos de pago"
|
98 |
+
"Installed Magento extensions","Extensiones de Magento instaladas"
|
99 |
+
"Installed PHP modules","Módulos PHP instalados"
|
100 |
+
"Invalid password","Invalid password"
|
101 |
+
"IPN %s | %s","IPN %s | %s"
|
102 |
+
"IPN endpoint URL","URL para IPNs"
|
103 |
+
"IPN Notification","Notificación IPN"
|
104 |
+
"IPN Notifications","Notificaciones IPN"
|
105 |
+
"Italian","Italiano"
|
106 |
+
"Large","Grande"
|
107 |
+
"Leave empty for access from any location","Dejar vacío para permitir acceso desde cualquier lugar"
|
108 |
+
"Light gray","Gris claro"
|
109 |
+
"Login","Login"
|
110 |
+
"Login and Pay with Amazon","Login y Pagar con Amazon"
|
111 |
+
"Login with Amazon","Login con Amazon"
|
112 |
+
"Magento Settings","Configuración de Magento"
|
113 |
+
"Manual authorization","Autorización manual"
|
114 |
+
"Marketplace","Marketplace"
|
115 |
+
"Medium","Medio"
|
116 |
+
"Merchant ID","ID del vendedor"
|
117 |
+
"Message","Mensaje"
|
118 |
+
"New order status","Estado para pedidos nuevos"
|
119 |
+
"Next page","Siguiente página"
|
120 |
+
"No, use data polling instead","No, usar polling en su lugar"
|
121 |
+
"Notification type","Tipo de Notificación"
|
122 |
+
"of %s pages","de %s páginas"
|
123 |
+
"Orange (recommended)","Naranja (recomendado)"
|
124 |
+
"Order status on authorization","Estado del pedido tras autorización"
|
125 |
+
"Page","Página"
|
126 |
+
"Pay","Pago"
|
127 |
+
"Pay with Amazon","Pagar con Amazon"
|
128 |
+
"Pay with Amazon (Sandbox)","Pagar con Amazon (Sandbox)"
|
129 |
+
"Pay with Amazon API Call","Pagar con Amazon - llamada API"
|
130 |
+
"Pay with Amazon API Calls","Pagar con Amazon - llamadas API"
|
131 |
+
"Pay with Amazon Exception","Pagar con Amazon - Excepción"
|
132 |
+
"Pay with Amazon Exception | %s","Pagar con Amazon - Excepción | %s"
|
133 |
+
"Pay with Amazon Exceptions","Pagar con Amazon - Excepciones"
|
134 |
+
"Payment Action","Acción de pago"
|
135 |
+
"Payment widget height","Payment widget height"
|
136 |
+
"Payment widget width","Payment widget width"
|
137 |
+
"per page","por página"
|
138 |
+
"Please agree to all the terms and conditions before placing the order.","Por favor, acepte todos los términos y condiciones antes de confirmar el pedido"
|
139 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Por favor, introduce esta URL en el campo <strong>Merchant URL</strong> de <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Configuración de Integración</a> en tu cuenta de Seller Central de Amazon."
|
140 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central.","Por favor, introduce esta URL en el campo <strong>Merchant URL</strong> de Configuración de Integración en tu cuenta de Seller Central de Amazon."
|
141 |
+
"Please enter your shop password to match it with your Amazon account.","Please enter your shop password to match it with your Amazon account."
|
142 |
+
"Please fill in required data that cannot be retrieved from your Amazon account.","Please fill in required data that cannot be retrieved from your Amazon account."
|
143 |
+
"Please note that the total amount of the order will be charged at order placement.","Por favor, tenga en cuenta que el importe total será cargardo una vez que el pedido esté listo para ser enviado"
|
144 |
+
"Please provide all required data.","Please provide all required data."
|
145 |
+
"Pop-up","Pop-up"
|
146 |
+
"Preview","Vista previa"
|
147 |
+
"Query","Query"
|
148 |
+
"Redirect","Redirect"
|
149 |
+
"Redirecting, please wait...","Redirigiendo, espere por favor..."
|
150 |
+
"Request Body","Request Body"
|
151 |
+
"Request Headers","Request Headers"
|
152 |
+
"Response","Response"
|
153 |
+
"Response code","Response code"
|
154 |
+
"Response headers","Response headers"
|
155 |
+
"Sandbox Mode","Modo Sandbox"
|
156 |
+
"Sandbox Toolbox","Herramientas de Sandbox"
|
157 |
+
"Secret Access Key","Secret Access Key"
|
158 |
+
"Select appropriate store view scope to display IPN endpoint URL","Por favor, selecciona la vista de configuración de tienda apropiada para mostrar tu URL para IPNs"
|
159 |
+
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Seleccionar para enviar un email de confirmación desde la tienda para pedidos nuevos"
|
160 |
+
"Send order confirmation","Enviar confirmación de pedido"
|
161 |
+
"Settings","Configuración"
|
162 |
+
"Show Sandbox Toolbox","Mostrar herramientas de Sandbox"
|
163 |
+
"Small","Pequeño"
|
164 |
+
"Spanish","Español"
|
165 |
+
"Stack trace","Stack trace"
|
166 |
+
"Stores","Tiendas"
|
167 |
+
"Synchronous","Síncrono"
|
168 |
+
"Tan","Beige"
|
169 |
+
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method."
|
170 |
+
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one."
|
171 |
+
"There was an error processing your order. Please contact us or try again later.","Se ha producido un error al procesar su pedido. Por favor, contáctenos o inténtelo de nuevo más tarde."
|
172 |
+
"This extension integrates easily your Magento shop with Pay with Amazon service.","Esta extensión integra de manera sencilla tu tienda Magento con el Servicio de Login y Pagar con Amazon"
|
173 |
+
"This feature requires valid SSL certificate to be installed on this server. Pay attention that the SSL certificate must be issued by a trusted Certificate Authority, self-signed certificates are not permitted.","Esta feature require que un certificado SSL esté instalado en el servidor. Asegúrate de que el certificado SSL sea expedido por una Certificate Authority de confianza. Los certificados autofirmados no están permitidos."
|
174 |
+
"Total %d records found","Total %d entradas encontradas"
|
175 |
+
"United Kingdom","Reino Unido"
|
176 |
+
"United States","United States"
|
177 |
+
"URL","URL"
|
178 |
+
"Use responsive widgets","Usar widgets responsivos"
|
179 |
+
"Use your Amazon Account","Use your Amazon Account"
|
180 |
+
"Validate Amazon Payments account","Validar cuenta de Amazon Payments"
|
181 |
+
"View","Vista"
|
182 |
+
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visita <a href=""%s"" target=""_blank"">%s</a> para recibir más información."
|
183 |
+
"Wallet widget height","Altura del widget de pagos"
|
184 |
+
"Wallet widget width","Anchura del widget de pagos"
|
185 |
+
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Mostrar herramientas de test en el checkout para simular diferentes escenarios de pago."
|
186 |
+
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Your Access Key ID seems to be invalid."
|
187 |
+
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Your Merchant ID seems to be invalid."
|
188 |
+
"Whoops! Your Secret Access Key seems to be invalid.","Whoops! Ihr Secret Access Key ist nicht korrekt.""With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
189 |
+
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
190 |
+
"X-Large","Muy grande"
|
191 |
+
"You have aborted the login with Amazon. Please contact us or try again.","You have aborted the login with Amazon. Please contact us or try again."
|
app/locale/fr_FR/Creativestyle_AmazonPayments.csv
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""Login with Amazon"" button color","""Connectez-vous avec Amazon""-couleur bouton"
|
2 |
+
"""Login with Amazon"" button size","""Connectez-vous avec Amazon""-bouton taille"
|
3 |
+
"""Login with Amazon"" button type","""Connectez-vous avec Amazon""-bouton type"
|
4 |
+
"""Pay with Amazon"" button color","""Payez avec Amazon""-couleur bouton"
|
5 |
+
"""Pay with Amazon"" button size","""Payez avec Amazon""-bouton taille"
|
6 |
+
"""Pay with Amazon"" button type","""Payez avec Amazon""-bouton type"
|
7 |
+
"%s API Call | %s","%s API Call | %s"
|
8 |
+
"* Required Fields","* Required Fields"
|
9 |
+
"--- Select object ---","--- choisir un objet ---"
|
10 |
+
"--- Select reason code ---","--- choisir une raison ---"
|
11 |
+
"--- Select state to simulate ---","--- Choisir l'état à simuler ---"
|
12 |
+
"-OR-","-OU-"
|
13 |
+
"1 day","1 jour"
|
14 |
+
"1 hour","1 heure"
|
15 |
+
"10 minutes","10 minutes"
|
16 |
+
"12 hours","12 heures"
|
17 |
+
"14 days","14 jours"
|
18 |
+
"15 days","15 jours"
|
19 |
+
"15 minutes","15 minutes"
|
20 |
+
"2 days","2 jours"
|
21 |
+
"2 hours","2 heures"
|
22 |
+
"3 days","3 jours"
|
23 |
+
"30 days","30 jours"
|
24 |
+
"30 minutes","30 minutes"
|
25 |
+
"4 hours","4 heures"
|
26 |
+
"5 minutes","5 minutes"
|
27 |
+
"7 days","7 jours"
|
28 |
+
"8 hours","8 heures"
|
29 |
+
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
|
30 |
+
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details."
|
31 |
+
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","Avec <strong>Amazon Payments</strong> vous pouvez utiliser les adresses et les informations de payments enregistrées dans votre compte Amazon pour accomplir vos achats de façon sûre et rapide. En plus vous profitez de la garantie A-z."
|
32 |
+
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","Une capture sur %s a été traité par Amazon Payments (%s). Le nouveau status est %s."
|
33 |
+
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","A refund of %s has been processed by Amazon Payments (%s). The new status is %s."
|
34 |
+
"Access Key ID","Access Key ID"
|
35 |
+
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Les informations sur le compte se trouvent <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">ici</a>"
|
36 |
+
"Action","Action"
|
37 |
+
"Add New","Rajouter"
|
38 |
+
"Address widget height","Hauteur widget des adresses"
|
39 |
+
"Address widget width","Largeur widget des adresses"
|
40 |
+
"Allowed IPs (comma separated)","Adresses IP autorisé (séparé par virgule)"
|
41 |
+
"Amazon Cronjobs","Amazon Cronjobs"
|
42 |
+
"Amazon logo","Logo Amazon"
|
43 |
+
"Amazon Order Reference ID: %s","Référence de la commande Amazon: %s"
|
44 |
+
"Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>","Référence de la commande Amazon: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>"
|
45 |
+
"Amazon Payments Account","Compte Amazon Payments"
|
46 |
+
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","Une autorisation sur %s a été traité par Amazon Payments (%s). Le nouveau status est %s."
|
47 |
+
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","Une commande sur %s a été traité par Amazon Payments (%s). Le nouveau status est %s."
|
48 |
+
"API Call details","détails appel API"
|
49 |
+
"Appearance Settings","Configuration apparence"
|
50 |
+
"Appearance Settings for Login and Pay with Amazon","Configuration pour Connectez-vous et payer avec Amazon"
|
51 |
+
"Appearance Settings for standalone Pay with Amazon","Configuration pour Connectez-vous avec Amazon"
|
52 |
+
"Asynchronous","Asynchrone"
|
53 |
+
"Authentication Experience","Idenfication"
|
54 |
+
"Authorization Processing Mode","Mode d'autorisation"
|
55 |
+
"Authorize","Autoriser"
|
56 |
+
"Authorize & capture","Autoriser & capture"
|
57 |
+
"Auto","Auto"
|
58 |
+
"Back","Retour"
|
59 |
+
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop."
|
60 |
+
"Client ID","ID client"
|
61 |
+
"Code","Code"
|
62 |
+
"Common Appearance Settings","Configuration générale"
|
63 |
+
"Congratulations! Your Amazon Payments account settings seem to be OK.","Congratulations! Your Amazon Payments account settings seem to be OK."
|
64 |
+
"creativestyle Extensions","creativestyle Extensions"
|
65 |
+
"Dark gray","Gris foncé"
|
66 |
+
"Data polling frequency","Fréquence polling"
|
67 |
+
"Date","Date"
|
68 |
+
"Debug data","Debug Data"
|
69 |
+
"Declined Payment Email Sender","Expéditeur pour les emails de refus de payment"
|
70 |
+
"Declined Payment Email Template","Modèle email payment refusé"
|
71 |
+
"Developer Options","Options dévelopeurs"
|
72 |
+
"Display Language","Langue d'afficahge"
|
73 |
+
"Download as CSV","Télécharger sous forme CSV"
|
74 |
+
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Si la taille du fichier dépasse 8 mégabyte, un nouveau fichier est créé."
|
75 |
+
"Email Options","Optiones emails"
|
76 |
+
"Enable Instant Payment Notifications","Activer Instant Payment Notifications"
|
77 |
+
"Enable logging","Activer Logging"
|
78 |
+
"Enable Login with Amazon","Activer Connectez-vous avec Amazon"
|
79 |
+
"Enable Pay with Amazon","Payez avec Amazon aktiviert"
|
80 |
+
"English","Anglais"
|
81 |
+
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Entrer une valeur entre 200 et 600 pixels. Pour un widget avec une colonnes, utilisez une valeur de moins de 400."
|
82 |
+
"Enter a value between 228 and 400 pixels","Entrer une valeur entre 228 et 400 pixels"
|
83 |
+
"ERP mode","Mode ERP"
|
84 |
+
"Event Observers","Event Observers"
|
85 |
+
"Exception code","Code Exception"
|
86 |
+
"Exception details","Détails Exception"
|
87 |
+
"Exception message","Message d'exception"
|
88 |
+
"Extracted XML message","Extractation du message XML"
|
89 |
+
"French","Français"
|
90 |
+
"General Info","Informations générales"
|
91 |
+
"General Settings","Informations générales"
|
92 |
+
"German","Allemand"
|
93 |
+
"Germany","Allemagne"
|
94 |
+
"Gold","Or"
|
95 |
+
"http://www.creativestyle.net","http://www.creativestyle.net"
|
96 |
+
"http://www.creativestyle.net/services/magento.html","http://www.creativestyle.de/leistungen/magento.html"
|
97 |
+
"In Sandbox Mode you can simulate certain states of selected payment objects.","En mode Sandbox vous pouvez simuler certains états pour les objets de payments."
|
98 |
+
"Installed Magento extensions","Extensions Magento installées"
|
99 |
+
"Installed PHP modules","Modules PHP installés"
|
100 |
+
"Invalid password","Invalid password"
|
101 |
+
"IPN %s | %s","IPN %s | %s"
|
102 |
+
"IPN endpoint URL","IPN endpoint URL"
|
103 |
+
"IPN Notification","IPN Notification"
|
104 |
+
"IPN Notifications","IPN Notifications"
|
105 |
+
"Italian","Italien"
|
106 |
+
"Large","Grand"
|
107 |
+
"Leave empty for access from any location","Laisser vide pour un accès de n'importe quelle addresse"
|
108 |
+
"Light gray","Gris clair"
|
109 |
+
"Login","Connectez-vous"
|
110 |
+
"Login and Pay with Amazon","Connectez-vous et payez avec Amazon"
|
111 |
+
"Login with Amazon","Connectez-vous avec Amazon"
|
112 |
+
"Magento Settings","Configuration Magento"
|
113 |
+
"Manual authorization","Autoriser manuellement"
|
114 |
+
"Marketplace","Marketplace"
|
115 |
+
"Medium","Moyen"
|
116 |
+
"Merchant ID","Numéro marchand"
|
117 |
+
"Message","Message"
|
118 |
+
"New order status","Nouvelle commande"
|
119 |
+
"Next page","Prochaine page"
|
120 |
+
"No, use data polling instead","Non, utiliser data polling"
|
121 |
+
"Notification type","Type de notification"
|
122 |
+
"of %s pages","de %s pages"
|
123 |
+
"Orange (recommended)","Orange (recommandé)"
|
124 |
+
"Order status on authorization","Status de la commande après l'autorisation"
|
125 |
+
"Page","Page"
|
126 |
+
"Pay","Payer"
|
127 |
+
"Pay with Amazon","Payez avec Amazon"
|
128 |
+
"Pay with Amazon (Sandbox)","Payez avec Amazon (Sandbox)"
|
129 |
+
"Pay with Amazon API Call","Payez avec Amazon API Call"
|
130 |
+
"Pay with Amazon API Calls","Payez avec Amazon API Calls"
|
131 |
+
"Pay with Amazon Exception","Payez avec Amazon Exception"
|
132 |
+
"Pay with Amazon Exception | %s","Payez avec Amazon Exception | %s"
|
133 |
+
"Pay with Amazon Exceptions","Payez avec Amazon Exceptions"
|
134 |
+
"Payment Action","Action de payment"
|
135 |
+
"Payment widget height","Payment widget height"
|
136 |
+
"Payment widget width","Payment widget width"
|
137 |
+
"per page","par page"
|
138 |
+
"Please agree to all the terms and conditions before placing the order.","Veuillez accepter les conditions avant de placer la commande."
|
139 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Configurer cette URL dans la champ <strong>Merchant-URL</strong> sous <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> dans la Amazon Sellercentral."
|
140 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central.","Configurer cette URL dans la champ <strong>Merchant-URL</strong> sous Integration Settings dans la Amazon Sellercentral."
|
141 |
+
"Please enter your shop password to match it with your Amazon account.","Please enter your shop password to match it with your Amazon account."
|
142 |
+
"Please fill in required data that cannot be retrieved from your Amazon account.","Please fill in required data that cannot be retrieved from your Amazon account."
|
143 |
+
"Please note that the total amount of the order will be charged at order placement.","Veuillez noter que le montant complet est débité lors du passage la commande."
|
144 |
+
"Please provide all required data.","Please provide all required data."
|
145 |
+
"Pop-up","Pop-up"
|
146 |
+
"Preview","Aperçu"
|
147 |
+
"Query","Query"
|
148 |
+
"Redirect","Redirection"
|
149 |
+
"Redirecting, please wait...","Vous allez être redirigé dans un instant..."
|
150 |
+
"Request Body","Requête Body"
|
151 |
+
"Request Headers","Requête Headers"
|
152 |
+
"Response","Réponse"
|
153 |
+
"Response code","Réponse code"
|
154 |
+
"Response headers","Réponse headers"
|
155 |
+
"Sandbox Mode","Mode Sandbox"
|
156 |
+
"Sandbox Toolbox","Sandbox Toolbox"
|
157 |
+
"Secret Access Key","Secret Access Key"
|
158 |
+
"Select appropriate store view scope to display IPN endpoint URL","Bitte den richtigen Konfigurationsumfang in der Liste der Läden auswählen um die IPN endpoint URLs anzuzeigen."
|
159 |
+
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Auswählen ob eine Bestätigungsemail für neue Bestellungen durch den Shop verschickt wird."
|
160 |
+
"Send order confirmation","Confirmation de commande"
|
161 |
+
"Settings","Configuration"
|
162 |
+
"Show Sandbox Toolbox","Afficher Sandbox Toolbox"
|
163 |
+
"Small","Petit"
|
164 |
+
"Spanish","Espagnol"
|
165 |
+
"Stack trace","Stack trace"
|
166 |
+
"Stores","Stores"
|
167 |
+
"Synchronous","Synchrone"
|
168 |
+
"Tan","Beige"
|
169 |
+
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method."
|
170 |
+
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one."
|
171 |
+
"There was an error processing your order. Please contact us or try again later.","Lors du traitement de votre commande une erreur s'est produite. Veuillez nous contacter ou essayez de nouveau plus tard."
|
172 |
+
"This extension integrates easily your Magento shop with Pay with Amazon service.","Cette extension intègre le service ""Connectez-vous et Payez avec Amazon"" dans votre shop Magento."
|
173 |
+
"This feature requires valid SSL certificate to be installed on this server. Pay attention that the SSL certificate must be issued by a trusted Certificate Authority, self-signed certificates are not permitted.","Cette fonctionalité exige l'installation d'un certificat SSL valide sur votre serveur. Faites attention que votre certificate SSL a été émis d'une autorité de certification reconnue. Les certificats de type self-signed ne sont pas acceptés."
|
174 |
+
"Total %d records found","Total %d entrées trouvées"
|
175 |
+
"United Kingdom","Royaume-Uni"
|
176 |
+
"United States","United States"
|
177 |
+
"URL","URL"
|
178 |
+
"Use responsive widgets","Utiliser des widgets de type responsive"
|
179 |
+
"Use your Amazon Account","Use your Amazon Account"
|
180 |
+
"Validate Amazon Payments account","Valider le compte Amazon Payments"
|
181 |
+
"View","Vue"
|
182 |
+
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Pour plus d'informations visitez <a href=""%s"" target=""_blank"">%s</a>."
|
183 |
+
"Wallet widget height","Hauteur widget payements"
|
184 |
+
"Wallet widget width","Largeur widget payements"
|
185 |
+
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Option pour activer la Toolbox qui permet de simuler certains scénarios de payment (refus inclus) dans le mode Sandbox"
|
186 |
+
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Your Access Key ID seems to be invalid."
|
187 |
+
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Your Merchant ID seems to be invalid."
|
188 |
+
"Whoops! Your Secret Access Key seems to be invalid.","Whoops! Ihr Secret Access Key ist nicht korrekt.""With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
189 |
+
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
190 |
+
"X-Large","Très grand"
|
191 |
+
"You have aborted the login with Amazon. Please contact us or try again.","You have aborted the login with Amazon. Please contact us or try again."
|
app/locale/it_IT/Creativestyle_AmazonPayments.csv
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""Login with Amazon"" button color","Colore pulsante-""Accedi con Amazon"""
|
2 |
+
"""Login with Amazon"" button size","Dimensione pulsante-""Accedi con Amazon"""
|
3 |
+
"""Login with Amazon"" button type","Tipo pulsante-""Accedi con Amazon"""
|
4 |
+
"""Pay with Amazon"" button color","Colore pulsante-""Pagare con Amazon"""
|
5 |
+
"""Pay with Amazon"" button size","Dimensione pulsante-""Pagare con Amazon"""
|
6 |
+
"""Pay with Amazon"" button type","Tipo pulsante-""Pagare con Amazon"""
|
7 |
+
"%s API Call | %s","%s Chiamata API | %s"
|
8 |
+
"* Required Fields","* Required Fields"
|
9 |
+
"--- Select object ---","--- Seleziona oggetto ---"
|
10 |
+
"--- Select reason code ---","--- Seleziona codice motivo ---"
|
11 |
+
"--- Select state to simulate ---","--- Seleziona stato da simulare ---"
|
12 |
+
"-OR-","-O-"
|
13 |
+
"1 day","1 giorno"
|
14 |
+
"1 hour","1 ora"
|
15 |
+
"10 minutes","10 minuti"
|
16 |
+
"12 hours","12 ore"
|
17 |
+
"14 days","14 giorni"
|
18 |
+
"15 days","15 giorni"
|
19 |
+
"15 minutes","15 minuti"
|
20 |
+
"2 days","2 giorni"
|
21 |
+
"2 hours","2 ore"
|
22 |
+
"3 days","3 giorni"
|
23 |
+
"30 days","30 giorni"
|
24 |
+
"30 minutes","30 minuti"
|
25 |
+
"4 hours","4 ore"
|
26 |
+
"5 minutes","5 minuti"
|
27 |
+
"7 days","7 giorni"
|
28 |
+
"8 hours","8 ore"
|
29 |
+
"<div id=""creative-system-config"">creativestyle Extensions</div>","<div id=""creative-system-config"">creativestyle Extensions</div>"
|
30 |
+
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details.","<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details."
|
31 |
+
"<strong>Amazon Payments</strong> helps you shop quickly, safely and securely. You can pay on our website without re-entering your payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.","<strong>Amazon Payments</strong> ti aiuta a fare acquisti in modo rapido e sicuro. Puoi pagare sul nostro sito web senza dover inserire nuovamente i tuoi dati. Tutte le transazioni Amazon sono protette dalla garanzia dalla A alla Z di Amazon."
|
32 |
+
"A capture of %s has been processed by Amazon Payments (%s). The new status is %s.","Un'acquisizione di %s è stata elaborata da Amazon Payments (%s). Il nuovo stato è %s."
|
33 |
+
"A refund of %s has been processed by Amazon Payments (%s). The new status is %s.","A refund of %s has been processed by Amazon Payments (%s). The new status is %s."
|
34 |
+
"Access Key ID","Access Key ID"
|
35 |
+
"Account information can be found <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">here</a>","Le informazioni sul conto sono disponibili <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/integration/details"">qui</a>"
|
36 |
+
"Action","Azione"
|
37 |
+
"Add New","Aggiungi nuovo"
|
38 |
+
"Address widget height","Altezza widget indirizzo"
|
39 |
+
"Address widget width","Larghezza widget indirizzo"
|
40 |
+
"Allowed IPs (comma separated)","IP consentiti (separati da virgola)"
|
41 |
+
"Amazon Cronjobs","Cron-job Amazon"
|
42 |
+
"Amazon logo","Logo Amazon"
|
43 |
+
"Amazon Order Reference ID: %s","N. di riferimento ordine Amazon: %s"
|
44 |
+
"Amazon Order Reference ID: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>","N. di riferimento ordine Amazon: <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/hz/me/pmd/payment-details?orderReferenceId=%s"">%s</a>"
|
45 |
+
"Amazon Payments Account","Conto Amazon Payments"
|
46 |
+
"An authorization of %s has been processed by Amazon Payments (%s). The new status is %s.","Un'autorizzazione di %s è stata elaborata da Amazon Payments (%s). Il nuovo stato è %s."
|
47 |
+
"An order of %s has been processed by Amazon Payments (%s). The new status is %s.","Un ordine di %s è stato elaborato da Amazon Payments (%s). Il nuovo stato è %s."
|
48 |
+
"API Call details","Dettagli chiamata API"
|
49 |
+
"Appearance Settings","Impostazioni dell'aspetto"
|
50 |
+
"Appearance Settings for Login and Pay with Amazon","Impostazioni dell'aspetto per Accedi e Pagare con Amazon"
|
51 |
+
"Appearance Settings for standalone Pay with Amazon","Impostazioni dell'aspetto per Pagare con Amazon"
|
52 |
+
"Asynchronous","Asincrono"
|
53 |
+
"Authentication Experience","Esperienza di autenticazione"
|
54 |
+
"Authorization Processing Mode","Modalit? di elaborazione dell'autorizzazione"
|
55 |
+
"Authorize","Autorizza"
|
56 |
+
"Authorize & capture","Autorizza e acquisisci"
|
57 |
+
"Auto","Automatico"
|
58 |
+
"Back","Indietro"
|
59 |
+
"By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop.","By selecting Amazon Payments, you will be asked to sign-in securely to your Amazon account without leaving the shop."
|
60 |
+
"Client ID","Client ID"
|
61 |
+
"Code","Codice"
|
62 |
+
"Common Appearance Settings","Impostazioni dell'aspetto comuni"
|
63 |
+
"Congratulations! Your Amazon Payments account settings seem to be OK.","Congratulations! Your Amazon Payments account settings seem to be OK."
|
64 |
+
"creativestyle Extensions","creativestyle Extensions"
|
65 |
+
"Dark gray","Grigio scuro"
|
66 |
+
"Data polling frequency","Datenpollingfrequenz"
|
67 |
+
"Date","Data"
|
68 |
+
"Debug data","Dati di debug"
|
69 |
+
"Declined Payment Email Sender","Mittente e-mail pagamento rifiutato"
|
70 |
+
"Declined Payment Email Template","Modello e-mail pagamento rifiutato"
|
71 |
+
"Developer Options","Opzioni sviluppatori"
|
72 |
+
"Display Language","Lingua visualizzata"
|
73 |
+
"Download as CSV","Scarica come CSV"
|
74 |
+
"Each logfile will be rotated when it exceeds size of 8 Megabytes","Ogni file di log verrà ruotato quando supera le dimensioni di 8 Megabyte."
|
75 |
+
"Email Options","Opzioni e-mail"
|
76 |
+
"Enable Instant Payment Notifications","Abilita Instant Payment Notifications"
|
77 |
+
"Enable logging","Abilita registrazione"
|
78 |
+
"Enable Login with Amazon","Abilita Accedi con Amazon"
|
79 |
+
"Enable Pay with Amazon","Abilita Pagare con Amazon"
|
80 |
+
"English","Inglese"
|
81 |
+
"Enter a value between 200 and 600 pixels. For one-column widget please enter width less than 400.","Inserisci un valore compreso tra 200 e 600 pixel. Per widget di una sola colonna, inserisci una larghezza inferiore a 400."
|
82 |
+
"Enter a value between 228 and 400 pixels","Inserisci un valore compreso tra 228 e 400 pixel"
|
83 |
+
"ERP mode","Modalità ERP"
|
84 |
+
"Event Observers","Osservatori attività"
|
85 |
+
"Exception code","Codice eccezione"
|
86 |
+
"Exception details","Dettagli eccezione"
|
87 |
+
"Exception message","Messaggio eccezione"
|
88 |
+
"Extracted XML message","Messaggio XML estratto"
|
89 |
+
"French","Francese"
|
90 |
+
"General Info","Informazioni generali"
|
91 |
+
"General Settings","Impostazioni generali"
|
92 |
+
"German","Tedesco"
|
93 |
+
"Germany","Germania"
|
94 |
+
"Gold","Oro"
|
95 |
+
"http://www.creativestyle.net","http://www.creativestyle.net"
|
96 |
+
"http://www.creativestyle.net/services/magento.html","http://www.creativestyle.de/leistungen/magento.html"
|
97 |
+
"In Sandbox Mode you can simulate certain states of selected payment objects.","In modalità sandbox puoi simulare determinati stati di oggetti di pagamento selezionati."
|
98 |
+
"Installed Magento extensions","Estensioni Magento installate"
|
99 |
+
"Installed PHP modules","Moduli PHP installati"
|
100 |
+
"Invalid password","Invalid password"
|
101 |
+
"IPN %s | %s","IPN %s | %s"
|
102 |
+
"IPN endpoint URL","URL endpoint IPN"
|
103 |
+
"IPN Notification","Notifica IPN"
|
104 |
+
"IPN Notifications","Notifiche IPN"
|
105 |
+
"Italian","Italiano"
|
106 |
+
"Large","Grande"
|
107 |
+
"Leave empty for access from any location","Lascia vuoto per consentire l'accesso da qualsiasi posizione"
|
108 |
+
"Light gray","Grigio chiaro"
|
109 |
+
"Login","Accesso"
|
110 |
+
"Login and Pay with Amazon","Accedi e Pagare con Amazon"
|
111 |
+
"Login with Amazon","Accedi con Amazon"
|
112 |
+
"Magento Settings","Impostazioni Magento"
|
113 |
+
"Manual authorization","Autorizzazione manuale"
|
114 |
+
"Marketplace","Marktplatz"
|
115 |
+
"Medium","Medio"
|
116 |
+
"Merchant ID","Merchant ID"
|
117 |
+
"Message","Messaggio"
|
118 |
+
"New order status","Nuovo stato ordine"
|
119 |
+
"Next page","Pagina successiva"
|
120 |
+
"No, use data polling instead","No, usa polling di dati"
|
121 |
+
"Notification type","Tipo di notifica"
|
122 |
+
"of %s pages","di %s pagine"
|
123 |
+
"Orange (recommended)","Arancione (consigliato)"
|
124 |
+
"Order status on authorization","Stato ordine all'autorizzazione"
|
125 |
+
"Page","Pagina"
|
126 |
+
"Pay","Paga"
|
127 |
+
"Pay with Amazon","Pagare con Amazon"
|
128 |
+
"Pay with Amazon (Sandbox)","Pagare con Amazon (Sandbox)"
|
129 |
+
"Pay with Amazon API Call","Chiamata API Pagare con Amazon"
|
130 |
+
"Pay with Amazon API Calls","Chiamate API Pagare con Amazon"
|
131 |
+
"Pay with Amazon Exception","Eccezione Pagare con Amazon"
|
132 |
+
"Pay with Amazon Exception | %s","Eccezione Pagare con Amazon | %s"
|
133 |
+
"Pay with Amazon Exceptions","Eccezioni Pagare con Amazon"
|
134 |
+
"Payment Action","Azione pagamento"
|
135 |
+
"Payment widget height","Payment widget height"
|
136 |
+
"Payment widget width","Payment widget width"
|
137 |
+
"per page","per pagina"
|
138 |
+
"Please agree to all the terms and conditions before placing the order.","Prima di effettuare l'ordine, accetta tutti i termini e le condizioni."
|
139 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Integration Settings</a> in your Amazon Seller Central.","Inserisci questo URL nel campo <strong>URL venditore</strong> delle <a target=""_blank"" href=""https://sellercentral-europe.amazon.com/gp/pyop/seller/account/settings/user-settings-view.html"">Impostazioni di integrazione</a> nel tuo Amazon Seller Central."
|
140 |
+
"Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central.","Please enter this URL in the <strong>Merchant URL</strong> field of the Integration Settings in your Amazon Seller Central."
|
141 |
+
"Please enter your shop password to match it with your Amazon account.","Please enter your shop password to match it with your Amazon account."
|
142 |
+
"Please fill in required data that cannot be retrieved from your Amazon account.","Please fill in required data that cannot be retrieved from your Amazon account."
|
143 |
+
"Please note that the total amount of the order will be charged at order placement.","L'importo totale verrà addebitato al momento dell'ordine."
|
144 |
+
"Please provide all required data.","Please provide all required data."
|
145 |
+
"Pop-up","Popup"
|
146 |
+
"Preview","Anteprima"
|
147 |
+
"Query","Query"
|
148 |
+
"Redirect","Reindirizza"
|
149 |
+
"Redirecting, please wait...","Attendere prego, reindirizzamento in corso..."
|
150 |
+
"Request Body","Corpo richiesta"
|
151 |
+
"Request Headers","Intestazioni richiesta"
|
152 |
+
"Response","Risposta"
|
153 |
+
"Response code","Codice risposta"
|
154 |
+
"Response headers","Intestazioni risposta"
|
155 |
+
"Sandbox Mode","Modalità Sandbox"
|
156 |
+
"Sandbox Toolbox","Strumenti Sandbox"
|
157 |
+
"Secret Access Key","Secret Access Key"
|
158 |
+
"Select appropriate store view scope to display IPN endpoint URL","Seleziona l'appropriato ambito di visualizzazione negozio per mostrare URL endpoint IPN"
|
159 |
+
"Select whether an email confirmation for newly placed orders shall be sent by the shop","Seleziona se il negozio invierà un'e-mail di conferma per i nuovi ordini."
|
160 |
+
"Send order confirmation","Invia conferma ordini"
|
161 |
+
"Settings","Impostazioni"
|
162 |
+
"Show Sandbox Toolbox","Mostra strumenti Sandbox"
|
163 |
+
"Small","Piccolo"
|
164 |
+
"Spanish","Spagnolo"
|
165 |
+
"Stack trace","Traccia stack"
|
166 |
+
"Stores","Negozi"
|
167 |
+
"Synchronous","Sincrono"
|
168 |
+
"Tan","Beige"
|
169 |
+
"There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method.","There has been a problem with the selected payment method from your Amazon account, please choose another payment method from you Amazon account or return to the cart to choose another checkout method."
|
170 |
+
"There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one.","There has been a problem with the selected payment method from your Amazon account, please update the payment method or choose another one."
|
171 |
+
"There was an error processing your order. Please contact us or try again later.","Si è verificato un errore durante l'elaborazione dell'ordine. Contattaci o riprova più tardi."
|
172 |
+
"This extension integrates easily your Magento shop with Pay with Amazon service.","Questa estensione integra facilmente il negozio Magento con il servizio""Login und Pagare con Amazon""."
|
173 |
+
"This feature requires valid SSL certificate to be installed on this server. Pay attention that the SSL certificate must be issued by a trusted Certificate Authority, self-signed certificates are not permitted.","Questa funzione richiede che sul server sia installato un valido certificato SSL. Assicurati che il certificato SSL sia stato emesso da un'autorità di certificazione affidabile. Non sono ammesse autocertificazioni."
|
174 |
+
"Total %d records found","%d record totali trovati"
|
175 |
+
"United Kingdom","Regno Unito"
|
176 |
+
"United States","United States"
|
177 |
+
"URL","URL"
|
178 |
+
"Use responsive widgets","Usa widget reattivi"
|
179 |
+
"Use your Amazon Account","Use your Amazon Account"
|
180 |
+
"Validate Amazon Payments account","Convalida conto Amazon Payments"
|
181 |
+
"View","Visualizza"
|
182 |
+
"Visit <a href=""%s"" target=""_blank"">%s</a> to get more information.","Visita <a href=""%s"" target=""_blank"">%s</a> per maggiori informazioni."
|
183 |
+
"Wallet widget height","Altezza widget portafoglio"
|
184 |
+
"Wallet widget width","Larghezza widget portafoglio"
|
185 |
+
"Whether to show a toolbox in the checkout for simulating different payment scenarios.","Scegli se mostrare uno strumento al checkout per simulare diverse situazioni di pagamento."
|
186 |
+
"Whoops! Your Access Key ID seems to be invalid.","Whoops! Your Access Key ID seems to be invalid."
|
187 |
+
"Whoops! Your Merchant ID seems to be invalid.","Whoops! Your Merchant ID seems to be invalid."
|
188 |
+
"Whoops! Your Secret Access Key seems to be invalid.","Whoops! Ihr Secret Access Key ist nicht korrekt.""With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
189 |
+
"With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people.","With Amazon Payments, you can use the shipping and payment information stored in your Amazon account to place an order on this website. It's a convenient and trusted way to pay that's enjoyed by millions of people."
|
190 |
+
"X-Large","Molto grande"
|
191 |
+
"You have aborted the login with Amazon. Please contact us or try again.","You have aborted the login with Amazon. Please contact us or try again."
|
js/creativestyle/apa_checkout.js
CHANGED
@@ -146,7 +146,7 @@ var APA = {
|
|
146 |
renderButtonWidget: function(tooltipContent) {
|
147 |
if (APA.urls.login != null) {
|
148 |
$$(APA.layers.payButtons).each(function(button) {
|
149 |
-
|
150 |
type: button.buttonType || APA.design.payButton.type || 'PwA',
|
151 |
size: button.buttonSize || APA.design.payButton.size,
|
152 |
color: button.buttonColor || APA.design.payButton.color,
|
@@ -157,10 +157,14 @@ var APA = {
|
|
157 |
}, APA.urls.pay);
|
158 |
},
|
159 |
onError: APA.amazonErrorCallback
|
160 |
-
}
|
|
|
|
|
|
|
|
|
161 |
});
|
162 |
$$(APA.layers.loginButtons).each(function(button) {
|
163 |
-
|
164 |
type: button.buttonType || APA.design.loginButton.type || 'LwA',
|
165 |
size: button.buttonSize || APA.design.loginButton.size,
|
166 |
color: button.buttonColor || APA.design.loginButton.color,
|
@@ -171,7 +175,11 @@ var APA = {
|
|
171 |
}, APA.urls.login);
|
172 |
},
|
173 |
onError: APA.amazonErrorCallback
|
174 |
-
}
|
|
|
|
|
|
|
|
|
175 |
});
|
176 |
} else {
|
177 |
$$(APA.layers.payButtons).each(function(button) {
|
@@ -520,6 +528,7 @@ var APA = {
|
|
520 |
return Object.extend(APA, {
|
521 |
sellerId: sellerId,
|
522 |
orderReferenceId: typeof options.orderReferenceId == 'undefined' ? null : options.orderReferenceId,
|
|
|
523 |
live: typeof options.live == 'undefined' ? true : options.live,
|
524 |
popup: typeof options.popup == 'undefined' ? true : options.popup,
|
525 |
virtual: typeof options.virtual == 'undefined' ? false : options.virtual,
|
146 |
renderButtonWidget: function(tooltipContent) {
|
147 |
if (APA.urls.login != null) {
|
148 |
$$(APA.layers.payButtons).each(function(button) {
|
149 |
+
var buttonParams = {
|
150 |
type: button.buttonType || APA.design.payButton.type || 'PwA',
|
151 |
size: button.buttonSize || APA.design.payButton.size,
|
152 |
color: button.buttonColor || APA.design.payButton.color,
|
157 |
}, APA.urls.pay);
|
158 |
},
|
159 |
onError: APA.amazonErrorCallback
|
160 |
+
};
|
161 |
+
if (APA.language) {
|
162 |
+
buttonParams.language = APA.language;
|
163 |
+
}
|
164 |
+
new OffAmazonPayments.Button(button.identify(), APA.sellerId, buttonParams);
|
165 |
});
|
166 |
$$(APA.layers.loginButtons).each(function(button) {
|
167 |
+
var buttonParams = {
|
168 |
type: button.buttonType || APA.design.loginButton.type || 'LwA',
|
169 |
size: button.buttonSize || APA.design.loginButton.size,
|
170 |
color: button.buttonColor || APA.design.loginButton.color,
|
175 |
}, APA.urls.login);
|
176 |
},
|
177 |
onError: APA.amazonErrorCallback
|
178 |
+
};
|
179 |
+
if (APA.language) {
|
180 |
+
buttonParams.language = APA.language;
|
181 |
+
}
|
182 |
+
new OffAmazonPayments.Button(button.identify(), APA.sellerId, buttonParams);
|
183 |
});
|
184 |
} else {
|
185 |
$$(APA.layers.payButtons).each(function(button) {
|
528 |
return Object.extend(APA, {
|
529 |
sellerId: sellerId,
|
530 |
orderReferenceId: typeof options.orderReferenceId == 'undefined' ? null : options.orderReferenceId,
|
531 |
+
language: typeof options.language == 'undefined' ? null : options.language,
|
532 |
live: typeof options.live == 'undefined' ? true : options.live,
|
533 |
popup: typeof options.popup == 'undefined' ? true : options.popup,
|
534 |
virtual: typeof options.virtual == 'undefined' ? false : options.virtual,
|
js/creativestyle/apa_checkout.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
if(!window.Review){var Review=function(){}}var APA={submitAllowed:false,paymentSelected:false,reloaded:false,Widgets:{ShippingMethod:Class.create({initialize:function(a){this.layer=$(APA.layers.shippingMethod);Object.extend(this,a);Event.stopObserving(this.layer,"widget:update").observe("widget:update",this.onUpdate.bindAsEventListener(this))},update:function(b){try{Element.update(this.layer,b);if(!this.layer.down("input[type=radio]:checked")){var a=this.layer.down("input[type=radio]");if(a){a.checked=true}}Event.stopObserving(this.layer,"change").observe("change",this.onShippingMethodSelect.bindAsEventListener(this));Event.stopObserving(this.layer,"widget:checked").observe("widget:checked",this.onShippingMethodSelect.bindAsEventListener(this));Event.fire(this.layer,"widget:update")}catch(c){this.onError(c)}}}),Review:Class.create({initialize:function(a){this.layer=$(APA.layers.review);Object.extend(this,a)},update:function(a){try{Element.update(this.layer,a)}catch(b){this.onError(b)}}})},setLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.addClassName("loading")}}return this},unsetLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.removeClassName("loading")}}return this},setOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.show(a)}}this.showOverlay();this.disableSubmit();return this},unsetOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.hide(a)}}this.hideOverlay();return this},showOverlay:function(){if($("checkoutSteps")){$("checkoutSteps").insert({top:new Element("div",{"class":"amazon-widget-overlay"})})}return this},hideOverlay:function(){if($("checkoutSteps")&&$("checkoutSteps").down(".amazon-widget-overlay")){$("checkoutSteps").down(".amazon-widget-overlay").remove()}this.toggleSubmit();return this},initCheckout:function(){this.disableSubmit().scaffoldPaymentWidget();if(this.virtual){return this.setLoadWaiting(APA.layers.wallet).renderWalletWidget().allowSubmit(true)}if(!this.orderReferenceId){return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget()}return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget().renderWalletWidget()},scaffoldPaymentWidget:function(){if(typeof APA.design.wallet.size!="undefined"&&!APA.design.responsive){if(APA.design.wallet.size.width){$(APA.layers.wallet).up().setStyle({width:APA.design.wallet.size.width})}if(APA.design.wallet.size.height){$(APA.layers.wallet).up().setStyle({height:APA.design.wallet.size.height})}}return this},renderButtonWidget:function(c){if(APA.urls.login!=null){$$(APA.layers.payButtons).each(function(d){new OffAmazonPayments.Button(d.identify(),APA.sellerId,{type:d.buttonType||APA.design.payButton.type||"PwA",size:d.buttonSize||APA.design.payButton.size,color:d.buttonColor||APA.design.payButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address",popup:APA.popup},APA.urls.pay)},onError:APA.amazonErrorCallback})});$$(APA.layers.loginButtons).each(function(d){new OffAmazonPayments.Button(d.identify(),APA.sellerId,{type:d.buttonType||APA.design.loginButton.type||"LwA",size:d.buttonSize||APA.design.loginButton.size,color:d.buttonColor||APA.design.loginButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address",popup:APA.popup},APA.urls.login)},onError:APA.amazonErrorCallback})})}else{$$(APA.layers.payButtons).each(function(d){new OffAmazonPayments.Widgets.Button({sellerId:APA.sellerId,useAmazonAddressBook:!APA.virtual,onSignIn:APA.signInCallback,onError:APA.amazonErrorCallback}).bind(d.identify())})}if(c&&typeof Tooltip!="undefined"&&!APA.isMobileDevice()){var b=$$(APA.layers.payButtons+","+APA.layers.loginButtons).findAll(function(d){return d.hasClassName("with-tooltip")});if(b.length){var a=document.createElement("div");a.setAttribute("id","pay-with-amazon-tooltip");a.addClassName("pay-with-amazon-tooltip");a.setStyle({display:"none",zIndex:10});a.update(c);document.body.appendChild(a);b.each(function(d){var e=d.down("img");if(e){new Tooltip(e,a)}})}}},signInCallback:function(a){var c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","orderReferenceId");c.setAttribute("value",a.getAmazonOrderReferenceId());var b=document.createElement("form");b.setAttribute("method","post");b.setAttribute("action",APA.urls.checkout);b.appendChild(c);document.body.appendChild(b);b.submit();return},renderAddressBookWidget:function(){APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onAddressSelect:APA.addressSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.addressBook);return this},renderReadOnlyAddressBookWidget:function(){new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onError:APA.amazonErrorCallback,displayMode:"Read"}).bind(APA.layers.addressBook);return this},orderReferenceCreateCallback:function(a){if(!APA.orderReferenceId){APA.orderReferenceId=a.getAmazonOrderReferenceId();if(!APA.virtual){APA.renderWalletWidget()}}},addressSelectCallback:function(){APA.selectPayment(false);APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new Ajax.Request(APA.urls.saveShipping,{method:"post",parameters:{orderReferenceId:APA.orderReferenceId},evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},renderShippingMethodWidget:function(a){APA.setLoadWaiting(APA.layers.review);new APA.Widgets.ShippingMethod({onShippingMethodSelect:APA.shippingMethodSelectCallback,onUpdate:APA.shippingMethodUpdateCallback,onError:APA.magentoErrorCallback}).update(a);return this},shippingMethodSelectCallback:function(a){APA.setLoadWaiting(APA.layers.review);new Ajax.Request(APA.urls.saveShippingMethod,{method:"post",parameters:Form.serialize($("co-shipping-method-form")),evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},shippingMethodUpdateCallback:function(b){var a=Event.element(b);Event.fire(a,"widget:checked")},renderWalletWidget:function(){new OffAmazonPayments.Widgets.Wallet({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.wallet),onPaymentSelect:APA.paymentSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.wallet);return this},paymentSelectCallback:function(){APA.selectPayment(true)},reloadWallet:function(){this.renderReadOnlyAddressBookWidget().renderWalletWidget();return this},renderReviewWidget:function(a){new APA.Widgets.Review({onError:APA.magentoErrorCallback}).update(a);this.toggleSubmit();return this},successCallback:function(transport){response=eval("("+transport.responseText+")");if(response.error){APA.magentoErrorCallback(response.error_messages)}if(response.render_widget){$H(response.render_widget).each(function(pair){APA["render"+pair.key.capitalize().camelize()+"Widget"](pair.value);if(pair.value){APA.unsetLoadWaiting(APA.layers[pair.key.camelize()])}})}if(response.allow_submit){APA.allowSubmit(true)}else{APA.allowSubmit(false)}},saveOrderCallback:function(transport){response=eval("("+transport.responseText+")");if(response.success){window.location=APA.urls.success}if(response.redirect){window.location=response.redirect}if(response.error){APA.unsetOrderSaveWaiting();APA.magentoErrorCallback(response.error_messages);if(response.reload){APA.reloaded=false;APA.orderReferenceId=null;APA.initCheckout()}if(response.reload_wallet){APA.reloaded=true;APA.disableSubmit().reloadWallet()}}},ajaxFailureCallback:function(){window.location.href=APA.urls.failure},amazonErrorCallback:function(a){if(!APA.live){console.trace();alert(a.getErrorMessage())}var b=["BuyerNotAssociated","BuyerSessionExpired","StaleOrderReference","InvalidOrderReferenceId"];if(b.any(function(c){return c==a.getErrorCode()})){window.location.href=APA.urls.failure}},magentoErrorCallback:function(a){if(!APA.live){console.trace()}if(typeof(a)=="object"){a=a.join("\n")}if(a){alert(a)}},allowSubmit:function(a){this.submitAllowed=a;return this.toggleSubmit()},selectPayment:function(a){this.paymentSelected=a;return this.toggleSubmit()},toggleSubmit:function(){if(this.submitAllowed&&this.paymentSelected){return this.enableSubmit()}return this.disableSubmit()},disableSubmit:function(){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=true;var a=b.up("div.buttons-set");if(a){a.addClassName("disabled")}}return this},enableSubmit:function(){if(this.submitAllowed&&this.paymentSelected){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=false;var a=b.up("div.buttons-set");if(a){a.removeClassName("disabled")}}}return this},saveOrder:function(){APA.setOrderSaveWaiting();new Ajax.Request(APA.urls.saveOrder,{method:"post",parameters:APA.getSaveOrderParams(),onSuccess:APA.saveOrderCallback,onFailure:APA.ajaxFailureCallback})},getSaveOrderParams:function(){var a="";if(APA.virtual){a+=Object.toQueryString({orderReferenceId:APA.orderReferenceId});if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}else{a=Form.serialize($("co-shipping-method-form"));if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}if(APA.reloaded){a+="&"+Object.toQueryString({reloaded:1})}a.save=true;return a},isMobileDevice:function(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))},initialize:function(c,a,d,g,f,e,b){return Object.extend(APA,{sellerId:c,orderReferenceId:a,live:d,virtual:g,urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},f),layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},e),design:Object.extend({addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},b)})},setup:function(b,a){return Object.extend(APA,{sellerId:b,orderReferenceId:typeof a.orderReferenceId=="undefined"?null:a.orderReferenceId,live:typeof a.live=="undefined"?true:a.live,popup:typeof a.popup=="undefined"?true:a.popup,virtual:typeof a.virtual=="undefined"?false:a.virtual,layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},a.layers),urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},a.urls),design:Object.extend({responsive:true,addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},a.design)})}};
|
1 |
+
if(!window.Review){var Review=function(){}}var APA={submitAllowed:false,paymentSelected:false,reloaded:false,Widgets:{ShippingMethod:Class.create({initialize:function(a){this.layer=$(APA.layers.shippingMethod);Object.extend(this,a);Event.stopObserving(this.layer,"widget:update").observe("widget:update",this.onUpdate.bindAsEventListener(this))},update:function(b){try{Element.update(this.layer,b);if(!this.layer.down("input[type=radio]:checked")){var a=this.layer.down("input[type=radio]");if(a){a.checked=true}}Event.stopObserving(this.layer,"change").observe("change",this.onShippingMethodSelect.bindAsEventListener(this));Event.stopObserving(this.layer,"widget:checked").observe("widget:checked",this.onShippingMethodSelect.bindAsEventListener(this));Event.fire(this.layer,"widget:update")}catch(c){this.onError(c)}}}),Review:Class.create({initialize:function(a){this.layer=$(APA.layers.review);Object.extend(this,a)},update:function(a){try{Element.update(this.layer,a)}catch(b){this.onError(b)}}})},setLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.addClassName("loading")}}return this},unsetLoadWaiting:function(){for(var b=0;b<arguments.length;b++){if($(arguments[b])){var a=$(arguments[b]).up("li");a.removeClassName("loading")}}return this},setOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.show(a)}}this.showOverlay();this.disableSubmit();return this},unsetOrderSaveWaiting:function(){if($(APA.layers.review)){var a=$(APA.layers.review).down(".please-wait");if(a){Element.hide(a)}}this.hideOverlay();return this},showOverlay:function(){if($("checkoutSteps")){$("checkoutSteps").insert({top:new Element("div",{"class":"amazon-widget-overlay"})})}return this},hideOverlay:function(){if($("checkoutSteps")&&$("checkoutSteps").down(".amazon-widget-overlay")){$("checkoutSteps").down(".amazon-widget-overlay").remove()}this.toggleSubmit();return this},initCheckout:function(){this.disableSubmit().scaffoldPaymentWidget();if(this.virtual){return this.setLoadWaiting(APA.layers.wallet).renderWalletWidget().allowSubmit(true)}if(!this.orderReferenceId){return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget()}return this.setLoadWaiting(APA.layers.shippingMethod,APA.layers.wallet,APA.layers.review).renderAddressBookWidget().renderWalletWidget()},scaffoldPaymentWidget:function(){if(typeof APA.design.wallet.size!="undefined"&&!APA.design.responsive){if(APA.design.wallet.size.width){$(APA.layers.wallet).up().setStyle({width:APA.design.wallet.size.width})}if(APA.design.wallet.size.height){$(APA.layers.wallet).up().setStyle({height:APA.design.wallet.size.height})}}return this},renderButtonWidget:function(c){if(APA.urls.login!=null){$$(APA.layers.payButtons).each(function(d){var e={type:d.buttonType||APA.design.payButton.type||"PwA",size:d.buttonSize||APA.design.payButton.size,color:d.buttonColor||APA.design.payButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address",popup:APA.popup},APA.urls.pay)},onError:APA.amazonErrorCallback};if(APA.language){e.language=APA.language}new OffAmazonPayments.Button(d.identify(),APA.sellerId,e)});$$(APA.layers.loginButtons).each(function(d){var e={type:d.buttonType||APA.design.loginButton.type||"LwA",size:d.buttonSize||APA.design.loginButton.size,color:d.buttonColor||APA.design.loginButton.color,authorization:function(){amazon.Login.authorize({scope:"profile payments:widget payments:shipping_address",popup:APA.popup},APA.urls.login)},onError:APA.amazonErrorCallback};if(APA.language){e.language=APA.language}new OffAmazonPayments.Button(d.identify(),APA.sellerId,e)})}else{$$(APA.layers.payButtons).each(function(d){new OffAmazonPayments.Widgets.Button({sellerId:APA.sellerId,useAmazonAddressBook:!APA.virtual,onSignIn:APA.signInCallback,onError:APA.amazonErrorCallback}).bind(d.identify())})}if(c&&typeof Tooltip!="undefined"&&!APA.isMobileDevice()){var b=$$(APA.layers.payButtons+","+APA.layers.loginButtons).findAll(function(d){return d.hasClassName("with-tooltip")});if(b.length){var a=document.createElement("div");a.setAttribute("id","pay-with-amazon-tooltip");a.addClassName("pay-with-amazon-tooltip");a.setStyle({display:"none",zIndex:10});a.update(c);document.body.appendChild(a);b.each(function(d){var e=d.down("img");if(e){new Tooltip(e,a)}})}}},signInCallback:function(a){var c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","orderReferenceId");c.setAttribute("value",a.getAmazonOrderReferenceId());var b=document.createElement("form");b.setAttribute("method","post");b.setAttribute("action",APA.urls.checkout);b.appendChild(c);document.body.appendChild(b);b.submit();return},renderAddressBookWidget:function(){APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onAddressSelect:APA.addressSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.addressBook);return this},renderReadOnlyAddressBookWidget:function(){new OffAmazonPayments.Widgets.AddressBook({sellerId:APA.sellerId,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.addressBook),onError:APA.amazonErrorCallback,displayMode:"Read"}).bind(APA.layers.addressBook);return this},orderReferenceCreateCallback:function(a){if(!APA.orderReferenceId){APA.orderReferenceId=a.getAmazonOrderReferenceId();if(!APA.virtual){APA.renderWalletWidget()}}},addressSelectCallback:function(){APA.selectPayment(false);APA.setLoadWaiting(APA.layers.shippingMethod,APA.layers.review);new Ajax.Request(APA.urls.saveShipping,{method:"post",parameters:{orderReferenceId:APA.orderReferenceId},evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},renderShippingMethodWidget:function(a){APA.setLoadWaiting(APA.layers.review);new APA.Widgets.ShippingMethod({onShippingMethodSelect:APA.shippingMethodSelectCallback,onUpdate:APA.shippingMethodUpdateCallback,onError:APA.magentoErrorCallback}).update(a);return this},shippingMethodSelectCallback:function(a){APA.setLoadWaiting(APA.layers.review);new Ajax.Request(APA.urls.saveShippingMethod,{method:"post",parameters:Form.serialize($("co-shipping-method-form")),evalScripts:true,onSuccess:APA.successCallback,onFailure:APA.ajaxFailureCallback})},shippingMethodUpdateCallback:function(b){var a=Event.element(b);Event.fire(a,"widget:checked")},renderWalletWidget:function(){new OffAmazonPayments.Widgets.Wallet({sellerId:APA.sellerId,onOrderReferenceCreate:APA.orderReferenceCreateCallback,amazonOrderReferenceId:APA.orderReferenceId,design:(APA.design.responsive?{designMode:"responsive"}:APA.design.wallet),onPaymentSelect:APA.paymentSelectCallback,onError:APA.amazonErrorCallback}).bind(APA.layers.wallet);return this},paymentSelectCallback:function(){APA.selectPayment(true)},reloadWallet:function(){this.renderReadOnlyAddressBookWidget().renderWalletWidget();return this},renderReviewWidget:function(a){new APA.Widgets.Review({onError:APA.magentoErrorCallback}).update(a);this.toggleSubmit();return this},successCallback:function(transport){response=eval("("+transport.responseText+")");if(response.error){APA.magentoErrorCallback(response.error_messages)}if(response.render_widget){$H(response.render_widget).each(function(pair){APA["render"+pair.key.capitalize().camelize()+"Widget"](pair.value);if(pair.value){APA.unsetLoadWaiting(APA.layers[pair.key.camelize()])}})}if(response.allow_submit){APA.allowSubmit(true)}else{APA.allowSubmit(false)}},saveOrderCallback:function(transport){response=eval("("+transport.responseText+")");if(response.success){window.location=APA.urls.success}if(response.redirect){window.location=response.redirect}if(response.error){APA.unsetOrderSaveWaiting();APA.magentoErrorCallback(response.error_messages);if(response.reload){APA.reloaded=false;APA.orderReferenceId=null;APA.initCheckout()}if(response.reload_wallet){APA.reloaded=true;APA.disableSubmit().reloadWallet()}}},ajaxFailureCallback:function(){window.location.href=APA.urls.failure},amazonErrorCallback:function(a){if(!APA.live){console.trace();alert(a.getErrorMessage())}var b=["BuyerNotAssociated","BuyerSessionExpired","StaleOrderReference","InvalidOrderReferenceId"];if(b.any(function(c){return c==a.getErrorCode()})){window.location.href=APA.urls.failure}},magentoErrorCallback:function(a){if(!APA.live){console.trace()}if(typeof(a)=="object"){a=a.join("\n")}if(a){alert(a)}},allowSubmit:function(a){this.submitAllowed=a;return this.toggleSubmit()},selectPayment:function(a){this.paymentSelected=a;return this.toggleSubmit()},toggleSubmit:function(){if(this.submitAllowed&&this.paymentSelected){return this.enableSubmit()}return this.disableSubmit()},disableSubmit:function(){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=true;var a=b.up("div.buttons-set");if(a){a.addClassName("disabled")}}return this},enableSubmit:function(){if(this.submitAllowed&&this.paymentSelected){var b=$("amazonpayments-checkout-place-order-button");if(b){b.disabled=false;var a=b.up("div.buttons-set");if(a){a.removeClassName("disabled")}}}return this},saveOrder:function(){APA.setOrderSaveWaiting();new Ajax.Request(APA.urls.saveOrder,{method:"post",parameters:APA.getSaveOrderParams(),onSuccess:APA.saveOrderCallback,onFailure:APA.ajaxFailureCallback})},getSaveOrderParams:function(){var a="";if(APA.virtual){a+=Object.toQueryString({orderReferenceId:APA.orderReferenceId});if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}else{a=Form.serialize($("co-shipping-method-form"));if($("checkout-agreements")){a+="&"+Form.serialize($("checkout-agreements"))}}if(APA.reloaded){a+="&"+Object.toQueryString({reloaded:1})}a.save=true;return a},isMobileDevice:function(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))},initialize:function(c,a,d,g,f,e,b){return Object.extend(APA,{sellerId:c,orderReferenceId:a,live:d,virtual:g,urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},f),layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},e),design:Object.extend({addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},b)})},setup:function(b,a){return Object.extend(APA,{sellerId:b,orderReferenceId:typeof a.orderReferenceId=="undefined"?null:a.orderReferenceId,language:typeof a.language=="undefined"?null:a.language,live:typeof a.live=="undefined"?true:a.live,popup:typeof a.popup=="undefined"?true:a.popup,virtual:typeof a.virtual=="undefined"?false:a.virtual,layers:Object.extend({payButtons:".payButtonWidget",loginButtons:".loginButtonWidget",addressBook:"addressBookWidgetDiv",wallet:"walletWidgetDiv",shippingMethod:"shippingMethodWidgetDiv",review:"reviewWidgetDiv"},a.layers),urls:Object.extend({login:null,pay:null,checkout:null,saveShipping:null,saveShippingMethod:null,saveOrder:null,success:null,failure:null},a.urls),design:Object.extend({responsive:true,addressBook:{size:{width:"440px",height:"260px"}},wallet:{size:{width:"440px",height:"260px"}},payButton:{type:"PwA"},loginButton:{type:"LwA"}},a.design)})}};
|
lib/OffAmazonPayments/HttpRequest/HttpException.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
*
|
7 |
+
* You may not use this file except in compliance with the License.
|
8 |
+
* You may obtain a copy of the License at:
|
9 |
+
* http://aws.amazon.com/apache2.0
|
10 |
+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11 |
+
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
12 |
+
* for the
|
13 |
+
* specific language governing permissions and limitations under the
|
14 |
+
* License.
|
15 |
+
* *****************************************************************************
|
16 |
+
*/
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Exception thrown when an error is encountered with
|
20 |
+
* the curl http library
|
21 |
+
*
|
22 |
+
*/
|
23 |
+
class OffAmazonPayments_HttpRequest_HttpException
|
24 |
+
extends Exception
|
25 |
+
{
|
26 |
+
}
|
lib/OffAmazonPayments/HttpRequest/IHttpRequest.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
*
|
7 |
+
* You may not use this file except in compliance with the License.
|
8 |
+
* You may obtain a copy of the License at:
|
9 |
+
* http://aws.amazon.com/apache2.0
|
10 |
+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11 |
+
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
12 |
+
* for the
|
13 |
+
* specific language governing permissions and limitations under the
|
14 |
+
* License.
|
15 |
+
* *****************************************************************************
|
16 |
+
*/
|
17 |
+
|
18 |
+
interface OffAmazonPayments_HttpRequest_IHttpRequest {
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Create a http get request for the resource
|
22 |
+
* at the given uri
|
23 |
+
*
|
24 |
+
* @param execute the underlying http request
|
25 |
+
*
|
26 |
+
* @return response header + body
|
27 |
+
*/
|
28 |
+
public function execute();
|
29 |
+
};
|
lib/OffAmazonPayments/HttpRequest/IHttpRequestFactory.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
*
|
7 |
+
* You may not use this file except in compliance with the License.
|
8 |
+
* You may obtain a copy of the License at:
|
9 |
+
* http://aws.amazon.com/apache2.0
|
10 |
+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11 |
+
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
12 |
+
* for the
|
13 |
+
* specific language governing permissions and limitations under the
|
14 |
+
* License.
|
15 |
+
* *****************************************************************************
|
16 |
+
*/
|
17 |
+
|
18 |
+
interface OffAmazonPayments_HttpRequest_IHttpRequestFactory {
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Create a http get request for the resource
|
22 |
+
* at the given uri
|
23 |
+
*
|
24 |
+
* @param url uniform resource locator to get
|
25 |
+
*
|
26 |
+
* @return OffAmazonPayments_HttpRequest_IHttpRequest object
|
27 |
+
*/
|
28 |
+
public function createGetRequest($url);
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Create a http post request using to given
|
32 |
+
* given uri & body content
|
33 |
+
*
|
34 |
+
* @param url uniform resource locator to post
|
35 |
+
*
|
36 |
+
* @return OffAmazonPayments_HttpRequest_IHttpRequest object
|
37 |
+
*/
|
38 |
+
public function createPostRequest($url, $body);
|
39 |
+
};
|
lib/OffAmazonPayments/HttpRequest/Impl/HttpRequestCurlImpl.php
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
*
|
7 |
+
* You may not use this file except in compliance with the License.
|
8 |
+
* You may obtain a copy of the License at:
|
9 |
+
* http://aws.amazon.com/apache2.0
|
10 |
+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11 |
+
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
12 |
+
* for the
|
13 |
+
* specific language governing permissions and limitations under the
|
14 |
+
* License.
|
15 |
+
* *****************************************************************************
|
16 |
+
*/
|
17 |
+
|
18 |
+
|
19 |
+
class OffAmazonPayments_HttpRequest_Impl_HttpRequestCurlImpl implements OffAmazonPayments_HttpRequest_IHttpRequest
|
20 |
+
{
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Reference to the underlying curl handle
|
24 |
+
*/
|
25 |
+
private $_ch = null;
|
26 |
+
|
27 |
+
/*
|
28 |
+
* Default headers for curl requests
|
29 |
+
*/
|
30 |
+
private $_headers = array(
|
31 |
+
'Expect' => null // Don't expect 100 Continue
|
32 |
+
);
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Create a new instane of the class + underlying curl handle
|
36 |
+
*
|
37 |
+
*/
|
38 |
+
public function __construct()
|
39 |
+
{
|
40 |
+
$this->_ch = curl_init();
|
41 |
+
curl_setopt($this->_ch, CURLOPT_SSL_VERIFYPEER, true);
|
42 |
+
curl_setopt($this->_ch, CURLOPT_SSL_VERIFYHOST, 2);
|
43 |
+
curl_setopt($this->_ch, CURLOPT_HEADER, true);
|
44 |
+
curl_setopt($this->_ch, CURLOPT_RETURNTRANSFER, true);
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Set the url for the curl handle
|
49 |
+
*
|
50 |
+
* @param url resource to request
|
51 |
+
*/
|
52 |
+
public function setUrl($url) {
|
53 |
+
curl_setopt($this->_ch, CURLOPT_URL, $url);
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Set the port for the curl handle
|
58 |
+
*
|
59 |
+
* @param port to use
|
60 |
+
*/
|
61 |
+
public function setPort($port) {
|
62 |
+
curl_setopt($this->_ch, CURLOPT_PORT, $port);
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Set the useragent for the curl handle
|
67 |
+
*
|
68 |
+
* @param userAgent for request
|
69 |
+
*/
|
70 |
+
public function setUserAgent($userAgent) {
|
71 |
+
curl_setopt($this->_ch, CURLOPT_USERAGENT, $userAgent);
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Make this request a post request with the given body
|
76 |
+
*
|
77 |
+
* @param body http POST request body
|
78 |
+
*/
|
79 |
+
public function makePost($body) {
|
80 |
+
curl_setopt($this->_ch, CURLOPT_POST, true);
|
81 |
+
curl_setopt($this->_ch, CURLOPT_POSTFIELDS, $body);
|
82 |
+
|
83 |
+
array_push($this->_headers, 'Content-Type', "application/x-www-form-urlencoded; charset=utf-8");
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Setup the ca bundle file
|
88 |
+
*
|
89 |
+
* @param caBundleFile file containing trusted ca certs
|
90 |
+
*/
|
91 |
+
public function setCaBundleFile($caBundleFile)
|
92 |
+
{
|
93 |
+
curl_setopt($this->_ch, CURLOPT_CAINFO, $caBundleFile);
|
94 |
+
}
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Setup the proxy hostname and port
|
98 |
+
*
|
99 |
+
* @param hostnameport username and password in <hostname>:<port> format
|
100 |
+
*
|
101 |
+
*/
|
102 |
+
public function setupProxy($hostnameport)
|
103 |
+
{
|
104 |
+
curl_setopt($this->_ch, CURLOPT_PROXY, $hostnameport);
|
105 |
+
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* Setup the proxy username and password
|
109 |
+
*
|
110 |
+
* @param usernamepwd username and password in <username>:<password> format
|
111 |
+
*
|
112 |
+
*/
|
113 |
+
public function setupProxyUsernameAndPassword($usernamepwd)
|
114 |
+
{
|
115 |
+
curl_setopt($this->_ch, CURLOPT_PROXYUSERPWD, $usernamepwd);
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Create a http get request for the resource
|
120 |
+
* at the given uri
|
121 |
+
*
|
122 |
+
* @param execute the underlying http request
|
123 |
+
*
|
124 |
+
* @return response header + body
|
125 |
+
*/
|
126 |
+
public function execute()
|
127 |
+
{
|
128 |
+
$this->setRequestHeaders();
|
129 |
+
$response = '';
|
130 |
+
if (!$response = curl_exec($this->_ch)) {
|
131 |
+
$errorNo = curl_error($this->_ch);
|
132 |
+
curl_close($this->_ch);
|
133 |
+
throw new OffAmazonPayments_HttpRequest_HttpException($errorNo);
|
134 |
+
}
|
135 |
+
|
136 |
+
curl_close($this->_ch);
|
137 |
+
|
138 |
+
return $response;
|
139 |
+
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* Setup request header information
|
143 |
+
*
|
144 |
+
*/
|
145 |
+
private function setRequestHeaders()
|
146 |
+
{
|
147 |
+
$allHeadersStr = array();
|
148 |
+
foreach($this->_headers as $name => $val) {
|
149 |
+
$str = $name . ": ";
|
150 |
+
if(isset($val)) {
|
151 |
+
$str = $str . $val;
|
152 |
+
}
|
153 |
+
$allHeadersStr[] = $str;
|
154 |
+
}
|
155 |
+
|
156 |
+
curl_setopt($this->_ch, CURLOPT_HTTPHEADER, $allHeadersStr);
|
157 |
+
}
|
158 |
+
};
|
159 |
+
|
lib/OffAmazonPayments/HttpRequest/Impl/HttpRequestFactoryCurlImpl.php
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
*
|
7 |
+
* You may not use this file except in compliance with the License.
|
8 |
+
* You may obtain a copy of the License at:
|
9 |
+
* http://aws.amazon.com/apache2.0
|
10 |
+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11 |
+
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
12 |
+
* for the
|
13 |
+
* specific language governing permissions and limitations under the
|
14 |
+
* License.
|
15 |
+
* *****************************************************************************
|
16 |
+
*/
|
17 |
+
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Wrapper to simplify curl functions for http get/set
|
21 |
+
*
|
22 |
+
*/
|
23 |
+
class OffAmazonPayments_HttpRequest_Impl_HttpRequestFactoryCurlImpl implements OffAmazonPayments_HttpRequest_IHttpRequestFactory
|
24 |
+
{
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Merchant values configuration instance
|
28 |
+
*
|
29 |
+
*/
|
30 |
+
private $_merchantValues = null;
|
31 |
+
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Create an instance of the client class
|
35 |
+
*
|
36 |
+
* @param instance of OffAmazonPayments_MerchantValues class
|
37 |
+
*
|
38 |
+
* @return void
|
39 |
+
*/
|
40 |
+
public function __construct($merchantValues) {
|
41 |
+
|
42 |
+
if(!isset($merchantValues)) {
|
43 |
+
throw new InvalidArgumentException("merchantValue object not injected");
|
44 |
+
}
|
45 |
+
|
46 |
+
$this->_merchantValues = $merchantValues;
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Create a http get request for the resource
|
51 |
+
* at the given uri
|
52 |
+
*
|
53 |
+
* @param url uniform resource locator to get
|
54 |
+
*
|
55 |
+
* @return HttpRequest object
|
56 |
+
*/
|
57 |
+
public function createGetRequest($url)
|
58 |
+
{
|
59 |
+
return $this->createNewRequest($url);
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Create a http post request using to given
|
64 |
+
* given uri & body content
|
65 |
+
*
|
66 |
+
* @param url uniform resource locator to post
|
67 |
+
*
|
68 |
+
* @return HttpRequest object
|
69 |
+
*/
|
70 |
+
public function createPostRequest($url, $body)
|
71 |
+
{
|
72 |
+
$httpRequest = $this->createNewRequest($url);
|
73 |
+
$httpRequest->makePost($body);
|
74 |
+
|
75 |
+
return $httpRequest;
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Create a new curl handle and set up with default
|
80 |
+
* options for all requests
|
81 |
+
*
|
82 |
+
* @param url resource to request
|
83 |
+
*
|
84 |
+
* @return curl handle
|
85 |
+
*/
|
86 |
+
private function createNewRequest($url)
|
87 |
+
{
|
88 |
+
$httpRequest = new OffAmazonPayments_HttpRequest_Impl_HttpRequestCurlImpl();
|
89 |
+
|
90 |
+
$parsedUrl = $this->_setupConnectionInfo($url);
|
91 |
+
|
92 |
+
$httpRequest->setUrl($parsedUrl['url']);
|
93 |
+
$httpRequest->setPort($parsedUrl['port']);
|
94 |
+
$httpRequest->setUserAgent($this->_merchantValues->getUserAgentString());
|
95 |
+
|
96 |
+
# if a ca bundle is configured, use it as opposed to the default ca
|
97 |
+
# configured for the server
|
98 |
+
if ($this->_merchantValues->isCaBundleConfigured()) {
|
99 |
+
$httpRequest->setCaBundleFile($this->_merchantValues->getCaBundleFile());
|
100 |
+
}
|
101 |
+
|
102 |
+
if ($this->_merchantValues->isProxyConfigured()) {
|
103 |
+
$this->setupProxyForCurl($httpRequest);
|
104 |
+
}
|
105 |
+
|
106 |
+
return $httpRequest;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Setup the connection parameters for the request
|
111 |
+
*
|
112 |
+
* @param url resource to request
|
113 |
+
*
|
114 |
+
*/
|
115 |
+
private function _setupConnectionInfo($url)
|
116 |
+
{
|
117 |
+
$parsed_url = parse_url($url);
|
118 |
+
|
119 |
+
$uri = array_key_exists('path', $parsed_url) ? $parsed_url['path'] : null;
|
120 |
+
if (!isset($uri)) {
|
121 |
+
$uri = "/";
|
122 |
+
}
|
123 |
+
|
124 |
+
$scheme = '';
|
125 |
+
|
126 |
+
switch ($parsed_url['scheme']) {
|
127 |
+
case 'https':
|
128 |
+
$scheme = 'https://';
|
129 |
+
$port = array_key_exists('port', $parsed_url) && (isset($parsed_url['port'])) ? $parsed_url['port'] : 443;
|
130 |
+
break;
|
131 |
+
default:
|
132 |
+
$scheme = 'http://';
|
133 |
+
$port = array_key_exists('port', $parsed_url) && (isset($parsed_url['port'])) ? $parsed_url['port'] : 80;
|
134 |
+
}
|
135 |
+
|
136 |
+
$retVal = array(
|
137 |
+
'port' => $port,
|
138 |
+
'url' => $scheme . $parsed_url['host'] . $uri
|
139 |
+
);
|
140 |
+
|
141 |
+
return $retVal;
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Setup proxy options for curl handle
|
146 |
+
*
|
147 |
+
* @param httpRequest httpRequestObject
|
148 |
+
*
|
149 |
+
*/
|
150 |
+
private function setupProxyForCurl($httpRequest)
|
151 |
+
{
|
152 |
+
$proxy = $this->_merchantValues->getProxyHost() . ':' . $this->_merchantValues->getProxyPort();
|
153 |
+
$httpRequest->setupProxy($proxy);
|
154 |
+
|
155 |
+
if ($this->_merchantValues->isProxyAuthenticationConfigured()) {
|
156 |
+
$proxyUserPwd = $this->_merchantValues->getProxyUsername() . ':' . $this->_merchantValues->getProxyPassword();
|
157 |
+
$httpRequest->setupProxyUsernameAndPassword($proxyUserPwd);
|
158 |
+
}
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
lib/OffAmazonPayments/Model.php
CHANGED
@@ -347,4 +347,4 @@ abstract class OffAmazonPayments_Model
|
|
347 |
{
|
348 |
return "https://mws.amazonservices.com/ipn/OffAmazonPayments/2013-01-01";
|
349 |
}
|
350 |
-
}
|
347 |
{
|
348 |
return "https://mws.amazonservices.com/ipn/OffAmazonPayments/2013-01-01";
|
349 |
}
|
350 |
+
}
|
lib/OffAmazonPayments/OffAmazonPaymentsServiceUtils.php
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
*
|
7 |
+
* You may not use this file except in compliance with the License.
|
8 |
+
* You may obtain a copy of the License at:
|
9 |
+
* http://aws.amazon.com/apache2.0
|
10 |
+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11 |
+
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
12 |
+
* for the
|
13 |
+
* specific language governing permissions and limitations under the
|
14 |
+
* License.
|
15 |
+
* *****************************************************************************
|
16 |
+
*/
|
17 |
+
|
18 |
+
class OffAmazonPayments_OffAmazonPaymentsServiceUtils
|
19 |
+
{
|
20 |
+
const MWS_CLIENT_VERSION = '2013-01-01';
|
21 |
+
const APPLICATION_LIBRARY_VERSION = '1.0.14';
|
22 |
+
|
23 |
+
public function buildUserAgentString($applicationName, $applicationVersion, $attributes = null)
|
24 |
+
{
|
25 |
+
if (is_null($attributes)) {
|
26 |
+
$attributes = array ();
|
27 |
+
}
|
28 |
+
|
29 |
+
if (!array_key_exists("ApplicationLibraryVersion", $attributes)) {
|
30 |
+
array_push($attributes, "ApplicationLibraryVersion", self::APPLICATION_LIBRARY_VERSION);
|
31 |
+
}
|
32 |
+
|
33 |
+
return $this->constructUserAgentHeader($applicationName, $applicationVersion, $attributes);
|
34 |
+
}
|
35 |
+
|
36 |
+
private function constructUserAgentHeader($applicationName, $applicationVersion, $attributes)
|
37 |
+
{
|
38 |
+
$userAgent
|
39 |
+
= $this->quoteApplicationName($applicationName)
|
40 |
+
. '/'
|
41 |
+
. $this->quoteApplicationVersion($applicationVersion);
|
42 |
+
|
43 |
+
$userAgent .= ' (';
|
44 |
+
$userAgent .= 'Language=PHP/' . phpversion();
|
45 |
+
$userAgent .= '; ';
|
46 |
+
$userAgent .= 'Platform=' . php_uname('s') . '/' . php_uname('m') . '/' . php_uname('r');
|
47 |
+
$userAgent .= '; ';
|
48 |
+
$userAgent .= 'MWSClientVersion=' . self::MWS_CLIENT_VERSION;
|
49 |
+
|
50 |
+
foreach ($attributes as $key => $value) {
|
51 |
+
if (empty($value)) {
|
52 |
+
throw new InvalidArgumentException("value for $key cannot be null or empty");
|
53 |
+
}
|
54 |
+
|
55 |
+
$userAgent .= '; '
|
56 |
+
. $this->quoteAttributeName($key)
|
57 |
+
. '='
|
58 |
+
. $this->quoteAttributeValue($value);
|
59 |
+
}
|
60 |
+
|
61 |
+
$userAgent .= ')';
|
62 |
+
|
63 |
+
return $userAgent;
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
|
68 |
+
* and '/' characters from a string.
|
69 |
+
* @param $s
|
70 |
+
* @return string
|
71 |
+
*/
|
72 |
+
private function quoteApplicationName($s) {
|
73 |
+
$quotedString = $this->collapseWhitespace($s);
|
74 |
+
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
75 |
+
$quotedString = preg_replace('/\//', '\\/', $quotedString);
|
76 |
+
|
77 |
+
return $quotedString;
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
|
82 |
+
* and '(' characters from a string.
|
83 |
+
*
|
84 |
+
* @param $s
|
85 |
+
* @return string
|
86 |
+
*/
|
87 |
+
private function quoteApplicationVersion($s) {
|
88 |
+
$quotedString = $this->collapseWhitespace($s);
|
89 |
+
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
90 |
+
$quotedString = preg_replace('/\\(/', '\\(', $quotedString);
|
91 |
+
|
92 |
+
return $quotedString;
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Collapse multiple whitespace characters into a single ' ' character.
|
97 |
+
* @param $s
|
98 |
+
* @return string
|
99 |
+
*/
|
100 |
+
private function collapseWhitespace($s) {
|
101 |
+
return preg_replace('/ {2,}|\s/', ' ', $s);
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
|
106 |
+
* and '=' characters from a string.
|
107 |
+
*
|
108 |
+
* @param $s
|
109 |
+
* @return unknown_type
|
110 |
+
*/
|
111 |
+
private function quoteAttributeName($s) {
|
112 |
+
$quotedString = $this->collapseWhitespace($s);
|
113 |
+
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
114 |
+
$quotedString = preg_replace('/\\=/', '\\=', $quotedString);
|
115 |
+
|
116 |
+
return $quotedString;
|
117 |
+
}
|
118 |
+
|
119 |
+
/**
|
120 |
+
* Collapse multiple whitespace characters into a single ' ' and backslash escape ';', '\',
|
121 |
+
* and ')' characters from a string.
|
122 |
+
*
|
123 |
+
* @param $s
|
124 |
+
* @return unknown_type
|
125 |
+
*/
|
126 |
+
private function quoteAttributeValue($s) {
|
127 |
+
$quotedString = $this->collapseWhitespace($s);
|
128 |
+
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
129 |
+
$quotedString = preg_replace('/\\;/', '\\;', $quotedString);
|
130 |
+
$quotedString = preg_replace('/\\)/', '\\)', $quotedString);
|
131 |
+
|
132 |
+
return $quotedString;
|
133 |
+
}
|
134 |
+
}
|
lib/OffAmazonPaymentsNotifications/Client.php
CHANGED
@@ -31,16 +31,21 @@ class OffAmazonPaymentsNotifications_Client
|
|
31 |
* @var OffAmazonPaymentsNotifications_Impl_SnsMessageValidator
|
32 |
*/
|
33 |
private $_snsMessageValidator = null;
|
34 |
-
|
35 |
/**
|
36 |
* Create an instance of the client class
|
37 |
*
|
38 |
* @return void
|
39 |
*/
|
40 |
-
public function __construct()
|
41 |
{
|
|
|
42 |
$this->_snsMessageValidator
|
43 |
-
= new OffAmazonPaymentsNotifications_Impl_SnsMessageValidator(
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
|
46 |
/**
|
@@ -68,4 +73,4 @@ class OffAmazonPaymentsNotifications_Client
|
|
68 |
|
69 |
return OffAmazonPaymentsNotifications_Impl_XmlNotificationParser::parseIpnMessage($ipnMessage);
|
70 |
}
|
71 |
-
}
|
31 |
* @var OffAmazonPaymentsNotifications_Impl_SnsMessageValidator
|
32 |
*/
|
33 |
private $_snsMessageValidator = null;
|
34 |
+
|
35 |
/**
|
36 |
* Create an instance of the client class
|
37 |
*
|
38 |
* @return void
|
39 |
*/
|
40 |
+
public function __construct($config = null)
|
41 |
{
|
42 |
+
$merchantValues = OffAmazonPaymentsService_MerchantValuesBuilder::create($config)->build();
|
43 |
$this->_snsMessageValidator
|
44 |
+
= new OffAmazonPaymentsNotifications_Impl_SnsMessageValidator(
|
45 |
+
new OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature($merchantValues->getCnName(),
|
46 |
+
new OffAmazonPayments_HttpRequest_Impl_HttpRequestFactoryCurlImpl($merchantValues)
|
47 |
+
)
|
48 |
+
);
|
49 |
}
|
50 |
|
51 |
/**
|
73 |
|
74 |
return OffAmazonPaymentsNotifications_Impl_XmlNotificationParser::parseIpnMessage($ipnMessage);
|
75 |
}
|
76 |
+
}
|
lib/OffAmazonPaymentsNotifications/Impl/Certificate.php
CHANGED
@@ -74,5 +74,4 @@ class OffAmazonPaymentsNotifications_Impl_Certificate
|
|
74 |
}
|
75 |
return $certSubject;
|
76 |
}
|
77 |
-
}
|
78 |
-
|
74 |
}
|
75 |
return $certSubject;
|
76 |
}
|
77 |
+
}
|
|
lib/OffAmazonPaymentsNotifications/Impl/IpnNotificationParser.php
CHANGED
@@ -63,4 +63,4 @@ class OffAmazonPaymentsNotifications_Impl_IpnNotificationParser
|
|
63 |
);
|
64 |
$ipnMsg->setNotificationMetadata($ipnMetadata);
|
65 |
}
|
66 |
-
}
|
63 |
);
|
64 |
$ipnMsg->setNotificationMetadata($ipnMetadata);
|
65 |
}
|
66 |
+
}
|
lib/OffAmazonPaymentsNotifications/Impl/Message.php
CHANGED
@@ -152,4 +152,4 @@ class OffAmazonPaymentsNotifications_Impl_Message
|
|
152 |
break;
|
153 |
}
|
154 |
}
|
155 |
-
}
|
152 |
break;
|
153 |
}
|
154 |
}
|
155 |
+
}
|
lib/OffAmazonPaymentsNotifications/Impl/OpenSslVerifySignature.php
CHANGED
@@ -22,15 +22,32 @@
|
|
22 |
*/
|
23 |
class OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature implements OffAmazonPaymentsNotifications_Impl_VerifySignature
|
24 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
/**
|
26 |
* Create a new instance of the openssl implementation of
|
27 |
* verify signature
|
28 |
*
|
|
|
|
|
|
|
29 |
* @return void
|
30 |
*/
|
31 |
-
public function __construct()
|
32 |
{
|
33 |
-
|
|
|
34 |
}
|
35 |
|
36 |
/**
|
@@ -75,7 +92,7 @@ class OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature implements OffA
|
|
75 |
|
76 |
if ($certKey === False) {
|
77 |
throw new OffAmazonPaymentsNotifications_InvalidMessageException(
|
78 |
-
"Unable to extract public key from cert
|
79 |
}
|
80 |
|
81 |
try {
|
@@ -113,11 +130,7 @@ class OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature implements OffA
|
|
113 |
*/
|
114 |
private function _verifyCertificateSubject($certificateSubject)
|
115 |
{
|
116 |
-
if (
|
117 |
-
((strcmp($certificateSubject["O"], "Amazon.com Inc.") !== 0) && (strcmp($certificateSubject["O"], "Amazon.com, Inc.") !== 0)) ||
|
118 |
-
(strcmp($certificateSubject["L"], "Seattle") !== 0) ||
|
119 |
-
(strcmp($certificateSubject["ST"], "Washington") !== 0) ||
|
120 |
-
(strcmp($certificateSubject["C"], "US") !== 0) ) {
|
121 |
throw new OffAmazonPaymentsNotifications_InvalidMessageException(
|
122 |
"Unable to verify certificate issued by Amazon - error with certificate subject"
|
123 |
);
|
@@ -137,22 +150,12 @@ class OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature implements OffA
|
|
137 |
private function _getCertificateFromCertifcatePath($certificatePath)
|
138 |
{
|
139 |
try {
|
140 |
-
$
|
141 |
-
} catch (
|
142 |
throw new OffAmazonPaymentsNotifications_InvalidMessageException(
|
143 |
-
"Error with signature validation - unable to request signing ".
|
144 |
-
|
145 |
-
|
146 |
}
|
147 |
-
|
148 |
-
if ($cert === false) {
|
149 |
-
throw new OffAmazonPaymentsNotifications_InvalidMessageException(
|
150 |
-
"Error with signature validation - unable to request signing ".
|
151 |
-
"certificate at " . $certificatePath
|
152 |
-
);
|
153 |
-
}
|
154 |
-
|
155 |
-
return $cert;
|
156 |
}
|
157 |
-
}
|
158 |
-
|
22 |
*/
|
23 |
class OffAmazonPaymentsNotifications_Impl_OpenSslVerifySignature implements OffAmazonPaymentsNotifications_Impl_VerifySignature
|
24 |
{
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Expected value for the CN field in an
|
28 |
+
* Amazon issued certificate
|
29 |
+
*/
|
30 |
+
private $_expectedCnName = null;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* IHttpRequestFactory for creating http requests
|
34 |
+
*
|
35 |
+
*/
|
36 |
+
private $_httpRequestFactory = null;
|
37 |
+
|
38 |
/**
|
39 |
* Create a new instance of the openssl implementation of
|
40 |
* verify signature
|
41 |
*
|
42 |
+
* @param string expectedCnName for Amazon cert
|
43 |
+
* @param OffAmazonPayments_HttpRequest_IHttpRequestFactory httpRequestFactory factory to create http requests
|
44 |
+
*
|
45 |
* @return void
|
46 |
*/
|
47 |
+
public function __construct($expectedCnName, $httpRequestFactory)
|
48 |
{
|
49 |
+
$this->_expectedCnName = $expectedCnName;
|
50 |
+
$this->_httpRequestFactory = $httpRequestFactory;
|
51 |
}
|
52 |
|
53 |
/**
|
92 |
|
93 |
if ($certKey === False) {
|
94 |
throw new OffAmazonPaymentsNotifications_InvalidMessageException(
|
95 |
+
"Unable to extract public key from cert");
|
96 |
}
|
97 |
|
98 |
try {
|
130 |
*/
|
131 |
private function _verifyCertificateSubject($certificateSubject)
|
132 |
{
|
133 |
+
if ( strcmp($certificateSubject["CN"], $this->_expectedCnName) ) {
|
|
|
|
|
|
|
|
|
134 |
throw new OffAmazonPaymentsNotifications_InvalidMessageException(
|
135 |
"Unable to verify certificate issued by Amazon - error with certificate subject"
|
136 |
);
|
150 |
private function _getCertificateFromCertifcatePath($certificatePath)
|
151 |
{
|
152 |
try {
|
153 |
+
return $this->_httpRequestFactory->createGetRequest($certificatePath)->execute();
|
154 |
+
} catch (OffAmazonPayments_HttpRequest_HttpException $ex) {
|
155 |
throw new OffAmazonPaymentsNotifications_InvalidMessageException(
|
156 |
+
"Error with signature validation - unable to request signing certificate at " . $certificatePath .
|
157 |
+
" - underlying exception of " . $ex->getMessage()
|
158 |
+
);
|
159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
}
|
161 |
+
}
|
|
lib/OffAmazonPaymentsNotifications/Impl/SnsMessageParser.php
CHANGED
@@ -105,4 +105,4 @@ class OffAmazonPaymentsNotifications_Impl_SnsMessageParser
|
|
105 |
= new OffAmazonPaymentsNotifications_Model_SnsNotificationMetadata($snsMsg);
|
106 |
$snsMsg->setNotificationMetadata($notificationMetadata);
|
107 |
}
|
108 |
-
}
|
105 |
= new OffAmazonPaymentsNotifications_Model_SnsNotificationMetadata($snsMsg);
|
106 |
$snsMsg->setNotificationMetadata($notificationMetadata);
|
107 |
}
|
108 |
+
}
|
lib/OffAmazonPaymentsNotifications/Impl/SnsMessageValidator.php
CHANGED
@@ -158,5 +158,4 @@ class OffAmazonPaymentsNotifications_Impl_SnsMessageValidator
|
|
158 |
// delimited by newline character + ending with a new line character
|
159 |
return implode("\n", $signatureFields) . "\n";
|
160 |
}
|
161 |
-
}
|
162 |
-
|
158 |
// delimited by newline character + ending with a new line character
|
159 |
return implode("\n", $signatureFields) . "\n";
|
160 |
}
|
161 |
+
}
|
|
lib/OffAmazonPaymentsNotifications/Impl/VerifySignature.php
CHANGED
@@ -37,4 +37,4 @@ interface OffAmazonPaymentsNotifications_Impl_VerifySignature
|
|
37 |
* @return bool true if valid
|
38 |
*/
|
39 |
function verifySignatureIsCorrect($data, $signature, $certificatePath);
|
40 |
-
}
|
37 |
* @return bool true if valid
|
38 |
*/
|
39 |
function verifySignatureIsCorrect($data, $signature, $certificatePath);
|
40 |
+
}
|
lib/OffAmazonPaymentsNotifications/Impl/XmlNotificationParser.php
CHANGED
@@ -154,4 +154,4 @@ class OffAmazonPaymentsNotifications_Impl_XmlNotificationParser
|
|
154 |
|
155 |
return $notification;
|
156 |
}
|
157 |
-
}
|
154 |
|
155 |
return $notification;
|
156 |
}
|
157 |
+
}
|
lib/OffAmazonPaymentsNotifications/Interface.php
CHANGED
@@ -34,5 +34,4 @@ interface OffAmazonPaymentsNotifications_Interface
|
|
34 |
* @return OffAmazonPaymentNotifications_Notification
|
35 |
*/
|
36 |
public function parseRawMessage($headers, $body);
|
37 |
-
}
|
38 |
-
|
34 |
* @return OffAmazonPaymentNotifications_Notification
|
35 |
*/
|
36 |
public function parseRawMessage($headers, $body);
|
37 |
+
}
|
|
lib/OffAmazonPaymentsNotifications/InvalidCertificateException.php
CHANGED
@@ -23,5 +23,4 @@
|
|
23 |
class OffAmazonPaymentsNotifications_InvalidCertificateException
|
24 |
extends Exception
|
25 |
{
|
26 |
-
}
|
27 |
-
|
23 |
class OffAmazonPaymentsNotifications_InvalidCertificateException
|
24 |
extends Exception
|
25 |
{
|
26 |
+
}
|
|
lib/OffAmazonPaymentsNotifications/InvalidMessageException.php
CHANGED
@@ -23,4 +23,4 @@
|
|
23 |
class OffAmazonPaymentsNotifications_InvalidMessageException
|
24 |
extends Exception
|
25 |
{
|
26 |
-
}
|
23 |
class OffAmazonPaymentsNotifications_InvalidMessageException
|
24 |
extends Exception
|
25 |
{
|
26 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/AuthorizationDetails.php
CHANGED
@@ -740,4 +740,4 @@ class OffAmazonPaymentsNotifications_Model_AuthorizationDetails extends OffAmazo
|
|
740 |
{
|
741 |
return !is_null($this->fields['SoftDescriptor']['FieldValue']);
|
742 |
}
|
743 |
-
}
|
740 |
{
|
741 |
return !is_null($this->fields['SoftDescriptor']['FieldValue']);
|
742 |
}
|
743 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/AuthorizationNotification.php
CHANGED
@@ -155,4 +155,4 @@ class OffAmazonPaymentsNotifications_Model_AuthorizationNotification
|
|
155 |
$xml .= "</AuthorizationNotification>";
|
156 |
return $xml;
|
157 |
}
|
158 |
-
}
|
155 |
$xml .= "</AuthorizationNotification>";
|
156 |
return $xml;
|
157 |
}
|
158 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/BillingAgreement.php
CHANGED
@@ -350,4 +350,4 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreement extends OffAmazonPay
|
|
350 |
{
|
351 |
return ! is_null($this->fields['BillingAgreementConsent']['FieldValue']);
|
352 |
}
|
353 |
-
}
|
350 |
{
|
351 |
return ! is_null($this->fields['BillingAgreementConsent']['FieldValue']);
|
352 |
}
|
353 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/BillingAgreementLimits.php
CHANGED
@@ -249,4 +249,4 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreementLimits extends OffAma
|
|
249 |
{
|
250 |
return ! is_null($this->fields['CurrentRemainingBalance']['FieldValue']);
|
251 |
}
|
252 |
-
}
|
249 |
{
|
250 |
return ! is_null($this->fields['CurrentRemainingBalance']['FieldValue']);
|
251 |
}
|
252 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/BillingAgreementNotification.php
CHANGED
@@ -143,4 +143,4 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreementNotification extends
|
|
143 |
$xml .= "</BillingAgreementNotification>";
|
144 |
return $xml;
|
145 |
}
|
146 |
-
}
|
143 |
$xml .= "</BillingAgreementNotification>";
|
144 |
return $xml;
|
145 |
}
|
146 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/BillingAgreementStatus.php
CHANGED
@@ -244,4 +244,4 @@ class OffAmazonPaymentsNotifications_Model_BillingAgreementStatus extends OffAma
|
|
244 |
{
|
245 |
return ! is_null($this->fields['ReasonDescription']['FieldValue']);
|
246 |
}
|
247 |
-
}
|
244 |
{
|
245 |
return ! is_null($this->fields['ReasonDescription']['FieldValue']);
|
246 |
}
|
247 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/CaptureDetails.php
CHANGED
@@ -580,4 +580,4 @@ class OffAmazonPaymentsNotifications_Model_CaptureDetails
|
|
580 |
return !is_null($this->fields['ProviderCreditSummaryList']['FieldValue']);
|
581 |
|
582 |
}
|
583 |
-
}
|
580 |
return !is_null($this->fields['ProviderCreditSummaryList']['FieldValue']);
|
581 |
|
582 |
}
|
583 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/CaptureNotification.php
CHANGED
@@ -154,4 +154,4 @@ class OffAmazonPaymentsNotifications_Model_CaptureNotification
|
|
154 |
$xml .= "</CaptureNotification>";
|
155 |
return $xml;
|
156 |
}
|
157 |
-
}
|
154 |
$xml .= "</CaptureNotification>";
|
155 |
return $xml;
|
156 |
}
|
157 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/IdList.php
CHANGED
@@ -105,4 +105,4 @@ class OffAmazonPaymentsNotifications_Model_IdList extends OffAmazonPayments_Mode
|
|
105 |
{
|
106 |
return count($this->fields['Id']['FieldValue']) > 0;
|
107 |
}
|
108 |
-
}
|
105 |
{
|
106 |
return count($this->fields['Id']['FieldValue']) > 0;
|
107 |
}
|
108 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/IpnNotificationMetadata.php
CHANGED
@@ -117,4 +117,4 @@ class OffAmazonPaymentsNotifications_Model_IpnNotificationMetadata
|
|
117 |
{
|
118 |
return self::SOURCE_MESSAGE_TYPE;
|
119 |
}
|
120 |
-
}
|
117 |
{
|
118 |
return self::SOURCE_MESSAGE_TYPE;
|
119 |
}
|
120 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/NotificationImpl.php
CHANGED
@@ -81,4 +81,4 @@ abstract class OffAmazonPaymentsNotifications_Model_NotificationImpl
|
|
81 |
{
|
82 |
return $this->_notificationMetadata;
|
83 |
}
|
84 |
-
}
|
81 |
{
|
82 |
return $this->_notificationMetadata;
|
83 |
}
|
84 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/NotificationMetadataImpl.php
CHANGED
@@ -66,4 +66,4 @@ abstract class OffAmazonPaymentsNotifications_Model_NotificationMetadataImpl
|
|
66 |
{
|
67 |
return !is_null($this->_parentNotificationMetadata);
|
68 |
}
|
69 |
-
}
|
66 |
{
|
67 |
return !is_null($this->_parentNotificationMetadata);
|
68 |
}
|
69 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/OrderItemCategories.php
CHANGED
@@ -107,4 +107,4 @@ class OffAmazonPaymentsNotifications_Model_OrderItemCategories extends OffAmazon
|
|
107 |
{
|
108 |
return count($this->fields['OrderItemCategory']['FieldValue']) > 0;
|
109 |
}
|
110 |
-
}
|
107 |
{
|
108 |
return count($this->fields['OrderItemCategory']['FieldValue']) > 0;
|
109 |
}
|
110 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/OrderReference.php
CHANGED
@@ -368,4 +368,4 @@ class OffAmazonPaymentsNotifications_Model_OrderReference
|
|
368 |
{
|
369 |
return !is_null($this->fields['ExpirationTimestamp']['FieldValue']);
|
370 |
}
|
371 |
-
}
|
368 |
{
|
369 |
return !is_null($this->fields['ExpirationTimestamp']['FieldValue']);
|
370 |
}
|
371 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/OrderReferenceNotification.php
CHANGED
@@ -153,4 +153,4 @@ class OffAmazonPaymentsNotifications_Model_OrderReferenceNotification
|
|
153 |
$xml .= "</OrderReferenceNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
-
}
|
153 |
$xml .= "</OrderReferenceNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/OrderReferenceStatus.php
CHANGED
@@ -239,4 +239,4 @@ class OffAmazonPaymentsNotifications_Model_OrderReferenceStatus extends OffAmazo
|
|
239 |
{
|
240 |
return !is_null($this->fields['ReasonDescription']['FieldValue']);
|
241 |
}
|
242 |
-
}
|
239 |
{
|
240 |
return !is_null($this->fields['ReasonDescription']['FieldValue']);
|
241 |
}
|
242 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/OrderTotal.php
CHANGED
@@ -146,4 +146,4 @@ class OffAmazonPaymentsNotifications_Model_OrderTotal
|
|
146 |
{
|
147 |
return !is_null($this->fields['Amount']['FieldValue']);
|
148 |
}
|
149 |
-
}
|
146 |
{
|
147 |
return !is_null($this->fields['Amount']['FieldValue']);
|
148 |
}
|
149 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/Price.php
CHANGED
@@ -144,4 +144,4 @@ class OffAmazonPaymentsNotifications_Model_Price extends OffAmazonPayments_Model
|
|
144 |
{
|
145 |
return !is_null($this->fields['CurrencyCode']['FieldValue']);
|
146 |
}
|
147 |
-
}
|
144 |
{
|
145 |
return !is_null($this->fields['CurrencyCode']['FieldValue']);
|
146 |
}
|
147 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/ProviderCreditNotification.php
CHANGED
@@ -153,4 +153,4 @@ class OffAmazonPaymentsNotifications_Model_ProviderCreditNotification
|
|
153 |
$xml .= "</ProviderCreditNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
-
}
|
153 |
$xml .= "</ProviderCreditNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalNotification.php
CHANGED
@@ -153,4 +153,4 @@ class OffAmazonPaymentsNotifications_Model_ProviderCreditReversalNotification
|
|
153 |
$xml .= "</ProviderCreditReversalNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
-
}
|
153 |
$xml .= "</ProviderCreditReversalNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalSummary.php
CHANGED
@@ -148,7 +148,4 @@ class OffAmazonPaymentsNotifications_Model_ProviderCreditReversalSummary extends
|
|
148 |
return !is_null($this->fields['ProviderCreditReversalId']['FieldValue']);
|
149 |
}
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
}
|
148 |
return !is_null($this->fields['ProviderCreditReversalId']['FieldValue']);
|
149 |
}
|
150 |
|
|
|
|
|
|
|
151 |
}
|
lib/OffAmazonPaymentsNotifications/Model/ProviderCreditReversalSummaryList.php
CHANGED
@@ -109,7 +109,4 @@ class OffAmazonPaymentsNotifications_Model_ProviderCreditReversalSummaryList ext
|
|
109 |
return count ($this->fields['ProviderCreditReversalSummary']['FieldValue']) > 0;
|
110 |
}
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
}
|
109 |
return count ($this->fields['ProviderCreditReversalSummary']['FieldValue']) > 0;
|
110 |
}
|
111 |
|
|
|
|
|
|
|
112 |
}
|
lib/OffAmazonPaymentsNotifications/Model/ProviderCreditSummaryList.php
CHANGED
@@ -109,7 +109,4 @@ class OffAmazonPaymentsNotifications_Model_ProviderCreditSummaryList extends Off
|
|
109 |
return count ($this->fields['ProviderCreditSummary']['FieldValue']) > 0;
|
110 |
}
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
}
|
109 |
return count ($this->fields['ProviderCreditSummary']['FieldValue']) > 0;
|
110 |
}
|
111 |
|
|
|
|
|
|
|
112 |
}
|
lib/OffAmazonPaymentsNotifications/Model/RefundDetails.php
CHANGED
@@ -524,4 +524,4 @@ class OffAmazonPaymentsNotifications_Model_RefundDetails extends OffAmazonPaymen
|
|
524 |
return !is_null($this->fields['ProviderCreditReversalSummaryList']['FieldValue']);
|
525 |
|
526 |
}
|
527 |
-
}
|
524 |
return !is_null($this->fields['ProviderCreditReversalSummaryList']['FieldValue']);
|
525 |
|
526 |
}
|
527 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/RefundNotification.php
CHANGED
@@ -151,4 +151,4 @@ class OffAmazonPaymentsNotifications_Model_RefundNotification
|
|
151 |
$xml .= "</RefundNotification>";
|
152 |
return $xml;
|
153 |
}
|
154 |
-
}
|
151 |
$xml .= "</RefundNotification>";
|
152 |
return $xml;
|
153 |
}
|
154 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/SellerBillingAgreementAttributes.php
CHANGED
@@ -144,4 +144,4 @@ class OffAmazonPaymentsNotifications_Model_SellerBillingAgreementAttributes exte
|
|
144 |
{
|
145 |
return ! is_null($this->fields['SellerId']['FieldValue']);
|
146 |
}
|
147 |
-
}
|
144 |
{
|
145 |
return ! is_null($this->fields['SellerId']['FieldValue']);
|
146 |
}
|
147 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/SellerOrderAttributes.php
CHANGED
@@ -207,4 +207,4 @@ class OffAmazonPaymentsNotifications_Model_SellerOrderAttributes
|
|
207 |
{
|
208 |
return !is_null($this->fields['OrderItemCategories']['FieldValue']);
|
209 |
}
|
210 |
-
}
|
207 |
{
|
208 |
return !is_null($this->fields['OrderItemCategories']['FieldValue']);
|
209 |
}
|
210 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/SnsNotificationMetadata.php
CHANGED
@@ -116,4 +116,4 @@ class OffAmazonPaymentsNotifications_Model_SnsNotificationMetadata
|
|
116 |
{
|
117 |
return self::SOURCE_MESSAGE_TYPE;
|
118 |
}
|
119 |
-
}
|
116 |
{
|
117 |
return self::SOURCE_MESSAGE_TYPE;
|
118 |
}
|
119 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/SolutionProviderMerchantNotification.php
CHANGED
@@ -153,4 +153,4 @@ class OffAmazonPaymentsNotifications_Model_SolutionProviderMerchantNotification
|
|
153 |
$xml .= "</SolutionProviderMerchantNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
-
}
|
153 |
$xml .= "</SolutionProviderMerchantNotification>";
|
154 |
return $xml;
|
155 |
}
|
156 |
+
}
|
lib/OffAmazonPaymentsNotifications/Model/SolutionProviderOptions.php
CHANGED
@@ -109,7 +109,4 @@ class OffAmazonPaymentsNotifications_Model_SolutionProviderOptions extends OffAm
|
|
109 |
return count ($this->fields['SolutionProviderOption']['FieldValue']) > 0;
|
110 |
}
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
}
|
109 |
return count ($this->fields['SolutionProviderOption']['FieldValue']) > 0;
|
110 |
}
|
111 |
|
|
|
|
|
|
|
112 |
}
|
lib/OffAmazonPaymentsNotifications/Model/Status.php
CHANGED
@@ -259,4 +259,4 @@ class OffAmazonPaymentsNotifications_Model_Status extends OffAmazonPayments_Mode
|
|
259 |
{
|
260 |
return !is_null($this->fields['ReasonDescription']['FieldValue']);
|
261 |
}
|
262 |
-
}
|
259 |
{
|
260 |
return !is_null($this->fields['ReasonDescription']['FieldValue']);
|
261 |
}
|
262 |
+
}
|
lib/OffAmazonPaymentsNotifications/Notification.php
CHANGED
@@ -36,4 +36,4 @@ interface OffAmazonPaymentsNotifications_Notification
|
|
36 |
* @return NotificationMetadata notificationMetadata
|
37 |
*/
|
38 |
public function getNotificationMetadata();
|
39 |
-
}
|
36 |
* @return NotificationMetadata notificationMetadata
|
37 |
*/
|
38 |
public function getNotificationMetadata();
|
39 |
+
}
|
lib/OffAmazonPaymentsNotifications/NotificationMetadata.php
CHANGED
@@ -42,4 +42,4 @@ interface OffAmazonPaymentsNotifications_NotificationMetadata
|
|
42 |
* @return true if parent notification is defined
|
43 |
*/
|
44 |
public function hasParentNotificationMetadata();
|
45 |
-
}
|
42 |
* @return true if parent notification is defined
|
43 |
*/
|
44 |
public function hasParentNotificationMetadata();
|
45 |
+
}
|
lib/OffAmazonPaymentsService/Client.php
CHANGED
@@ -29,23 +29,16 @@
|
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interface
|
31 |
{
|
32 |
-
|
33 |
const SERVICE_VERSION = '2013-01-01';
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
private
|
38 |
-
|
|
|
39 |
/** @var array */
|
40 |
-
private
|
41 |
-
|
42 |
-
'SignatureVersion' => 2,
|
43 |
-
'SignatureMethod' => 'HmacSHA256',
|
44 |
-
'ProxyHost' => null,
|
45 |
-
'ProxyPort' => -1,
|
46 |
-
'MaxErrorRetry' => 3
|
47 |
-
);
|
48 |
-
|
49 |
/**
|
50 |
* Construct new Client
|
51 |
*
|
@@ -72,32 +65,9 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
72 |
iconv_set_encoding('output_encoding', 'UTF-8');
|
73 |
iconv_set_encoding('input_encoding', 'UTF-8');
|
74 |
iconv_set_encoding('internal_encoding', 'UTF-8');
|
75 |
-
|
76 |
-
$this->_checkConfigHasAllRequiredKeys($config);
|
77 |
-
$this->_merchantValues = new OffAmazonPaymentsService_MerchantValues(
|
78 |
-
$config['merchantId'],
|
79 |
-
$config['accessKey'],
|
80 |
-
$config['secretKey'],
|
81 |
-
$config['applicationName'],
|
82 |
-
$config['applicationVersion'],
|
83 |
-
$config['region'],
|
84 |
-
$config['environment'],
|
85 |
-
$config['serviceURL'],
|
86 |
-
$config['widgetURL'],
|
87 |
-
$config['caBundleFile'],
|
88 |
-
$config['clientId']
|
89 |
-
);
|
90 |
-
|
91 |
-
$this->_config = array_merge(
|
92 |
-
$this->_config,
|
93 |
-
array ('ServiceURL' => $this->_merchantValues->getServiceURL())
|
94 |
-
);
|
95 |
|
96 |
-
$this->
|
97 |
-
|
98 |
-
$this->_merchantValues->getApplicationVersion(),
|
99 |
-
array("ApplicationLibraryVersion" => OffAmazonPaymentsService_Client::APPLICATION_LIBRARY_VERSION)
|
100 |
-
);
|
101 |
}
|
102 |
|
103 |
public function getMerchantValues()
|
@@ -105,144 +75,10 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
105 |
return $this->_merchantValues;
|
106 |
}
|
107 |
|
108 |
-
|
109 |
-
{
|
110 |
-
$requiredKeys = array('merchantId',
|
111 |
-
'accessKey',
|
112 |
-
'secretKey',
|
113 |
-
'region',
|
114 |
-
'environment',
|
115 |
-
'applicationName',
|
116 |
-
'applicationVersion'
|
117 |
-
);
|
118 |
-
|
119 |
-
$containsSearch = (
|
120 |
-
count(
|
121 |
-
array_intersect(
|
122 |
-
$requiredKeys,
|
123 |
-
array_keys($config)
|
124 |
-
)
|
125 |
-
) == count($requiredKeys)
|
126 |
-
);
|
127 |
-
|
128 |
-
if (!$containsSearch) {
|
129 |
-
throw new InvalidArgumentException("config array is missing required values");
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
private function setUserAgentHeader($applicationName, $applicationVersion, $attributes = null)
|
134 |
-
{
|
135 |
-
if (is_null($attributes)) {
|
136 |
-
$attributes = array ();
|
137 |
-
}
|
138 |
-
|
139 |
-
$this->_config['UserAgent']
|
140 |
-
= $this->constructUserAgentHeader($applicationName, $applicationVersion, $attributes);
|
141 |
-
}
|
142 |
|
143 |
-
private function constructUserAgentHeader($applicationName, $applicationVersion, $attributes)
|
144 |
-
{
|
145 |
-
$userAgent
|
146 |
-
= $this->quoteApplicationName($applicationName)
|
147 |
-
. '/'
|
148 |
-
. $this->quoteApplicationVersion($applicationVersion);
|
149 |
-
|
150 |
-
$userAgent .= ' (';
|
151 |
-
$userAgent .= 'Language=PHP/' . phpversion();
|
152 |
-
$userAgent .= '; ';
|
153 |
-
$userAgent .= 'Platform=' . php_uname('s') . '/' . php_uname('m') . '/' . php_uname('r');
|
154 |
-
$userAgent .= '; ';
|
155 |
-
$userAgent .= 'MWSClientVersion=' . self::MWS_CLIENT_VERSION;
|
156 |
-
|
157 |
-
foreach ($attributes as $key => $value) {
|
158 |
-
if (empty($value)) {
|
159 |
-
throw new InvalidArgumentException("value for $key cannot be null or empty");
|
160 |
-
}
|
161 |
-
|
162 |
-
$userAgent .= '; '
|
163 |
-
. $this->quoteAttributeName($key)
|
164 |
-
. '='
|
165 |
-
. $this->quoteAttributeValue($value);
|
166 |
-
}
|
167 |
|
168 |
-
$userAgent .= ')';
|
169 |
-
|
170 |
-
return $userAgent;
|
171 |
-
}
|
172 |
|
173 |
-
/**
|
174 |
-
* Collapse multiple whitespace characters into a single ' ' character.
|
175 |
-
* @param $s
|
176 |
-
* @return string
|
177 |
-
*/
|
178 |
-
private function collapseWhitespace($s) {
|
179 |
-
return preg_replace('/ {2,}|\s/', ' ', $s);
|
180 |
-
}
|
181 |
-
|
182 |
-
/**
|
183 |
-
* Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
|
184 |
-
* and '/' characters from a string.
|
185 |
-
* @param $s
|
186 |
-
* @return string
|
187 |
-
*/
|
188 |
-
private function quoteApplicationName($s) {
|
189 |
-
$quotedString = $this->collapseWhitespace($s);
|
190 |
-
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
191 |
-
$quotedString = preg_replace('/\//', '\\/', $quotedString);
|
192 |
-
|
193 |
-
return $quotedString;
|
194 |
-
}
|
195 |
-
|
196 |
-
/**
|
197 |
-
* Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
|
198 |
-
* and '(' characters from a string.
|
199 |
-
*
|
200 |
-
* @param $s
|
201 |
-
* @return string
|
202 |
-
*/
|
203 |
-
private function quoteApplicationVersion($s) {
|
204 |
-
$quotedString = $this->collapseWhitespace($s);
|
205 |
-
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
206 |
-
$quotedString = preg_replace('/\\(/', '\\(', $quotedString);
|
207 |
-
|
208 |
-
return $quotedString;
|
209 |
-
}
|
210 |
-
|
211 |
-
/**
|
212 |
-
* Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
|
213 |
-
* and '=' characters from a string.
|
214 |
-
*
|
215 |
-
* @param $s
|
216 |
-
* @return unknown_type
|
217 |
-
*/
|
218 |
-
private function quoteAttributeName($s) {
|
219 |
-
$quotedString = $this->collapseWhitespace($s);
|
220 |
-
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
221 |
-
$quotedString = preg_replace('/\\=/', '\\=', $quotedString);
|
222 |
-
|
223 |
-
return $quotedString;
|
224 |
-
}
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Collapse multiple whitespace characters into a single ' ' and backslash escape ';', '\',
|
228 |
-
* and ')' characters from a string.
|
229 |
-
*
|
230 |
-
* @param $s
|
231 |
-
* @return unknown_type
|
232 |
-
*/
|
233 |
-
private function quoteAttributeValue($s) {
|
234 |
-
$quotedString = $this->collapseWhitespace($s);
|
235 |
-
$quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
|
236 |
-
$quotedString = preg_replace('/\\;/', '\\;', $quotedString);
|
237 |
-
$quotedString = preg_replace('/\\)/', '\\)', $quotedString);
|
238 |
-
|
239 |
-
return $quotedString;
|
240 |
-
}
|
241 |
-
|
242 |
-
// Public API ------------------------------------------------------------//
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
/**
|
247 |
* Capture
|
248 |
*
|
@@ -259,13 +95,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
259 |
$request = new OffAmazonPaymentsService_Model_CaptureRequest($request);
|
260 |
}
|
261 |
$httpResponse = $this->_invoke($this->_convertCapture($request));
|
262 |
-
$response
|
263 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
264 |
return $response;
|
265 |
}
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
/**
|
270 |
* Refund
|
271 |
*
|
@@ -283,13 +119,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
283 |
$request = new OffAmazonPaymentsService_Model_RefundRequest($request);
|
284 |
}
|
285 |
$httpResponse = $this->_invoke($this->_convertRefund($request));
|
286 |
-
$response
|
287 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
288 |
return $response;
|
289 |
}
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
/**
|
294 |
* Close Authorization
|
295 |
*
|
@@ -306,13 +142,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
306 |
$request = new OffAmazonPaymentsService_Model_CloseAuthorizationRequest($request);
|
307 |
}
|
308 |
$httpResponse = $this->_invoke($this->_convertCloseAuthorization($request));
|
309 |
-
$response
|
310 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
311 |
return $response;
|
312 |
}
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
/**
|
317 |
* Get Refund Details
|
318 |
*
|
@@ -329,13 +165,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
329 |
$request = new OffAmazonPaymentsService_Model_GetRefundDetailsRequest($request);
|
330 |
}
|
331 |
$httpResponse = $this->_invoke($this->_convertGetRefundDetails($request));
|
332 |
-
$response
|
333 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
334 |
return $response;
|
335 |
}
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
/**
|
340 |
* Get Capture Details
|
341 |
*
|
@@ -352,13 +188,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
352 |
$request = new OffAmazonPaymentsService_Model_GetCaptureDetailsRequest($request);
|
353 |
}
|
354 |
$httpResponse = $this->_invoke($this->_convertGetCaptureDetails($request));
|
355 |
-
$response
|
356 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
357 |
return $response;
|
358 |
}
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
/**
|
363 |
* Close Order Reference
|
364 |
*
|
@@ -371,17 +207,17 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
371 |
*/
|
372 |
public function closeOrderReference($request)
|
373 |
{
|
374 |
-
if (!$request instanceof OffAmazonPaymentsService_Model_CloseOrderReferenceRequest) {
|
375 |
$request = new OffAmazonPaymentsService_Model_CloseOrderReferenceRequest($request);
|
376 |
};
|
377 |
$httpResponse = $this->_invoke($this->_convertCloseOrderReference($request));
|
378 |
-
$response
|
379 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
380 |
return $response;
|
381 |
}
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
/**
|
386 |
* Confirm Order Reference
|
387 |
*
|
@@ -398,13 +234,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
398 |
$request = new OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest($request);
|
399 |
}
|
400 |
$httpResponse = $this->_invoke($this->_convertConfirmOrderReference($request));
|
401 |
-
$response
|
402 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
403 |
return $response;
|
404 |
}
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
/**
|
409 |
* Get Order Reference Details
|
410 |
*
|
@@ -421,13 +257,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
421 |
$request = new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest($request);
|
422 |
}
|
423 |
$httpResponse = $this->_invoke($this->_convertGetOrderReferenceDetails($request));
|
424 |
-
$response
|
425 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
426 |
return $response;
|
427 |
}
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
/**
|
432 |
* Authorize
|
433 |
*
|
@@ -444,13 +280,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
444 |
$request = new OffAmazonPaymentsService_Model_AuthorizeRequest($request);
|
445 |
}
|
446 |
$httpResponse = $this->_invoke($this->_convertAuthorize($request));
|
447 |
-
$response
|
448 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
449 |
return $response;
|
450 |
}
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
/**
|
455 |
* Set Order Reference Details
|
456 |
*
|
@@ -467,13 +303,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
467 |
$request = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest($request);
|
468 |
}
|
469 |
$httpResponse = $this->_invoke($this->_convertSetOrderReferenceDetails($request));
|
470 |
-
$response
|
471 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
472 |
return $response;
|
473 |
}
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
/**
|
478 |
* Get Authorization Details
|
479 |
*
|
@@ -490,13 +326,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
490 |
$request = new OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest($request);
|
491 |
}
|
492 |
$httpResponse = $this->_invoke($this->_convertGetAuthorizationDetails($request));
|
493 |
-
$response
|
494 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
495 |
return $response;
|
496 |
}
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
/**
|
501 |
* Cancel Order Reference
|
502 |
*
|
@@ -513,7 +349,7 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
513 |
$request = new OffAmazonPaymentsService_Model_CancelOrderReferenceRequest($request);
|
514 |
}
|
515 |
$httpResponse = $this->_invoke($this->_convertCancelOrderReference($request));
|
516 |
-
$response
|
517 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
518 |
return $response;
|
519 |
}
|
@@ -536,7 +372,7 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
536 |
$request = new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest($request);
|
537 |
}
|
538 |
$httpResponse = $this->_invoke($this->_convertCreateOrderReferenceForId($request));
|
539 |
-
$response
|
540 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
541 |
return $response;
|
542 |
}
|
@@ -555,13 +391,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
555 |
*/
|
556 |
public function getBillingAgreementDetails($request)
|
557 |
{
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
}
|
566 |
|
567 |
|
@@ -578,13 +414,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
578 |
*/
|
579 |
public function setBillingAgreementDetails($request)
|
580 |
{
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
}
|
589 |
|
590 |
|
@@ -601,13 +437,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
601 |
*/
|
602 |
public function confirmBillingAgreement($request)
|
603 |
{
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
}
|
612 |
|
613 |
|
@@ -628,7 +464,7 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
628 |
$request = new OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest($request);
|
629 |
}
|
630 |
$httpResponse = $this->_invoke($this->_convertValidateBillingAgreement($request));
|
631 |
-
$response
|
632 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
633 |
return $response;
|
634 |
}
|
@@ -647,13 +483,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
647 |
*/
|
648 |
public function authorizeOnBillingAgreement($request)
|
649 |
{
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
}
|
658 |
|
659 |
|
@@ -670,13 +506,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
670 |
*/
|
671 |
public function closeBillingAgreement($request)
|
672 |
{
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
}
|
681 |
|
682 |
/**
|
@@ -693,13 +529,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
693 |
*/
|
694 |
public function getProviderCreditDetails($request)
|
695 |
{
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
}
|
704 |
|
705 |
/**
|
@@ -716,13 +552,13 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
716 |
*/
|
717 |
public function getProviderCreditReversalDetails($request)
|
718 |
{
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
}
|
727 |
|
728 |
/**
|
@@ -739,243 +575,293 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
739 |
*/
|
740 |
public function reverseProviderCredit($request)
|
741 |
{
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
}
|
750 |
|
751 |
-
|
752 |
// Private API ------------------------------------------------------------//
|
753 |
-
|
754 |
/**
|
755 |
* Invoke request and return response
|
756 |
*/
|
757 |
private function _invoke(array $parameters)
|
758 |
{
|
759 |
-
$actionName
|
760 |
-
$response
|
761 |
$responseBody = null;
|
762 |
-
$statusCode
|
763 |
-
|
764 |
/* Submit the request and read response body */
|
765 |
try {
|
766 |
-
|
767 |
-
if (empty($this->_config['ServiceURL'])) {
|
768 |
-
throw new OffAmazonPaymentsService_Exception(
|
769 |
-
array ('ErrorCode' => 'InvalidServiceURL',
|
770 |
-
'Message' => "Missing serviceUrl configuration value. You may obtain a list of valid MWS URLs by consulting the MWS Developer's Guide, or reviewing the sample code published along side this library."));
|
771 |
-
}
|
772 |
-
|
773 |
/* Add required request parameters */
|
774 |
$parameters = $this->_addRequiredParameters($parameters);
|
775 |
-
|
776 |
$shouldRetry = true;
|
777 |
-
$retries
|
778 |
do {
|
779 |
try {
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
} else {
|
794 |
-
throw $this->_reportAnyErrors($response['ResponseBody'], $response['Status'], $response['ResponseHeaderMetadata']);
|
795 |
-
}
|
796 |
} else {
|
797 |
throw $this->_reportAnyErrors($response['ResponseBody'], $response['Status'], $response['ResponseHeaderMetadata']);
|
798 |
}
|
799 |
-
|
800 |
-
|
801 |
-
|
|
|
|
|
|
|
|
|
802 |
if ($e instanceof OffAmazonPaymentsService_Exception) {
|
803 |
throw $e;
|
804 |
} else {
|
805 |
-
throw new OffAmazonPaymentsService_Exception(array(
|
|
|
|
|
|
|
806 |
}
|
807 |
}
|
808 |
-
|
809 |
} while ($shouldRetry);
|
810 |
-
|
811 |
-
}
|
|
|
812 |
throw $se;
|
813 |
-
} catch (Exception $t) {
|
814 |
-
throw new OffAmazonPaymentsService_Exception(array('Exception' => $t, 'Message' => $t->getMessage()));
|
815 |
}
|
816 |
-
|
817 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
818 |
}
|
819 |
-
|
820 |
/**
|
821 |
* Look for additional error strings in the response and return formatted exception
|
822 |
*/
|
823 |
-
private function _reportAnyErrors($responseBody, $status, $responseHeaderMetadata, Exception $e =
|
824 |
{
|
825 |
$ex = null;
|
826 |
if (!is_null($responseBody) && strpos($responseBody, '<') === 0) {
|
827 |
-
if (preg_match('@<RequestId>(.*)</RequestId>.*<Error>.*<Code>(.*)</Code>.*<Message>(.*)</Message>.*</Error>.*(<Error>)?@mis',
|
828 |
-
|
829 |
-
|
830 |
$requestId = $errorMatcherOne[1];
|
831 |
-
$code
|
832 |
-
$message
|
833 |
-
|
834 |
-
$ex = new OffAmazonPaymentsService_Exception(array
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
|
|
|
|
|
|
|
|
|
|
844 |
$requestId = $errorMatcherThree[5];
|
845 |
-
$ex
|
846 |
-
|
847 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
848 |
|
849 |
-
} elseif (preg_match('@<Error>.*<Code>(.*)</Code>.*<Message>(.*)</Message>.*</Error>.*(<Error>)?.*<RequestID>(.*)</RequestID>@mis',
|
850 |
-
|
851 |
-
|
852 |
-
$
|
853 |
-
$message = $errorMatcherTwo[2];
|
854 |
$requestId = $errorMatcherTwo[4];
|
855 |
-
$ex
|
856 |
-
|
857 |
-
|
858 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
859 |
} else {
|
860 |
-
$ex = new OffAmazonPaymentsService_Exception(array(
|
|
|
|
|
|
|
|
|
861 |
}
|
862 |
} else {
|
863 |
-
$ex = new OffAmazonPaymentsService_Exception(array(
|
|
|
|
|
|
|
|
|
864 |
}
|
865 |
return $ex;
|
866 |
}
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
/**
|
871 |
* Perform HTTP post with exponential retries on error 500 and 503
|
872 |
*
|
873 |
*/
|
874 |
private function _httpPost(array $parameters)
|
875 |
{
|
876 |
-
|
877 |
-
$query = $this->_getParametersAsString($parameters);
|
878 |
-
$url = parse_url ($this->_config['ServiceURL']);
|
879 |
-
$uri = array_key_exists('path', $url) ? $url['path'] : null;
|
880 |
-
if (!isset ($uri)) {
|
881 |
-
$uri = "/";
|
882 |
-
}
|
883 |
-
$scheme = '';
|
884 |
-
|
885 |
-
switch ($url['scheme']) {
|
886 |
-
case 'https':
|
887 |
-
$scheme = 'https://';
|
888 |
-
$port = array_key_exists('port', $url) && isset($url['port']) ? $url['port'] : 443;
|
889 |
-
break;
|
890 |
-
default:
|
891 |
-
$scheme = '';
|
892 |
-
$port = array_key_exists('port', $url) && isset($url['port']) ? $url['port'] : 80;
|
893 |
-
}
|
894 |
-
|
895 |
-
$ch = curl_init();
|
896 |
-
curl_setopt($ch, CURLOPT_URL, $scheme . $url['host'] . $uri);
|
897 |
-
curl_setopt($ch, CURLOPT_PORT, $port);
|
898 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
899 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
900 |
|
901 |
-
|
902 |
-
# configured for the server
|
903 |
-
if (!is_null($this->_merchantValues->getCaBundleFile())) {
|
904 |
-
curl_setopt($ch, CURLOPT_CAINFO, $this->_merchantValues->getCaBundleFile());
|
905 |
-
}
|
906 |
-
|
907 |
-
curl_setopt($ch, CURLOPT_USERAGENT, $this->_config['UserAgent']);
|
908 |
-
curl_setopt($ch, CURLOPT_POST, true);
|
909 |
-
curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
|
910 |
-
curl_setopt($ch, CURLOPT_HEADER, true);
|
911 |
-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
912 |
-
if ($this->_config['ProxyHost'] != null && $this->_config['ProxyPort'] != -1)
|
913 |
-
{
|
914 |
-
curl_setopt($ch, CURLOPT_PROXY, $this->_config['ProxyHost'] . ':' . $this->_config['ProxyPort']);
|
915 |
-
}
|
916 |
-
|
917 |
$response = '';
|
918 |
-
|
919 |
-
|
920 |
-
curl_close($ch);
|
921 |
-
Mage::dispatchEvent('amazonpayments_advanced_api_post_call', array(
|
922 |
-
'call_data' => array(
|
923 |
-
'call_url' => $scheme . $url['host'] . $uri,
|
924 |
-
'call_action' => $parameters['Action'],
|
925 |
-
'query' => $query,
|
926 |
-
'response_code' => null,
|
927 |
-
'response_error' => $error_msg,
|
928 |
-
'response_headers' => null,
|
929 |
-
'response_body' => null
|
930 |
-
)
|
931 |
-
));
|
932 |
-
throw new OffAmazonPaymentsService_Exception(array('Message' => $error_msg));
|
933 |
}
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
$headers = array();
|
941 |
-
foreach ($other as $value) {
|
942 |
-
if (strpos($value, ': ') !== FALSE) {
|
943 |
-
list ($k, $v) = explode (': ', $value);
|
944 |
-
if (array_key_exists($k, $headers)) {
|
945 |
-
$headers[$k] = $headers[$k] . "," . $v;
|
946 |
-
} else {
|
947 |
-
$headers[$k] = $v;
|
948 |
-
}
|
949 |
-
}
|
950 |
}
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
|
|
|
|
|
|
|
|
962 |
}
|
963 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
964 |
Mage::dispatchEvent('amazonpayments_advanced_api_post_call', array(
|
965 |
'call_data' => array(
|
966 |
-
'call_url' => $
|
967 |
'call_action' => $parameters['Action'],
|
968 |
'query' => $query,
|
969 |
-
'response_code' => (int)$
|
970 |
'response_error' => null,
|
971 |
-
'response_headers' =>
|
972 |
-
|
|
|
|
|
|
|
|
|
973 |
)
|
974 |
));
|
975 |
|
976 |
-
return array
|
|
|
|
|
|
|
|
|
977 |
}
|
978 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
979 |
/**
|
980 |
* Exponential sleep on failed request
|
981 |
* @param retries current retry
|
@@ -984,30 +870,33 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
984 |
private function _pauseOnRetry($retries, $status)
|
985 |
{
|
986 |
if ($retries <= $this->_config['MaxErrorRetry']) {
|
987 |
-
$delay = (int) (pow(4, $retries) * 100000)
|
988 |
usleep($delay);
|
989 |
} else {
|
990 |
-
throw new OffAmazonPaymentsService_Exception
|
|
|
|
|
|
|
991 |
}
|
992 |
}
|
993 |
-
|
994 |
/**
|
995 |
* Add authentication related and version parameters
|
996 |
*/
|
997 |
private function _addRequiredParameters(array $parameters)
|
998 |
{
|
999 |
-
$parameters['AWSAccessKeyId']
|
1000 |
-
$parameters['Timestamp']
|
1001 |
-
$parameters['Version']
|
1002 |
$parameters['SignatureVersion'] = $this->_config['SignatureVersion'];
|
1003 |
if ($parameters['SignatureVersion'] > 1) {
|
1004 |
$parameters['SignatureMethod'] = $this->_config['SignatureMethod'];
|
1005 |
}
|
1006 |
$parameters['Signature'] = $this->_signParameters($parameters, $this->_merchantValues->getSecretKey());
|
1007 |
-
|
1008 |
return $parameters;
|
1009 |
}
|
1010 |
-
|
1011 |
/**
|
1012 |
* Convert paremeters to Url encoded query string
|
1013 |
*/
|
@@ -1019,8 +908,8 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1019 |
}
|
1020 |
return implode('&', $queryParameters);
|
1021 |
}
|
1022 |
-
|
1023 |
-
|
1024 |
/**
|
1025 |
* Computes RFC 2104-compliant HMAC signature for request parameters
|
1026 |
* Implements AWS Signature, as per following spec:
|
@@ -1051,48 +940,54 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1051 |
* Pairs of parameter and values are separated by the '&' character (ASCII code 38).
|
1052 |
*
|
1053 |
*/
|
1054 |
-
private function _signParameters(array $parameters, $key)
|
|
|
1055 |
$signatureVersion = $parameters['SignatureVersion'];
|
1056 |
-
$algorithm
|
1057 |
-
$stringToSign
|
1058 |
-
if (2
|
1059 |
-
$algorithm
|
1060 |
$parameters['SignatureMethod'] = $algorithm;
|
1061 |
-
$stringToSign
|
1062 |
} else {
|
1063 |
throw new Exception("Invalid Signature Version specified");
|
1064 |
}
|
1065 |
return $this->_sign($stringToSign, $key, $algorithm);
|
1066 |
}
|
1067 |
-
|
1068 |
/**
|
1069 |
* Calculate String to Sign for SignatureVersion 2
|
1070 |
* @param array $parameters request parameters
|
1071 |
* @return String to Sign
|
1072 |
*/
|
1073 |
-
private function _calculateStringToSignV2(array $parameters)
|
|
|
1074 |
$data = 'POST';
|
1075 |
$data .= "\n";
|
1076 |
-
$endpoint = parse_url
|
1077 |
$data .= $endpoint['host'];
|
1078 |
$data .= "\n";
|
1079 |
$uri = array_key_exists('path', $endpoint) ? $endpoint['path'] : null;
|
1080 |
-
if (!isset
|
1081 |
-
|
1082 |
}
|
1083 |
-
|
|
|
|
|
|
|
1084 |
$data .= $uriencoded;
|
1085 |
$data .= "\n";
|
1086 |
uksort($parameters, 'strcmp');
|
1087 |
$data .= $this->_getParametersAsString($parameters);
|
1088 |
return $data;
|
1089 |
}
|
1090 |
-
|
1091 |
-
private function _urlencode($value)
|
1092 |
-
|
|
|
1093 |
}
|
1094 |
-
|
1095 |
-
|
1096 |
/**
|
1097 |
* Computes RFC 2104-compliant HMAC signature.
|
1098 |
*/
|
@@ -1103,14 +998,12 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1103 |
} else if ($algorithm === 'HmacSHA256') {
|
1104 |
$hash = 'sha256';
|
1105 |
} else {
|
1106 |
-
throw new Exception
|
1107 |
}
|
1108 |
-
return base64_encode(
|
1109 |
-
hash_hmac($hash, $data, $key, true)
|
1110 |
-
);
|
1111 |
}
|
1112 |
-
|
1113 |
-
|
1114 |
/**
|
1115 |
* Formats date as ISO 8601 timestamp
|
1116 |
*/
|
@@ -1124,391 +1017,439 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1124 |
*/
|
1125 |
private function getFormattedTimestamp($dateTime)
|
1126 |
{
|
1127 |
-
|
1128 |
}
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
/**
|
1134 |
* Convert CaptureRequest to name value pairs
|
1135 |
*/
|
1136 |
-
private function _convertCapture($request)
|
|
|
1137 |
|
1138 |
-
$parameters
|
1139 |
$parameters['Action'] = 'Capture';
|
1140 |
if ($request->isSetSellerId()) {
|
1141 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1142 |
}
|
1143 |
if ($request->isSetAmazonAuthorizationId()) {
|
1144 |
-
$parameters['AmazonAuthorizationId'] =
|
1145 |
}
|
1146 |
if ($request->isSetCaptureReferenceId()) {
|
1147 |
-
$parameters['CaptureReferenceId'] =
|
1148 |
}
|
1149 |
if ($request->isSetCaptureAmount()) {
|
1150 |
$captureAmountcaptureRequest = $request->getCaptureAmount();
|
1151 |
if ($captureAmountcaptureRequest->isSetAmount()) {
|
1152 |
-
$parameters['CaptureAmount' . '.' . 'Amount'] =
|
1153 |
}
|
1154 |
if ($captureAmountcaptureRequest->isSetCurrencyCode()) {
|
1155 |
-
$parameters['CaptureAmount' . '.' . 'CurrencyCode'] =
|
1156 |
}
|
1157 |
}
|
1158 |
if ($request->isSetSellerCaptureNote()) {
|
1159 |
-
$parameters['SellerCaptureNote'] =
|
1160 |
}
|
1161 |
if ($request->isSetSoftDescriptor()) {
|
1162 |
-
$parameters['SoftDescriptor'] =
|
1163 |
}
|
1164 |
if ($request->isSetProviderCreditList()) {
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
}
|
1182 |
|
1183 |
return $parameters;
|
1184 |
}
|
1185 |
-
|
1186 |
-
|
1187 |
/**
|
1188 |
* Convert RefundRequest to name value pairs
|
1189 |
*/
|
1190 |
-
private function _convertRefund($request)
|
|
|
1191 |
|
1192 |
-
$parameters
|
1193 |
$parameters['Action'] = 'Refund';
|
1194 |
if ($request->isSetSellerId()) {
|
1195 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1196 |
}
|
1197 |
if ($request->isSetAmazonCaptureId()) {
|
1198 |
-
$parameters['AmazonCaptureId'] =
|
1199 |
}
|
1200 |
if ($request->isSetRefundReferenceId()) {
|
1201 |
-
$parameters['RefundReferenceId'] =
|
1202 |
}
|
1203 |
if ($request->isSetRefundAmount()) {
|
1204 |
$refundAmount = $request->getRefundAmount();
|
1205 |
if ($refundAmount->isSetAmount()) {
|
1206 |
-
$parameters['RefundAmount' . '.' . 'Amount'] =
|
1207 |
}
|
1208 |
if ($refundAmount->isSetCurrencyCode()) {
|
1209 |
-
$parameters['RefundAmount' . '.' . 'CurrencyCode'] =
|
1210 |
}
|
1211 |
}
|
1212 |
if ($request->isSetSellerRefundNote()) {
|
1213 |
-
$parameters['SellerRefundNote'] =
|
1214 |
}
|
1215 |
if ($request->isSetSoftDescriptor()) {
|
1216 |
-
$parameters['SoftDescriptor'] =
|
1217 |
}
|
1218 |
if ($request->isSetProviderCreditReversalList()) {
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
}
|
1236 |
-
|
1237 |
return $parameters;
|
1238 |
}
|
1239 |
-
|
1240 |
-
|
1241 |
/**
|
1242 |
* Convert CloseAuthorizationRequest to name value pairs
|
1243 |
*/
|
1244 |
-
private function _convertCloseAuthorization($request)
|
|
|
1245 |
|
1246 |
-
$parameters
|
1247 |
$parameters['Action'] = 'CloseAuthorization';
|
1248 |
if ($request->isSetSellerId()) {
|
1249 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1250 |
}
|
1251 |
if ($request->isSetAmazonAuthorizationId()) {
|
1252 |
-
$parameters['AmazonAuthorizationId'] =
|
1253 |
}
|
1254 |
if ($request->isSetClosureReason()) {
|
1255 |
-
$parameters['ClosureReason'] =
|
1256 |
}
|
1257 |
-
|
1258 |
return $parameters;
|
1259 |
}
|
1260 |
-
|
1261 |
-
|
1262 |
/**
|
1263 |
* Convert GetRefundDetailsRequest to name value pairs
|
1264 |
*/
|
1265 |
-
private function _convertGetRefundDetails($request)
|
|
|
1266 |
|
1267 |
-
$parameters
|
1268 |
$parameters['Action'] = 'GetRefundDetails';
|
1269 |
if ($request->isSetSellerId()) {
|
1270 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1271 |
}
|
1272 |
if ($request->isSetAmazonRefundId()) {
|
1273 |
-
$parameters['AmazonRefundId'] =
|
1274 |
}
|
1275 |
-
|
1276 |
return $parameters;
|
1277 |
}
|
1278 |
-
|
1279 |
-
|
1280 |
/**
|
1281 |
* Convert GetCaptureDetailsRequest to name value pairs
|
1282 |
*/
|
1283 |
-
private function _convertGetCaptureDetails($request)
|
|
|
1284 |
|
1285 |
-
$parameters
|
1286 |
$parameters['Action'] = 'GetCaptureDetails';
|
1287 |
if ($request->isSetSellerId()) {
|
1288 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1289 |
}
|
1290 |
if ($request->isSetAmazonCaptureId()) {
|
1291 |
-
$parameters['AmazonCaptureId'] =
|
1292 |
}
|
1293 |
-
|
1294 |
return $parameters;
|
1295 |
}
|
1296 |
-
|
1297 |
-
|
1298 |
/**
|
1299 |
* Convert CloseOrderReferenceRequest to name value pairs
|
1300 |
*/
|
1301 |
-
private function _convertCloseOrderReference($request)
|
|
|
1302 |
|
1303 |
-
$parameters
|
1304 |
$parameters['Action'] = 'CloseOrderReference';
|
1305 |
if ($request->isSetSellerId()) {
|
1306 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1307 |
}
|
1308 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1309 |
-
$parameters['AmazonOrderReferenceId'] =
|
1310 |
}
|
1311 |
if ($request->isSetClosureReason()) {
|
1312 |
-
$parameters['ClosureReason'] =
|
1313 |
}
|
1314 |
-
|
1315 |
return $parameters;
|
1316 |
}
|
1317 |
-
|
1318 |
-
|
1319 |
/**
|
1320 |
* Convert ConfirmOrderReferenceRequest to name value pairs
|
1321 |
*/
|
1322 |
-
private function _convertConfirmOrderReference($request)
|
|
|
1323 |
|
1324 |
-
$parameters
|
1325 |
$parameters['Action'] = 'ConfirmOrderReference';
|
1326 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1327 |
-
$parameters['AmazonOrderReferenceId'] =
|
|
|
|
|
|
|
1328 |
}
|
1329 |
if ($request->isSetSellerId()) {
|
1330 |
-
$parameters['SellerId'] =
|
1331 |
}
|
1332 |
-
|
1333 |
return $parameters;
|
1334 |
}
|
1335 |
-
|
1336 |
-
|
1337 |
/**
|
1338 |
* Convert GetOrderReferenceDetailsRequest to name value pairs
|
1339 |
*/
|
1340 |
-
private function _convertGetOrderReferenceDetails($request)
|
|
|
1341 |
|
1342 |
-
$parameters
|
1343 |
$parameters['Action'] = 'GetOrderReferenceDetails';
|
1344 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1345 |
-
$parameters['AmazonOrderReferenceId'] =
|
|
|
|
|
|
|
1346 |
}
|
1347 |
if ($request->isSetSellerId()) {
|
1348 |
-
$parameters['SellerId'] =
|
1349 |
}
|
1350 |
if ($request->isSetAddressConsentToken()) {
|
1351 |
$parameters['AddressConsentToken'] = $request->getAddressConsentToken();
|
1352 |
}
|
1353 |
-
|
1354 |
return $parameters;
|
1355 |
}
|
1356 |
-
|
1357 |
-
|
1358 |
/**
|
1359 |
* Convert AuthorizeRequest to name value pairs
|
1360 |
*/
|
1361 |
-
private function _convertAuthorize($request)
|
|
|
1362 |
|
1363 |
-
$parameters
|
1364 |
$parameters['Action'] = 'Authorize';
|
1365 |
if ($request->isSetSellerId()) {
|
1366 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1367 |
}
|
1368 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1369 |
-
$parameters['AmazonOrderReferenceId'] =
|
1370 |
}
|
1371 |
if ($request->isSetAuthorizationReferenceId()) {
|
1372 |
-
$parameters['AuthorizationReferenceId'] =
|
1373 |
}
|
1374 |
if ($request->isSetAuthorizationAmount()) {
|
1375 |
$authorizationAmount = $request->getAuthorizationAmount();
|
1376 |
if ($authorizationAmount->isSetAmount()) {
|
1377 |
-
$parameters['AuthorizationAmount' . '.' . 'Amount'] =
|
1378 |
}
|
1379 |
if ($authorizationAmount->isSetCurrencyCode()) {
|
1380 |
-
$parameters['AuthorizationAmount' . '.' . 'CurrencyCode'] =
|
1381 |
}
|
1382 |
}
|
1383 |
if ($request->isSetSellerAuthorizationNote()) {
|
1384 |
-
$parameters['SellerAuthorizationNote'] =
|
1385 |
}
|
1386 |
if ($request->isSetOrderItemCategories()) {
|
1387 |
$orderItemCategories = $request->getOrderItemCategories();
|
1388 |
-
foreach
|
1389 |
-
$parameters['OrderItemCategories' . '.' . 'OrderItemCategory' . '.'
|
1390 |
}
|
1391 |
}
|
1392 |
if ($request->isSetTransactionTimeout()) {
|
1393 |
-
$parameters['TransactionTimeout'] =
|
1394 |
}
|
1395 |
if ($request->isSetCaptureNow()) {
|
1396 |
-
$parameters['CaptureNow'] =
|
1397 |
}
|
1398 |
if ($request->isSetSoftDescriptor()) {
|
1399 |
-
$parameters['SoftDescriptor'] =
|
1400 |
}
|
1401 |
if ($request->isSetProviderCreditList()) {
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
}
|
1418 |
-
|
1419 |
return $parameters;
|
1420 |
}
|
1421 |
-
|
1422 |
-
|
1423 |
/**
|
1424 |
* Convert SetOrderReferenceDetailsRequest to name value pairs
|
1425 |
*/
|
1426 |
-
private function _convertSetOrderReferenceDetails($request)
|
|
|
1427 |
|
1428 |
-
$parameters
|
1429 |
$parameters['Action'] = 'SetOrderReferenceDetails';
|
1430 |
if ($request->isSetSellerId()) {
|
1431 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1432 |
}
|
1433 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1434 |
-
$parameters['AmazonOrderReferenceId'] =
|
1435 |
}
|
1436 |
if ($request->isSetOrderReferenceAttributes()) {
|
1437 |
$orderReferenceAttributes = $request->getOrderReferenceAttributes();
|
1438 |
if ($orderReferenceAttributes->isSetOrderTotal()) {
|
1439 |
$orderTotal = $orderReferenceAttributes->getOrderTotal();
|
1440 |
if ($orderTotal->isSetCurrencyCode()) {
|
1441 |
-
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'CurrencyCode'] =
|
1442 |
}
|
1443 |
if ($orderTotal->isSetAmount()) {
|
1444 |
-
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'Amount'] =
|
1445 |
}
|
1446 |
}
|
1447 |
if ($orderReferenceAttributes->isSetPlatformId()) {
|
1448 |
-
$parameters['OrderReferenceAttributes' . '.' . 'PlatformId'] =
|
1449 |
}
|
1450 |
if ($orderReferenceAttributes->isSetSellerNote()) {
|
1451 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerNote'] =
|
1452 |
}
|
1453 |
if ($orderReferenceAttributes->isSetSellerOrderAttributes()) {
|
1454 |
$sellerOrderAttributes = $orderReferenceAttributes->getSellerOrderAttributes();
|
1455 |
if ($sellerOrderAttributes->isSetSellerOrderId()) {
|
1456 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'SellerOrderId'] =
|
1457 |
}
|
1458 |
if ($sellerOrderAttributes->isSetStoreName()) {
|
1459 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'StoreName'] =
|
1460 |
}
|
1461 |
if ($sellerOrderAttributes->isSetOrderItemCategories()) {
|
1462 |
$orderItemCategories = $sellerOrderAttributes->getOrderItemCategories();
|
1463 |
-
foreach
|
1464 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'OrderItemCategories' . '.' . 'OrderItemCategory' . '.'
|
1465 |
}
|
1466 |
}
|
1467 |
if ($sellerOrderAttributes->isSetCustomInformation()) {
|
1468 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'CustomInformation'] =
|
1469 |
}
|
1470 |
}
|
1471 |
}
|
1472 |
-
|
1473 |
return $parameters;
|
1474 |
}
|
1475 |
-
|
1476 |
-
|
1477 |
/**
|
1478 |
* Convert GetAuthorizationDetailsRequest to name value pairs
|
1479 |
*/
|
1480 |
-
private function _convertGetAuthorizationDetails($request)
|
|
|
1481 |
|
1482 |
-
$parameters
|
1483 |
$parameters['Action'] = 'GetAuthorizationDetails';
|
1484 |
if ($request->isSetSellerId()) {
|
1485 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1486 |
}
|
1487 |
if ($request->isSetAmazonAuthorizationId()) {
|
1488 |
-
$parameters['AmazonAuthorizationId'] =
|
1489 |
}
|
1490 |
-
|
1491 |
return $parameters;
|
1492 |
}
|
1493 |
-
|
1494 |
-
|
1495 |
/**
|
1496 |
* Convert CancelOrderReferenceRequest to name value pairs
|
1497 |
*/
|
1498 |
-
private function _convertCancelOrderReference($request)
|
|
|
1499 |
|
1500 |
-
$parameters
|
1501 |
$parameters['Action'] = 'CancelOrderReference';
|
1502 |
if ($request->isSetSellerId()) {
|
1503 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1504 |
}
|
1505 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1506 |
-
$parameters['AmazonOrderReferenceId'] =
|
1507 |
}
|
1508 |
if ($request->isSetCancelationReason()) {
|
1509 |
-
$parameters['CancelationReason'] =
|
1510 |
}
|
1511 |
-
|
1512 |
return $parameters;
|
1513 |
}
|
1514 |
|
@@ -1516,62 +1457,66 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1516 |
/**
|
1517 |
* Convert CreateOrderReferenceForIdRequest to name value pairs
|
1518 |
*/
|
1519 |
-
private function _convertCreateOrderReferenceForId($request)
|
1520 |
-
|
1521 |
-
|
|
|
1522 |
$parameters['Action'] = 'CreateOrderReferenceForId';
|
1523 |
if ($request->isSetId()) {
|
1524 |
-
$parameters['Id'] =
|
1525 |
}
|
1526 |
if ($request->isSetSellerId()) {
|
1527 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1528 |
}
|
1529 |
if ($request->isSetIdType()) {
|
1530 |
-
$parameters['IdType'] =
|
1531 |
}
|
1532 |
if ($request->isSetInheritShippingAddress()) {
|
1533 |
-
$parameters['InheritShippingAddress'] =
|
1534 |
}
|
1535 |
if ($request->isSetConfirmNow()) {
|
1536 |
-
$parameters['ConfirmNow'] =
|
1537 |
}
|
1538 |
if ($request->isSetOrderReferenceAttributes()) {
|
1539 |
$orderReferenceAttributescreateOrderReferenceForIdRequest = $request->getOrderReferenceAttributes();
|
1540 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetOrderTotal()) {
|
1541 |
$orderTotalorderReferenceAttributes = $orderReferenceAttributescreateOrderReferenceForIdRequest->getOrderTotal();
|
1542 |
if ($orderTotalorderReferenceAttributes->isSetCurrencyCode()) {
|
1543 |
-
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'CurrencyCode'] =
|
1544 |
}
|
1545 |
if ($orderTotalorderReferenceAttributes->isSetAmount()) {
|
1546 |
-
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'Amount'] =
|
1547 |
}
|
1548 |
}
|
1549 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetPlatformId()) {
|
1550 |
-
$parameters['OrderReferenceAttributes' . '.' . 'PlatformId'] =
|
1551 |
}
|
1552 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetSellerNote()) {
|
1553 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerNote'] =
|
1554 |
}
|
1555 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetSellerOrderAttributes()) {
|
1556 |
$sellerOrderAttributesorderReferenceAttributes = $orderReferenceAttributescreateOrderReferenceForIdRequest->getSellerOrderAttributes();
|
1557 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetSellerOrderId()) {
|
1558 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'SellerOrderId'] =
|
1559 |
}
|
1560 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetStoreName()) {
|
1561 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'StoreName'] =
|
1562 |
}
|
1563 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetOrderItemCategories()) {
|
1564 |
$orderItemCategoriessellerOrderAttributes = $sellerOrderAttributesorderReferenceAttributes->getOrderItemCategories();
|
1565 |
-
foreach
|
1566 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'OrderItemCategories' . '.' . 'OrderItemCategory' . '.'
|
1567 |
}
|
1568 |
}
|
1569 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetCustomInformation()) {
|
1570 |
-
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'CustomInformation'] =
|
1571 |
}
|
1572 |
}
|
1573 |
}
|
1574 |
-
|
1575 |
return $parameters;
|
1576 |
}
|
1577 |
|
@@ -1579,77 +1524,89 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1579 |
/**
|
1580 |
* Convert GetBillingAgreementDetailsRequest to name value pairs
|
1581 |
*/
|
1582 |
-
private function _convertGetBillingAgreementDetails($request)
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
|
|
|
|
|
|
|
|
1597 |
}
|
1598 |
|
1599 |
|
1600 |
/**
|
1601 |
* Convert SetBillingAgreementDetailsRequest to name value pairs
|
1602 |
*/
|
1603 |
-
private function _convertSetBillingAgreementDetails($request)
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
|
|
|
|
|
|
|
|
1636 |
}
|
1637 |
|
1638 |
|
1639 |
/**
|
1640 |
* Convert ConfirmBillingAgreementRequest to name value pairs
|
1641 |
*/
|
1642 |
-
private function _convertConfirmBillingAgreement($request)
|
|
|
1643 |
|
1644 |
-
$parameters
|
1645 |
$parameters['Action'] = 'ConfirmBillingAgreement';
|
1646 |
if ($request->isSetSellerId()) {
|
1647 |
-
$parameters['SellerId'] =
|
|
|
|
|
|
|
1648 |
}
|
1649 |
if ($request->isSetAmazonBillingAgreementId()) {
|
1650 |
-
$parameters['AmazonBillingAgreementId'] =
|
1651 |
}
|
1652 |
-
|
1653 |
return $parameters;
|
1654 |
}
|
1655 |
|
@@ -1657,17 +1614,21 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1657 |
/**
|
1658 |
* Convert ValidateBillingAgreementRequest to name value pairs
|
1659 |
*/
|
1660 |
-
private function _convertValidateBillingAgreement($request)
|
1661 |
-
|
1662 |
-
|
|
|
1663 |
$parameters['Action'] = 'ValidateBillingAgreement';
|
1664 |
if ($request->isSetAmazonBillingAgreementId()) {
|
1665 |
-
$parameters['AmazonBillingAgreementId'] =
|
1666 |
}
|
1667 |
if ($request->isSetSellerId()) {
|
1668 |
-
$parameters['SellerId'] =
|
1669 |
}
|
1670 |
-
|
|
|
|
|
|
|
1671 |
return $parameters;
|
1672 |
}
|
1673 |
|
@@ -1675,159 +1636,179 @@ class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interf
|
|
1675 |
/**
|
1676 |
* Convert AuthorizeOnBillingAgreementRequest to name value pairs
|
1677 |
*/
|
1678 |
-
private function _convertAuthorizeOnBillingAgreement($request)
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
|
|
|
|
|
|
|
|
1741 |
}
|
1742 |
|
1743 |
|
1744 |
/**
|
1745 |
* Convert CloseBillingAgreementRequest to name value pairs
|
1746 |
*/
|
1747 |
-
private function _convertCloseBillingAgreement($request)
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
|
|
|
|
|
|
|
|
1765 |
}
|
1766 |
|
1767 |
/**
|
1768 |
* Convert GetProviderCreditDetailsRequest to name value pairs
|
1769 |
*/
|
1770 |
-
private function _convertGetProviderCreditDetails($request)
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
|
|
|
|
|
|
|
|
1782 |
}
|
1783 |
|
1784 |
/**
|
1785 |
* Convert GetProviderCreditReversalDetailsRequest to name value pairs
|
1786 |
*/
|
1787 |
-
private function _convertGetProviderCreditReversalDetails($request)
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
|
|
|
|
|
|
|
|
1799 |
}
|
1800 |
-
|
1801 |
/**
|
1802 |
* Convert ReverseProviderCreditRequest to name value pairs
|
1803 |
*/
|
1804 |
-
private function _convertReverseProviderCredit($request)
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
|
|
|
|
|
|
|
|
1831 |
}
|
1832 |
-
|
1833 |
-
}
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Client implements OffAmazonPaymentsService_Interface
|
31 |
{
|
|
|
32 |
const SERVICE_VERSION = '2013-01-01';
|
33 |
+
|
34 |
+
private $_merchantValues = null;
|
35 |
+
|
36 |
+
private $_httpRequestFactory = null;
|
37 |
+
|
38 |
+
|
39 |
/** @var array */
|
40 |
+
private $_config = array('SignatureVersion' => 2, 'SignatureMethod' => 'HmacSHA256', 'MaxErrorRetry' => 3);
|
41 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
/**
|
43 |
* Construct new Client
|
44 |
*
|
65 |
iconv_set_encoding('output_encoding', 'UTF-8');
|
66 |
iconv_set_encoding('input_encoding', 'UTF-8');
|
67 |
iconv_set_encoding('internal_encoding', 'UTF-8');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
+
$this->_merchantValues = OffAmazonPaymentsService_MerchantValuesBuilder::create($config)->build();
|
70 |
+
$this->_httpRequestFactory = new OffAmazonPayments_HttpRequest_Impl_HttpRequestFactoryCurlImpl($this->_merchantValues);
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
public function getMerchantValues()
|
75 |
return $this->_merchantValues;
|
76 |
}
|
77 |
|
78 |
+
// Public API ------------------------------------------------------------//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
|
|
|
|
|
|
|
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
/**
|
83 |
* Capture
|
84 |
*
|
95 |
$request = new OffAmazonPaymentsService_Model_CaptureRequest($request);
|
96 |
}
|
97 |
$httpResponse = $this->_invoke($this->_convertCapture($request));
|
98 |
+
$response = OffAmazonPaymentsService_Model_CaptureResponse::fromXML($httpResponse['ResponseBody']);
|
99 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
100 |
return $response;
|
101 |
}
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
/**
|
106 |
* Refund
|
107 |
*
|
119 |
$request = new OffAmazonPaymentsService_Model_RefundRequest($request);
|
120 |
}
|
121 |
$httpResponse = $this->_invoke($this->_convertRefund($request));
|
122 |
+
$response = OffAmazonPaymentsService_Model_RefundResponse::fromXML($httpResponse['ResponseBody']);
|
123 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
124 |
return $response;
|
125 |
}
|
126 |
+
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Close Authorization
|
131 |
*
|
142 |
$request = new OffAmazonPaymentsService_Model_CloseAuthorizationRequest($request);
|
143 |
}
|
144 |
$httpResponse = $this->_invoke($this->_convertCloseAuthorization($request));
|
145 |
+
$response = OffAmazonPaymentsService_Model_CloseAuthorizationResponse::fromXML($httpResponse['ResponseBody']);
|
146 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
147 |
return $response;
|
148 |
}
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
/**
|
153 |
* Get Refund Details
|
154 |
*
|
165 |
$request = new OffAmazonPaymentsService_Model_GetRefundDetailsRequest($request);
|
166 |
}
|
167 |
$httpResponse = $this->_invoke($this->_convertGetRefundDetails($request));
|
168 |
+
$response = OffAmazonPaymentsService_Model_GetRefundDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
169 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
170 |
return $response;
|
171 |
}
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Get Capture Details
|
177 |
*
|
188 |
$request = new OffAmazonPaymentsService_Model_GetCaptureDetailsRequest($request);
|
189 |
}
|
190 |
$httpResponse = $this->_invoke($this->_convertGetCaptureDetails($request));
|
191 |
+
$response = OffAmazonPaymentsService_Model_GetCaptureDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
192 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
193 |
return $response;
|
194 |
}
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
/**
|
199 |
* Close Order Reference
|
200 |
*
|
207 |
*/
|
208 |
public function closeOrderReference($request)
|
209 |
{
|
210 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_CloseOrderReferenceRequest) {
|
211 |
$request = new OffAmazonPaymentsService_Model_CloseOrderReferenceRequest($request);
|
212 |
};
|
213 |
$httpResponse = $this->_invoke($this->_convertCloseOrderReference($request));
|
214 |
+
$response = OffAmazonPaymentsService_Model_CloseOrderReferenceResponse::fromXML($httpResponse['ResponseBody']);
|
215 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
216 |
return $response;
|
217 |
}
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
/**
|
222 |
* Confirm Order Reference
|
223 |
*
|
234 |
$request = new OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest($request);
|
235 |
}
|
236 |
$httpResponse = $this->_invoke($this->_convertConfirmOrderReference($request));
|
237 |
+
$response = OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse::fromXML($httpResponse['ResponseBody']);
|
238 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
239 |
return $response;
|
240 |
}
|
241 |
+
|
242 |
+
|
243 |
+
|
244 |
/**
|
245 |
* Get Order Reference Details
|
246 |
*
|
257 |
$request = new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest($request);
|
258 |
}
|
259 |
$httpResponse = $this->_invoke($this->_convertGetOrderReferenceDetails($request));
|
260 |
+
$response = OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
261 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
262 |
return $response;
|
263 |
}
|
264 |
+
|
265 |
+
|
266 |
+
|
267 |
/**
|
268 |
* Authorize
|
269 |
*
|
280 |
$request = new OffAmazonPaymentsService_Model_AuthorizeRequest($request);
|
281 |
}
|
282 |
$httpResponse = $this->_invoke($this->_convertAuthorize($request));
|
283 |
+
$response = OffAmazonPaymentsService_Model_AuthorizeResponse::fromXML($httpResponse['ResponseBody']);
|
284 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
285 |
return $response;
|
286 |
}
|
287 |
+
|
288 |
+
|
289 |
+
|
290 |
/**
|
291 |
* Set Order Reference Details
|
292 |
*
|
303 |
$request = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest($request);
|
304 |
}
|
305 |
$httpResponse = $this->_invoke($this->_convertSetOrderReferenceDetails($request));
|
306 |
+
$response = OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
307 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
308 |
return $response;
|
309 |
}
|
310 |
+
|
311 |
+
|
312 |
+
|
313 |
/**
|
314 |
* Get Authorization Details
|
315 |
*
|
326 |
$request = new OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest($request);
|
327 |
}
|
328 |
$httpResponse = $this->_invoke($this->_convertGetAuthorizationDetails($request));
|
329 |
+
$response = OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
330 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
331 |
return $response;
|
332 |
}
|
333 |
+
|
334 |
+
|
335 |
+
|
336 |
/**
|
337 |
* Cancel Order Reference
|
338 |
*
|
349 |
$request = new OffAmazonPaymentsService_Model_CancelOrderReferenceRequest($request);
|
350 |
}
|
351 |
$httpResponse = $this->_invoke($this->_convertCancelOrderReference($request));
|
352 |
+
$response = OffAmazonPaymentsService_Model_CancelOrderReferenceResponse::fromXML($httpResponse['ResponseBody']);
|
353 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
354 |
return $response;
|
355 |
}
|
372 |
$request = new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest($request);
|
373 |
}
|
374 |
$httpResponse = $this->_invoke($this->_convertCreateOrderReferenceForId($request));
|
375 |
+
$response = OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse::fromXML($httpResponse['ResponseBody']);
|
376 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
377 |
return $response;
|
378 |
}
|
391 |
*/
|
392 |
public function getBillingAgreementDetails($request)
|
393 |
{
|
394 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest) {
|
395 |
+
$request = new OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest($request);
|
396 |
+
}
|
397 |
+
$httpResponse = $this->_invoke($this->_convertGetBillingAgreementDetails($request));
|
398 |
+
$response = OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
399 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
400 |
+
return $response;
|
401 |
}
|
402 |
|
403 |
|
414 |
*/
|
415 |
public function setBillingAgreementDetails($request)
|
416 |
{
|
417 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest) {
|
418 |
+
$request = new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest($request);
|
419 |
+
}
|
420 |
+
$httpResponse = $this->_invoke($this->_convertSetBillingAgreementDetails($request));
|
421 |
+
$response = OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
422 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
423 |
+
return $response;
|
424 |
}
|
425 |
|
426 |
|
437 |
*/
|
438 |
public function confirmBillingAgreement($request)
|
439 |
{
|
440 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest) {
|
441 |
+
$request = new OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest($request);
|
442 |
+
}
|
443 |
+
$httpResponse = $this->_invoke($this->_convertConfirmBillingAgreement($request));
|
444 |
+
$response = OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse::fromXML($httpResponse['ResponseBody']);
|
445 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
446 |
+
return $response;
|
447 |
}
|
448 |
|
449 |
|
464 |
$request = new OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest($request);
|
465 |
}
|
466 |
$httpResponse = $this->_invoke($this->_convertValidateBillingAgreement($request));
|
467 |
+
$response = OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse::fromXML($httpResponse['ResponseBody']);
|
468 |
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
469 |
return $response;
|
470 |
}
|
483 |
*/
|
484 |
public function authorizeOnBillingAgreement($request)
|
485 |
{
|
486 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest) {
|
487 |
+
$request = new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest($request);
|
488 |
+
}
|
489 |
+
$httpResponse = $this->_invoke($this->_convertAuthorizeOnBillingAgreement($request));
|
490 |
+
$response = OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse::fromXML($httpResponse['ResponseBody']);
|
491 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
492 |
+
return $response;
|
493 |
}
|
494 |
|
495 |
|
506 |
*/
|
507 |
public function closeBillingAgreement($request)
|
508 |
{
|
509 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_CloseBillingAgreementRequest) {
|
510 |
+
$request = new OffAmazonPaymentsService_Model_CloseBillingAgreementRequest($request);
|
511 |
+
}
|
512 |
+
$httpResponse = $this->_invoke($this->_convertCloseBillingAgreement($request));
|
513 |
+
$response = OffAmazonPaymentsService_Model_CloseBillingAgreementResponse::fromXML($httpResponse['ResponseBody']);
|
514 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
515 |
+
return $response;
|
516 |
}
|
517 |
|
518 |
/**
|
529 |
*/
|
530 |
public function getProviderCreditDetails($request)
|
531 |
{
|
532 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest) {
|
533 |
+
$request = new OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest($request);
|
534 |
+
}
|
535 |
+
$httpResponse = $this->_invoke($this->_convertGetProviderCreditDetails($request));
|
536 |
+
$response = OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
537 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
538 |
+
return $response;
|
539 |
}
|
540 |
|
541 |
/**
|
552 |
*/
|
553 |
public function getProviderCreditReversalDetails($request)
|
554 |
{
|
555 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest) {
|
556 |
+
$request = new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest($request);
|
557 |
+
}
|
558 |
+
$httpResponse = $this->_invoke($this->_convertGetProviderCreditReversalDetails($request));
|
559 |
+
$response = OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse::fromXML($httpResponse['ResponseBody']);
|
560 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
561 |
+
return $response;
|
562 |
}
|
563 |
|
564 |
/**
|
575 |
*/
|
576 |
public function reverseProviderCredit($request)
|
577 |
{
|
578 |
+
if (!$request instanceof OffAmazonPaymentsService_Model_ReverseProviderCreditRequest) {
|
579 |
+
$request = new OffAmazonPaymentsService_Model_ReverseProviderCreditRequest($request);
|
580 |
+
}
|
581 |
+
$httpResponse = $this->_invoke($this->_convertReverseProviderCredit($request));
|
582 |
+
$response = OffAmazonPaymentsService_Model_ReverseProviderCreditResponse::fromXML($httpResponse['ResponseBody']);
|
583 |
+
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
|
584 |
+
return $response;
|
585 |
}
|
586 |
|
587 |
+
|
588 |
// Private API ------------------------------------------------------------//
|
589 |
+
|
590 |
/**
|
591 |
* Invoke request and return response
|
592 |
*/
|
593 |
private function _invoke(array $parameters)
|
594 |
{
|
595 |
+
$actionName = $parameters["Action"];
|
596 |
+
$response = array();
|
597 |
$responseBody = null;
|
598 |
+
$statusCode = 200;
|
599 |
+
|
600 |
/* Submit the request and read response body */
|
601 |
try {
|
602 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
/* Add required request parameters */
|
604 |
$parameters = $this->_addRequiredParameters($parameters);
|
605 |
+
|
606 |
$shouldRetry = true;
|
607 |
+
$retries = 0;
|
608 |
do {
|
609 |
try {
|
610 |
+
$response = $this->_httpPost($parameters);
|
611 |
+
if ($response['Status'] == 200) {
|
612 |
+
$shouldRetry = false;
|
613 |
+
} else {
|
614 |
+
if ($response['Status'] == 500 || $response['Status'] == 503) {
|
615 |
+
|
616 |
+
$errorResponse = OffAmazonPaymentsService_Model_ErrorResponse::fromXML($response['ResponseBody']);
|
617 |
+
|
618 |
+
$errors = $errorResponse->getError();
|
619 |
+
$shouldRetry = ($errors[0]->getCode() === 'RequestThrottled') ? false : true;
|
620 |
+
|
621 |
+
if ($shouldRetry) {
|
622 |
+
$this->_pauseOnRetry(++$retries, $response['Status']);
|
|
|
|
|
|
|
623 |
} else {
|
624 |
throw $this->_reportAnyErrors($response['ResponseBody'], $response['Status'], $response['ResponseHeaderMetadata']);
|
625 |
}
|
626 |
+
} else {
|
627 |
+
throw $this->_reportAnyErrors($response['ResponseBody'], $response['Status'], $response['ResponseHeaderMetadata']);
|
628 |
+
}
|
629 |
+
}
|
630 |
+
/* Rethrow on deserializer error */
|
631 |
+
}
|
632 |
+
catch (Exception $e) {
|
633 |
if ($e instanceof OffAmazonPaymentsService_Exception) {
|
634 |
throw $e;
|
635 |
} else {
|
636 |
+
throw new OffAmazonPaymentsService_Exception(array(
|
637 |
+
'Exception' => $e,
|
638 |
+
'Message' => $e->getMessage()
|
639 |
+
));
|
640 |
}
|
641 |
}
|
642 |
+
|
643 |
} while ($shouldRetry);
|
644 |
+
|
645 |
+
}
|
646 |
+
catch (OffAmazonPaymentsService_Exception $se) {
|
647 |
throw $se;
|
|
|
|
|
648 |
}
|
649 |
+
catch (Exception $t) {
|
650 |
+
throw new OffAmazonPaymentsService_Exception(array(
|
651 |
+
'Exception' => $t,
|
652 |
+
'Message' => $t->getMessage()
|
653 |
+
));
|
654 |
+
}
|
655 |
+
|
656 |
+
return array(
|
657 |
+
'ResponseBody' => $response['ResponseBody'],
|
658 |
+
'ResponseHeaderMetadata' => $response['ResponseHeaderMetadata']
|
659 |
+
);
|
660 |
}
|
661 |
+
|
662 |
/**
|
663 |
* Look for additional error strings in the response and return formatted exception
|
664 |
*/
|
665 |
+
private function _reportAnyErrors($responseBody, $status, $responseHeaderMetadata, Exception $e = null)
|
666 |
{
|
667 |
$ex = null;
|
668 |
if (!is_null($responseBody) && strpos($responseBody, '<') === 0) {
|
669 |
+
if (preg_match('@<RequestId>(.*)</RequestId>.*<Error>.*<Code>(.*)</Code>.*<Message>(.*)</Message>.*</Error>.*(<Error>)?@mis', $responseBody, $errorMatcherOne)) {
|
670 |
+
|
|
|
671 |
$requestId = $errorMatcherOne[1];
|
672 |
+
$code = $errorMatcherOne[2];
|
673 |
+
$message = $errorMatcherOne[3];
|
674 |
+
|
675 |
+
$ex = new OffAmazonPaymentsService_Exception(array(
|
676 |
+
'Message' => $message,
|
677 |
+
'StatusCode' => $status,
|
678 |
+
'ErrorCode' => $code,
|
679 |
+
'ErrorType' => 'Unknown',
|
680 |
+
'RequestId' => $requestId,
|
681 |
+
'XML' => $responseBody,
|
682 |
+
'ResponseHeaderMetadata' => $responseHeaderMetadata
|
683 |
+
));
|
684 |
+
|
685 |
+
} elseif (preg_match('@<Error>.*<Type>(.*)</Type>.*<Code>(.*)</Code>.*<Message>(.*)</Message>.*</Error>.*(<Error>)?.*<RequestId>(.*)</RequestId>@mis', $responseBody, $errorMatcherThree)) {
|
686 |
+
|
687 |
+
$type = $errorMatcherThree[1];
|
688 |
+
$code = $errorMatcherThree[2];
|
689 |
+
$message = $errorMatcherThree[3];
|
690 |
$requestId = $errorMatcherThree[5];
|
691 |
+
$ex = new OffAmazonPaymentsService_Exception(array(
|
692 |
+
'Message' => $message,
|
693 |
+
'StatusCode' => $status,
|
694 |
+
'ErrorCode' => $code,
|
695 |
+
'ErrorType' => $type,
|
696 |
+
'RequestId' => $requestId,
|
697 |
+
'XML' => $responseBody,
|
698 |
+
'ResponseHeaderMetadata' => $responseHeaderMetadata
|
699 |
+
));
|
700 |
|
701 |
+
} elseif (preg_match('@<Error>.*<Code>(.*)</Code>.*<Message>(.*)</Message>.*</Error>.*(<Error>)?.*<RequestID>(.*)</RequestID>@mis', $responseBody, $errorMatcherTwo)) {
|
702 |
+
|
703 |
+
$code = $errorMatcherTwo[1];
|
704 |
+
$message = $errorMatcherTwo[2];
|
|
|
705 |
$requestId = $errorMatcherTwo[4];
|
706 |
+
$ex = new OffAmazonPaymentsService_Exception(array(
|
707 |
+
'Message' => $message,
|
708 |
+
'StatusCode' => $status,
|
709 |
+
'ErrorCode' => $code,
|
710 |
+
'ErrorType' => 'Unknown',
|
711 |
+
'RequestId' => $requestId,
|
712 |
+
'XML' => $responseBody,
|
713 |
+
'ResponseHeaderMetadata' => $responseHeaderMetadata
|
714 |
+
));
|
715 |
+
|
716 |
} else {
|
717 |
+
$ex = new OffAmazonPaymentsService_Exception(array(
|
718 |
+
'Message' => 'Internal Error',
|
719 |
+
'StatusCode' => $status,
|
720 |
+
'ResponseHeaderMetadata' => $responseHeaderMetadata
|
721 |
+
));
|
722 |
}
|
723 |
} else {
|
724 |
+
$ex = new OffAmazonPaymentsService_Exception(array(
|
725 |
+
'Message' => 'Internal Error',
|
726 |
+
'StatusCode' => $status,
|
727 |
+
'ResponseHeaderMetadata' => $responseHeaderMetadata
|
728 |
+
));
|
729 |
}
|
730 |
return $ex;
|
731 |
}
|
732 |
+
|
733 |
+
|
734 |
+
|
735 |
/**
|
736 |
* Perform HTTP post with exponential retries on error 500 and 503
|
737 |
*
|
738 |
*/
|
739 |
private function _httpPost(array $parameters)
|
740 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
741 |
|
742 |
+
$query = $this->_getParametersAsString($parameters);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
$response = '';
|
744 |
+
try {
|
745 |
+
$response = $this->_httpRequestFactory->createPostRequest($this->_merchantValues->getServiceUrl(), $query)->execute();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
746 |
}
|
747 |
+
catch (OffAmazonPayments_HttpRequest_HttpException $ex) {
|
748 |
+
$error_msg = "Unable to post request, underlying exception of " . $ex->getMessage();
|
749 |
+
throw new OffAmazonPaymentsService_Exception(array(
|
750 |
+
'Message' => $error_msg
|
751 |
+
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
752 |
}
|
753 |
+
|
754 |
+
//First split by 2 'CRLF'
|
755 |
+
$responseComponents = preg_split("/(?:\r?\n){2}/", $response);
|
756 |
+
$body = null;
|
757 |
+
for ($count = 0; $count < count($responseComponents) && $body == null; $count++) {
|
758 |
+
|
759 |
+
$headers = $responseComponents[$count];
|
760 |
+
$responseStatus = $this->_extractHttpStatusCode($headers);
|
761 |
+
|
762 |
+
if ($responseStatus != null && $this->_httpHeadersHaveContent($headers)) {
|
763 |
+
|
764 |
+
$responseHeaderMetadata = $this->_extractResponseHeaderMetadata($headers);
|
765 |
+
//The body will be the next item in the responseComponents array
|
766 |
+
$body = $responseComponents[++$count];
|
767 |
+
}
|
768 |
}
|
769 |
+
|
770 |
+
//If the body is null here then we were unable to parse the response and will throw an exception
|
771 |
+
if ($body == null) {
|
772 |
+
$exProps["Message"] = "Failed to parse valid HTTP response (" . $response . ")";
|
773 |
+
$exProps["ErrorType"] = "HTTP";
|
774 |
+
Mage::dispatchEvent('amazonpayments_advanced_api_post_call', array(
|
775 |
+
'call_data' => array(
|
776 |
+
'call_url' => $this->_merchantValues->getServiceUrl(),
|
777 |
+
'call_action' => $parameters['Action'],
|
778 |
+
'query' => $query,
|
779 |
+
'response_code' => null,
|
780 |
+
'response_error' => $exProps["Message"],
|
781 |
+
'response_headers' => null,
|
782 |
+
'response_body' => null
|
783 |
+
)
|
784 |
+
));
|
785 |
+
throw new OffAmazonPaymentsService_Exception($exProps);
|
786 |
+
}
|
787 |
+
|
788 |
Mage::dispatchEvent('amazonpayments_advanced_api_post_call', array(
|
789 |
'call_data' => array(
|
790 |
+
'call_url' => $this->_merchantValues->getServiceUrl(),
|
791 |
'call_action' => $parameters['Action'],
|
792 |
'query' => $query,
|
793 |
+
'response_code' => (int)$responseStatus,
|
794 |
'response_error' => null,
|
795 |
+
'response_headers' => sprintf("RequestId: %s\nResponseContext: %s\nTimestamp: %s",
|
796 |
+
$responseHeaderMetadata->getRequestId(),
|
797 |
+
$responseHeaderMetadata->getResponseContext(),
|
798 |
+
$responseHeaderMetadata->getTimestamp()
|
799 |
+
),
|
800 |
+
'response_body' => $body
|
801 |
)
|
802 |
));
|
803 |
|
804 |
+
return array(
|
805 |
+
'Status' => $responseStatus,
|
806 |
+
'ResponseBody' => $body,
|
807 |
+
'ResponseHeaderMetadata' => $responseHeaderMetadata
|
808 |
+
);
|
809 |
}
|
810 |
+
|
811 |
+
/**
|
812 |
+
* parse the status line of a header string for the proper format and
|
813 |
+
* return the status code
|
814 |
+
*
|
815 |
+
* Example: HTTP/1.1 200 OK
|
816 |
+
* ...
|
817 |
+
* returns String statusCode or null if the status line can't be parsed
|
818 |
+
*/
|
819 |
+
private function _extractHttpStatusCode($headers)
|
820 |
+
{
|
821 |
+
$statusCode = null;
|
822 |
+
if (1 === preg_match("/(\\S+) +(\\d+) +([^\n\r]+)(?:\r?\n|\r)/", $headers, $matches)) {
|
823 |
+
//The matches array [entireMatchString, protocol, statusCode, the rest]
|
824 |
+
$statusCode = $matches[2];
|
825 |
+
}
|
826 |
+
return $statusCode;
|
827 |
+
}
|
828 |
+
|
829 |
+
/**
|
830 |
+
* Tries to determine some valid headers indicating this response
|
831 |
+
* has content. In this case
|
832 |
+
* return true if there is a valid "Content-Length" or "Transfer-Encoding" header
|
833 |
+
*/
|
834 |
+
private function _httpHeadersHaveContent($headers)
|
835 |
+
{
|
836 |
+
return (1 === preg_match("/[cC]ontent-[lL]ength: +(?:\\d+)(?:\\r?\\n|\\r|$)/", $headers) || 1 === preg_match("/Transfer-Encoding: +(?!identity[\r\n;= ])(?:[^\r\n]+)(?:\r?\n|\r|$)/i", $headers));
|
837 |
+
}
|
838 |
+
|
839 |
+
/**
|
840 |
+
* extract a ResponseHeaderMetadata object from the raw headers
|
841 |
+
*/
|
842 |
+
private function _extractResponseHeaderMetadata($rawHeaders)
|
843 |
+
{
|
844 |
+
$inputHeaders = preg_split("/\r\n|\n|\r/", $rawHeaders);
|
845 |
+
$headers = array();
|
846 |
+
$headers['x-mws-request-id'] = null;
|
847 |
+
$headers['x-mws-response-context'] = null;
|
848 |
+
$headers['x-mws-timestamp'] = null;
|
849 |
+
|
850 |
+
foreach ($inputHeaders as $currentHeader) {
|
851 |
+
$keyValue = explode(': ', $currentHeader);
|
852 |
+
if (isset($keyValue[1])) {
|
853 |
+
list($key, $value) = $keyValue;
|
854 |
+
if (isset($headers[$key]) && $headers[$key] !== null) {
|
855 |
+
$headers[$key] = $headers[$key] . "," . $value;
|
856 |
+
} else {
|
857 |
+
$headers[$key] = $value;
|
858 |
+
}
|
859 |
+
}
|
860 |
+
}
|
861 |
+
|
862 |
+
return new OffAmazonPaymentsService_Model_ResponseHeaderMetadata($headers['x-mws-request-id'], $headers['x-mws-response-context'], $headers['x-mws-timestamp']);
|
863 |
+
}
|
864 |
+
|
865 |
/**
|
866 |
* Exponential sleep on failed request
|
867 |
* @param retries current retry
|
870 |
private function _pauseOnRetry($retries, $status)
|
871 |
{
|
872 |
if ($retries <= $this->_config['MaxErrorRetry']) {
|
873 |
+
$delay = (int) (pow(4, $retries) * 100000);
|
874 |
usleep($delay);
|
875 |
} else {
|
876 |
+
throw new OffAmazonPaymentsService_Exception(array(
|
877 |
+
'Message' => "Maximum number of retry attempts reached : $retries",
|
878 |
+
'StatusCode' => $status
|
879 |
+
));
|
880 |
}
|
881 |
}
|
882 |
+
|
883 |
/**
|
884 |
* Add authentication related and version parameters
|
885 |
*/
|
886 |
private function _addRequiredParameters(array $parameters)
|
887 |
{
|
888 |
+
$parameters['AWSAccessKeyId'] = $this->_merchantValues->getAccessKey();
|
889 |
+
$parameters['Timestamp'] = $this->_getFormattedTimestamp();
|
890 |
+
$parameters['Version'] = self::SERVICE_VERSION;
|
891 |
$parameters['SignatureVersion'] = $this->_config['SignatureVersion'];
|
892 |
if ($parameters['SignatureVersion'] > 1) {
|
893 |
$parameters['SignatureMethod'] = $this->_config['SignatureMethod'];
|
894 |
}
|
895 |
$parameters['Signature'] = $this->_signParameters($parameters, $this->_merchantValues->getSecretKey());
|
896 |
+
|
897 |
return $parameters;
|
898 |
}
|
899 |
+
|
900 |
/**
|
901 |
* Convert paremeters to Url encoded query string
|
902 |
*/
|
908 |
}
|
909 |
return implode('&', $queryParameters);
|
910 |
}
|
911 |
+
|
912 |
+
|
913 |
/**
|
914 |
* Computes RFC 2104-compliant HMAC signature for request parameters
|
915 |
* Implements AWS Signature, as per following spec:
|
940 |
* Pairs of parameter and values are separated by the '&' character (ASCII code 38).
|
941 |
*
|
942 |
*/
|
943 |
+
private function _signParameters(array $parameters, $key)
|
944 |
+
{
|
945 |
$signatureVersion = $parameters['SignatureVersion'];
|
946 |
+
$algorithm = "HmacSHA1";
|
947 |
+
$stringToSign = null;
|
948 |
+
if (2 == $signatureVersion) {
|
949 |
+
$algorithm = $this->_config['SignatureMethod'];
|
950 |
$parameters['SignatureMethod'] = $algorithm;
|
951 |
+
$stringToSign = $this->_calculateStringToSignV2($parameters);
|
952 |
} else {
|
953 |
throw new Exception("Invalid Signature Version specified");
|
954 |
}
|
955 |
return $this->_sign($stringToSign, $key, $algorithm);
|
956 |
}
|
957 |
+
|
958 |
/**
|
959 |
* Calculate String to Sign for SignatureVersion 2
|
960 |
* @param array $parameters request parameters
|
961 |
* @return String to Sign
|
962 |
*/
|
963 |
+
private function _calculateStringToSignV2(array $parameters)
|
964 |
+
{
|
965 |
$data = 'POST';
|
966 |
$data .= "\n";
|
967 |
+
$endpoint = parse_url($this->_merchantValues->getServiceUrl());
|
968 |
$data .= $endpoint['host'];
|
969 |
$data .= "\n";
|
970 |
$uri = array_key_exists('path', $endpoint) ? $endpoint['path'] : null;
|
971 |
+
if (!isset($uri)) {
|
972 |
+
$uri = "/";
|
973 |
}
|
974 |
+
$uriencoded = implode("/", array_map(array(
|
975 |
+
$this,
|
976 |
+
"_urlencode"
|
977 |
+
), explode("/", $uri)));
|
978 |
$data .= $uriencoded;
|
979 |
$data .= "\n";
|
980 |
uksort($parameters, 'strcmp');
|
981 |
$data .= $this->_getParametersAsString($parameters);
|
982 |
return $data;
|
983 |
}
|
984 |
+
|
985 |
+
private function _urlencode($value)
|
986 |
+
{
|
987 |
+
return str_replace('%7E', '~', rawurlencode($value));
|
988 |
}
|
989 |
+
|
990 |
+
|
991 |
/**
|
992 |
* Computes RFC 2104-compliant HMAC signature.
|
993 |
*/
|
998 |
} else if ($algorithm === 'HmacSHA256') {
|
999 |
$hash = 'sha256';
|
1000 |
} else {
|
1001 |
+
throw new Exception("Non-supported signing method specified");
|
1002 |
}
|
1003 |
+
return base64_encode(hash_hmac($hash, $data, $key, true));
|
|
|
|
|
1004 |
}
|
1005 |
+
|
1006 |
+
|
1007 |
/**
|
1008 |
* Formats date as ISO 8601 timestamp
|
1009 |
*/
|
1017 |
*/
|
1018 |
private function getFormattedTimestamp($dateTime)
|
1019 |
{
|
1020 |
+
return $dateTime->format(DATE_ISO8601);
|
1021 |
}
|
1022 |
+
|
1023 |
+
|
1024 |
+
|
1025 |
+
|
1026 |
/**
|
1027 |
* Convert CaptureRequest to name value pairs
|
1028 |
*/
|
1029 |
+
private function _convertCapture($request)
|
1030 |
+
{
|
1031 |
|
1032 |
+
$parameters = array();
|
1033 |
$parameters['Action'] = 'Capture';
|
1034 |
if ($request->isSetSellerId()) {
|
1035 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1036 |
+
}
|
1037 |
+
if ($request->isSetMWSAuthToken()) {
|
1038 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1039 |
}
|
1040 |
if ($request->isSetAmazonAuthorizationId()) {
|
1041 |
+
$parameters['AmazonAuthorizationId'] = $request->getAmazonAuthorizationId();
|
1042 |
}
|
1043 |
if ($request->isSetCaptureReferenceId()) {
|
1044 |
+
$parameters['CaptureReferenceId'] = $request->getCaptureReferenceId();
|
1045 |
}
|
1046 |
if ($request->isSetCaptureAmount()) {
|
1047 |
$captureAmountcaptureRequest = $request->getCaptureAmount();
|
1048 |
if ($captureAmountcaptureRequest->isSetAmount()) {
|
1049 |
+
$parameters['CaptureAmount' . '.' . 'Amount'] = $captureAmountcaptureRequest->getAmount();
|
1050 |
}
|
1051 |
if ($captureAmountcaptureRequest->isSetCurrencyCode()) {
|
1052 |
+
$parameters['CaptureAmount' . '.' . 'CurrencyCode'] = $captureAmountcaptureRequest->getCurrencyCode();
|
1053 |
}
|
1054 |
}
|
1055 |
if ($request->isSetSellerCaptureNote()) {
|
1056 |
+
$parameters['SellerCaptureNote'] = $request->getSellerCaptureNote();
|
1057 |
}
|
1058 |
if ($request->isSetSoftDescriptor()) {
|
1059 |
+
$parameters['SoftDescriptor'] = $request->getSoftDescriptor();
|
1060 |
}
|
1061 |
if ($request->isSetProviderCreditList()) {
|
1062 |
+
$providerCreditListcaptureRequest = $request->getProviderCreditList();
|
1063 |
+
foreach ($providerCreditListcaptureRequest->getmember() as $memberproviderCreditListIndex => $memberproviderCreditList) {
|
1064 |
+
if ($memberproviderCreditList->isSetProviderId()) {
|
1065 |
+
$parameters['ProviderCreditList' . '.' . 'member' . '.' . ($memberproviderCreditListIndex + 1) . '.' . 'ProviderId'] = $memberproviderCreditList->getProviderId();
|
1066 |
+
}
|
1067 |
+
if ($memberproviderCreditList->isSetCreditAmount()) {
|
1068 |
+
$creditAmountmember = $memberproviderCreditList->getCreditAmount();
|
1069 |
+
if ($creditAmountmember->isSetAmount()) {
|
1070 |
+
$parameters['ProviderCreditList' . '.' . 'member' . '.' . ($memberproviderCreditListIndex + 1) . '.' . 'CreditAmount' . '.' . 'Amount'] = $creditAmountmember->getAmount();
|
1071 |
+
}
|
1072 |
+
if ($creditAmountmember->isSetCurrencyCode()) {
|
1073 |
+
$parameters['ProviderCreditList' . '.' . 'member' . '.' . ($memberproviderCreditListIndex + 1) . '.' . 'CreditAmount' . '.' . 'CurrencyCode'] = $creditAmountmember->getCurrencyCode();
|
1074 |
+
}
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
}
|
1078 |
}
|
1079 |
|
1080 |
return $parameters;
|
1081 |
}
|
1082 |
+
|
1083 |
+
|
1084 |
/**
|
1085 |
* Convert RefundRequest to name value pairs
|
1086 |
*/
|
1087 |
+
private function _convertRefund($request)
|
1088 |
+
{
|
1089 |
|
1090 |
+
$parameters = array();
|
1091 |
$parameters['Action'] = 'Refund';
|
1092 |
if ($request->isSetSellerId()) {
|
1093 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1094 |
+
}
|
1095 |
+
if ($request->isSetMWSAuthToken()) {
|
1096 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1097 |
}
|
1098 |
if ($request->isSetAmazonCaptureId()) {
|
1099 |
+
$parameters['AmazonCaptureId'] = $request->getAmazonCaptureId();
|
1100 |
}
|
1101 |
if ($request->isSetRefundReferenceId()) {
|
1102 |
+
$parameters['RefundReferenceId'] = $request->getRefundReferenceId();
|
1103 |
}
|
1104 |
if ($request->isSetRefundAmount()) {
|
1105 |
$refundAmount = $request->getRefundAmount();
|
1106 |
if ($refundAmount->isSetAmount()) {
|
1107 |
+
$parameters['RefundAmount' . '.' . 'Amount'] = $refundAmount->getAmount();
|
1108 |
}
|
1109 |
if ($refundAmount->isSetCurrencyCode()) {
|
1110 |
+
$parameters['RefundAmount' . '.' . 'CurrencyCode'] = $refundAmount->getCurrencyCode();
|
1111 |
}
|
1112 |
}
|
1113 |
if ($request->isSetSellerRefundNote()) {
|
1114 |
+
$parameters['SellerRefundNote'] = $request->getSellerRefundNote();
|
1115 |
}
|
1116 |
if ($request->isSetSoftDescriptor()) {
|
1117 |
+
$parameters['SoftDescriptor'] = $request->getSoftDescriptor();
|
1118 |
}
|
1119 |
if ($request->isSetProviderCreditReversalList()) {
|
1120 |
+
$providerCreditReversalListrefundRequest = $request->getProviderCreditReversalList();
|
1121 |
+
foreach ($providerCreditReversalListrefundRequest->getmember() as $memberproviderCreditReversalListIndex => $memberproviderCreditReversalList) {
|
1122 |
+
if ($memberproviderCreditReversalList->isSetProviderId()) {
|
1123 |
+
$parameters['ProviderCreditReversalList' . '.' . 'member' . '.' . ($memberproviderCreditReversalListIndex + 1) . '.' . 'ProviderId'] = $memberproviderCreditReversalList->getProviderId();
|
1124 |
+
}
|
1125 |
+
if ($memberproviderCreditReversalList->isSetCreditReversalAmount()) {
|
1126 |
+
$creditReversalAmountmember = $memberproviderCreditReversalList->getCreditReversalAmount();
|
1127 |
+
if ($creditReversalAmountmember->isSetAmount()) {
|
1128 |
+
$parameters['ProviderCreditReversalList' . '.' . 'member' . '.' . ($memberproviderCreditReversalListIndex + 1) . '.' . 'CreditReversalAmount' . '.' . 'Amount'] = $creditReversalAmountmember->getAmount();
|
1129 |
+
}
|
1130 |
+
if ($creditReversalAmountmember->isSetCurrencyCode()) {
|
1131 |
+
$parameters['ProviderCreditReversalList' . '.' . 'member' . '.' . ($memberproviderCreditReversalListIndex + 1) . '.' . 'CreditReversalAmount' . '.' . 'CurrencyCode'] = $creditReversalAmountmember->getCurrencyCode();
|
1132 |
+
}
|
1133 |
+
}
|
1134 |
+
|
1135 |
+
}
|
1136 |
}
|
1137 |
+
|
1138 |
return $parameters;
|
1139 |
}
|
1140 |
+
|
1141 |
+
|
1142 |
/**
|
1143 |
* Convert CloseAuthorizationRequest to name value pairs
|
1144 |
*/
|
1145 |
+
private function _convertCloseAuthorization($request)
|
1146 |
+
{
|
1147 |
|
1148 |
+
$parameters = array();
|
1149 |
$parameters['Action'] = 'CloseAuthorization';
|
1150 |
if ($request->isSetSellerId()) {
|
1151 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1152 |
+
}
|
1153 |
+
if ($request->isSetMWSAuthToken()) {
|
1154 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1155 |
}
|
1156 |
if ($request->isSetAmazonAuthorizationId()) {
|
1157 |
+
$parameters['AmazonAuthorizationId'] = $request->getAmazonAuthorizationId();
|
1158 |
}
|
1159 |
if ($request->isSetClosureReason()) {
|
1160 |
+
$parameters['ClosureReason'] = $request->getClosureReason();
|
1161 |
}
|
1162 |
+
|
1163 |
return $parameters;
|
1164 |
}
|
1165 |
+
|
1166 |
+
|
1167 |
/**
|
1168 |
* Convert GetRefundDetailsRequest to name value pairs
|
1169 |
*/
|
1170 |
+
private function _convertGetRefundDetails($request)
|
1171 |
+
{
|
1172 |
|
1173 |
+
$parameters = array();
|
1174 |
$parameters['Action'] = 'GetRefundDetails';
|
1175 |
if ($request->isSetSellerId()) {
|
1176 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1177 |
+
}
|
1178 |
+
if ($request->isSetMWSAuthToken()) {
|
1179 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1180 |
}
|
1181 |
if ($request->isSetAmazonRefundId()) {
|
1182 |
+
$parameters['AmazonRefundId'] = $request->getAmazonRefundId();
|
1183 |
}
|
1184 |
+
|
1185 |
return $parameters;
|
1186 |
}
|
1187 |
+
|
1188 |
+
|
1189 |
/**
|
1190 |
* Convert GetCaptureDetailsRequest to name value pairs
|
1191 |
*/
|
1192 |
+
private function _convertGetCaptureDetails($request)
|
1193 |
+
{
|
1194 |
|
1195 |
+
$parameters = array();
|
1196 |
$parameters['Action'] = 'GetCaptureDetails';
|
1197 |
if ($request->isSetSellerId()) {
|
1198 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1199 |
+
}
|
1200 |
+
if ($request->isSetMWSAuthToken()) {
|
1201 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1202 |
}
|
1203 |
if ($request->isSetAmazonCaptureId()) {
|
1204 |
+
$parameters['AmazonCaptureId'] = $request->getAmazonCaptureId();
|
1205 |
}
|
1206 |
+
|
1207 |
return $parameters;
|
1208 |
}
|
1209 |
+
|
1210 |
+
|
1211 |
/**
|
1212 |
* Convert CloseOrderReferenceRequest to name value pairs
|
1213 |
*/
|
1214 |
+
private function _convertCloseOrderReference($request)
|
1215 |
+
{
|
1216 |
|
1217 |
+
$parameters = array();
|
1218 |
$parameters['Action'] = 'CloseOrderReference';
|
1219 |
if ($request->isSetSellerId()) {
|
1220 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1221 |
+
}
|
1222 |
+
if ($request->isSetMWSAuthToken()) {
|
1223 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1224 |
}
|
1225 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1226 |
+
$parameters['AmazonOrderReferenceId'] = $request->getAmazonOrderReferenceId();
|
1227 |
}
|
1228 |
if ($request->isSetClosureReason()) {
|
1229 |
+
$parameters['ClosureReason'] = $request->getClosureReason();
|
1230 |
}
|
1231 |
+
|
1232 |
return $parameters;
|
1233 |
}
|
1234 |
+
|
1235 |
+
|
1236 |
/**
|
1237 |
* Convert ConfirmOrderReferenceRequest to name value pairs
|
1238 |
*/
|
1239 |
+
private function _convertConfirmOrderReference($request)
|
1240 |
+
{
|
1241 |
|
1242 |
+
$parameters = array();
|
1243 |
$parameters['Action'] = 'ConfirmOrderReference';
|
1244 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1245 |
+
$parameters['AmazonOrderReferenceId'] = $request->getAmazonOrderReferenceId();
|
1246 |
+
}
|
1247 |
+
if ($request->isSetMWSAuthToken()) {
|
1248 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1249 |
}
|
1250 |
if ($request->isSetSellerId()) {
|
1251 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1252 |
}
|
1253 |
+
|
1254 |
return $parameters;
|
1255 |
}
|
1256 |
+
|
1257 |
+
|
1258 |
/**
|
1259 |
* Convert GetOrderReferenceDetailsRequest to name value pairs
|
1260 |
*/
|
1261 |
+
private function _convertGetOrderReferenceDetails($request)
|
1262 |
+
{
|
1263 |
|
1264 |
+
$parameters = array();
|
1265 |
$parameters['Action'] = 'GetOrderReferenceDetails';
|
1266 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1267 |
+
$parameters['AmazonOrderReferenceId'] = $request->getAmazonOrderReferenceId();
|
1268 |
+
}
|
1269 |
+
if ($request->isSetMWSAuthToken()) {
|
1270 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1271 |
}
|
1272 |
if ($request->isSetSellerId()) {
|
1273 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1274 |
}
|
1275 |
if ($request->isSetAddressConsentToken()) {
|
1276 |
$parameters['AddressConsentToken'] = $request->getAddressConsentToken();
|
1277 |
}
|
1278 |
+
|
1279 |
return $parameters;
|
1280 |
}
|
1281 |
+
|
1282 |
+
|
1283 |
/**
|
1284 |
* Convert AuthorizeRequest to name value pairs
|
1285 |
*/
|
1286 |
+
private function _convertAuthorize($request)
|
1287 |
+
{
|
1288 |
|
1289 |
+
$parameters = array();
|
1290 |
$parameters['Action'] = 'Authorize';
|
1291 |
if ($request->isSetSellerId()) {
|
1292 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1293 |
+
}
|
1294 |
+
if ($request->isSetMWSAuthToken()) {
|
1295 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1296 |
}
|
1297 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1298 |
+
$parameters['AmazonOrderReferenceId'] = $request->getAmazonOrderReferenceId();
|
1299 |
}
|
1300 |
if ($request->isSetAuthorizationReferenceId()) {
|
1301 |
+
$parameters['AuthorizationReferenceId'] = $request->getAuthorizationReferenceId();
|
1302 |
}
|
1303 |
if ($request->isSetAuthorizationAmount()) {
|
1304 |
$authorizationAmount = $request->getAuthorizationAmount();
|
1305 |
if ($authorizationAmount->isSetAmount()) {
|
1306 |
+
$parameters['AuthorizationAmount' . '.' . 'Amount'] = $authorizationAmount->getAmount();
|
1307 |
}
|
1308 |
if ($authorizationAmount->isSetCurrencyCode()) {
|
1309 |
+
$parameters['AuthorizationAmount' . '.' . 'CurrencyCode'] = $authorizationAmount->getCurrencyCode();
|
1310 |
}
|
1311 |
}
|
1312 |
if ($request->isSetSellerAuthorizationNote()) {
|
1313 |
+
$parameters['SellerAuthorizationNote'] = $request->getSellerAuthorizationNote();
|
1314 |
}
|
1315 |
if ($request->isSetOrderItemCategories()) {
|
1316 |
$orderItemCategories = $request->getOrderItemCategories();
|
1317 |
+
foreach ($orderItemCategories->getOrderItemCategory() as $orderItemCategoryIndex => $orderItemCategory) {
|
1318 |
+
$parameters['OrderItemCategories' . '.' . 'OrderItemCategory' . '.' . ($orderItemCategoryIndex + 1)] = $orderItemCategory;
|
1319 |
}
|
1320 |
}
|
1321 |
if ($request->isSetTransactionTimeout()) {
|
1322 |
+
$parameters['TransactionTimeout'] = $request->getTransactionTimeout();
|
1323 |
}
|
1324 |
if ($request->isSetCaptureNow()) {
|
1325 |
+
$parameters['CaptureNow'] = $request->getCaptureNow() ? "true" : "false";
|
1326 |
}
|
1327 |
if ($request->isSetSoftDescriptor()) {
|
1328 |
+
$parameters['SoftDescriptor'] = $request->getSoftDescriptor();
|
1329 |
}
|
1330 |
if ($request->isSetProviderCreditList()) {
|
1331 |
+
$providerCreditListauthorizeRequest = $request->getProviderCreditList();
|
1332 |
+
foreach ($providerCreditListauthorizeRequest->getmember() as $memberproviderCreditListIndex => $memberproviderCreditList) {
|
1333 |
+
if ($memberproviderCreditList->isSetProviderId()) {
|
1334 |
+
$parameters['ProviderCreditList' . '.' . 'member' . '.' . ($memberproviderCreditListIndex + 1) . '.' . 'ProviderId'] = $memberproviderCreditList->getProviderId();
|
1335 |
+
}
|
1336 |
+
if ($memberproviderCreditList->isSetCreditAmount()) {
|
1337 |
+
$creditAmountmember = $memberproviderCreditList->getCreditAmount();
|
1338 |
+
if ($creditAmountmember->isSetAmount()) {
|
1339 |
+
$parameters['ProviderCreditList' . '.' . 'member' . '.' . ($memberproviderCreditListIndex + 1) . '.' . 'CreditAmount' . '.' . 'Amount'] = $creditAmountmember->getAmount();
|
1340 |
+
}
|
1341 |
+
if ($creditAmountmember->isSetCurrencyCode()) {
|
1342 |
+
$parameters['ProviderCreditList' . '.' . 'member' . '.' . ($memberproviderCreditListIndex + 1) . '.' . 'CreditAmount' . '.' . 'CurrencyCode'] = $creditAmountmember->getCurrencyCode();
|
1343 |
+
}
|
1344 |
+
}
|
1345 |
+
}
|
1346 |
}
|
1347 |
+
|
1348 |
return $parameters;
|
1349 |
}
|
1350 |
+
|
1351 |
+
|
1352 |
/**
|
1353 |
* Convert SetOrderReferenceDetailsRequest to name value pairs
|
1354 |
*/
|
1355 |
+
private function _convertSetOrderReferenceDetails($request)
|
1356 |
+
{
|
1357 |
|
1358 |
+
$parameters = array();
|
1359 |
$parameters['Action'] = 'SetOrderReferenceDetails';
|
1360 |
if ($request->isSetSellerId()) {
|
1361 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1362 |
+
}
|
1363 |
+
if ($request->isSetMWSAuthToken()) {
|
1364 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1365 |
}
|
1366 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1367 |
+
$parameters['AmazonOrderReferenceId'] = $request->getAmazonOrderReferenceId();
|
1368 |
}
|
1369 |
if ($request->isSetOrderReferenceAttributes()) {
|
1370 |
$orderReferenceAttributes = $request->getOrderReferenceAttributes();
|
1371 |
if ($orderReferenceAttributes->isSetOrderTotal()) {
|
1372 |
$orderTotal = $orderReferenceAttributes->getOrderTotal();
|
1373 |
if ($orderTotal->isSetCurrencyCode()) {
|
1374 |
+
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'CurrencyCode'] = $orderTotal->getCurrencyCode();
|
1375 |
}
|
1376 |
if ($orderTotal->isSetAmount()) {
|
1377 |
+
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'Amount'] = $orderTotal->getAmount();
|
1378 |
}
|
1379 |
}
|
1380 |
if ($orderReferenceAttributes->isSetPlatformId()) {
|
1381 |
+
$parameters['OrderReferenceAttributes' . '.' . 'PlatformId'] = $orderReferenceAttributes->getPlatformId();
|
1382 |
}
|
1383 |
if ($orderReferenceAttributes->isSetSellerNote()) {
|
1384 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerNote'] = $orderReferenceAttributes->getSellerNote();
|
1385 |
}
|
1386 |
if ($orderReferenceAttributes->isSetSellerOrderAttributes()) {
|
1387 |
$sellerOrderAttributes = $orderReferenceAttributes->getSellerOrderAttributes();
|
1388 |
if ($sellerOrderAttributes->isSetSellerOrderId()) {
|
1389 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'SellerOrderId'] = $sellerOrderAttributes->getSellerOrderId();
|
1390 |
}
|
1391 |
if ($sellerOrderAttributes->isSetStoreName()) {
|
1392 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'StoreName'] = $sellerOrderAttributes->getStoreName();
|
1393 |
}
|
1394 |
if ($sellerOrderAttributes->isSetOrderItemCategories()) {
|
1395 |
$orderItemCategories = $sellerOrderAttributes->getOrderItemCategories();
|
1396 |
+
foreach ($orderItemCategories->getOrderItemCategory() as $orderItemCategoryIndex => $orderItemCategory) {
|
1397 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'OrderItemCategories' . '.' . 'OrderItemCategory' . '.' . ($orderItemCategoryIndex + 1)] = $orderItemCategory;
|
1398 |
}
|
1399 |
}
|
1400 |
if ($sellerOrderAttributes->isSetCustomInformation()) {
|
1401 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'CustomInformation'] = $sellerOrderAttributes->getCustomInformation();
|
1402 |
}
|
1403 |
}
|
1404 |
}
|
1405 |
+
|
1406 |
return $parameters;
|
1407 |
}
|
1408 |
+
|
1409 |
+
|
1410 |
/**
|
1411 |
* Convert GetAuthorizationDetailsRequest to name value pairs
|
1412 |
*/
|
1413 |
+
private function _convertGetAuthorizationDetails($request)
|
1414 |
+
{
|
1415 |
|
1416 |
+
$parameters = array();
|
1417 |
$parameters['Action'] = 'GetAuthorizationDetails';
|
1418 |
if ($request->isSetSellerId()) {
|
1419 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1420 |
+
}
|
1421 |
+
if ($request->isSetMWSAuthToken()) {
|
1422 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1423 |
}
|
1424 |
if ($request->isSetAmazonAuthorizationId()) {
|
1425 |
+
$parameters['AmazonAuthorizationId'] = $request->getAmazonAuthorizationId();
|
1426 |
}
|
1427 |
+
|
1428 |
return $parameters;
|
1429 |
}
|
1430 |
+
|
1431 |
+
|
1432 |
/**
|
1433 |
* Convert CancelOrderReferenceRequest to name value pairs
|
1434 |
*/
|
1435 |
+
private function _convertCancelOrderReference($request)
|
1436 |
+
{
|
1437 |
|
1438 |
+
$parameters = array();
|
1439 |
$parameters['Action'] = 'CancelOrderReference';
|
1440 |
if ($request->isSetSellerId()) {
|
1441 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1442 |
+
}
|
1443 |
+
if ($request->isSetMWSAuthToken()) {
|
1444 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1445 |
}
|
1446 |
if ($request->isSetAmazonOrderReferenceId()) {
|
1447 |
+
$parameters['AmazonOrderReferenceId'] = $request->getAmazonOrderReferenceId();
|
1448 |
}
|
1449 |
if ($request->isSetCancelationReason()) {
|
1450 |
+
$parameters['CancelationReason'] = $request->getCancelationReason();
|
1451 |
}
|
1452 |
+
|
1453 |
return $parameters;
|
1454 |
}
|
1455 |
|
1457 |
/**
|
1458 |
* Convert CreateOrderReferenceForIdRequest to name value pairs
|
1459 |
*/
|
1460 |
+
private function _convertCreateOrderReferenceForId($request)
|
1461 |
+
{
|
1462 |
+
|
1463 |
+
$parameters = array();
|
1464 |
$parameters['Action'] = 'CreateOrderReferenceForId';
|
1465 |
if ($request->isSetId()) {
|
1466 |
+
$parameters['Id'] = $request->getId();
|
1467 |
}
|
1468 |
if ($request->isSetSellerId()) {
|
1469 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1470 |
+
}
|
1471 |
+
if ($request->isSetMWSAuthToken()) {
|
1472 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1473 |
}
|
1474 |
if ($request->isSetIdType()) {
|
1475 |
+
$parameters['IdType'] = $request->getIdType();
|
1476 |
}
|
1477 |
if ($request->isSetInheritShippingAddress()) {
|
1478 |
+
$parameters['InheritShippingAddress'] = $request->getInheritShippingAddress() ? "true" : "false";
|
1479 |
}
|
1480 |
if ($request->isSetConfirmNow()) {
|
1481 |
+
$parameters['ConfirmNow'] = $request->getConfirmNow() ? "true" : "false";
|
1482 |
}
|
1483 |
if ($request->isSetOrderReferenceAttributes()) {
|
1484 |
$orderReferenceAttributescreateOrderReferenceForIdRequest = $request->getOrderReferenceAttributes();
|
1485 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetOrderTotal()) {
|
1486 |
$orderTotalorderReferenceAttributes = $orderReferenceAttributescreateOrderReferenceForIdRequest->getOrderTotal();
|
1487 |
if ($orderTotalorderReferenceAttributes->isSetCurrencyCode()) {
|
1488 |
+
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'CurrencyCode'] = $orderTotalorderReferenceAttributes->getCurrencyCode();
|
1489 |
}
|
1490 |
if ($orderTotalorderReferenceAttributes->isSetAmount()) {
|
1491 |
+
$parameters['OrderReferenceAttributes' . '.' . 'OrderTotal' . '.' . 'Amount'] = $orderTotalorderReferenceAttributes->getAmount();
|
1492 |
}
|
1493 |
}
|
1494 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetPlatformId()) {
|
1495 |
+
$parameters['OrderReferenceAttributes' . '.' . 'PlatformId'] = $orderReferenceAttributescreateOrderReferenceForIdRequest->getPlatformId();
|
1496 |
}
|
1497 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetSellerNote()) {
|
1498 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerNote'] = $orderReferenceAttributescreateOrderReferenceForIdRequest->getSellerNote();
|
1499 |
}
|
1500 |
if ($orderReferenceAttributescreateOrderReferenceForIdRequest->isSetSellerOrderAttributes()) {
|
1501 |
$sellerOrderAttributesorderReferenceAttributes = $orderReferenceAttributescreateOrderReferenceForIdRequest->getSellerOrderAttributes();
|
1502 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetSellerOrderId()) {
|
1503 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'SellerOrderId'] = $sellerOrderAttributesorderReferenceAttributes->getSellerOrderId();
|
1504 |
}
|
1505 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetStoreName()) {
|
1506 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'StoreName'] = $sellerOrderAttributesorderReferenceAttributes->getStoreName();
|
1507 |
}
|
1508 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetOrderItemCategories()) {
|
1509 |
$orderItemCategoriessellerOrderAttributes = $sellerOrderAttributesorderReferenceAttributes->getOrderItemCategories();
|
1510 |
+
foreach ($orderItemCategoriessellerOrderAttributes->getOrderItemCategory() as $orderItemCategoryorderItemCategoriesIndex => $orderItemCategoryorderItemCategories) {
|
1511 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'OrderItemCategories' . '.' . 'OrderItemCategory' . '.' . ($orderItemCategoryorderItemCategoriesIndex + 1)] = $orderItemCategoryorderItemCategories;
|
1512 |
}
|
1513 |
}
|
1514 |
if ($sellerOrderAttributesorderReferenceAttributes->isSetCustomInformation()) {
|
1515 |
+
$parameters['OrderReferenceAttributes' . '.' . 'SellerOrderAttributes' . '.' . 'CustomInformation'] = $sellerOrderAttributesorderReferenceAttributes->getCustomInformation();
|
1516 |
}
|
1517 |
}
|
1518 |
}
|
1519 |
+
|
1520 |
return $parameters;
|
1521 |
}
|
1522 |
|
1524 |
/**
|
1525 |
* Convert GetBillingAgreementDetailsRequest to name value pairs
|
1526 |
*/
|
1527 |
+
private function _convertGetBillingAgreementDetails($request)
|
1528 |
+
{
|
1529 |
+
|
1530 |
+
$parameters = array();
|
1531 |
+
$parameters['Action'] = 'GetBillingAgreementDetails';
|
1532 |
+
if ($request->isSetAmazonBillingAgreementId()) {
|
1533 |
+
$parameters['AmazonBillingAgreementId'] = $request->getAmazonBillingAgreementId();
|
1534 |
+
}
|
1535 |
+
if ($request->isSetSellerId()) {
|
1536 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1537 |
+
}
|
1538 |
+
if ($request->isSetMWSAuthToken()) {
|
1539 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1540 |
+
}
|
1541 |
+
if ($request->isSetAddressConsentToken()) {
|
1542 |
+
$parameters['AddressConsentToken'] = $request->getAddressConsentToken();
|
1543 |
+
}
|
1544 |
+
|
1545 |
+
return $parameters;
|
1546 |
}
|
1547 |
|
1548 |
|
1549 |
/**
|
1550 |
* Convert SetBillingAgreementDetailsRequest to name value pairs
|
1551 |
*/
|
1552 |
+
private function _convertSetBillingAgreementDetails($request)
|
1553 |
+
{
|
1554 |
+
|
1555 |
+
$parameters = array();
|
1556 |
+
$parameters['Action'] = 'SetBillingAgreementDetails';
|
1557 |
+
if ($request->isSetSellerId()) {
|
1558 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1559 |
+
}
|
1560 |
+
if ($request->isSetMWSAuthToken()) {
|
1561 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1562 |
+
}
|
1563 |
+
if ($request->isSetAmazonBillingAgreementId()) {
|
1564 |
+
$parameters['AmazonBillingAgreementId'] = $request->getAmazonBillingAgreementId();
|
1565 |
+
}
|
1566 |
+
if ($request->isSetBillingAgreementAttributes()) {
|
1567 |
+
$billingAgreementAttributessetBillingAgreementDetailsRequest = $request->getBillingAgreementAttributes();
|
1568 |
+
if ($billingAgreementAttributessetBillingAgreementDetailsRequest->isSetPlatformId()) {
|
1569 |
+
$parameters['BillingAgreementAttributes' . '.' . 'PlatformId'] = $billingAgreementAttributessetBillingAgreementDetailsRequest->getPlatformId();
|
1570 |
+
}
|
1571 |
+
if ($billingAgreementAttributessetBillingAgreementDetailsRequest->isSetSellerNote()) {
|
1572 |
+
$parameters['BillingAgreementAttributes' . '.' . 'SellerNote'] = $billingAgreementAttributessetBillingAgreementDetailsRequest->getSellerNote();
|
1573 |
+
}
|
1574 |
+
if ($billingAgreementAttributessetBillingAgreementDetailsRequest->isSetSellerBillingAgreementAttributes()) {
|
1575 |
+
$sellerBillingAgreementAttributesbillingAgreementAttributes = $billingAgreementAttributessetBillingAgreementDetailsRequest->getSellerBillingAgreementAttributes();
|
1576 |
+
if ($sellerBillingAgreementAttributesbillingAgreementAttributes->isSetSellerBillingAgreementId()) {
|
1577 |
+
$parameters['BillingAgreementAttributes' . '.' . 'SellerBillingAgreementAttributes' . '.' . 'SellerBillingAgreementId'] = $sellerBillingAgreementAttributesbillingAgreementAttributes->getSellerBillingAgreementId();
|
1578 |
+
}
|
1579 |
+
if ($sellerBillingAgreementAttributesbillingAgreementAttributes->isSetStoreName()) {
|
1580 |
+
$parameters['BillingAgreementAttributes' . '.' . 'SellerBillingAgreementAttributes' . '.' . 'StoreName'] = $sellerBillingAgreementAttributesbillingAgreementAttributes->getStoreName();
|
1581 |
+
}
|
1582 |
+
if ($sellerBillingAgreementAttributesbillingAgreementAttributes->isSetCustomInformation()) {
|
1583 |
+
$parameters['BillingAgreementAttributes' . '.' . 'SellerBillingAgreementAttributes' . '.' . 'CustomInformation'] = $sellerBillingAgreementAttributesbillingAgreementAttributes->getCustomInformation();
|
1584 |
+
}
|
1585 |
+
}
|
1586 |
+
}
|
1587 |
+
|
1588 |
+
return $parameters;
|
1589 |
}
|
1590 |
|
1591 |
|
1592 |
/**
|
1593 |
* Convert ConfirmBillingAgreementRequest to name value pairs
|
1594 |
*/
|
1595 |
+
private function _convertConfirmBillingAgreement($request)
|
1596 |
+
{
|
1597 |
|
1598 |
+
$parameters = array();
|
1599 |
$parameters['Action'] = 'ConfirmBillingAgreement';
|
1600 |
if ($request->isSetSellerId()) {
|
1601 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1602 |
+
}
|
1603 |
+
if ($request->isSetMWSAuthToken()) {
|
1604 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1605 |
}
|
1606 |
if ($request->isSetAmazonBillingAgreementId()) {
|
1607 |
+
$parameters['AmazonBillingAgreementId'] = $request->getAmazonBillingAgreementId();
|
1608 |
}
|
1609 |
+
|
1610 |
return $parameters;
|
1611 |
}
|
1612 |
|
1614 |
/**
|
1615 |
* Convert ValidateBillingAgreementRequest to name value pairs
|
1616 |
*/
|
1617 |
+
private function _convertValidateBillingAgreement($request)
|
1618 |
+
{
|
1619 |
+
|
1620 |
+
$parameters = array();
|
1621 |
$parameters['Action'] = 'ValidateBillingAgreement';
|
1622 |
if ($request->isSetAmazonBillingAgreementId()) {
|
1623 |
+
$parameters['AmazonBillingAgreementId'] = $request->getAmazonBillingAgreementId();
|
1624 |
}
|
1625 |
if ($request->isSetSellerId()) {
|
1626 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1627 |
}
|
1628 |
+
if ($request->isSetMWSAuthToken()) {
|
1629 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1630 |
+
}
|
1631 |
+
|
1632 |
return $parameters;
|
1633 |
}
|
1634 |
|
1636 |
/**
|
1637 |
* Convert AuthorizeOnBillingAgreementRequest to name value pairs
|
1638 |
*/
|
1639 |
+
private function _convertAuthorizeOnBillingAgreement($request)
|
1640 |
+
{
|
1641 |
+
|
1642 |
+
$parameters = array();
|
1643 |
+
$parameters['Action'] = 'AuthorizeOnBillingAgreement';
|
1644 |
+
if ($request->isSetSellerId()) {
|
1645 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1646 |
+
}
|
1647 |
+
if ($request->isSetMWSAuthToken()) {
|
1648 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1649 |
+
}
|
1650 |
+
if ($request->isSetAmazonBillingAgreementId()) {
|
1651 |
+
$parameters['AmazonBillingAgreementId'] = $request->getAmazonBillingAgreementId();
|
1652 |
+
}
|
1653 |
+
if ($request->isSetAuthorizationReferenceId()) {
|
1654 |
+
$parameters['AuthorizationReferenceId'] = $request->getAuthorizationReferenceId();
|
1655 |
+
}
|
1656 |
+
if ($request->isSetAuthorizationAmount()) {
|
1657 |
+
$authorizationAmountauthorizeOnBillingAgreementRequest = $request->getAuthorizationAmount();
|
1658 |
+
if ($authorizationAmountauthorizeOnBillingAgreementRequest->isSetAmount()) {
|
1659 |
+
$parameters['AuthorizationAmount' . '.' . 'Amount'] = $authorizationAmountauthorizeOnBillingAgreementRequest->getAmount();
|
1660 |
+
}
|
1661 |
+
if ($authorizationAmountauthorizeOnBillingAgreementRequest->isSetCurrencyCode()) {
|
1662 |
+
$parameters['AuthorizationAmount' . '.' . 'CurrencyCode'] = $authorizationAmountauthorizeOnBillingAgreementRequest->getCurrencyCode();
|
1663 |
+
}
|
1664 |
+
}
|
1665 |
+
if ($request->isSetSellerAuthorizationNote()) {
|
1666 |
+
$parameters['SellerAuthorizationNote'] = $request->getSellerAuthorizationNote();
|
1667 |
+
}
|
1668 |
+
if ($request->isSetTransactionTimeout()) {
|
1669 |
+
$parameters['TransactionTimeout'] = $request->getTransactionTimeout();
|
1670 |
+
}
|
1671 |
+
if ($request->isSetCaptureNow()) {
|
1672 |
+
$parameters['CaptureNow'] = $request->getCaptureNow() ? "true" : "false";
|
1673 |
+
}
|
1674 |
+
if ($request->isSetSoftDescriptor()) {
|
1675 |
+
$parameters['SoftDescriptor'] = $request->getSoftDescriptor();
|
1676 |
+
}
|
1677 |
+
if ($request->isSetSellerNote()) {
|
1678 |
+
$parameters['SellerNote'] = $request->getSellerNote();
|
1679 |
+
}
|
1680 |
+
if ($request->isSetPlatformId()) {
|
1681 |
+
$parameters['PlatformId'] = $request->getPlatformId();
|
1682 |
+
}
|
1683 |
+
if ($request->isSetSellerOrderAttributes()) {
|
1684 |
+
$sellerOrderAttributesauthorizeOnBillingAgreementRequest = $request->getSellerOrderAttributes();
|
1685 |
+
if ($sellerOrderAttributesauthorizeOnBillingAgreementRequest->isSetSellerOrderId()) {
|
1686 |
+
$parameters['SellerOrderAttributes' . '.' . 'SellerOrderId'] = $sellerOrderAttributesauthorizeOnBillingAgreementRequest->getSellerOrderId();
|
1687 |
+
}
|
1688 |
+
if ($sellerOrderAttributesauthorizeOnBillingAgreementRequest->isSetStoreName()) {
|
1689 |
+
$parameters['SellerOrderAttributes' . '.' . 'StoreName'] = $sellerOrderAttributesauthorizeOnBillingAgreementRequest->getStoreName();
|
1690 |
+
}
|
1691 |
+
if ($sellerOrderAttributesauthorizeOnBillingAgreementRequest->isSetOrderItemCategories()) {
|
1692 |
+
$orderItemCategoriessellerOrderAttributes = $sellerOrderAttributesauthorizeOnBillingAgreementRequest->getOrderItemCategories();
|
1693 |
+
foreach ($orderItemCategoriessellerOrderAttributes->getOrderItemCategory() as $orderItemCategoryorderItemCategoriesIndex => $orderItemCategoryorderItemCategories) {
|
1694 |
+
$parameters['SellerOrderAttributes' . '.' . 'OrderItemCategories' . '.' . 'OrderItemCategory' . '.' . ($orderItemCategoryorderItemCategoriesIndex + 1)] = $orderItemCategoryorderItemCategories;
|
1695 |
+
}
|
1696 |
+
}
|
1697 |
+
if ($sellerOrderAttributesauthorizeOnBillingAgreementRequest->isSetCustomInformation()) {
|
1698 |
+
$parameters['SellerOrderAttributes' . '.' . 'CustomInformation'] = $sellerOrderAttributesauthorizeOnBillingAgreementRequest->getCustomInformation();
|
1699 |
+
}
|
1700 |
+
}
|
1701 |
+
if ($request->isSetInheritShippingAddress()) {
|
1702 |
+
$parameters['InheritShippingAddress'] = $request->getInheritShippingAddress() ? "true" : "false";
|
1703 |
+
}
|
1704 |
+
|
1705 |
+
return $parameters;
|
1706 |
}
|
1707 |
|
1708 |
|
1709 |
/**
|
1710 |
* Convert CloseBillingAgreementRequest to name value pairs
|
1711 |
*/
|
1712 |
+
private function _convertCloseBillingAgreement($request)
|
1713 |
+
{
|
1714 |
+
|
1715 |
+
$parameters = array();
|
1716 |
+
$parameters['Action'] = 'CloseBillingAgreement';
|
1717 |
+
if ($request->isSetAmazonBillingAgreementId()) {
|
1718 |
+
$parameters['AmazonBillingAgreementId'] = $request->getAmazonBillingAgreementId();
|
1719 |
+
}
|
1720 |
+
if ($request->isSetSellerId()) {
|
1721 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1722 |
+
}
|
1723 |
+
if ($request->isSetMWSAuthToken()) {
|
1724 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1725 |
+
}
|
1726 |
+
if ($request->isSetClosureReason()) {
|
1727 |
+
$parameters['ClosureReason'] = $request->getClosureReason();
|
1728 |
+
}
|
1729 |
+
if ($request->isSetReasonCode()) {
|
1730 |
+
$parameters['ReasonCode'] = $request->getReasonCode();
|
1731 |
+
}
|
1732 |
+
|
1733 |
+
return $parameters;
|
1734 |
}
|
1735 |
|
1736 |
/**
|
1737 |
* Convert GetProviderCreditDetailsRequest to name value pairs
|
1738 |
*/
|
1739 |
+
private function _convertGetProviderCreditDetails($request)
|
1740 |
+
{
|
1741 |
+
|
1742 |
+
$parameters = array();
|
1743 |
+
$parameters['Action'] = 'GetProviderCreditDetails';
|
1744 |
+
if ($request->isSetSellerId()) {
|
1745 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1746 |
+
}
|
1747 |
+
if ($request->isSetMWSAuthToken()) {
|
1748 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1749 |
+
}
|
1750 |
+
if ($request->isSetAmazonProviderCreditId()) {
|
1751 |
+
$parameters['AmazonProviderCreditId'] = $request->getAmazonProviderCreditId();
|
1752 |
+
}
|
1753 |
+
|
1754 |
+
return $parameters;
|
1755 |
}
|
1756 |
|
1757 |
/**
|
1758 |
* Convert GetProviderCreditReversalDetailsRequest to name value pairs
|
1759 |
*/
|
1760 |
+
private function _convertGetProviderCreditReversalDetails($request)
|
1761 |
+
{
|
1762 |
+
|
1763 |
+
$parameters = array();
|
1764 |
+
$parameters['Action'] = 'GetProviderCreditReversalDetails';
|
1765 |
+
if ($request->isSetSellerId()) {
|
1766 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1767 |
+
}
|
1768 |
+
if ($request->isSetMWSAuthToken()) {
|
1769 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1770 |
+
}
|
1771 |
+
if ($request->isSetAmazonProviderCreditReversalId()) {
|
1772 |
+
$parameters['AmazonProviderCreditReversalId'] = $request->getAmazonProviderCreditReversalId();
|
1773 |
+
}
|
1774 |
+
|
1775 |
+
return $parameters;
|
1776 |
}
|
1777 |
+
|
1778 |
/**
|
1779 |
* Convert ReverseProviderCreditRequest to name value pairs
|
1780 |
*/
|
1781 |
+
private function _convertReverseProviderCredit($request)
|
1782 |
+
{
|
1783 |
+
|
1784 |
+
$parameters = array();
|
1785 |
+
$parameters['Action'] = 'ReverseProviderCredit';
|
1786 |
+
if ($request->isSetSellerId()) {
|
1787 |
+
$parameters['SellerId'] = $request->getSellerId();
|
1788 |
+
}
|
1789 |
+
if ($request->isSetMWSAuthToken()) {
|
1790 |
+
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
|
1791 |
+
}
|
1792 |
+
if ($request->isSetAmazonProviderCreditId()) {
|
1793 |
+
$parameters['AmazonProviderCreditId'] = $request->getAmazonProviderCreditId();
|
1794 |
+
}
|
1795 |
+
if ($request->isSetCreditReversalReferenceId()) {
|
1796 |
+
$parameters['CreditReversalReferenceId'] = $request->getCreditReversalReferenceId();
|
1797 |
+
}
|
1798 |
+
if ($request->isSetCreditReversalAmount()) {
|
1799 |
+
$creditReversalAmountreverseProviderCreditRequest = $request->getCreditReversalAmount();
|
1800 |
+
if ($creditReversalAmountreverseProviderCreditRequest->isSetAmount()) {
|
1801 |
+
$parameters['CreditReversalAmount' . '.' . 'Amount'] = $creditReversalAmountreverseProviderCreditRequest->getAmount();
|
1802 |
+
}
|
1803 |
+
if ($creditReversalAmountreverseProviderCreditRequest->isSetCurrencyCode()) {
|
1804 |
+
$parameters['CreditReversalAmount' . '.' . 'CurrencyCode'] = $creditReversalAmountreverseProviderCreditRequest->getCurrencyCode();
|
1805 |
+
}
|
1806 |
+
}
|
1807 |
+
if ($request->isSetCreditReversalNote()) {
|
1808 |
+
$parameters['CreditReversalNote'] = $request->getCreditReversalNote();
|
1809 |
+
}
|
1810 |
+
|
1811 |
+
return $parameters;
|
1812 |
}
|
1813 |
+
|
1814 |
+
}
|
lib/OffAmazonPaymentsService/Environments.php
CHANGED
@@ -20,4 +20,4 @@ final class OffAmazonPaymentsService_Environments
|
|
20 |
{
|
21 |
const SANDBOX = "sandbox";
|
22 |
const LIVE = "live";
|
23 |
-
}
|
20 |
{
|
21 |
const SANDBOX = "sandbox";
|
22 |
const LIVE = "live";
|
23 |
+
}
|
lib/OffAmazonPaymentsService/Exception.php
CHANGED
@@ -58,10 +58,10 @@ class OffAmazonPaymentsService_Exception extends Exception
|
|
58 |
*/
|
59 |
public function __construct(array $errorInfo = array())
|
60 |
{
|
61 |
-
$this->_message = $errorInfo["Message"];
|
62 |
parent::__construct($this->_message);
|
63 |
if (array_key_exists("Exception", $errorInfo)) {
|
64 |
-
$exception = $errorInfo["Exception"];
|
65 |
if ($exception instanceof OffAmazonPaymentsService_Exception) {
|
66 |
$this->_statusCode = $exception->getStatusCode();
|
67 |
$this->_errorCode = $exception->getErrorCode();
|
@@ -71,12 +71,12 @@ class OffAmazonPaymentsService_Exception extends Exception
|
|
71 |
$this->_responseHeaderMetadata = $exception->getResponseHeaderMetadata();
|
72 |
}
|
73 |
} else {
|
74 |
-
$this->_statusCode = $errorInfo["StatusCode"];
|
75 |
-
$this->_errorCode = $errorInfo["ErrorCode"];
|
76 |
-
$this->_errorType = $errorInfo["ErrorType"];
|
77 |
-
$this->_requestId = $errorInfo["RequestId"];
|
78 |
-
$this->_xml= $errorInfo["XML"];
|
79 |
-
$this->_responseHeaderMetadata = $errorInfo["ResponseHeaderMetadata"];
|
80 |
}
|
81 |
}
|
82 |
|
@@ -141,4 +141,4 @@ class OffAmazonPaymentsService_Exception extends Exception
|
|
141 |
public function getResponseHeaderMetadata() {
|
142 |
return $this->_responseHeaderMetadata;
|
143 |
}
|
144 |
-
}
|
58 |
*/
|
59 |
public function __construct(array $errorInfo = array())
|
60 |
{
|
61 |
+
$this->_message = array_key_exists("Message", $errorInfo) ? $errorInfo["Message"] : null;
|
62 |
parent::__construct($this->_message);
|
63 |
if (array_key_exists("Exception", $errorInfo)) {
|
64 |
+
$exception = array_key_exists("Exception", $errorInfo) ? $errorInfo["Exception"] : null;
|
65 |
if ($exception instanceof OffAmazonPaymentsService_Exception) {
|
66 |
$this->_statusCode = $exception->getStatusCode();
|
67 |
$this->_errorCode = $exception->getErrorCode();
|
71 |
$this->_responseHeaderMetadata = $exception->getResponseHeaderMetadata();
|
72 |
}
|
73 |
} else {
|
74 |
+
$this->_statusCode = array_key_exists("StatusCode", $errorInfo) ? $errorInfo["StatusCode"] : null;
|
75 |
+
$this->_errorCode = array_key_exists("ErrorCode", $errorInfo) ? $errorInfo["ErrorCode"] : null;
|
76 |
+
$this->_errorType = array_key_exists("ErrorType", $errorInfo) ? $errorInfo["ErrorType"] : null;
|
77 |
+
$this->_requestId = array_key_exists("RequestId", $errorInfo) ? $errorInfo["RequestId"] : null;
|
78 |
+
$this->_xml= array_key_exists("XML", $errorInfo) ? $errorInfo["XML"] : null;
|
79 |
+
$this->_responseHeaderMetadata = array_key_exists("ResponseHeaderMetadata", $errorInfo) ? $errorInfo["ResponseHeaderMetadata"] : null;
|
80 |
}
|
81 |
}
|
82 |
|
141 |
public function getResponseHeaderMetadata() {
|
142 |
return $this->_responseHeaderMetadata;
|
143 |
}
|
144 |
+
}
|
lib/OffAmazonPaymentsService/Interface.php
CHANGED
@@ -334,4 +334,4 @@ interface OffAmazonPaymentsService_Interface
|
|
334 |
*/
|
335 |
public function reverseProviderCredit($request);
|
336 |
|
337 |
-
}
|
334 |
*/
|
335 |
public function reverseProviderCredit($request);
|
336 |
|
337 |
+
}
|
lib/OffAmazonPaymentsService/MerchantValues.php
CHANGED
@@ -19,144 +19,214 @@
|
|
19 |
|
20 |
class OffAmazonPaymentsService_MerchantValues
|
21 |
{
|
22 |
-
private $
|
23 |
-
|
24 |
-
private $_secretKey;
|
25 |
-
private $_serviceUrl;
|
26 |
-
private $_widgetUrl;
|
27 |
-
private $_applicationName;
|
28 |
-
private $_applicationVersion;
|
29 |
-
private $_region;
|
30 |
-
private $_environment;
|
31 |
-
private $_caBundleFile;
|
32 |
private $_regionSpecificProperties;
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
$
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
$
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
$
|
46 |
-
|
47 |
-
|
48 |
-
$this->
|
49 |
-
|
50 |
-
$this->
|
51 |
-
$this->_applicationName = $applicationName;
|
52 |
-
$this->_applicationVersion = $applicationVersion;
|
53 |
-
$this->_region = strtoupper($region);
|
54 |
-
$this->_environment = strtoupper($environment);
|
55 |
-
$this->_caBundleFile = $caBundleFile;
|
56 |
-
$this->_serviceUrl = $serviceUrl;
|
57 |
-
$this->_widgetUrl = $widgetUrl;
|
58 |
-
$this->_regionSpecificProperties = new OffAmazonPaymentsService_RegionSpecificProperties();
|
59 |
-
$this->_clientId = $clientId;
|
60 |
-
|
61 |
-
if ($this->_merchantId == "") {
|
62 |
throw new InvalidArgumentException("merchantId not set in the properties file");
|
63 |
}
|
64 |
|
65 |
-
if ($this->
|
66 |
throw new InvalidArgumentException("accessKey not set in the properties file");
|
67 |
}
|
68 |
|
69 |
-
if ($this->
|
70 |
throw new InvalidArgumentException("secretKey not set in the properties file");
|
71 |
}
|
72 |
|
73 |
-
if ($this->
|
|
|
|
|
|
|
|
|
74 |
throw new InvalidArgumentException(
|
75 |
"applicationName not set in the properties file"
|
76 |
);
|
77 |
}
|
78 |
|
79 |
-
if ($this->
|
80 |
throw new InvalidArgumentException(
|
81 |
"applicationVersion not set in the properties file"
|
82 |
);
|
83 |
}
|
84 |
|
85 |
-
if ($this->
|
86 |
throw new InvalidArgumentException("region not set in the properties file");
|
87 |
}
|
88 |
-
|
|
|
89 |
|
90 |
-
if ($this->
|
91 |
throw new InvalidArgumentException("environment not set in the properties file");
|
92 |
}
|
93 |
-
$this->
|
94 |
|
95 |
-
if ($this->
|
96 |
-
$this->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
}
|
99 |
|
100 |
public function getMerchantId()
|
101 |
{
|
102 |
-
return $this->
|
103 |
}
|
104 |
|
105 |
public function getAccessKey()
|
106 |
{
|
107 |
-
return $this->
|
108 |
}
|
109 |
|
110 |
public function getSecretKey()
|
111 |
{
|
112 |
-
return $this->
|
113 |
}
|
114 |
|
115 |
public function getServiceUrl()
|
116 |
{
|
117 |
-
return $this->_regionSpecificProperties->getServiceUrlFor(
|
|
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
public function getWidgetUrl()
|
121 |
{
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
|
125 |
public function getCurrency()
|
126 |
{
|
127 |
-
|
128 |
}
|
129 |
|
130 |
public function getApplicationName()
|
131 |
{
|
132 |
-
return $this->
|
133 |
}
|
134 |
|
135 |
public function getApplicationVersion()
|
136 |
{
|
137 |
-
return $this->
|
138 |
}
|
139 |
|
140 |
public function getRegion()
|
141 |
{
|
142 |
-
return $this->
|
143 |
}
|
144 |
|
145 |
public function getEnvironment()
|
146 |
{
|
147 |
-
return $this->
|
148 |
}
|
149 |
|
150 |
public function getCaBundleFile()
|
151 |
{
|
152 |
-
return $this->
|
153 |
}
|
154 |
|
155 |
public function getClientId()
|
156 |
{
|
157 |
-
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
private function _validateRegion($region)
|
161 |
{
|
162 |
return self::_getValueForConstant($region, new OffAmazonPaymentsService_Regions());
|
@@ -170,7 +240,7 @@ class OffAmazonPaymentsService_MerchantValues
|
|
170 |
private static function _getValueForConstant($constant, $valuesClass)
|
171 |
{
|
172 |
$rc = new ReflectionClass($valuesClass);
|
173 |
-
$value = $rc->getConstant($constant);
|
174 |
if ($value == null) {
|
175 |
$allowedValues = implode(",", array_keys($rc->getConstants()));
|
176 |
throw new InvalidArgumentException(
|
@@ -180,24 +250,4 @@ class OffAmazonPaymentsService_MerchantValues
|
|
180 |
|
181 |
return $value;
|
182 |
}
|
183 |
-
|
184 |
-
public static function withRegionSpecificProperties(
|
185 |
-
$merchantId,
|
186 |
-
$accessKey,
|
187 |
-
$secretKey,
|
188 |
-
$applicationName,
|
189 |
-
$applicationVersion,
|
190 |
-
$region,
|
191 |
-
$environment,
|
192 |
-
$serviceUrl,
|
193 |
-
$widgetUrl,
|
194 |
-
$caBundleFile,
|
195 |
-
$regionSpecificProperties,
|
196 |
-
$clientId)
|
197 |
-
{
|
198 |
-
$instance = new self($merchantId, $accessKey, $secretKey, $applicationName, $applicationVersion, $region, $environment, $serviceUrl, $widgetUrl, $caBundleFile, $clientId);
|
199 |
-
$instance->_regionSpecificProperties = $regionSpecificProperties;
|
200 |
-
return $instance;
|
201 |
-
}
|
202 |
}
|
203 |
-
|
19 |
|
20 |
class OffAmazonPaymentsService_MerchantValues
|
21 |
{
|
22 |
+
private $_config;
|
23 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
private $_regionSpecificProperties;
|
25 |
+
|
26 |
+
private $_utils;
|
27 |
+
|
28 |
+
public function __construct($config, $regionSpecificProperties) {
|
29 |
+
if (!isset($config)) {
|
30 |
+
throw new InvalidArgumentException("no configuration specificed, please set variables with $config variable");
|
31 |
+
}
|
32 |
+
|
33 |
+
if (!isset($regionSpecificProperties)) {
|
34 |
+
throw new InvalidArgumentException("no regionSpecificProperties object injected, check caller of OffAmazonPaymentsService_MerchantValues");
|
35 |
+
}
|
36 |
+
|
37 |
+
$this->_config = $config;
|
38 |
+
$this->_regionSpecificProperties = $regionSpecificProperties;
|
39 |
+
|
40 |
+
$this->_utils = new OffAmazonPayments_OffAmazonPaymentsServiceUtils();
|
41 |
+
|
42 |
+
if (empty($this->_config['merchantId'])) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
throw new InvalidArgumentException("merchantId not set in the properties file");
|
44 |
}
|
45 |
|
46 |
+
if (empty($this->_config['accessKey'])) {
|
47 |
throw new InvalidArgumentException("accessKey not set in the properties file");
|
48 |
}
|
49 |
|
50 |
+
if (empty($this->_config['secretKey'])) {
|
51 |
throw new InvalidArgumentException("secretKey not set in the properties file");
|
52 |
}
|
53 |
|
54 |
+
if (empty($this->_config['cnName'])) {
|
55 |
+
throw new InvalidArgumentException("cnName not set in the properties file");
|
56 |
+
}
|
57 |
+
|
58 |
+
if (empty($this->_config['applicationName'])) {
|
59 |
throw new InvalidArgumentException(
|
60 |
"applicationName not set in the properties file"
|
61 |
);
|
62 |
}
|
63 |
|
64 |
+
if (empty($this->_config['applicationVersion'])) {
|
65 |
throw new InvalidArgumentException(
|
66 |
"applicationVersion not set in the properties file"
|
67 |
);
|
68 |
}
|
69 |
|
70 |
+
if (empty($this->_config['region'])) {
|
71 |
throw new InvalidArgumentException("region not set in the properties file");
|
72 |
}
|
73 |
+
|
74 |
+
$this->_config['region'] = $this->_validateRegion($this->_config['region']);
|
75 |
|
76 |
+
if (empty($this->_config['environment'])) {
|
77 |
throw new InvalidArgumentException("environment not set in the properties file");
|
78 |
}
|
79 |
+
$this->_config['environment'] = $this->_validateEnvironment($this->_config['environment']);
|
80 |
|
81 |
+
if (empty($this->_config['caBundleFile'])) {
|
82 |
+
$this->_config['caBundleFile'] = null;
|
83 |
+
}
|
84 |
+
|
85 |
+
if (empty($this->_config['serviceUrl'])) {
|
86 |
+
$this->_config['serviceUrl'] = null;
|
87 |
+
}
|
88 |
+
|
89 |
+
if (empty($this->_config['widgetUrl'])) {
|
90 |
+
$this->_config['widgetUrl'] = null;
|
91 |
+
}
|
92 |
+
|
93 |
+
if (empty($this->_config['proxyHost'])) {
|
94 |
+
$this->_config['proxyHost'] = null;
|
95 |
+
}
|
96 |
+
|
97 |
+
if (empty($this->_config['proxyPort'])) {
|
98 |
+
$this->_config['proxyPort'] = null;
|
99 |
+
}
|
100 |
+
|
101 |
+
if (empty($this->_config['proxyUsername'])) {
|
102 |
+
$this->_config['proxyUsername'] = null;
|
103 |
+
}
|
104 |
+
|
105 |
+
if (empty($this->_config['proxyPassword'])) {
|
106 |
+
$this->_config['proxyPassword'] = null;
|
107 |
}
|
108 |
}
|
109 |
|
110 |
public function getMerchantId()
|
111 |
{
|
112 |
+
return $this->_config['merchantId'];
|
113 |
}
|
114 |
|
115 |
public function getAccessKey()
|
116 |
{
|
117 |
+
return $this->_config['accessKey'];
|
118 |
}
|
119 |
|
120 |
public function getSecretKey()
|
121 |
{
|
122 |
+
return $this->_config['secretKey'];
|
123 |
}
|
124 |
|
125 |
public function getServiceUrl()
|
126 |
{
|
127 |
+
return $this->_regionSpecificProperties->getServiceUrlFor(
|
128 |
+
$this->getRegion(),
|
129 |
+
$this->getEnvironment(),
|
130 |
+
$this->_config['serviceUrl']
|
131 |
+
);
|
132 |
}
|
133 |
|
134 |
public function getWidgetUrl()
|
135 |
{
|
136 |
+
return $this->_regionSpecificProperties->getWidgetUrlFor(
|
137 |
+
$this->getRegion(),
|
138 |
+
$this->getEnvironment(),
|
139 |
+
$this->getMerchantId(),
|
140 |
+
$this->_config['widgetUrl']
|
141 |
+
);
|
142 |
}
|
143 |
|
144 |
public function getCurrency()
|
145 |
{
|
146 |
+
return $this->_regionSpecificProperties->getCurrencyFor($this->getRegion());
|
147 |
}
|
148 |
|
149 |
public function getApplicationName()
|
150 |
{
|
151 |
+
return $this->_config['applicationName'];
|
152 |
}
|
153 |
|
154 |
public function getApplicationVersion()
|
155 |
{
|
156 |
+
return $this->_config['applicationVersion'];
|
157 |
}
|
158 |
|
159 |
public function getRegion()
|
160 |
{
|
161 |
+
return $this->_config['region'];
|
162 |
}
|
163 |
|
164 |
public function getEnvironment()
|
165 |
{
|
166 |
+
return $this->_config['environment'];
|
167 |
}
|
168 |
|
169 |
public function getCaBundleFile()
|
170 |
{
|
171 |
+
return $this->_config['caBundleFile'];
|
172 |
}
|
173 |
|
174 |
public function getClientId()
|
175 |
{
|
176 |
+
return $this->_config['clientId'];
|
177 |
}
|
178 |
|
179 |
+
public function getProxyUsername()
|
180 |
+
{
|
181 |
+
return $this->_config['proxyUsername'];
|
182 |
+
}
|
183 |
+
|
184 |
+
public function getProxyPassword()
|
185 |
+
{
|
186 |
+
return $this->_config['proxyPassword'];
|
187 |
+
}
|
188 |
+
|
189 |
+
public function getProxyHost()
|
190 |
+
{
|
191 |
+
return $this->_config['proxyHost'];
|
192 |
+
}
|
193 |
+
|
194 |
+
public function getProxyPort()
|
195 |
+
{
|
196 |
+
return $this->_config['proxyPort'];
|
197 |
+
}
|
198 |
+
|
199 |
+
public function getCnName()
|
200 |
+
{
|
201 |
+
return $this->_config['cnName'];
|
202 |
+
}
|
203 |
+
|
204 |
+
public function isProxyConfigured() {
|
205 |
+
$host = $this->getProxyHost();
|
206 |
+
$port = $this->getProxyPort();
|
207 |
+
return !empty($host) && !empty($port);
|
208 |
+
}
|
209 |
+
|
210 |
+
public function isProxyAuthenticationConfigured() {
|
211 |
+
$user = $this->getProxyUsername();
|
212 |
+
$pw = $this->getProxyPassword();
|
213 |
+
return $this->isProxyConfigured() &&
|
214 |
+
!empty($user) &&
|
215 |
+
!empty($pw);
|
216 |
+
}
|
217 |
+
|
218 |
+
public function isCaBundleConfigured() {
|
219 |
+
$file = $this->getCaBundleFile();
|
220 |
+
return !empty($file);
|
221 |
+
}
|
222 |
+
|
223 |
+
public function getUserAgentString() {
|
224 |
+
return $this->_utils->buildUserAgentString(
|
225 |
+
$this->getApplicationName(),
|
226 |
+
$this->getApplicationVersion()
|
227 |
+
);
|
228 |
+
}
|
229 |
+
|
230 |
private function _validateRegion($region)
|
231 |
{
|
232 |
return self::_getValueForConstant($region, new OffAmazonPaymentsService_Regions());
|
240 |
private static function _getValueForConstant($constant, $valuesClass)
|
241 |
{
|
242 |
$rc = new ReflectionClass($valuesClass);
|
243 |
+
$value = $rc->getConstant(strtoupper($constant));
|
244 |
if ($value == null) {
|
245 |
$allowedValues = implode(",", array_keys($rc->getConstants()));
|
246 |
throw new InvalidArgumentException(
|
250 |
|
251 |
return $value;
|
252 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
}
|
|
lib/OffAmazonPaymentsService/MerchantValuesBuilder.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
+
*
|
7 |
+
* You may not use this file except in compliance with the License.
|
8 |
+
* You may obtain a copy of the License at:
|
9 |
+
* http://aws.amazon.com/apache2.0
|
10 |
+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11 |
+
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
12 |
+
* for the
|
13 |
+
* specific language governing permissions and limitations under the
|
14 |
+
* License.
|
15 |
+
* *****************************************************************************
|
16 |
+
*/
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
class OffAmazonPaymentsService_MerchantValuesBuilder
|
21 |
+
{
|
22 |
+
private $_config;
|
23 |
+
|
24 |
+
private $_regionSpecificProperties;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Provide a static function to access the constructor so
|
28 |
+
* that a fluent interface can be used to build the merchant
|
29 |
+
* values object
|
30 |
+
*
|
31 |
+
* @param config to use, default to null
|
32 |
+
*
|
33 |
+
* @return new instance of OffAmazonPaymentsService_MerchantValuesBuilder
|
34 |
+
*/
|
35 |
+
public static function create($config = null) {
|
36 |
+
return new OffAmazonPaymentsService_MerchantValuesBuilder($config);
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Create a new instance, using global configuraton
|
41 |
+
* values if no configuration is define
|
42 |
+
*
|
43 |
+
* @param config array of property values
|
44 |
+
*
|
45 |
+
*/
|
46 |
+
private function __construct($config = null) {
|
47 |
+
|
48 |
+
if (isset($config)) {
|
49 |
+
$this->_config = $config;
|
50 |
+
}
|
51 |
+
|
52 |
+
$this->_regionSpecificProperties = new OffAmazonPaymentsService_RegionSpecificProperties();
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Setup the region specific properties file to use for the
|
57 |
+
* merchant values class
|
58 |
+
*
|
59 |
+
* @param OffAmazonPaymentsService_RegionSpecificProperties instance to use
|
60 |
+
*
|
61 |
+
* @return this
|
62 |
+
*/
|
63 |
+
public function withRegionSpecificProperties(
|
64 |
+
$regionSpecificProperties)
|
65 |
+
{
|
66 |
+
$this->_regionSpecificProperties = $regionSpecificProperties;
|
67 |
+
return $this;
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Create a new instance of the merchant values object
|
72 |
+
* with the configured properties
|
73 |
+
*
|
74 |
+
* @return OffAmazonPaymentsService_MerchantValues
|
75 |
+
*/
|
76 |
+
public function build() {
|
77 |
+
return new OffAmazonPaymentsService_MerchantValues(
|
78 |
+
$this->_config,
|
79 |
+
$this->_regionSpecificProperties
|
80 |
+
);
|
81 |
+
}
|
82 |
+
}
|
lib/OffAmazonPaymentsService/Model.php
CHANGED
@@ -298,4 +298,4 @@ abstract class OffAmazonPaymentsService_Model
|
|
298 |
protected function _isNumericArray($var) {
|
299 |
return is_array($var) && array_keys($var) === range(0, sizeof($var) - 1);
|
300 |
}
|
301 |
-
}
|
298 |
protected function _isNumericArray($var) {
|
299 |
return is_array($var) && array_keys($var) === range(0, sizeof($var) - 1);
|
300 |
}
|
301 |
+
}
|
lib/OffAmazonPaymentsService/Model/Address.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*******************************************************************************
|
4 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -20,7 +19,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Address
|
@@ -41,10 +40,10 @@
|
|
41 |
* <li>Phone: string</li>
|
42 |
*
|
43 |
* </ul>
|
44 |
-
*/
|
45 |
class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Model
|
46 |
{
|
47 |
-
|
48 |
/**
|
49 |
* Construct new OffAmazonPaymentsService_Model_Address
|
50 |
*
|
@@ -69,44 +68,87 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
69 |
*/
|
70 |
public function __construct($data = null)
|
71 |
{
|
72 |
-
$this->_fields = array
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
);
|
85 |
parent::__construct($data);
|
86 |
}
|
87 |
-
|
88 |
-
|
89 |
* Gets the value of the Name property.
|
90 |
*
|
91 |
* @return string Name
|
92 |
*/
|
93 |
-
public function getName()
|
94 |
{
|
95 |
return $this->_fields['Name']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the Name property.
|
100 |
*
|
101 |
* @param string Name
|
102 |
* @return this instance
|
103 |
*/
|
104 |
-
public function setName($value)
|
105 |
{
|
106 |
$this->_fields['Name']['FieldValue'] = $value;
|
107 |
return $this;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the Name and returns this instance
|
112 |
*
|
@@ -118,8 +160,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
118 |
$this->setName($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if Name is set
|
125 |
*
|
@@ -129,29 +171,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
129 |
{
|
130 |
return !is_null($this->_fields['Name']['FieldValue']);
|
131 |
}
|
132 |
-
|
133 |
/**
|
134 |
* Gets the value of the AddressLine1 property.
|
135 |
*
|
136 |
* @return string AddressLine1
|
137 |
*/
|
138 |
-
public function getAddressLine1()
|
139 |
{
|
140 |
return $this->_fields['AddressLine1']['FieldValue'];
|
141 |
}
|
142 |
-
|
143 |
/**
|
144 |
* Sets the value of the AddressLine1 property.
|
145 |
*
|
146 |
* @param string AddressLine1
|
147 |
* @return this instance
|
148 |
*/
|
149 |
-
public function setAddressLine1($value)
|
150 |
{
|
151 |
$this->_fields['AddressLine1']['FieldValue'] = $value;
|
152 |
return $this;
|
153 |
}
|
154 |
-
|
155 |
/**
|
156 |
* Sets the value of the AddressLine1 and returns this instance
|
157 |
*
|
@@ -163,8 +205,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
163 |
$this->setAddressLine1($value);
|
164 |
return $this;
|
165 |
}
|
166 |
-
|
167 |
-
|
168 |
/**
|
169 |
* Checks if AddressLine1 is set
|
170 |
*
|
@@ -174,29 +216,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
174 |
{
|
175 |
return !is_null($this->_fields['AddressLine1']['FieldValue']);
|
176 |
}
|
177 |
-
|
178 |
/**
|
179 |
* Gets the value of the AddressLine2 property.
|
180 |
*
|
181 |
* @return string AddressLine2
|
182 |
*/
|
183 |
-
public function getAddressLine2()
|
184 |
{
|
185 |
return $this->_fields['AddressLine2']['FieldValue'];
|
186 |
}
|
187 |
-
|
188 |
/**
|
189 |
* Sets the value of the AddressLine2 property.
|
190 |
*
|
191 |
* @param string AddressLine2
|
192 |
* @return this instance
|
193 |
*/
|
194 |
-
public function setAddressLine2($value)
|
195 |
{
|
196 |
$this->_fields['AddressLine2']['FieldValue'] = $value;
|
197 |
return $this;
|
198 |
}
|
199 |
-
|
200 |
/**
|
201 |
* Sets the value of the AddressLine2 and returns this instance
|
202 |
*
|
@@ -208,8 +250,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
208 |
$this->setAddressLine2($value);
|
209 |
return $this;
|
210 |
}
|
211 |
-
|
212 |
-
|
213 |
/**
|
214 |
* Checks if AddressLine2 is set
|
215 |
*
|
@@ -219,29 +261,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
219 |
{
|
220 |
return !is_null($this->_fields['AddressLine2']['FieldValue']);
|
221 |
}
|
222 |
-
|
223 |
/**
|
224 |
* Gets the value of the AddressLine3 property.
|
225 |
*
|
226 |
* @return string AddressLine3
|
227 |
*/
|
228 |
-
public function getAddressLine3()
|
229 |
{
|
230 |
return $this->_fields['AddressLine3']['FieldValue'];
|
231 |
}
|
232 |
-
|
233 |
/**
|
234 |
* Sets the value of the AddressLine3 property.
|
235 |
*
|
236 |
* @param string AddressLine3
|
237 |
* @return this instance
|
238 |
*/
|
239 |
-
public function setAddressLine3($value)
|
240 |
{
|
241 |
$this->_fields['AddressLine3']['FieldValue'] = $value;
|
242 |
return $this;
|
243 |
}
|
244 |
-
|
245 |
/**
|
246 |
* Sets the value of the AddressLine3 and returns this instance
|
247 |
*
|
@@ -253,8 +295,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
253 |
$this->setAddressLine3($value);
|
254 |
return $this;
|
255 |
}
|
256 |
-
|
257 |
-
|
258 |
/**
|
259 |
* Checks if AddressLine3 is set
|
260 |
*
|
@@ -264,29 +306,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
264 |
{
|
265 |
return !is_null($this->_fields['AddressLine3']['FieldValue']);
|
266 |
}
|
267 |
-
|
268 |
/**
|
269 |
* Gets the value of the City property.
|
270 |
*
|
271 |
* @return string City
|
272 |
*/
|
273 |
-
public function getCity()
|
274 |
{
|
275 |
return $this->_fields['City']['FieldValue'];
|
276 |
}
|
277 |
-
|
278 |
/**
|
279 |
* Sets the value of the City property.
|
280 |
*
|
281 |
* @param string City
|
282 |
* @return this instance
|
283 |
*/
|
284 |
-
public function setCity($value)
|
285 |
{
|
286 |
$this->_fields['City']['FieldValue'] = $value;
|
287 |
return $this;
|
288 |
}
|
289 |
-
|
290 |
/**
|
291 |
* Sets the value of the City and returns this instance
|
292 |
*
|
@@ -298,8 +340,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
298 |
$this->setCity($value);
|
299 |
return $this;
|
300 |
}
|
301 |
-
|
302 |
-
|
303 |
/**
|
304 |
* Checks if City is set
|
305 |
*
|
@@ -309,29 +351,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
309 |
{
|
310 |
return !is_null($this->_fields['City']['FieldValue']);
|
311 |
}
|
312 |
-
|
313 |
/**
|
314 |
* Gets the value of the County property.
|
315 |
*
|
316 |
* @return string County
|
317 |
*/
|
318 |
-
public function getCounty()
|
319 |
{
|
320 |
return $this->_fields['County']['FieldValue'];
|
321 |
}
|
322 |
-
|
323 |
/**
|
324 |
* Sets the value of the County property.
|
325 |
*
|
326 |
* @param string County
|
327 |
* @return this instance
|
328 |
*/
|
329 |
-
public function setCounty($value)
|
330 |
{
|
331 |
$this->_fields['County']['FieldValue'] = $value;
|
332 |
return $this;
|
333 |
}
|
334 |
-
|
335 |
/**
|
336 |
* Sets the value of the County and returns this instance
|
337 |
*
|
@@ -343,8 +385,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
343 |
$this->setCounty($value);
|
344 |
return $this;
|
345 |
}
|
346 |
-
|
347 |
-
|
348 |
/**
|
349 |
* Checks if County is set
|
350 |
*
|
@@ -354,29 +396,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
354 |
{
|
355 |
return !is_null($this->_fields['County']['FieldValue']);
|
356 |
}
|
357 |
-
|
358 |
/**
|
359 |
* Gets the value of the District property.
|
360 |
*
|
361 |
* @return string District
|
362 |
*/
|
363 |
-
public function getDistrict()
|
364 |
{
|
365 |
return $this->_fields['District']['FieldValue'];
|
366 |
}
|
367 |
-
|
368 |
/**
|
369 |
* Sets the value of the District property.
|
370 |
*
|
371 |
* @param string District
|
372 |
* @return this instance
|
373 |
*/
|
374 |
-
public function setDistrict($value)
|
375 |
{
|
376 |
$this->_fields['District']['FieldValue'] = $value;
|
377 |
return $this;
|
378 |
}
|
379 |
-
|
380 |
/**
|
381 |
* Sets the value of the District and returns this instance
|
382 |
*
|
@@ -388,8 +430,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
388 |
$this->setDistrict($value);
|
389 |
return $this;
|
390 |
}
|
391 |
-
|
392 |
-
|
393 |
/**
|
394 |
* Checks if District is set
|
395 |
*
|
@@ -399,29 +441,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
399 |
{
|
400 |
return !is_null($this->_fields['District']['FieldValue']);
|
401 |
}
|
402 |
-
|
403 |
/**
|
404 |
* Gets the value of the StateOrRegion property.
|
405 |
*
|
406 |
* @return string StateOrRegion
|
407 |
*/
|
408 |
-
public function getStateOrRegion()
|
409 |
{
|
410 |
return $this->_fields['StateOrRegion']['FieldValue'];
|
411 |
}
|
412 |
-
|
413 |
/**
|
414 |
* Sets the value of the StateOrRegion property.
|
415 |
*
|
416 |
* @param string StateOrRegion
|
417 |
* @return this instance
|
418 |
*/
|
419 |
-
public function setStateOrRegion($value)
|
420 |
{
|
421 |
$this->_fields['StateOrRegion']['FieldValue'] = $value;
|
422 |
return $this;
|
423 |
}
|
424 |
-
|
425 |
/**
|
426 |
* Sets the value of the StateOrRegion and returns this instance
|
427 |
*
|
@@ -433,8 +475,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
433 |
$this->setStateOrRegion($value);
|
434 |
return $this;
|
435 |
}
|
436 |
-
|
437 |
-
|
438 |
/**
|
439 |
* Checks if StateOrRegion is set
|
440 |
*
|
@@ -444,29 +486,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
444 |
{
|
445 |
return !is_null($this->_fields['StateOrRegion']['FieldValue']);
|
446 |
}
|
447 |
-
|
448 |
/**
|
449 |
* Gets the value of the PostalCode property.
|
450 |
*
|
451 |
* @return string PostalCode
|
452 |
*/
|
453 |
-
public function getPostalCode()
|
454 |
{
|
455 |
return $this->_fields['PostalCode']['FieldValue'];
|
456 |
}
|
457 |
-
|
458 |
/**
|
459 |
* Sets the value of the PostalCode property.
|
460 |
*
|
461 |
* @param string PostalCode
|
462 |
* @return this instance
|
463 |
*/
|
464 |
-
public function setPostalCode($value)
|
465 |
{
|
466 |
$this->_fields['PostalCode']['FieldValue'] = $value;
|
467 |
return $this;
|
468 |
}
|
469 |
-
|
470 |
/**
|
471 |
* Sets the value of the PostalCode and returns this instance
|
472 |
*
|
@@ -478,8 +520,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
478 |
$this->setPostalCode($value);
|
479 |
return $this;
|
480 |
}
|
481 |
-
|
482 |
-
|
483 |
/**
|
484 |
* Checks if PostalCode is set
|
485 |
*
|
@@ -489,29 +531,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
489 |
{
|
490 |
return !is_null($this->_fields['PostalCode']['FieldValue']);
|
491 |
}
|
492 |
-
|
493 |
/**
|
494 |
* Gets the value of the CountryCode property.
|
495 |
*
|
496 |
* @return string CountryCode
|
497 |
*/
|
498 |
-
public function getCountryCode()
|
499 |
{
|
500 |
return $this->_fields['CountryCode']['FieldValue'];
|
501 |
}
|
502 |
-
|
503 |
/**
|
504 |
* Sets the value of the CountryCode property.
|
505 |
*
|
506 |
* @param string CountryCode
|
507 |
* @return this instance
|
508 |
*/
|
509 |
-
public function setCountryCode($value)
|
510 |
{
|
511 |
$this->_fields['CountryCode']['FieldValue'] = $value;
|
512 |
return $this;
|
513 |
}
|
514 |
-
|
515 |
/**
|
516 |
* Sets the value of the CountryCode and returns this instance
|
517 |
*
|
@@ -523,8 +565,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
523 |
$this->setCountryCode($value);
|
524 |
return $this;
|
525 |
}
|
526 |
-
|
527 |
-
|
528 |
/**
|
529 |
* Checks if CountryCode is set
|
530 |
*
|
@@ -534,29 +576,29 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
534 |
{
|
535 |
return !is_null($this->_fields['CountryCode']['FieldValue']);
|
536 |
}
|
537 |
-
|
538 |
/**
|
539 |
* Gets the value of the Phone property.
|
540 |
*
|
541 |
* @return string Phone
|
542 |
*/
|
543 |
-
public function getPhone()
|
544 |
{
|
545 |
return $this->_fields['Phone']['FieldValue'];
|
546 |
}
|
547 |
-
|
548 |
/**
|
549 |
* Sets the value of the Phone property.
|
550 |
*
|
551 |
* @param string Phone
|
552 |
* @return this instance
|
553 |
*/
|
554 |
-
public function setPhone($value)
|
555 |
{
|
556 |
$this->_fields['Phone']['FieldValue'] = $value;
|
557 |
return $this;
|
558 |
}
|
559 |
-
|
560 |
/**
|
561 |
* Sets the value of the Phone and returns this instance
|
562 |
*
|
@@ -568,8 +610,8 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
568 |
$this->setPhone($value);
|
569 |
return $this;
|
570 |
}
|
571 |
-
|
572 |
-
|
573 |
/**
|
574 |
* Checks if Phone is set
|
575 |
*
|
@@ -579,4 +621,5 @@ class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Mo
|
|
579 |
{
|
580 |
return !is_null($this->_fields['Phone']['FieldValue']);
|
581 |
}
|
582 |
-
|
|
1 |
<?php
|
|
|
2 |
/*******************************************************************************
|
3 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
19 |
* @see OffAmazonPaymentsService_Model
|
20 |
*/
|
21 |
|
22 |
+
|
23 |
|
24 |
/**
|
25 |
* OffAmazonPaymentsService_Model_Address
|
40 |
* <li>Phone: string</li>
|
41 |
*
|
42 |
* </ul>
|
43 |
+
*/
|
44 |
class OffAmazonPaymentsService_Model_Address extends OffAmazonPaymentsService_Model
|
45 |
{
|
46 |
+
|
47 |
/**
|
48 |
* Construct new OffAmazonPaymentsService_Model_Address
|
49 |
*
|
68 |
*/
|
69 |
public function __construct($data = null)
|
70 |
{
|
71 |
+
$this->_fields = array(
|
72 |
+
'Name' => array(
|
73 |
+
'FieldValue' => null,
|
74 |
+
'FieldType' => 'string'
|
75 |
+
),
|
76 |
+
|
77 |
+
'AddressLine1' => array(
|
78 |
+
'FieldValue' => null,
|
79 |
+
'FieldType' => 'string'
|
80 |
+
),
|
81 |
+
|
82 |
+
'AddressLine2' => array(
|
83 |
+
'FieldValue' => null,
|
84 |
+
'FieldType' => 'string'
|
85 |
+
),
|
86 |
+
|
87 |
+
'AddressLine3' => array(
|
88 |
+
'FieldValue' => null,
|
89 |
+
'FieldType' => 'string'
|
90 |
+
),
|
91 |
+
|
92 |
+
'City' => array(
|
93 |
+
'FieldValue' => null,
|
94 |
+
'FieldType' => 'string'
|
95 |
+
),
|
96 |
+
|
97 |
+
'County' => array(
|
98 |
+
'FieldValue' => null,
|
99 |
+
'FieldType' => 'string'
|
100 |
+
),
|
101 |
+
|
102 |
+
'District' => array(
|
103 |
+
'FieldValue' => null,
|
104 |
+
'FieldType' => 'string'
|
105 |
+
),
|
106 |
+
|
107 |
+
'StateOrRegion' => array(
|
108 |
+
'FieldValue' => null,
|
109 |
+
'FieldType' => 'string'
|
110 |
+
),
|
111 |
+
|
112 |
+
'PostalCode' => array(
|
113 |
+
'FieldValue' => null,
|
114 |
+
'FieldType' => 'string'
|
115 |
+
),
|
116 |
+
|
117 |
+
'CountryCode' => array(
|
118 |
+
'FieldValue' => null,
|
119 |
+
'FieldType' => 'string'
|
120 |
+
),
|
121 |
+
|
122 |
+
'Phone' => array(
|
123 |
+
'FieldValue' => null,
|
124 |
+
'FieldType' => 'string'
|
125 |
+
)
|
126 |
);
|
127 |
parent::__construct($data);
|
128 |
}
|
129 |
+
|
130 |
+
/**
|
131 |
* Gets the value of the Name property.
|
132 |
*
|
133 |
* @return string Name
|
134 |
*/
|
135 |
+
public function getName()
|
136 |
{
|
137 |
return $this->_fields['Name']['FieldValue'];
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Sets the value of the Name property.
|
142 |
*
|
143 |
* @param string Name
|
144 |
* @return this instance
|
145 |
*/
|
146 |
+
public function setName($value)
|
147 |
{
|
148 |
$this->_fields['Name']['FieldValue'] = $value;
|
149 |
return $this;
|
150 |
}
|
151 |
+
|
152 |
/**
|
153 |
* Sets the value of the Name and returns this instance
|
154 |
*
|
160 |
$this->setName($value);
|
161 |
return $this;
|
162 |
}
|
163 |
+
|
164 |
+
|
165 |
/**
|
166 |
* Checks if Name is set
|
167 |
*
|
171 |
{
|
172 |
return !is_null($this->_fields['Name']['FieldValue']);
|
173 |
}
|
174 |
+
|
175 |
/**
|
176 |
* Gets the value of the AddressLine1 property.
|
177 |
*
|
178 |
* @return string AddressLine1
|
179 |
*/
|
180 |
+
public function getAddressLine1()
|
181 |
{
|
182 |
return $this->_fields['AddressLine1']['FieldValue'];
|
183 |
}
|
184 |
+
|
185 |
/**
|
186 |
* Sets the value of the AddressLine1 property.
|
187 |
*
|
188 |
* @param string AddressLine1
|
189 |
* @return this instance
|
190 |
*/
|
191 |
+
public function setAddressLine1($value)
|
192 |
{
|
193 |
$this->_fields['AddressLine1']['FieldValue'] = $value;
|
194 |
return $this;
|
195 |
}
|
196 |
+
|
197 |
/**
|
198 |
* Sets the value of the AddressLine1 and returns this instance
|
199 |
*
|
205 |
$this->setAddressLine1($value);
|
206 |
return $this;
|
207 |
}
|
208 |
+
|
209 |
+
|
210 |
/**
|
211 |
* Checks if AddressLine1 is set
|
212 |
*
|
216 |
{
|
217 |
return !is_null($this->_fields['AddressLine1']['FieldValue']);
|
218 |
}
|
219 |
+
|
220 |
/**
|
221 |
* Gets the value of the AddressLine2 property.
|
222 |
*
|
223 |
* @return string AddressLine2
|
224 |
*/
|
225 |
+
public function getAddressLine2()
|
226 |
{
|
227 |
return $this->_fields['AddressLine2']['FieldValue'];
|
228 |
}
|
229 |
+
|
230 |
/**
|
231 |
* Sets the value of the AddressLine2 property.
|
232 |
*
|
233 |
* @param string AddressLine2
|
234 |
* @return this instance
|
235 |
*/
|
236 |
+
public function setAddressLine2($value)
|
237 |
{
|
238 |
$this->_fields['AddressLine2']['FieldValue'] = $value;
|
239 |
return $this;
|
240 |
}
|
241 |
+
|
242 |
/**
|
243 |
* Sets the value of the AddressLine2 and returns this instance
|
244 |
*
|
250 |
$this->setAddressLine2($value);
|
251 |
return $this;
|
252 |
}
|
253 |
+
|
254 |
+
|
255 |
/**
|
256 |
* Checks if AddressLine2 is set
|
257 |
*
|
261 |
{
|
262 |
return !is_null($this->_fields['AddressLine2']['FieldValue']);
|
263 |
}
|
264 |
+
|
265 |
/**
|
266 |
* Gets the value of the AddressLine3 property.
|
267 |
*
|
268 |
* @return string AddressLine3
|
269 |
*/
|
270 |
+
public function getAddressLine3()
|
271 |
{
|
272 |
return $this->_fields['AddressLine3']['FieldValue'];
|
273 |
}
|
274 |
+
|
275 |
/**
|
276 |
* Sets the value of the AddressLine3 property.
|
277 |
*
|
278 |
* @param string AddressLine3
|
279 |
* @return this instance
|
280 |
*/
|
281 |
+
public function setAddressLine3($value)
|
282 |
{
|
283 |
$this->_fields['AddressLine3']['FieldValue'] = $value;
|
284 |
return $this;
|
285 |
}
|
286 |
+
|
287 |
/**
|
288 |
* Sets the value of the AddressLine3 and returns this instance
|
289 |
*
|
295 |
$this->setAddressLine3($value);
|
296 |
return $this;
|
297 |
}
|
298 |
+
|
299 |
+
|
300 |
/**
|
301 |
* Checks if AddressLine3 is set
|
302 |
*
|
306 |
{
|
307 |
return !is_null($this->_fields['AddressLine3']['FieldValue']);
|
308 |
}
|
309 |
+
|
310 |
/**
|
311 |
* Gets the value of the City property.
|
312 |
*
|
313 |
* @return string City
|
314 |
*/
|
315 |
+
public function getCity()
|
316 |
{
|
317 |
return $this->_fields['City']['FieldValue'];
|
318 |
}
|
319 |
+
|
320 |
/**
|
321 |
* Sets the value of the City property.
|
322 |
*
|
323 |
* @param string City
|
324 |
* @return this instance
|
325 |
*/
|
326 |
+
public function setCity($value)
|
327 |
{
|
328 |
$this->_fields['City']['FieldValue'] = $value;
|
329 |
return $this;
|
330 |
}
|
331 |
+
|
332 |
/**
|
333 |
* Sets the value of the City and returns this instance
|
334 |
*
|
340 |
$this->setCity($value);
|
341 |
return $this;
|
342 |
}
|
343 |
+
|
344 |
+
|
345 |
/**
|
346 |
* Checks if City is set
|
347 |
*
|
351 |
{
|
352 |
return !is_null($this->_fields['City']['FieldValue']);
|
353 |
}
|
354 |
+
|
355 |
/**
|
356 |
* Gets the value of the County property.
|
357 |
*
|
358 |
* @return string County
|
359 |
*/
|
360 |
+
public function getCounty()
|
361 |
{
|
362 |
return $this->_fields['County']['FieldValue'];
|
363 |
}
|
364 |
+
|
365 |
/**
|
366 |
* Sets the value of the County property.
|
367 |
*
|
368 |
* @param string County
|
369 |
* @return this instance
|
370 |
*/
|
371 |
+
public function setCounty($value)
|
372 |
{
|
373 |
$this->_fields['County']['FieldValue'] = $value;
|
374 |
return $this;
|
375 |
}
|
376 |
+
|
377 |
/**
|
378 |
* Sets the value of the County and returns this instance
|
379 |
*
|
385 |
$this->setCounty($value);
|
386 |
return $this;
|
387 |
}
|
388 |
+
|
389 |
+
|
390 |
/**
|
391 |
* Checks if County is set
|
392 |
*
|
396 |
{
|
397 |
return !is_null($this->_fields['County']['FieldValue']);
|
398 |
}
|
399 |
+
|
400 |
/**
|
401 |
* Gets the value of the District property.
|
402 |
*
|
403 |
* @return string District
|
404 |
*/
|
405 |
+
public function getDistrict()
|
406 |
{
|
407 |
return $this->_fields['District']['FieldValue'];
|
408 |
}
|
409 |
+
|
410 |
/**
|
411 |
* Sets the value of the District property.
|
412 |
*
|
413 |
* @param string District
|
414 |
* @return this instance
|
415 |
*/
|
416 |
+
public function setDistrict($value)
|
417 |
{
|
418 |
$this->_fields['District']['FieldValue'] = $value;
|
419 |
return $this;
|
420 |
}
|
421 |
+
|
422 |
/**
|
423 |
* Sets the value of the District and returns this instance
|
424 |
*
|
430 |
$this->setDistrict($value);
|
431 |
return $this;
|
432 |
}
|
433 |
+
|
434 |
+
|
435 |
/**
|
436 |
* Checks if District is set
|
437 |
*
|
441 |
{
|
442 |
return !is_null($this->_fields['District']['FieldValue']);
|
443 |
}
|
444 |
+
|
445 |
/**
|
446 |
* Gets the value of the StateOrRegion property.
|
447 |
*
|
448 |
* @return string StateOrRegion
|
449 |
*/
|
450 |
+
public function getStateOrRegion()
|
451 |
{
|
452 |
return $this->_fields['StateOrRegion']['FieldValue'];
|
453 |
}
|
454 |
+
|
455 |
/**
|
456 |
* Sets the value of the StateOrRegion property.
|
457 |
*
|
458 |
* @param string StateOrRegion
|
459 |
* @return this instance
|
460 |
*/
|
461 |
+
public function setStateOrRegion($value)
|
462 |
{
|
463 |
$this->_fields['StateOrRegion']['FieldValue'] = $value;
|
464 |
return $this;
|
465 |
}
|
466 |
+
|
467 |
/**
|
468 |
* Sets the value of the StateOrRegion and returns this instance
|
469 |
*
|
475 |
$this->setStateOrRegion($value);
|
476 |
return $this;
|
477 |
}
|
478 |
+
|
479 |
+
|
480 |
/**
|
481 |
* Checks if StateOrRegion is set
|
482 |
*
|
486 |
{
|
487 |
return !is_null($this->_fields['StateOrRegion']['FieldValue']);
|
488 |
}
|
489 |
+
|
490 |
/**
|
491 |
* Gets the value of the PostalCode property.
|
492 |
*
|
493 |
* @return string PostalCode
|
494 |
*/
|
495 |
+
public function getPostalCode()
|
496 |
{
|
497 |
return $this->_fields['PostalCode']['FieldValue'];
|
498 |
}
|
499 |
+
|
500 |
/**
|
501 |
* Sets the value of the PostalCode property.
|
502 |
*
|
503 |
* @param string PostalCode
|
504 |
* @return this instance
|
505 |
*/
|
506 |
+
public function setPostalCode($value)
|
507 |
{
|
508 |
$this->_fields['PostalCode']['FieldValue'] = $value;
|
509 |
return $this;
|
510 |
}
|
511 |
+
|
512 |
/**
|
513 |
* Sets the value of the PostalCode and returns this instance
|
514 |
*
|
520 |
$this->setPostalCode($value);
|
521 |
return $this;
|
522 |
}
|
523 |
+
|
524 |
+
|
525 |
/**
|
526 |
* Checks if PostalCode is set
|
527 |
*
|
531 |
{
|
532 |
return !is_null($this->_fields['PostalCode']['FieldValue']);
|
533 |
}
|
534 |
+
|
535 |
/**
|
536 |
* Gets the value of the CountryCode property.
|
537 |
*
|
538 |
* @return string CountryCode
|
539 |
*/
|
540 |
+
public function getCountryCode()
|
541 |
{
|
542 |
return $this->_fields['CountryCode']['FieldValue'];
|
543 |
}
|
544 |
+
|
545 |
/**
|
546 |
* Sets the value of the CountryCode property.
|
547 |
*
|
548 |
* @param string CountryCode
|
549 |
* @return this instance
|
550 |
*/
|
551 |
+
public function setCountryCode($value)
|
552 |
{
|
553 |
$this->_fields['CountryCode']['FieldValue'] = $value;
|
554 |
return $this;
|
555 |
}
|
556 |
+
|
557 |
/**
|
558 |
* Sets the value of the CountryCode and returns this instance
|
559 |
*
|
565 |
$this->setCountryCode($value);
|
566 |
return $this;
|
567 |
}
|
568 |
+
|
569 |
+
|
570 |
/**
|
571 |
* Checks if CountryCode is set
|
572 |
*
|
576 |
{
|
577 |
return !is_null($this->_fields['CountryCode']['FieldValue']);
|
578 |
}
|
579 |
+
|
580 |
/**
|
581 |
* Gets the value of the Phone property.
|
582 |
*
|
583 |
* @return string Phone
|
584 |
*/
|
585 |
+
public function getPhone()
|
586 |
{
|
587 |
return $this->_fields['Phone']['FieldValue'];
|
588 |
}
|
589 |
+
|
590 |
/**
|
591 |
* Sets the value of the Phone property.
|
592 |
*
|
593 |
* @param string Phone
|
594 |
* @return this instance
|
595 |
*/
|
596 |
+
public function setPhone($value)
|
597 |
{
|
598 |
$this->_fields['Phone']['FieldValue'] = $value;
|
599 |
return $this;
|
600 |
}
|
601 |
+
|
602 |
/**
|
603 |
* Sets the value of the Phone and returns this instance
|
604 |
*
|
610 |
$this->setPhone($value);
|
611 |
return $this;
|
612 |
}
|
613 |
+
|
614 |
+
|
615 |
/**
|
616 |
* Checks if Phone is set
|
617 |
*
|
621 |
{
|
622 |
return !is_null($this->_fields['Phone']['FieldValue']);
|
623 |
}
|
624 |
+
|
625 |
+
}
|
lib/OffAmazonPaymentsService/Model/AuthorizationDetails.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*******************************************************************************
|
4 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -20,7 +19,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_AuthorizationDetails
|
@@ -45,10 +44,10 @@
|
|
45 |
* <li>AddressVerificationCode: string</li>
|
46 |
*
|
47 |
* </ul>
|
48 |
-
*/
|
49 |
class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPaymentsService_Model
|
50 |
{
|
51 |
-
|
52 |
/**
|
53 |
* Construct new OffAmazonPaymentsService_Model_AuthorizationDetails
|
54 |
*
|
@@ -77,60 +76,93 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
77 |
*/
|
78 |
public function __construct($data = null)
|
79 |
{
|
80 |
-
$this->_fields = array
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
);
|
109 |
parent::__construct($data);
|
110 |
}
|
111 |
-
|
112 |
/**
|
113 |
* Gets the value of the AmazonAuthorizationId property.
|
114 |
*
|
115 |
* @return string AmazonAuthorizationId
|
116 |
*/
|
117 |
-
public function getAmazonAuthorizationId()
|
118 |
{
|
119 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
120 |
}
|
121 |
-
|
122 |
/**
|
123 |
* Sets the value of the AmazonAuthorizationId property.
|
124 |
*
|
125 |
* @param string AmazonAuthorizationId
|
126 |
* @return this instance
|
127 |
*/
|
128 |
-
public function setAmazonAuthorizationId($value)
|
129 |
{
|
130 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
136 |
*
|
@@ -142,8 +174,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
142 |
$this->setAmazonAuthorizationId($value);
|
143 |
return $this;
|
144 |
}
|
145 |
-
|
146 |
-
|
147 |
/**
|
148 |
* Checks if AmazonAuthorizationId is set
|
149 |
*
|
@@ -153,29 +185,29 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
153 |
{
|
154 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
155 |
}
|
156 |
-
|
157 |
/**
|
158 |
* Gets the value of the AuthorizationReferenceId property.
|
159 |
*
|
160 |
* @return string AuthorizationReferenceId
|
161 |
*/
|
162 |
-
public function getAuthorizationReferenceId()
|
163 |
{
|
164 |
return $this->_fields['AuthorizationReferenceId']['FieldValue'];
|
165 |
}
|
166 |
-
|
167 |
/**
|
168 |
* Sets the value of the AuthorizationReferenceId property.
|
169 |
*
|
170 |
* @param string AuthorizationReferenceId
|
171 |
* @return this instance
|
172 |
*/
|
173 |
-
public function setAuthorizationReferenceId($value)
|
174 |
{
|
175 |
$this->_fields['AuthorizationReferenceId']['FieldValue'] = $value;
|
176 |
return $this;
|
177 |
}
|
178 |
-
|
179 |
/**
|
180 |
* Sets the value of the AuthorizationReferenceId and returns this instance
|
181 |
*
|
@@ -187,8 +219,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
187 |
$this->setAuthorizationReferenceId($value);
|
188 |
return $this;
|
189 |
}
|
190 |
-
|
191 |
-
|
192 |
/**
|
193 |
* Checks if AuthorizationReferenceId is set
|
194 |
*
|
@@ -206,7 +238,7 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
206 |
*/
|
207 |
public function getAuthorizationBillingAddress()
|
208 |
{
|
209 |
-
|
210 |
}
|
211 |
|
212 |
/**
|
@@ -217,8 +249,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
217 |
*/
|
218 |
public function setAuthorizationBillingAddress($value)
|
219 |
{
|
220 |
-
|
221 |
-
|
222 |
}
|
223 |
|
224 |
/**
|
@@ -229,8 +261,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
229 |
*/
|
230 |
public function withAuthorizationBillingAddress($value)
|
231 |
{
|
232 |
-
|
233 |
-
|
234 |
}
|
235 |
|
236 |
|
@@ -241,31 +273,31 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
241 |
*/
|
242 |
public function isSetAuthorizationBillingAddress()
|
243 |
{
|
244 |
-
|
245 |
}
|
246 |
-
|
247 |
/**
|
248 |
* Gets the value of the SellerAuthorizationNote property.
|
249 |
*
|
250 |
* @return string SellerAuthorizationNote
|
251 |
*/
|
252 |
-
public function getSellerAuthorizationNote()
|
253 |
{
|
254 |
return $this->_fields['SellerAuthorizationNote']['FieldValue'];
|
255 |
}
|
256 |
-
|
257 |
/**
|
258 |
* Sets the value of the SellerAuthorizationNote property.
|
259 |
*
|
260 |
* @param string SellerAuthorizationNote
|
261 |
* @return this instance
|
262 |
*/
|
263 |
-
public function setSellerAuthorizationNote($value)
|
264 |
{
|
265 |
$this->_fields['SellerAuthorizationNote']['FieldValue'] = $value;
|
266 |
return $this;
|
267 |
}
|
268 |
-
|
269 |
/**
|
270 |
* Sets the value of the SellerAuthorizationNote and returns this instance
|
271 |
*
|
@@ -277,8 +309,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
277 |
$this->setSellerAuthorizationNote($value);
|
278 |
return $this;
|
279 |
}
|
280 |
-
|
281 |
-
|
282 |
/**
|
283 |
* Checks if SellerAuthorizationNote is set
|
284 |
*
|
@@ -288,29 +320,29 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
288 |
{
|
289 |
return !is_null($this->_fields['SellerAuthorizationNote']['FieldValue']);
|
290 |
}
|
291 |
-
|
292 |
/**
|
293 |
* Gets the value of the AuthorizationAmount.
|
294 |
*
|
295 |
* @return Price AuthorizationAmount
|
296 |
*/
|
297 |
-
public function getAuthorizationAmount()
|
298 |
{
|
299 |
return $this->_fields['AuthorizationAmount']['FieldValue'];
|
300 |
}
|
301 |
-
|
302 |
/**
|
303 |
* Sets the value of the AuthorizationAmount.
|
304 |
*
|
305 |
* @param Price AuthorizationAmount
|
306 |
* @return void
|
307 |
*/
|
308 |
-
public function setAuthorizationAmount($value)
|
309 |
{
|
310 |
$this->_fields['AuthorizationAmount']['FieldValue'] = $value;
|
311 |
return;
|
312 |
}
|
313 |
-
|
314 |
/**
|
315 |
* Sets the value of the AuthorizationAmount and returns this instance
|
316 |
*
|
@@ -322,8 +354,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
322 |
$this->setAuthorizationAmount($value);
|
323 |
return $this;
|
324 |
}
|
325 |
-
|
326 |
-
|
327 |
/**
|
328 |
* Checks if AuthorizationAmount is set
|
329 |
*
|
@@ -332,31 +364,31 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
332 |
public function isSetAuthorizationAmount()
|
333 |
{
|
334 |
return !is_null($this->_fields['AuthorizationAmount']['FieldValue']);
|
335 |
-
|
336 |
}
|
337 |
-
|
338 |
/**
|
339 |
* Gets the value of the CapturedAmount.
|
340 |
*
|
341 |
* @return Price CapturedAmount
|
342 |
*/
|
343 |
-
public function getCapturedAmount()
|
344 |
{
|
345 |
return $this->_fields['CapturedAmount']['FieldValue'];
|
346 |
}
|
347 |
-
|
348 |
/**
|
349 |
* Sets the value of the CapturedAmount.
|
350 |
*
|
351 |
* @param Price CapturedAmount
|
352 |
* @return void
|
353 |
*/
|
354 |
-
public function setCapturedAmount($value)
|
355 |
{
|
356 |
$this->_fields['CapturedAmount']['FieldValue'] = $value;
|
357 |
return;
|
358 |
}
|
359 |
-
|
360 |
/**
|
361 |
* Sets the value of the CapturedAmount and returns this instance
|
362 |
*
|
@@ -368,8 +400,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
368 |
$this->setCapturedAmount($value);
|
369 |
return $this;
|
370 |
}
|
371 |
-
|
372 |
-
|
373 |
/**
|
374 |
* Checks if CapturedAmount is set
|
375 |
*
|
@@ -378,31 +410,31 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
378 |
public function isSetCapturedAmount()
|
379 |
{
|
380 |
return !is_null($this->_fields['CapturedAmount']['FieldValue']);
|
381 |
-
|
382 |
}
|
383 |
-
|
384 |
/**
|
385 |
* Gets the value of the AuthorizationFee.
|
386 |
*
|
387 |
* @return Price AuthorizationFee
|
388 |
*/
|
389 |
-
public function getAuthorizationFee()
|
390 |
{
|
391 |
return $this->_fields['AuthorizationFee']['FieldValue'];
|
392 |
}
|
393 |
-
|
394 |
/**
|
395 |
* Sets the value of the AuthorizationFee.
|
396 |
*
|
397 |
* @param Price AuthorizationFee
|
398 |
* @return void
|
399 |
*/
|
400 |
-
public function setAuthorizationFee($value)
|
401 |
{
|
402 |
$this->_fields['AuthorizationFee']['FieldValue'] = $value;
|
403 |
return;
|
404 |
}
|
405 |
-
|
406 |
/**
|
407 |
* Sets the value of the AuthorizationFee and returns this instance
|
408 |
*
|
@@ -414,8 +446,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
414 |
$this->setAuthorizationFee($value);
|
415 |
return $this;
|
416 |
}
|
417 |
-
|
418 |
-
|
419 |
/**
|
420 |
* Checks if AuthorizationFee is set
|
421 |
*
|
@@ -424,31 +456,31 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
424 |
public function isSetAuthorizationFee()
|
425 |
{
|
426 |
return !is_null($this->_fields['AuthorizationFee']['FieldValue']);
|
427 |
-
|
428 |
}
|
429 |
-
|
430 |
/**
|
431 |
* Gets the value of the IdList.
|
432 |
*
|
433 |
* @return IdList IdList
|
434 |
*/
|
435 |
-
public function getIdList()
|
436 |
{
|
437 |
return $this->_fields['IdList']['FieldValue'];
|
438 |
}
|
439 |
-
|
440 |
/**
|
441 |
* Sets the value of the IdList.
|
442 |
*
|
443 |
* @param IdList IdList
|
444 |
* @return void
|
445 |
*/
|
446 |
-
public function setIdList($value)
|
447 |
{
|
448 |
$this->_fields['IdList']['FieldValue'] = $value;
|
449 |
return;
|
450 |
}
|
451 |
-
|
452 |
/**
|
453 |
* Sets the value of the IdList and returns this instance
|
454 |
*
|
@@ -460,8 +492,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
460 |
$this->setIdList($value);
|
461 |
return $this;
|
462 |
}
|
463 |
-
|
464 |
-
|
465 |
/**
|
466 |
* Checks if IdList is set
|
467 |
*
|
@@ -470,31 +502,31 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
470 |
public function isSetIdList()
|
471 |
{
|
472 |
return !is_null($this->_fields['IdList']['FieldValue']);
|
473 |
-
|
474 |
}
|
475 |
-
|
476 |
/**
|
477 |
* Gets the value of the CreationTimestamp property.
|
478 |
*
|
479 |
* @return string CreationTimestamp
|
480 |
*/
|
481 |
-
public function getCreationTimestamp()
|
482 |
{
|
483 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
484 |
}
|
485 |
-
|
486 |
/**
|
487 |
* Sets the value of the CreationTimestamp property.
|
488 |
*
|
489 |
* @param string CreationTimestamp
|
490 |
* @return this instance
|
491 |
*/
|
492 |
-
public function setCreationTimestamp($value)
|
493 |
{
|
494 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
495 |
return $this;
|
496 |
}
|
497 |
-
|
498 |
/**
|
499 |
* Sets the value of the CreationTimestamp and returns this instance
|
500 |
*
|
@@ -506,8 +538,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
506 |
$this->setCreationTimestamp($value);
|
507 |
return $this;
|
508 |
}
|
509 |
-
|
510 |
-
|
511 |
/**
|
512 |
* Checks if CreationTimestamp is set
|
513 |
*
|
@@ -517,29 +549,29 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
517 |
{
|
518 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
519 |
}
|
520 |
-
|
521 |
/**
|
522 |
* Gets the value of the ExpirationTimestamp property.
|
523 |
*
|
524 |
* @return string ExpirationTimestamp
|
525 |
*/
|
526 |
-
public function getExpirationTimestamp()
|
527 |
{
|
528 |
return $this->_fields['ExpirationTimestamp']['FieldValue'];
|
529 |
}
|
530 |
-
|
531 |
/**
|
532 |
* Sets the value of the ExpirationTimestamp property.
|
533 |
*
|
534 |
* @param string ExpirationTimestamp
|
535 |
* @return this instance
|
536 |
*/
|
537 |
-
public function setExpirationTimestamp($value)
|
538 |
{
|
539 |
$this->_fields['ExpirationTimestamp']['FieldValue'] = $value;
|
540 |
return $this;
|
541 |
}
|
542 |
-
|
543 |
/**
|
544 |
* Sets the value of the ExpirationTimestamp and returns this instance
|
545 |
*
|
@@ -551,8 +583,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
551 |
$this->setExpirationTimestamp($value);
|
552 |
return $this;
|
553 |
}
|
554 |
-
|
555 |
-
|
556 |
/**
|
557 |
* Checks if ExpirationTimestamp is set
|
558 |
*
|
@@ -562,29 +594,29 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
562 |
{
|
563 |
return !is_null($this->_fields['ExpirationTimestamp']['FieldValue']);
|
564 |
}
|
565 |
-
|
566 |
/**
|
567 |
* Gets the value of the AuthorizationStatus.
|
568 |
*
|
569 |
* @return Status AuthorizationStatus
|
570 |
*/
|
571 |
-
public function getAuthorizationStatus()
|
572 |
{
|
573 |
return $this->_fields['AuthorizationStatus']['FieldValue'];
|
574 |
}
|
575 |
-
|
576 |
/**
|
577 |
* Sets the value of the AuthorizationStatus.
|
578 |
*
|
579 |
* @param Status AuthorizationStatus
|
580 |
* @return void
|
581 |
*/
|
582 |
-
public function setAuthorizationStatus($value)
|
583 |
{
|
584 |
$this->_fields['AuthorizationStatus']['FieldValue'] = $value;
|
585 |
return;
|
586 |
}
|
587 |
-
|
588 |
/**
|
589 |
* Sets the value of the AuthorizationStatus and returns this instance
|
590 |
*
|
@@ -596,8 +628,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
596 |
$this->setAuthorizationStatus($value);
|
597 |
return $this;
|
598 |
}
|
599 |
-
|
600 |
-
|
601 |
/**
|
602 |
* Checks if AuthorizationStatus is set
|
603 |
*
|
@@ -606,31 +638,31 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
606 |
public function isSetAuthorizationStatus()
|
607 |
{
|
608 |
return !is_null($this->_fields['AuthorizationStatus']['FieldValue']);
|
609 |
-
|
610 |
}
|
611 |
-
|
612 |
/**
|
613 |
* Gets the value of the OrderItemCategories.
|
614 |
*
|
615 |
* @return OrderItemCategories OrderItemCategories
|
616 |
*/
|
617 |
-
public function getOrderItemCategories()
|
618 |
{
|
619 |
return $this->_fields['OrderItemCategories']['FieldValue'];
|
620 |
}
|
621 |
-
|
622 |
/**
|
623 |
* Sets the value of the OrderItemCategories.
|
624 |
*
|
625 |
* @param OrderItemCategories OrderItemCategories
|
626 |
* @return void
|
627 |
*/
|
628 |
-
public function setOrderItemCategories($value)
|
629 |
{
|
630 |
$this->_fields['OrderItemCategories']['FieldValue'] = $value;
|
631 |
return;
|
632 |
}
|
633 |
-
|
634 |
/**
|
635 |
* Sets the value of the OrderItemCategories and returns this instance
|
636 |
*
|
@@ -642,8 +674,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
642 |
$this->setOrderItemCategories($value);
|
643 |
return $this;
|
644 |
}
|
645 |
-
|
646 |
-
|
647 |
/**
|
648 |
* Checks if OrderItemCategories is set
|
649 |
*
|
@@ -652,31 +684,31 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
652 |
public function isSetOrderItemCategories()
|
653 |
{
|
654 |
return !is_null($this->_fields['OrderItemCategories']['FieldValue']);
|
655 |
-
|
656 |
}
|
657 |
-
|
658 |
/**
|
659 |
* Gets the value of the CaptureNow property.
|
660 |
*
|
661 |
* @return bool CaptureNow
|
662 |
*/
|
663 |
-
public function getCaptureNow()
|
664 |
{
|
665 |
return $this->_fields['CaptureNow']['FieldValue'];
|
666 |
}
|
667 |
-
|
668 |
/**
|
669 |
* Sets the value of the CaptureNow property.
|
670 |
*
|
671 |
* @param bool CaptureNow
|
672 |
* @return this instance
|
673 |
*/
|
674 |
-
public function setCaptureNow($value)
|
675 |
{
|
676 |
$this->_fields['CaptureNow']['FieldValue'] = $value;
|
677 |
return $this;
|
678 |
}
|
679 |
-
|
680 |
/**
|
681 |
* Sets the value of the CaptureNow and returns this instance
|
682 |
*
|
@@ -688,8 +720,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
688 |
$this->setCaptureNow($value);
|
689 |
return $this;
|
690 |
}
|
691 |
-
|
692 |
-
|
693 |
/**
|
694 |
* Checks if CaptureNow is set
|
695 |
*
|
@@ -699,29 +731,29 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
699 |
{
|
700 |
return !is_null($this->_fields['CaptureNow']['FieldValue']);
|
701 |
}
|
702 |
-
|
703 |
/**
|
704 |
* Gets the value of the SoftDescriptor property.
|
705 |
*
|
706 |
* @return string SoftDescriptor
|
707 |
*/
|
708 |
-
public function getSoftDescriptor()
|
709 |
{
|
710 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
711 |
}
|
712 |
-
|
713 |
/**
|
714 |
* Sets the value of the SoftDescriptor property.
|
715 |
*
|
716 |
* @param string SoftDescriptor
|
717 |
* @return this instance
|
718 |
*/
|
719 |
-
public function setSoftDescriptor($value)
|
720 |
{
|
721 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
722 |
return $this;
|
723 |
}
|
724 |
-
|
725 |
/**
|
726 |
* Sets the value of the SoftDescriptor and returns this instance
|
727 |
*
|
@@ -733,8 +765,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
733 |
$this->setSoftDescriptor($value);
|
734 |
return $this;
|
735 |
}
|
736 |
-
|
737 |
-
|
738 |
/**
|
739 |
* Checks if SoftDescriptor is set
|
740 |
*
|
@@ -753,7 +785,7 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
753 |
*/
|
754 |
public function getAddressVerificationCode()
|
755 |
{
|
756 |
-
|
757 |
}
|
758 |
|
759 |
/**
|
@@ -764,8 +796,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
764 |
*/
|
765 |
public function setAddressVerificationCode($value)
|
766 |
{
|
767 |
-
|
768 |
-
|
769 |
}
|
770 |
|
771 |
/**
|
@@ -776,8 +808,8 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
776 |
*/
|
777 |
public function withAddressVerificationCode($value)
|
778 |
{
|
779 |
-
|
780 |
-
|
781 |
}
|
782 |
|
783 |
/**
|
@@ -787,7 +819,7 @@ class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPayme
|
|
787 |
*/
|
788 |
public function isSetAddressVerificationCode()
|
789 |
{
|
790 |
-
|
791 |
}
|
792 |
|
793 |
-
}
|
1 |
<?php
|
|
|
2 |
/*******************************************************************************
|
3 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
19 |
* @see OffAmazonPaymentsService_Model
|
20 |
*/
|
21 |
|
22 |
+
|
23 |
|
24 |
/**
|
25 |
* OffAmazonPaymentsService_Model_AuthorizationDetails
|
44 |
* <li>AddressVerificationCode: string</li>
|
45 |
*
|
46 |
* </ul>
|
47 |
+
*/
|
48 |
class OffAmazonPaymentsService_Model_AuthorizationDetails extends OffAmazonPaymentsService_Model
|
49 |
{
|
50 |
+
|
51 |
/**
|
52 |
* Construct new OffAmazonPaymentsService_Model_AuthorizationDetails
|
53 |
*
|
76 |
*/
|
77 |
public function __construct($data = null)
|
78 |
{
|
79 |
+
$this->_fields = array(
|
80 |
+
'AmazonAuthorizationId' => array(
|
81 |
+
'FieldValue' => null,
|
82 |
+
'FieldType' => 'string'
|
83 |
+
),
|
84 |
+
'AuthorizationReferenceId' => array(
|
85 |
+
'FieldValue' => null,
|
86 |
+
'FieldType' => 'string'
|
87 |
+
),
|
88 |
+
'AuthorizationBillingAddress' => array(
|
89 |
+
'FieldValue' => null,
|
90 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Address'
|
91 |
+
),
|
92 |
+
'SellerAuthorizationNote' => array(
|
93 |
+
'FieldValue' => null,
|
94 |
+
'FieldType' => 'string'
|
95 |
+
),
|
96 |
+
'AuthorizationAmount' => array(
|
97 |
+
'FieldValue' => null,
|
98 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
99 |
+
),
|
100 |
+
'CapturedAmount' => array(
|
101 |
+
'FieldValue' => null,
|
102 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
103 |
+
),
|
104 |
+
'AuthorizationFee' => array(
|
105 |
+
'FieldValue' => null,
|
106 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
107 |
+
),
|
108 |
+
'IdList' => array(
|
109 |
+
'FieldValue' => null,
|
110 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_IdList'
|
111 |
+
),
|
112 |
+
'CreationTimestamp' => array(
|
113 |
+
'FieldValue' => null,
|
114 |
+
'FieldType' => 'string'
|
115 |
+
),
|
116 |
+
'ExpirationTimestamp' => array(
|
117 |
+
'FieldValue' => null,
|
118 |
+
'FieldType' => 'string'
|
119 |
+
),
|
120 |
+
'AuthorizationStatus' => array(
|
121 |
+
'FieldValue' => null,
|
122 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Status'
|
123 |
+
),
|
124 |
+
'OrderItemCategories' => array(
|
125 |
+
'FieldValue' => null,
|
126 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderItemCategories'
|
127 |
+
),
|
128 |
+
'CaptureNow' => array(
|
129 |
+
'FieldValue' => null,
|
130 |
+
'FieldType' => 'bool'
|
131 |
+
),
|
132 |
+
'SoftDescriptor' => array(
|
133 |
+
'FieldValue' => null,
|
134 |
+
'FieldType' => 'string'
|
135 |
+
),
|
136 |
+
'AddressVerificationCode' => array(
|
137 |
+
'FieldValue' => null,
|
138 |
+
'FieldType' => 'string'
|
139 |
+
)
|
140 |
);
|
141 |
parent::__construct($data);
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Gets the value of the AmazonAuthorizationId property.
|
146 |
*
|
147 |
* @return string AmazonAuthorizationId
|
148 |
*/
|
149 |
+
public function getAmazonAuthorizationId()
|
150 |
{
|
151 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
152 |
}
|
153 |
+
|
154 |
/**
|
155 |
* Sets the value of the AmazonAuthorizationId property.
|
156 |
*
|
157 |
* @param string AmazonAuthorizationId
|
158 |
* @return this instance
|
159 |
*/
|
160 |
+
public function setAmazonAuthorizationId($value)
|
161 |
{
|
162 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
163 |
return $this;
|
164 |
}
|
165 |
+
|
166 |
/**
|
167 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
168 |
*
|
174 |
$this->setAmazonAuthorizationId($value);
|
175 |
return $this;
|
176 |
}
|
177 |
+
|
178 |
+
|
179 |
/**
|
180 |
* Checks if AmazonAuthorizationId is set
|
181 |
*
|
185 |
{
|
186 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
187 |
}
|
188 |
+
|
189 |
/**
|
190 |
* Gets the value of the AuthorizationReferenceId property.
|
191 |
*
|
192 |
* @return string AuthorizationReferenceId
|
193 |
*/
|
194 |
+
public function getAuthorizationReferenceId()
|
195 |
{
|
196 |
return $this->_fields['AuthorizationReferenceId']['FieldValue'];
|
197 |
}
|
198 |
+
|
199 |
/**
|
200 |
* Sets the value of the AuthorizationReferenceId property.
|
201 |
*
|
202 |
* @param string AuthorizationReferenceId
|
203 |
* @return this instance
|
204 |
*/
|
205 |
+
public function setAuthorizationReferenceId($value)
|
206 |
{
|
207 |
$this->_fields['AuthorizationReferenceId']['FieldValue'] = $value;
|
208 |
return $this;
|
209 |
}
|
210 |
+
|
211 |
/**
|
212 |
* Sets the value of the AuthorizationReferenceId and returns this instance
|
213 |
*
|
219 |
$this->setAuthorizationReferenceId($value);
|
220 |
return $this;
|
221 |
}
|
222 |
+
|
223 |
+
|
224 |
/**
|
225 |
* Checks if AuthorizationReferenceId is set
|
226 |
*
|
238 |
*/
|
239 |
public function getAuthorizationBillingAddress()
|
240 |
{
|
241 |
+
return $this->_fields['AuthorizationBillingAddress']['FieldValue'];
|
242 |
}
|
243 |
|
244 |
/**
|
249 |
*/
|
250 |
public function setAuthorizationBillingAddress($value)
|
251 |
{
|
252 |
+
$this->_fields['AuthorizationBillingAddress']['FieldValue'] = $value;
|
253 |
+
return $this;
|
254 |
}
|
255 |
|
256 |
/**
|
261 |
*/
|
262 |
public function withAuthorizationBillingAddress($value)
|
263 |
{
|
264 |
+
$this->setAuthorizationBillingAddress($value);
|
265 |
+
return $this;
|
266 |
}
|
267 |
|
268 |
|
273 |
*/
|
274 |
public function isSetAuthorizationBillingAddress()
|
275 |
{
|
276 |
+
return !is_null($this->_fields['AuthorizationBillingAddress']['FieldValue']);
|
277 |
}
|
278 |
+
|
279 |
/**
|
280 |
* Gets the value of the SellerAuthorizationNote property.
|
281 |
*
|
282 |
* @return string SellerAuthorizationNote
|
283 |
*/
|
284 |
+
public function getSellerAuthorizationNote()
|
285 |
{
|
286 |
return $this->_fields['SellerAuthorizationNote']['FieldValue'];
|
287 |
}
|
288 |
+
|
289 |
/**
|
290 |
* Sets the value of the SellerAuthorizationNote property.
|
291 |
*
|
292 |
* @param string SellerAuthorizationNote
|
293 |
* @return this instance
|
294 |
*/
|
295 |
+
public function setSellerAuthorizationNote($value)
|
296 |
{
|
297 |
$this->_fields['SellerAuthorizationNote']['FieldValue'] = $value;
|
298 |
return $this;
|
299 |
}
|
300 |
+
|
301 |
/**
|
302 |
* Sets the value of the SellerAuthorizationNote and returns this instance
|
303 |
*
|
309 |
$this->setSellerAuthorizationNote($value);
|
310 |
return $this;
|
311 |
}
|
312 |
+
|
313 |
+
|
314 |
/**
|
315 |
* Checks if SellerAuthorizationNote is set
|
316 |
*
|
320 |
{
|
321 |
return !is_null($this->_fields['SellerAuthorizationNote']['FieldValue']);
|
322 |
}
|
323 |
+
|
324 |
/**
|
325 |
* Gets the value of the AuthorizationAmount.
|
326 |
*
|
327 |
* @return Price AuthorizationAmount
|
328 |
*/
|
329 |
+
public function getAuthorizationAmount()
|
330 |
{
|
331 |
return $this->_fields['AuthorizationAmount']['FieldValue'];
|
332 |
}
|
333 |
+
|
334 |
/**
|
335 |
* Sets the value of the AuthorizationAmount.
|
336 |
*
|
337 |
* @param Price AuthorizationAmount
|
338 |
* @return void
|
339 |
*/
|
340 |
+
public function setAuthorizationAmount($value)
|
341 |
{
|
342 |
$this->_fields['AuthorizationAmount']['FieldValue'] = $value;
|
343 |
return;
|
344 |
}
|
345 |
+
|
346 |
/**
|
347 |
* Sets the value of the AuthorizationAmount and returns this instance
|
348 |
*
|
354 |
$this->setAuthorizationAmount($value);
|
355 |
return $this;
|
356 |
}
|
357 |
+
|
358 |
+
|
359 |
/**
|
360 |
* Checks if AuthorizationAmount is set
|
361 |
*
|
364 |
public function isSetAuthorizationAmount()
|
365 |
{
|
366 |
return !is_null($this->_fields['AuthorizationAmount']['FieldValue']);
|
367 |
+
|
368 |
}
|
369 |
+
|
370 |
/**
|
371 |
* Gets the value of the CapturedAmount.
|
372 |
*
|
373 |
* @return Price CapturedAmount
|
374 |
*/
|
375 |
+
public function getCapturedAmount()
|
376 |
{
|
377 |
return $this->_fields['CapturedAmount']['FieldValue'];
|
378 |
}
|
379 |
+
|
380 |
/**
|
381 |
* Sets the value of the CapturedAmount.
|
382 |
*
|
383 |
* @param Price CapturedAmount
|
384 |
* @return void
|
385 |
*/
|
386 |
+
public function setCapturedAmount($value)
|
387 |
{
|
388 |
$this->_fields['CapturedAmount']['FieldValue'] = $value;
|
389 |
return;
|
390 |
}
|
391 |
+
|
392 |
/**
|
393 |
* Sets the value of the CapturedAmount and returns this instance
|
394 |
*
|
400 |
$this->setCapturedAmount($value);
|
401 |
return $this;
|
402 |
}
|
403 |
+
|
404 |
+
|
405 |
/**
|
406 |
* Checks if CapturedAmount is set
|
407 |
*
|
410 |
public function isSetCapturedAmount()
|
411 |
{
|
412 |
return !is_null($this->_fields['CapturedAmount']['FieldValue']);
|
413 |
+
|
414 |
}
|
415 |
+
|
416 |
/**
|
417 |
* Gets the value of the AuthorizationFee.
|
418 |
*
|
419 |
* @return Price AuthorizationFee
|
420 |
*/
|
421 |
+
public function getAuthorizationFee()
|
422 |
{
|
423 |
return $this->_fields['AuthorizationFee']['FieldValue'];
|
424 |
}
|
425 |
+
|
426 |
/**
|
427 |
* Sets the value of the AuthorizationFee.
|
428 |
*
|
429 |
* @param Price AuthorizationFee
|
430 |
* @return void
|
431 |
*/
|
432 |
+
public function setAuthorizationFee($value)
|
433 |
{
|
434 |
$this->_fields['AuthorizationFee']['FieldValue'] = $value;
|
435 |
return;
|
436 |
}
|
437 |
+
|
438 |
/**
|
439 |
* Sets the value of the AuthorizationFee and returns this instance
|
440 |
*
|
446 |
$this->setAuthorizationFee($value);
|
447 |
return $this;
|
448 |
}
|
449 |
+
|
450 |
+
|
451 |
/**
|
452 |
* Checks if AuthorizationFee is set
|
453 |
*
|
456 |
public function isSetAuthorizationFee()
|
457 |
{
|
458 |
return !is_null($this->_fields['AuthorizationFee']['FieldValue']);
|
459 |
+
|
460 |
}
|
461 |
+
|
462 |
/**
|
463 |
* Gets the value of the IdList.
|
464 |
*
|
465 |
* @return IdList IdList
|
466 |
*/
|
467 |
+
public function getIdList()
|
468 |
{
|
469 |
return $this->_fields['IdList']['FieldValue'];
|
470 |
}
|
471 |
+
|
472 |
/**
|
473 |
* Sets the value of the IdList.
|
474 |
*
|
475 |
* @param IdList IdList
|
476 |
* @return void
|
477 |
*/
|
478 |
+
public function setIdList($value)
|
479 |
{
|
480 |
$this->_fields['IdList']['FieldValue'] = $value;
|
481 |
return;
|
482 |
}
|
483 |
+
|
484 |
/**
|
485 |
* Sets the value of the IdList and returns this instance
|
486 |
*
|
492 |
$this->setIdList($value);
|
493 |
return $this;
|
494 |
}
|
495 |
+
|
496 |
+
|
497 |
/**
|
498 |
* Checks if IdList is set
|
499 |
*
|
502 |
public function isSetIdList()
|
503 |
{
|
504 |
return !is_null($this->_fields['IdList']['FieldValue']);
|
505 |
+
|
506 |
}
|
507 |
+
|
508 |
/**
|
509 |
* Gets the value of the CreationTimestamp property.
|
510 |
*
|
511 |
* @return string CreationTimestamp
|
512 |
*/
|
513 |
+
public function getCreationTimestamp()
|
514 |
{
|
515 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
516 |
}
|
517 |
+
|
518 |
/**
|
519 |
* Sets the value of the CreationTimestamp property.
|
520 |
*
|
521 |
* @param string CreationTimestamp
|
522 |
* @return this instance
|
523 |
*/
|
524 |
+
public function setCreationTimestamp($value)
|
525 |
{
|
526 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
527 |
return $this;
|
528 |
}
|
529 |
+
|
530 |
/**
|
531 |
* Sets the value of the CreationTimestamp and returns this instance
|
532 |
*
|
538 |
$this->setCreationTimestamp($value);
|
539 |
return $this;
|
540 |
}
|
541 |
+
|
542 |
+
|
543 |
/**
|
544 |
* Checks if CreationTimestamp is set
|
545 |
*
|
549 |
{
|
550 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
551 |
}
|
552 |
+
|
553 |
/**
|
554 |
* Gets the value of the ExpirationTimestamp property.
|
555 |
*
|
556 |
* @return string ExpirationTimestamp
|
557 |
*/
|
558 |
+
public function getExpirationTimestamp()
|
559 |
{
|
560 |
return $this->_fields['ExpirationTimestamp']['FieldValue'];
|
561 |
}
|
562 |
+
|
563 |
/**
|
564 |
* Sets the value of the ExpirationTimestamp property.
|
565 |
*
|
566 |
* @param string ExpirationTimestamp
|
567 |
* @return this instance
|
568 |
*/
|
569 |
+
public function setExpirationTimestamp($value)
|
570 |
{
|
571 |
$this->_fields['ExpirationTimestamp']['FieldValue'] = $value;
|
572 |
return $this;
|
573 |
}
|
574 |
+
|
575 |
/**
|
576 |
* Sets the value of the ExpirationTimestamp and returns this instance
|
577 |
*
|
583 |
$this->setExpirationTimestamp($value);
|
584 |
return $this;
|
585 |
}
|
586 |
+
|
587 |
+
|
588 |
/**
|
589 |
* Checks if ExpirationTimestamp is set
|
590 |
*
|
594 |
{
|
595 |
return !is_null($this->_fields['ExpirationTimestamp']['FieldValue']);
|
596 |
}
|
597 |
+
|
598 |
/**
|
599 |
* Gets the value of the AuthorizationStatus.
|
600 |
*
|
601 |
* @return Status AuthorizationStatus
|
602 |
*/
|
603 |
+
public function getAuthorizationStatus()
|
604 |
{
|
605 |
return $this->_fields['AuthorizationStatus']['FieldValue'];
|
606 |
}
|
607 |
+
|
608 |
/**
|
609 |
* Sets the value of the AuthorizationStatus.
|
610 |
*
|
611 |
* @param Status AuthorizationStatus
|
612 |
* @return void
|
613 |
*/
|
614 |
+
public function setAuthorizationStatus($value)
|
615 |
{
|
616 |
$this->_fields['AuthorizationStatus']['FieldValue'] = $value;
|
617 |
return;
|
618 |
}
|
619 |
+
|
620 |
/**
|
621 |
* Sets the value of the AuthorizationStatus and returns this instance
|
622 |
*
|
628 |
$this->setAuthorizationStatus($value);
|
629 |
return $this;
|
630 |
}
|
631 |
+
|
632 |
+
|
633 |
/**
|
634 |
* Checks if AuthorizationStatus is set
|
635 |
*
|
638 |
public function isSetAuthorizationStatus()
|
639 |
{
|
640 |
return !is_null($this->_fields['AuthorizationStatus']['FieldValue']);
|
641 |
+
|
642 |
}
|
643 |
+
|
644 |
/**
|
645 |
* Gets the value of the OrderItemCategories.
|
646 |
*
|
647 |
* @return OrderItemCategories OrderItemCategories
|
648 |
*/
|
649 |
+
public function getOrderItemCategories()
|
650 |
{
|
651 |
return $this->_fields['OrderItemCategories']['FieldValue'];
|
652 |
}
|
653 |
+
|
654 |
/**
|
655 |
* Sets the value of the OrderItemCategories.
|
656 |
*
|
657 |
* @param OrderItemCategories OrderItemCategories
|
658 |
* @return void
|
659 |
*/
|
660 |
+
public function setOrderItemCategories($value)
|
661 |
{
|
662 |
$this->_fields['OrderItemCategories']['FieldValue'] = $value;
|
663 |
return;
|
664 |
}
|
665 |
+
|
666 |
/**
|
667 |
* Sets the value of the OrderItemCategories and returns this instance
|
668 |
*
|
674 |
$this->setOrderItemCategories($value);
|
675 |
return $this;
|
676 |
}
|
677 |
+
|
678 |
+
|
679 |
/**
|
680 |
* Checks if OrderItemCategories is set
|
681 |
*
|
684 |
public function isSetOrderItemCategories()
|
685 |
{
|
686 |
return !is_null($this->_fields['OrderItemCategories']['FieldValue']);
|
687 |
+
|
688 |
}
|
689 |
+
|
690 |
/**
|
691 |
* Gets the value of the CaptureNow property.
|
692 |
*
|
693 |
* @return bool CaptureNow
|
694 |
*/
|
695 |
+
public function getCaptureNow()
|
696 |
{
|
697 |
return $this->_fields['CaptureNow']['FieldValue'];
|
698 |
}
|
699 |
+
|
700 |
/**
|
701 |
* Sets the value of the CaptureNow property.
|
702 |
*
|
703 |
* @param bool CaptureNow
|
704 |
* @return this instance
|
705 |
*/
|
706 |
+
public function setCaptureNow($value)
|
707 |
{
|
708 |
$this->_fields['CaptureNow']['FieldValue'] = $value;
|
709 |
return $this;
|
710 |
}
|
711 |
+
|
712 |
/**
|
713 |
* Sets the value of the CaptureNow and returns this instance
|
714 |
*
|
720 |
$this->setCaptureNow($value);
|
721 |
return $this;
|
722 |
}
|
723 |
+
|
724 |
+
|
725 |
/**
|
726 |
* Checks if CaptureNow is set
|
727 |
*
|
731 |
{
|
732 |
return !is_null($this->_fields['CaptureNow']['FieldValue']);
|
733 |
}
|
734 |
+
|
735 |
/**
|
736 |
* Gets the value of the SoftDescriptor property.
|
737 |
*
|
738 |
* @return string SoftDescriptor
|
739 |
*/
|
740 |
+
public function getSoftDescriptor()
|
741 |
{
|
742 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
743 |
}
|
744 |
+
|
745 |
/**
|
746 |
* Sets the value of the SoftDescriptor property.
|
747 |
*
|
748 |
* @param string SoftDescriptor
|
749 |
* @return this instance
|
750 |
*/
|
751 |
+
public function setSoftDescriptor($value)
|
752 |
{
|
753 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
754 |
return $this;
|
755 |
}
|
756 |
+
|
757 |
/**
|
758 |
* Sets the value of the SoftDescriptor and returns this instance
|
759 |
*
|
765 |
$this->setSoftDescriptor($value);
|
766 |
return $this;
|
767 |
}
|
768 |
+
|
769 |
+
|
770 |
/**
|
771 |
* Checks if SoftDescriptor is set
|
772 |
*
|
785 |
*/
|
786 |
public function getAddressVerificationCode()
|
787 |
{
|
788 |
+
return $this->_fields['AddressVerificationCode']['FieldValue'];
|
789 |
}
|
790 |
|
791 |
/**
|
796 |
*/
|
797 |
public function setAddressVerificationCode($value)
|
798 |
{
|
799 |
+
$this->_fields['AddressVerificationCode']['FieldValue'] = $value;
|
800 |
+
return $this;
|
801 |
}
|
802 |
|
803 |
/**
|
808 |
*/
|
809 |
public function withAddressVerificationCode($value)
|
810 |
{
|
811 |
+
$this->setAddressVerificationCode($value);
|
812 |
+
return $this;
|
813 |
}
|
814 |
|
815 |
/**
|
819 |
*/
|
820 |
public function isSetAddressVerificationCode()
|
821 |
{
|
822 |
+
return !is_null($this->_fields['AddressVerificationCode']['FieldValue']);
|
823 |
}
|
824 |
|
825 |
+
}
|
lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementRequest.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*******************************************************************************
|
4 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -39,7 +38,7 @@
|
|
39 |
*/
|
40 |
class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest extends OffAmazonPaymentsService_Model
|
41 |
{
|
42 |
-
|
43 |
/**
|
44 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest
|
45 |
*
|
@@ -63,7 +62,7 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest extends
|
|
63 |
*
|
64 |
* </ul>
|
65 |
*/
|
66 |
-
public function __construct
|
67 |
{
|
68 |
$this->_fields = array(
|
69 |
'SellerId' => array(
|
@@ -117,536 +116,574 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest extends
|
|
117 |
'InheritShippingAddress' => array(
|
118 |
'FieldValue' => null,
|
119 |
'FieldType' => 'bool'
|
|
|
|
|
|
|
|
|
|
|
120 |
)
|
121 |
);
|
122 |
parent::__construct($data);
|
123 |
}
|
124 |
-
|
125 |
/**
|
126 |
* Gets the value of the SellerId property.
|
127 |
*
|
128 |
* @return string SellerId
|
129 |
*/
|
130 |
-
public function getSellerId
|
131 |
{
|
132 |
return $this->_fields['SellerId']['FieldValue'];
|
133 |
}
|
134 |
-
|
135 |
/**
|
136 |
* Sets the value of the SellerId property.
|
137 |
*
|
138 |
* @param string SellerId
|
139 |
* @return this instance
|
140 |
*/
|
141 |
-
public function setSellerId
|
142 |
{
|
143 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
144 |
return $this;
|
145 |
}
|
146 |
-
|
147 |
/**
|
148 |
* Sets the value of the SellerId and returns this instance
|
149 |
*
|
150 |
* @param string $value SellerId
|
151 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
152 |
*/
|
153 |
-
public function withSellerId
|
154 |
{
|
155 |
$this->setSellerId($value);
|
156 |
return $this;
|
157 |
}
|
158 |
-
|
159 |
/**
|
160 |
* Checks if SellerId is set
|
161 |
*
|
162 |
* @return bool true if SellerId is set
|
163 |
*/
|
164 |
-
public function isSetSellerId
|
165 |
{
|
166 |
-
return !
|
167 |
}
|
168 |
-
|
169 |
/**
|
170 |
* Gets the value of the AmazonBillingAgreementId property.
|
171 |
*
|
172 |
* @return string AmazonBillingAgreementId
|
173 |
*/
|
174 |
-
public function getAmazonBillingAgreementId
|
175 |
{
|
176 |
return $this->_fields['AmazonBillingAgreementId']['FieldValue'];
|
177 |
}
|
178 |
-
|
179 |
/**
|
180 |
* Sets the value of the AmazonBillingAgreementId property.
|
181 |
*
|
182 |
* @param string AmazonBillingAgreementId
|
183 |
* @return this instance
|
184 |
*/
|
185 |
-
public function setAmazonBillingAgreementId
|
186 |
{
|
187 |
$this->_fields['AmazonBillingAgreementId']['FieldValue'] = $value;
|
188 |
return $this;
|
189 |
}
|
190 |
-
|
191 |
/**
|
192 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
193 |
*
|
194 |
* @param string $value AmazonBillingAgreementId
|
195 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
196 |
*/
|
197 |
-
public function withAmazonBillingAgreementId
|
198 |
{
|
199 |
$this->setAmazonBillingAgreementId($value);
|
200 |
return $this;
|
201 |
}
|
202 |
-
|
203 |
/**
|
204 |
* Checks if AmazonBillingAgreementId is set
|
205 |
*
|
206 |
* @return bool true if AmazonBillingAgreementId is set
|
207 |
*/
|
208 |
-
public function isSetAmazonBillingAgreementId
|
209 |
{
|
210 |
-
return !
|
211 |
}
|
212 |
-
|
213 |
/**
|
214 |
* Gets the value of the AuthorizationReferenceId property.
|
215 |
*
|
216 |
* @return string AuthorizationReferenceId
|
217 |
*/
|
218 |
-
public function getAuthorizationReferenceId
|
219 |
{
|
220 |
return $this->_fields['AuthorizationReferenceId']['FieldValue'];
|
221 |
}
|
222 |
-
|
223 |
/**
|
224 |
* Sets the value of the AuthorizationReferenceId property.
|
225 |
*
|
226 |
* @param string AuthorizationReferenceId
|
227 |
* @return this instance
|
228 |
*/
|
229 |
-
public function setAuthorizationReferenceId
|
230 |
{
|
231 |
$this->_fields['AuthorizationReferenceId']['FieldValue'] = $value;
|
232 |
return $this;
|
233 |
}
|
234 |
-
|
235 |
/**
|
236 |
* Sets the value of the AuthorizationReferenceId and returns this instance
|
237 |
*
|
238 |
* @param string $value AuthorizationReferenceId
|
239 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
240 |
*/
|
241 |
-
public function withAuthorizationReferenceId
|
242 |
{
|
243 |
$this->setAuthorizationReferenceId($value);
|
244 |
return $this;
|
245 |
}
|
246 |
-
|
247 |
/**
|
248 |
* Checks if AuthorizationReferenceId is set
|
249 |
*
|
250 |
* @return bool true if AuthorizationReferenceId is set
|
251 |
*/
|
252 |
-
public function isSetAuthorizationReferenceId
|
253 |
{
|
254 |
-
return !
|
255 |
}
|
256 |
-
|
257 |
/**
|
258 |
* Gets the value of the AuthorizationAmount.
|
259 |
*
|
260 |
* @return Price AuthorizationAmount
|
261 |
*/
|
262 |
-
public function getAuthorizationAmount
|
263 |
{
|
264 |
return $this->_fields['AuthorizationAmount']['FieldValue'];
|
265 |
}
|
266 |
-
|
267 |
/**
|
268 |
* Sets the value of the AuthorizationAmount.
|
269 |
*
|
270 |
* @param Price AuthorizationAmount
|
271 |
* @return void
|
272 |
*/
|
273 |
-
public function setAuthorizationAmount
|
274 |
{
|
275 |
$this->_fields['AuthorizationAmount']['FieldValue'] = $value;
|
276 |
return;
|
277 |
}
|
278 |
-
|
279 |
/**
|
280 |
* Sets the value of the AuthorizationAmount and returns this instance
|
281 |
*
|
282 |
* @param Price $value AuthorizationAmount
|
283 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
284 |
*/
|
285 |
-
public function withAuthorizationAmount
|
286 |
{
|
287 |
$this->setAuthorizationAmount($value);
|
288 |
return $this;
|
289 |
}
|
290 |
-
|
291 |
/**
|
292 |
* Checks if AuthorizationAmount is set
|
293 |
*
|
294 |
* @return bool true if AuthorizationAmount property is set
|
295 |
*/
|
296 |
-
public function isSetAuthorizationAmount
|
297 |
{
|
298 |
-
return !
|
299 |
}
|
300 |
-
|
301 |
/**
|
302 |
* Gets the value of the SellerAuthorizationNote property.
|
303 |
*
|
304 |
* @return string SellerAuthorizationNote
|
305 |
*/
|
306 |
-
public function getSellerAuthorizationNote
|
307 |
{
|
308 |
return $this->_fields['SellerAuthorizationNote']['FieldValue'];
|
309 |
}
|
310 |
-
|
311 |
/**
|
312 |
* Sets the value of the SellerAuthorizationNote property.
|
313 |
*
|
314 |
* @param string SellerAuthorizationNote
|
315 |
* @return this instance
|
316 |
*/
|
317 |
-
public function setSellerAuthorizationNote
|
318 |
{
|
319 |
$this->_fields['SellerAuthorizationNote']['FieldValue'] = $value;
|
320 |
return $this;
|
321 |
}
|
322 |
-
|
323 |
/**
|
324 |
* Sets the value of the SellerAuthorizationNote and returns this instance
|
325 |
*
|
326 |
* @param string $value SellerAuthorizationNote
|
327 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
328 |
*/
|
329 |
-
public function withSellerAuthorizationNote
|
330 |
{
|
331 |
$this->setSellerAuthorizationNote($value);
|
332 |
return $this;
|
333 |
}
|
334 |
-
|
335 |
/**
|
336 |
* Checks if SellerAuthorizationNote is set
|
337 |
*
|
338 |
* @return bool true if SellerAuthorizationNote is set
|
339 |
*/
|
340 |
-
public function isSetSellerAuthorizationNote
|
341 |
{
|
342 |
-
return !
|
343 |
}
|
344 |
-
|
345 |
/**
|
346 |
* Gets the value of the TransactionTimeout property.
|
347 |
*
|
348 |
* @return int TransactionTimeout
|
349 |
*/
|
350 |
-
public function getTransactionTimeout
|
351 |
{
|
352 |
return $this->_fields['TransactionTimeout']['FieldValue'];
|
353 |
}
|
354 |
-
|
355 |
/**
|
356 |
* Sets the value of the TransactionTimeout property.
|
357 |
*
|
358 |
* @param int TransactionTimeout
|
359 |
* @return this instance
|
360 |
*/
|
361 |
-
public function setTransactionTimeout
|
362 |
{
|
363 |
$this->_fields['TransactionTimeout']['FieldValue'] = $value;
|
364 |
return $this;
|
365 |
}
|
366 |
-
|
367 |
/**
|
368 |
* Sets the value of the TransactionTimeout and returns this instance
|
369 |
*
|
370 |
* @param int $value TransactionTimeout
|
371 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
372 |
*/
|
373 |
-
public function withTransactionTimeout
|
374 |
{
|
375 |
$this->setTransactionTimeout($value);
|
376 |
return $this;
|
377 |
}
|
378 |
-
|
379 |
/**
|
380 |
* Checks if TransactionTimeout is set
|
381 |
*
|
382 |
* @return bool true if TransactionTimeout is set
|
383 |
*/
|
384 |
-
public function isSetTransactionTimeout
|
385 |
{
|
386 |
-
return !
|
387 |
}
|
388 |
-
|
389 |
/**
|
390 |
* Gets the value of the CaptureNow property.
|
391 |
*
|
392 |
* @return bool CaptureNow
|
393 |
*/
|
394 |
-
public function getCaptureNow
|
395 |
{
|
396 |
return $this->_fields['CaptureNow']['FieldValue'];
|
397 |
}
|
398 |
-
|
399 |
/**
|
400 |
* Sets the value of the CaptureNow property.
|
401 |
*
|
402 |
* @param bool CaptureNow
|
403 |
* @return this instance
|
404 |
*/
|
405 |
-
public function setCaptureNow
|
406 |
{
|
407 |
$this->_fields['CaptureNow']['FieldValue'] = $value;
|
408 |
return $this;
|
409 |
}
|
410 |
-
|
411 |
/**
|
412 |
* Sets the value of the CaptureNow and returns this instance
|
413 |
*
|
414 |
* @param bool $value CaptureNow
|
415 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
416 |
*/
|
417 |
-
public function withCaptureNow
|
418 |
{
|
419 |
$this->setCaptureNow($value);
|
420 |
return $this;
|
421 |
}
|
422 |
-
|
423 |
/**
|
424 |
* Checks if CaptureNow is set
|
425 |
*
|
426 |
* @return bool true if CaptureNow is set
|
427 |
*/
|
428 |
-
public function isSetCaptureNow
|
429 |
{
|
430 |
-
return !
|
431 |
}
|
432 |
-
|
433 |
/**
|
434 |
* Gets the value of the SoftDescriptor property.
|
435 |
*
|
436 |
* @return string SoftDescriptor
|
437 |
*/
|
438 |
-
public function getSoftDescriptor
|
439 |
{
|
440 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
441 |
}
|
442 |
-
|
443 |
/**
|
444 |
* Sets the value of the SoftDescriptor property.
|
445 |
*
|
446 |
* @param string SoftDescriptor
|
447 |
* @return this instance
|
448 |
*/
|
449 |
-
public function setSoftDescriptor
|
450 |
{
|
451 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
452 |
return $this;
|
453 |
}
|
454 |
-
|
455 |
/**
|
456 |
* Sets the value of the SoftDescriptor and returns this instance
|
457 |
*
|
458 |
* @param string $value SoftDescriptor
|
459 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
460 |
*/
|
461 |
-
public function withSoftDescriptor
|
462 |
{
|
463 |
$this->setSoftDescriptor($value);
|
464 |
return $this;
|
465 |
}
|
466 |
-
|
467 |
/**
|
468 |
* Checks if SoftDescriptor is set
|
469 |
*
|
470 |
* @return bool true if SoftDescriptor is set
|
471 |
*/
|
472 |
-
public function isSetSoftDescriptor
|
473 |
{
|
474 |
-
return !
|
475 |
}
|
476 |
-
|
477 |
/**
|
478 |
* Gets the value of the SellerNote property.
|
479 |
*
|
480 |
* @return string SellerNote
|
481 |
*/
|
482 |
-
public function getSellerNote
|
483 |
{
|
484 |
return $this->_fields['SellerNote']['FieldValue'];
|
485 |
}
|
486 |
-
|
487 |
/**
|
488 |
* Sets the value of the SellerNote property.
|
489 |
*
|
490 |
* @param string SellerNote
|
491 |
* @return this instance
|
492 |
*/
|
493 |
-
public function setSellerNote
|
494 |
{
|
495 |
$this->_fields['SellerNote']['FieldValue'] = $value;
|
496 |
return $this;
|
497 |
}
|
498 |
-
|
499 |
/**
|
500 |
* Sets the value of the SellerNote and returns this instance
|
501 |
*
|
502 |
* @param string $value SellerNote
|
503 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
504 |
*/
|
505 |
-
public function withSellerNote
|
506 |
{
|
507 |
$this->setSellerNote($value);
|
508 |
return $this;
|
509 |
}
|
510 |
-
|
511 |
/**
|
512 |
* Checks if SellerNote is set
|
513 |
*
|
514 |
* @return bool true if SellerNote is set
|
515 |
*/
|
516 |
-
public function isSetSellerNote
|
517 |
{
|
518 |
-
return !
|
519 |
}
|
520 |
-
|
521 |
/**
|
522 |
* Gets the value of the PlatformId property.
|
523 |
*
|
524 |
* @return string PlatformId
|
525 |
*/
|
526 |
-
public function getPlatformId
|
527 |
{
|
528 |
return $this->_fields['PlatformId']['FieldValue'];
|
529 |
}
|
530 |
-
|
531 |
/**
|
532 |
* Sets the value of the PlatformId property.
|
533 |
*
|
534 |
* @param string PlatformId
|
535 |
* @return this instance
|
536 |
*/
|
537 |
-
public function setPlatformId
|
538 |
{
|
539 |
$this->_fields['PlatformId']['FieldValue'] = $value;
|
540 |
return $this;
|
541 |
}
|
542 |
-
|
543 |
/**
|
544 |
* Sets the value of the PlatformId and returns this instance
|
545 |
*
|
546 |
* @param string $value PlatformId
|
547 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
548 |
*/
|
549 |
-
public function withPlatformId
|
550 |
{
|
551 |
$this->setPlatformId($value);
|
552 |
return $this;
|
553 |
}
|
554 |
-
|
555 |
/**
|
556 |
* Checks if PlatformId is set
|
557 |
*
|
558 |
* @return bool true if PlatformId is set
|
559 |
*/
|
560 |
-
public function isSetPlatformId
|
561 |
{
|
562 |
-
return !
|
563 |
}
|
564 |
-
|
565 |
/**
|
566 |
* Gets the value of the SellerOrderAttributes.
|
567 |
*
|
568 |
* @return SellerOrderAttributes SellerOrderAttributes
|
569 |
*/
|
570 |
-
public function getSellerOrderAttributes
|
571 |
{
|
572 |
return $this->_fields['SellerOrderAttributes']['FieldValue'];
|
573 |
}
|
574 |
-
|
575 |
/**
|
576 |
* Sets the value of the SellerOrderAttributes.
|
577 |
*
|
578 |
* @param SellerOrderAttributes SellerOrderAttributes
|
579 |
* @return void
|
580 |
*/
|
581 |
-
public function setSellerOrderAttributes
|
582 |
{
|
583 |
$this->_fields['SellerOrderAttributes']['FieldValue'] = $value;
|
584 |
return;
|
585 |
}
|
586 |
-
|
587 |
/**
|
588 |
* Sets the value of the SellerOrderAttributes and returns this instance
|
589 |
*
|
590 |
* @param SellerOrderAttributes $value SellerOrderAttributes
|
591 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
592 |
*/
|
593 |
-
public function withSellerOrderAttributes
|
594 |
{
|
595 |
$this->setSellerOrderAttributes($value);
|
596 |
return $this;
|
597 |
}
|
598 |
-
|
599 |
/**
|
600 |
* Checks if SellerOrderAttributes is set
|
601 |
*
|
602 |
* @return bool true if SellerOrderAttributes property is set
|
603 |
*/
|
604 |
-
public function isSetSellerOrderAttributes
|
605 |
{
|
606 |
-
return !
|
607 |
}
|
608 |
-
|
609 |
/**
|
610 |
* Gets the value of the InheritShippingAddress property.
|
611 |
*
|
612 |
* @return bool InheritShippingAddress
|
613 |
*/
|
614 |
-
public function getInheritShippingAddress
|
615 |
{
|
616 |
return $this->_fields['InheritShippingAddress']['FieldValue'];
|
617 |
}
|
618 |
-
|
619 |
/**
|
620 |
* Sets the value of the InheritShippingAddress property.
|
621 |
*
|
622 |
* @param bool InheritShippingAddress
|
623 |
* @return this instance
|
624 |
*/
|
625 |
-
public function setInheritShippingAddress
|
626 |
{
|
627 |
$this->_fields['InheritShippingAddress']['FieldValue'] = $value;
|
628 |
return $this;
|
629 |
}
|
630 |
-
|
631 |
/**
|
632 |
* Sets the value of the InheritShippingAddress and returns this instance
|
633 |
*
|
634 |
* @param bool $value InheritShippingAddress
|
635 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
636 |
*/
|
637 |
-
public function withInheritShippingAddress
|
638 |
{
|
639 |
$this->setInheritShippingAddress($value);
|
640 |
return $this;
|
641 |
}
|
642 |
-
|
643 |
/**
|
644 |
* Checks if InheritShippingAddress is set
|
645 |
*
|
646 |
* @return bool true if InheritShippingAddress is set
|
647 |
*/
|
648 |
-
public function isSetInheritShippingAddress
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
649 |
{
|
650 |
-
return !
|
651 |
}
|
652 |
-
}
|
1 |
<?php
|
|
|
2 |
/*******************************************************************************
|
3 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
38 |
*/
|
39 |
class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest extends OffAmazonPaymentsService_Model
|
40 |
{
|
41 |
+
|
42 |
/**
|
43 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest
|
44 |
*
|
62 |
*
|
63 |
* </ul>
|
64 |
*/
|
65 |
+
public function __construct($data = null)
|
66 |
{
|
67 |
$this->_fields = array(
|
68 |
'SellerId' => array(
|
116 |
'InheritShippingAddress' => array(
|
117 |
'FieldValue' => null,
|
118 |
'FieldType' => 'bool'
|
119 |
+
),
|
120 |
+
|
121 |
+
'MWSAuthToken' => array(
|
122 |
+
'FieldValue' => null,
|
123 |
+
'FieldType' => 'string'
|
124 |
)
|
125 |
);
|
126 |
parent::__construct($data);
|
127 |
}
|
128 |
+
|
129 |
/**
|
130 |
* Gets the value of the SellerId property.
|
131 |
*
|
132 |
* @return string SellerId
|
133 |
*/
|
134 |
+
public function getSellerId()
|
135 |
{
|
136 |
return $this->_fields['SellerId']['FieldValue'];
|
137 |
}
|
138 |
+
|
139 |
/**
|
140 |
* Sets the value of the SellerId property.
|
141 |
*
|
142 |
* @param string SellerId
|
143 |
* @return this instance
|
144 |
*/
|
145 |
+
public function setSellerId($value)
|
146 |
{
|
147 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
148 |
return $this;
|
149 |
}
|
150 |
+
|
151 |
/**
|
152 |
* Sets the value of the SellerId and returns this instance
|
153 |
*
|
154 |
* @param string $value SellerId
|
155 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
156 |
*/
|
157 |
+
public function withSellerId($value)
|
158 |
{
|
159 |
$this->setSellerId($value);
|
160 |
return $this;
|
161 |
}
|
162 |
+
|
163 |
/**
|
164 |
* Checks if SellerId is set
|
165 |
*
|
166 |
* @return bool true if SellerId is set
|
167 |
*/
|
168 |
+
public function isSetSellerId()
|
169 |
{
|
170 |
+
return !is_null($this->_fields['SellerId']['FieldValue']);
|
171 |
}
|
172 |
+
|
173 |
/**
|
174 |
* Gets the value of the AmazonBillingAgreementId property.
|
175 |
*
|
176 |
* @return string AmazonBillingAgreementId
|
177 |
*/
|
178 |
+
public function getAmazonBillingAgreementId()
|
179 |
{
|
180 |
return $this->_fields['AmazonBillingAgreementId']['FieldValue'];
|
181 |
}
|
182 |
+
|
183 |
/**
|
184 |
* Sets the value of the AmazonBillingAgreementId property.
|
185 |
*
|
186 |
* @param string AmazonBillingAgreementId
|
187 |
* @return this instance
|
188 |
*/
|
189 |
+
public function setAmazonBillingAgreementId($value)
|
190 |
{
|
191 |
$this->_fields['AmazonBillingAgreementId']['FieldValue'] = $value;
|
192 |
return $this;
|
193 |
}
|
194 |
+
|
195 |
/**
|
196 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
197 |
*
|
198 |
* @param string $value AmazonBillingAgreementId
|
199 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
200 |
*/
|
201 |
+
public function withAmazonBillingAgreementId($value)
|
202 |
{
|
203 |
$this->setAmazonBillingAgreementId($value);
|
204 |
return $this;
|
205 |
}
|
206 |
+
|
207 |
/**
|
208 |
* Checks if AmazonBillingAgreementId is set
|
209 |
*
|
210 |
* @return bool true if AmazonBillingAgreementId is set
|
211 |
*/
|
212 |
+
public function isSetAmazonBillingAgreementId()
|
213 |
{
|
214 |
+
return !is_null($this->_fields['AmazonBillingAgreementId']['FieldValue']);
|
215 |
}
|
216 |
+
|
217 |
/**
|
218 |
* Gets the value of the AuthorizationReferenceId property.
|
219 |
*
|
220 |
* @return string AuthorizationReferenceId
|
221 |
*/
|
222 |
+
public function getAuthorizationReferenceId()
|
223 |
{
|
224 |
return $this->_fields['AuthorizationReferenceId']['FieldValue'];
|
225 |
}
|
226 |
+
|
227 |
/**
|
228 |
* Sets the value of the AuthorizationReferenceId property.
|
229 |
*
|
230 |
* @param string AuthorizationReferenceId
|
231 |
* @return this instance
|
232 |
*/
|
233 |
+
public function setAuthorizationReferenceId($value)
|
234 |
{
|
235 |
$this->_fields['AuthorizationReferenceId']['FieldValue'] = $value;
|
236 |
return $this;
|
237 |
}
|
238 |
+
|
239 |
/**
|
240 |
* Sets the value of the AuthorizationReferenceId and returns this instance
|
241 |
*
|
242 |
* @param string $value AuthorizationReferenceId
|
243 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
244 |
*/
|
245 |
+
public function withAuthorizationReferenceId($value)
|
246 |
{
|
247 |
$this->setAuthorizationReferenceId($value);
|
248 |
return $this;
|
249 |
}
|
250 |
+
|
251 |
/**
|
252 |
* Checks if AuthorizationReferenceId is set
|
253 |
*
|
254 |
* @return bool true if AuthorizationReferenceId is set
|
255 |
*/
|
256 |
+
public function isSetAuthorizationReferenceId()
|
257 |
{
|
258 |
+
return !is_null($this->_fields['AuthorizationReferenceId']['FieldValue']);
|
259 |
}
|
260 |
+
|
261 |
/**
|
262 |
* Gets the value of the AuthorizationAmount.
|
263 |
*
|
264 |
* @return Price AuthorizationAmount
|
265 |
*/
|
266 |
+
public function getAuthorizationAmount()
|
267 |
{
|
268 |
return $this->_fields['AuthorizationAmount']['FieldValue'];
|
269 |
}
|
270 |
+
|
271 |
/**
|
272 |
* Sets the value of the AuthorizationAmount.
|
273 |
*
|
274 |
* @param Price AuthorizationAmount
|
275 |
* @return void
|
276 |
*/
|
277 |
+
public function setAuthorizationAmount($value)
|
278 |
{
|
279 |
$this->_fields['AuthorizationAmount']['FieldValue'] = $value;
|
280 |
return;
|
281 |
}
|
282 |
+
|
283 |
/**
|
284 |
* Sets the value of the AuthorizationAmount and returns this instance
|
285 |
*
|
286 |
* @param Price $value AuthorizationAmount
|
287 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
288 |
*/
|
289 |
+
public function withAuthorizationAmount($value)
|
290 |
{
|
291 |
$this->setAuthorizationAmount($value);
|
292 |
return $this;
|
293 |
}
|
294 |
+
|
295 |
/**
|
296 |
* Checks if AuthorizationAmount is set
|
297 |
*
|
298 |
* @return bool true if AuthorizationAmount property is set
|
299 |
*/
|
300 |
+
public function isSetAuthorizationAmount()
|
301 |
{
|
302 |
+
return !is_null($this->_fields['AuthorizationAmount']['FieldValue']);
|
303 |
}
|
304 |
+
|
305 |
/**
|
306 |
* Gets the value of the SellerAuthorizationNote property.
|
307 |
*
|
308 |
* @return string SellerAuthorizationNote
|
309 |
*/
|
310 |
+
public function getSellerAuthorizationNote()
|
311 |
{
|
312 |
return $this->_fields['SellerAuthorizationNote']['FieldValue'];
|
313 |
}
|
314 |
+
|
315 |
/**
|
316 |
* Sets the value of the SellerAuthorizationNote property.
|
317 |
*
|
318 |
* @param string SellerAuthorizationNote
|
319 |
* @return this instance
|
320 |
*/
|
321 |
+
public function setSellerAuthorizationNote($value)
|
322 |
{
|
323 |
$this->_fields['SellerAuthorizationNote']['FieldValue'] = $value;
|
324 |
return $this;
|
325 |
}
|
326 |
+
|
327 |
/**
|
328 |
* Sets the value of the SellerAuthorizationNote and returns this instance
|
329 |
*
|
330 |
* @param string $value SellerAuthorizationNote
|
331 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
332 |
*/
|
333 |
+
public function withSellerAuthorizationNote($value)
|
334 |
{
|
335 |
$this->setSellerAuthorizationNote($value);
|
336 |
return $this;
|
337 |
}
|
338 |
+
|
339 |
/**
|
340 |
* Checks if SellerAuthorizationNote is set
|
341 |
*
|
342 |
* @return bool true if SellerAuthorizationNote is set
|
343 |
*/
|
344 |
+
public function isSetSellerAuthorizationNote()
|
345 |
{
|
346 |
+
return !is_null($this->_fields['SellerAuthorizationNote']['FieldValue']);
|
347 |
}
|
348 |
+
|
349 |
/**
|
350 |
* Gets the value of the TransactionTimeout property.
|
351 |
*
|
352 |
* @return int TransactionTimeout
|
353 |
*/
|
354 |
+
public function getTransactionTimeout()
|
355 |
{
|
356 |
return $this->_fields['TransactionTimeout']['FieldValue'];
|
357 |
}
|
358 |
+
|
359 |
/**
|
360 |
* Sets the value of the TransactionTimeout property.
|
361 |
*
|
362 |
* @param int TransactionTimeout
|
363 |
* @return this instance
|
364 |
*/
|
365 |
+
public function setTransactionTimeout($value)
|
366 |
{
|
367 |
$this->_fields['TransactionTimeout']['FieldValue'] = $value;
|
368 |
return $this;
|
369 |
}
|
370 |
+
|
371 |
/**
|
372 |
* Sets the value of the TransactionTimeout and returns this instance
|
373 |
*
|
374 |
* @param int $value TransactionTimeout
|
375 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
376 |
*/
|
377 |
+
public function withTransactionTimeout($value)
|
378 |
{
|
379 |
$this->setTransactionTimeout($value);
|
380 |
return $this;
|
381 |
}
|
382 |
+
|
383 |
/**
|
384 |
* Checks if TransactionTimeout is set
|
385 |
*
|
386 |
* @return bool true if TransactionTimeout is set
|
387 |
*/
|
388 |
+
public function isSetTransactionTimeout()
|
389 |
{
|
390 |
+
return !is_null($this->_fields['TransactionTimeout']['FieldValue']);
|
391 |
}
|
392 |
+
|
393 |
/**
|
394 |
* Gets the value of the CaptureNow property.
|
395 |
*
|
396 |
* @return bool CaptureNow
|
397 |
*/
|
398 |
+
public function getCaptureNow()
|
399 |
{
|
400 |
return $this->_fields['CaptureNow']['FieldValue'];
|
401 |
}
|
402 |
+
|
403 |
/**
|
404 |
* Sets the value of the CaptureNow property.
|
405 |
*
|
406 |
* @param bool CaptureNow
|
407 |
* @return this instance
|
408 |
*/
|
409 |
+
public function setCaptureNow($value)
|
410 |
{
|
411 |
$this->_fields['CaptureNow']['FieldValue'] = $value;
|
412 |
return $this;
|
413 |
}
|
414 |
+
|
415 |
/**
|
416 |
* Sets the value of the CaptureNow and returns this instance
|
417 |
*
|
418 |
* @param bool $value CaptureNow
|
419 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
420 |
*/
|
421 |
+
public function withCaptureNow($value)
|
422 |
{
|
423 |
$this->setCaptureNow($value);
|
424 |
return $this;
|
425 |
}
|
426 |
+
|
427 |
/**
|
428 |
* Checks if CaptureNow is set
|
429 |
*
|
430 |
* @return bool true if CaptureNow is set
|
431 |
*/
|
432 |
+
public function isSetCaptureNow()
|
433 |
{
|
434 |
+
return !is_null($this->_fields['CaptureNow']['FieldValue']);
|
435 |
}
|
436 |
+
|
437 |
/**
|
438 |
* Gets the value of the SoftDescriptor property.
|
439 |
*
|
440 |
* @return string SoftDescriptor
|
441 |
*/
|
442 |
+
public function getSoftDescriptor()
|
443 |
{
|
444 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
445 |
}
|
446 |
+
|
447 |
/**
|
448 |
* Sets the value of the SoftDescriptor property.
|
449 |
*
|
450 |
* @param string SoftDescriptor
|
451 |
* @return this instance
|
452 |
*/
|
453 |
+
public function setSoftDescriptor($value)
|
454 |
{
|
455 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
456 |
return $this;
|
457 |
}
|
458 |
+
|
459 |
/**
|
460 |
* Sets the value of the SoftDescriptor and returns this instance
|
461 |
*
|
462 |
* @param string $value SoftDescriptor
|
463 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
464 |
*/
|
465 |
+
public function withSoftDescriptor($value)
|
466 |
{
|
467 |
$this->setSoftDescriptor($value);
|
468 |
return $this;
|
469 |
}
|
470 |
+
|
471 |
/**
|
472 |
* Checks if SoftDescriptor is set
|
473 |
*
|
474 |
* @return bool true if SoftDescriptor is set
|
475 |
*/
|
476 |
+
public function isSetSoftDescriptor()
|
477 |
{
|
478 |
+
return !is_null($this->_fields['SoftDescriptor']['FieldValue']);
|
479 |
}
|
480 |
+
|
481 |
/**
|
482 |
* Gets the value of the SellerNote property.
|
483 |
*
|
484 |
* @return string SellerNote
|
485 |
*/
|
486 |
+
public function getSellerNote()
|
487 |
{
|
488 |
return $this->_fields['SellerNote']['FieldValue'];
|
489 |
}
|
490 |
+
|
491 |
/**
|
492 |
* Sets the value of the SellerNote property.
|
493 |
*
|
494 |
* @param string SellerNote
|
495 |
* @return this instance
|
496 |
*/
|
497 |
+
public function setSellerNote($value)
|
498 |
{
|
499 |
$this->_fields['SellerNote']['FieldValue'] = $value;
|
500 |
return $this;
|
501 |
}
|
502 |
+
|
503 |
/**
|
504 |
* Sets the value of the SellerNote and returns this instance
|
505 |
*
|
506 |
* @param string $value SellerNote
|
507 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
508 |
*/
|
509 |
+
public function withSellerNote($value)
|
510 |
{
|
511 |
$this->setSellerNote($value);
|
512 |
return $this;
|
513 |
}
|
514 |
+
|
515 |
/**
|
516 |
* Checks if SellerNote is set
|
517 |
*
|
518 |
* @return bool true if SellerNote is set
|
519 |
*/
|
520 |
+
public function isSetSellerNote()
|
521 |
{
|
522 |
+
return !is_null($this->_fields['SellerNote']['FieldValue']);
|
523 |
}
|
524 |
+
|
525 |
/**
|
526 |
* Gets the value of the PlatformId property.
|
527 |
*
|
528 |
* @return string PlatformId
|
529 |
*/
|
530 |
+
public function getPlatformId()
|
531 |
{
|
532 |
return $this->_fields['PlatformId']['FieldValue'];
|
533 |
}
|
534 |
+
|
535 |
/**
|
536 |
* Sets the value of the PlatformId property.
|
537 |
*
|
538 |
* @param string PlatformId
|
539 |
* @return this instance
|
540 |
*/
|
541 |
+
public function setPlatformId($value)
|
542 |
{
|
543 |
$this->_fields['PlatformId']['FieldValue'] = $value;
|
544 |
return $this;
|
545 |
}
|
546 |
+
|
547 |
/**
|
548 |
* Sets the value of the PlatformId and returns this instance
|
549 |
*
|
550 |
* @param string $value PlatformId
|
551 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
552 |
*/
|
553 |
+
public function withPlatformId($value)
|
554 |
{
|
555 |
$this->setPlatformId($value);
|
556 |
return $this;
|
557 |
}
|
558 |
+
|
559 |
/**
|
560 |
* Checks if PlatformId is set
|
561 |
*
|
562 |
* @return bool true if PlatformId is set
|
563 |
*/
|
564 |
+
public function isSetPlatformId()
|
565 |
{
|
566 |
+
return !is_null($this->_fields['PlatformId']['FieldValue']);
|
567 |
}
|
568 |
+
|
569 |
/**
|
570 |
* Gets the value of the SellerOrderAttributes.
|
571 |
*
|
572 |
* @return SellerOrderAttributes SellerOrderAttributes
|
573 |
*/
|
574 |
+
public function getSellerOrderAttributes()
|
575 |
{
|
576 |
return $this->_fields['SellerOrderAttributes']['FieldValue'];
|
577 |
}
|
578 |
+
|
579 |
/**
|
580 |
* Sets the value of the SellerOrderAttributes.
|
581 |
*
|
582 |
* @param SellerOrderAttributes SellerOrderAttributes
|
583 |
* @return void
|
584 |
*/
|
585 |
+
public function setSellerOrderAttributes($value)
|
586 |
{
|
587 |
$this->_fields['SellerOrderAttributes']['FieldValue'] = $value;
|
588 |
return;
|
589 |
}
|
590 |
+
|
591 |
/**
|
592 |
* Sets the value of the SellerOrderAttributes and returns this instance
|
593 |
*
|
594 |
* @param SellerOrderAttributes $value SellerOrderAttributes
|
595 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
596 |
*/
|
597 |
+
public function withSellerOrderAttributes($value)
|
598 |
{
|
599 |
$this->setSellerOrderAttributes($value);
|
600 |
return $this;
|
601 |
}
|
602 |
+
|
603 |
/**
|
604 |
* Checks if SellerOrderAttributes is set
|
605 |
*
|
606 |
* @return bool true if SellerOrderAttributes property is set
|
607 |
*/
|
608 |
+
public function isSetSellerOrderAttributes()
|
609 |
{
|
610 |
+
return !is_null($this->_fields['SellerOrderAttributes']['FieldValue']);
|
611 |
}
|
612 |
+
|
613 |
/**
|
614 |
* Gets the value of the InheritShippingAddress property.
|
615 |
*
|
616 |
* @return bool InheritShippingAddress
|
617 |
*/
|
618 |
+
public function getInheritShippingAddress()
|
619 |
{
|
620 |
return $this->_fields['InheritShippingAddress']['FieldValue'];
|
621 |
}
|
622 |
+
|
623 |
/**
|
624 |
* Sets the value of the InheritShippingAddress property.
|
625 |
*
|
626 |
* @param bool InheritShippingAddress
|
627 |
* @return this instance
|
628 |
*/
|
629 |
+
public function setInheritShippingAddress($value)
|
630 |
{
|
631 |
$this->_fields['InheritShippingAddress']['FieldValue'] = $value;
|
632 |
return $this;
|
633 |
}
|
634 |
+
|
635 |
/**
|
636 |
* Sets the value of the InheritShippingAddress and returns this instance
|
637 |
*
|
638 |
* @param bool $value InheritShippingAddress
|
639 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementRequest instance
|
640 |
*/
|
641 |
+
public function withInheritShippingAddress($value)
|
642 |
{
|
643 |
$this->setInheritShippingAddress($value);
|
644 |
return $this;
|
645 |
}
|
646 |
+
|
647 |
/**
|
648 |
* Checks if InheritShippingAddress is set
|
649 |
*
|
650 |
* @return bool true if InheritShippingAddress is set
|
651 |
*/
|
652 |
+
public function isSetInheritShippingAddress()
|
653 |
+
{
|
654 |
+
return !is_null($this->_fields['InheritShippingAddress']['FieldValue']);
|
655 |
+
}
|
656 |
+
|
657 |
+
/**
|
658 |
+
* Gets the value of the MWSAuthToken property.
|
659 |
+
*
|
660 |
+
* @return string MWSAuthToken
|
661 |
+
*/
|
662 |
+
public function getMWSAuthToken()
|
663 |
+
{
|
664 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
665 |
+
}
|
666 |
+
|
667 |
+
/**
|
668 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
669 |
+
*
|
670 |
+
* @param string $value MWSAuthToken
|
671 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
672 |
+
*/
|
673 |
+
public function setMWSAuthToken($value)
|
674 |
+
{
|
675 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
676 |
+
return $this;
|
677 |
+
}
|
678 |
+
|
679 |
+
|
680 |
+
/**
|
681 |
+
* Checks if MWSAuthToken is set
|
682 |
+
*
|
683 |
+
* @return bool true if MWSAuthToken is set
|
684 |
+
*/
|
685 |
+
public function isSetMWSAuthToken()
|
686 |
{
|
687 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
688 |
}
|
689 |
+
}
|
lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResponse.php
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse extends OffAmazonPaymentsService_Model
|
31 |
{
|
32 |
-
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse
|
35 |
*
|
@@ -43,7 +43,7 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse extends
|
|
43 |
*
|
44 |
* </ul>
|
45 |
*/
|
46 |
-
public function __construct
|
47 |
{
|
48 |
$this->_fields = array(
|
49 |
|
@@ -56,129 +56,125 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse extends
|
|
56 |
'FieldValue' => null,
|
57 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
58 |
)
|
59 |
-
)
|
60 |
-
;
|
61 |
parent::__construct($data);
|
62 |
}
|
63 |
-
|
64 |
/**
|
65 |
* Construct OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse from XML string
|
66 |
*
|
67 |
* @param string $xml XML string to construct from
|
68 |
-
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse
|
69 |
*/
|
70 |
-
public static function fromXML
|
71 |
{
|
72 |
$dom = new DOMDocument();
|
73 |
$dom->loadXML($xml);
|
74 |
$xpath = new DOMXPath($dom);
|
75 |
-
$xpath->registerNamespace('a',
|
76 |
-
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
77 |
$response = $xpath->query('//a:AuthorizeOnBillingAgreementResponse');
|
78 |
if ($response->length == 1) {
|
79 |
-
return new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse(
|
80 |
-
($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception(
|
83 |
-
"Unable to construct OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse from provided XML.
|
84 |
Make sure that AuthorizeOnBillingAgreementResponse is a root element");
|
85 |
}
|
86 |
}
|
87 |
-
|
88 |
/**
|
89 |
* Gets the value of the AuthorizeOnBillingAgreementResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getAuthorizeOnBillingAgreementResult
|
94 |
{
|
95 |
return $this->_fields['AuthorizeOnBillingAgreementResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the AuthorizeOnBillingAgreementResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setAuthorizeOnBillingAgreementResult
|
105 |
{
|
106 |
$this->_fields['AuthorizeOnBillingAgreementResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the AuthorizeOnBillingAgreementResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse instance
|
115 |
*/
|
116 |
-
public function withAuthorizeOnBillingAgreementResult
|
117 |
{
|
118 |
$this->setAuthorizeOnBillingAgreementResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
/**
|
123 |
* Checks if AuthorizeOnBillingAgreementResult is set
|
124 |
*
|
125 |
* @return bool true if AuthorizeOnBillingAgreementResult property is set
|
126 |
*/
|
127 |
-
public function isSetAuthorizeOnBillingAgreementResult
|
128 |
{
|
129 |
-
return !
|
130 |
}
|
131 |
-
|
132 |
/**
|
133 |
* Gets the value of the ResponseMetadata.
|
134 |
*
|
135 |
-
* @return
|
136 |
*/
|
137 |
-
public function getResponseMetadata
|
138 |
{
|
139 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
140 |
}
|
141 |
-
|
142 |
/**
|
143 |
* Sets the value of the ResponseMetadata.
|
144 |
*
|
145 |
-
* @param
|
146 |
* @return void
|
147 |
*/
|
148 |
-
public function setResponseMetadata
|
149 |
{
|
150 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
151 |
return;
|
152 |
}
|
153 |
-
|
154 |
/**
|
155 |
* Sets the value of the ResponseMetadata and returns this instance
|
156 |
*
|
157 |
-
* @param
|
158 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse instance
|
159 |
*/
|
160 |
-
public function withResponseMetadata
|
161 |
{
|
162 |
$this->setResponseMetadata($value);
|
163 |
return $this;
|
164 |
}
|
165 |
-
|
166 |
/**
|
167 |
* Checks if ResponseMetadata is set
|
168 |
*
|
169 |
* @return bool true if ResponseMetadata property is set
|
170 |
*/
|
171 |
-
public function isSetResponseMetadata
|
172 |
{
|
173 |
-
return !
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* XML Representation for this object
|
178 |
*
|
179 |
* @return string XML for this object
|
180 |
*/
|
181 |
-
public function toXML
|
182 |
{
|
183 |
$xml = "";
|
184 |
$xml .= "<AuthorizeOnBillingAgreementResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -186,16 +182,16 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse extends
|
|
186 |
$xml .= "</AuthorizeOnBillingAgreementResponse>";
|
187 |
return $xml;
|
188 |
}
|
189 |
-
|
190 |
private $_responseHeaderMetadata = null;
|
191 |
-
|
192 |
-
public function getResponseHeaderMetadata
|
193 |
{
|
194 |
return $this->_responseHeaderMetadata;
|
195 |
}
|
196 |
-
|
197 |
-
public function setResponseHeaderMetadata
|
198 |
{
|
199 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
200 |
}
|
201 |
-
}
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse extends OffAmazonPaymentsService_Model
|
31 |
{
|
32 |
+
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse
|
35 |
*
|
43 |
*
|
44 |
* </ul>
|
45 |
*/
|
46 |
+
public function __construct($data = null)
|
47 |
{
|
48 |
$this->_fields = array(
|
49 |
|
56 |
'FieldValue' => null,
|
57 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
58 |
)
|
59 |
+
);
|
|
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
/**
|
64 |
* Construct OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse from XML string
|
65 |
*
|
66 |
* @param string $xml XML string to construct from
|
67 |
+
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse AuthorizeOnBillingAgreementResponse
|
68 |
*/
|
69 |
+
public static function fromXML($xml)
|
70 |
{
|
71 |
$dom = new DOMDocument();
|
72 |
$dom->loadXML($xml);
|
73 |
$xpath = new DOMXPath($dom);
|
74 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
|
|
75 |
$response = $xpath->query('//a:AuthorizeOnBillingAgreementResponse');
|
76 |
if ($response->length == 1) {
|
77 |
+
return new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse(($response->item(0)));
|
|
|
78 |
} else {
|
79 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse from provided XML.
|
|
|
80 |
Make sure that AuthorizeOnBillingAgreementResponse is a root element");
|
81 |
}
|
82 |
}
|
83 |
+
|
84 |
/**
|
85 |
* Gets the value of the AuthorizeOnBillingAgreementResult.
|
86 |
*
|
87 |
+
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult AuthorizeOnBillingAgreementResult
|
88 |
*/
|
89 |
+
public function getAuthorizeOnBillingAgreementResult()
|
90 |
{
|
91 |
return $this->_fields['AuthorizeOnBillingAgreementResult']['FieldValue'];
|
92 |
}
|
93 |
+
|
94 |
/**
|
95 |
* Sets the value of the AuthorizeOnBillingAgreementResult.
|
96 |
*
|
97 |
+
* @param OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult $value
|
98 |
* @return void
|
99 |
*/
|
100 |
+
public function setAuthorizeOnBillingAgreementResult($value)
|
101 |
{
|
102 |
$this->_fields['AuthorizeOnBillingAgreementResult']['FieldValue'] = $value;
|
103 |
return;
|
104 |
}
|
105 |
+
|
106 |
/**
|
107 |
* Sets the value of the AuthorizeOnBillingAgreementResult and returns this instance
|
108 |
*
|
109 |
+
* @param OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult $value
|
110 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse instance
|
111 |
*/
|
112 |
+
public function withAuthorizeOnBillingAgreementResult($value)
|
113 |
{
|
114 |
$this->setAuthorizeOnBillingAgreementResult($value);
|
115 |
return $this;
|
116 |
}
|
117 |
+
|
118 |
/**
|
119 |
* Checks if AuthorizeOnBillingAgreementResult is set
|
120 |
*
|
121 |
* @return bool true if AuthorizeOnBillingAgreementResult property is set
|
122 |
*/
|
123 |
+
public function isSetAuthorizeOnBillingAgreementResult()
|
124 |
{
|
125 |
+
return !is_null($this->_fields['AuthorizeOnBillingAgreementResult']['FieldValue']);
|
126 |
}
|
127 |
+
|
128 |
/**
|
129 |
* Gets the value of the ResponseMetadata.
|
130 |
*
|
131 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
132 |
*/
|
133 |
+
public function getResponseMetadata()
|
134 |
{
|
135 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
136 |
}
|
137 |
+
|
138 |
/**
|
139 |
* Sets the value of the ResponseMetadata.
|
140 |
*
|
141 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value
|
142 |
* @return void
|
143 |
*/
|
144 |
+
public function setResponseMetadata($value)
|
145 |
{
|
146 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
147 |
return;
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata and returns this instance
|
152 |
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value
|
154 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResponse instance
|
155 |
*/
|
156 |
+
public function withResponseMetadata($value)
|
157 |
{
|
158 |
$this->setResponseMetadata($value);
|
159 |
return $this;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Checks if ResponseMetadata is set
|
164 |
*
|
165 |
* @return bool true if ResponseMetadata property is set
|
166 |
*/
|
167 |
+
public function isSetResponseMetadata()
|
168 |
{
|
169 |
+
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
170 |
}
|
171 |
+
|
172 |
/**
|
173 |
* XML Representation for this object
|
174 |
*
|
175 |
* @return string XML for this object
|
176 |
*/
|
177 |
+
public function toXML()
|
178 |
{
|
179 |
$xml = "";
|
180 |
$xml .= "<AuthorizeOnBillingAgreementResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
182 |
$xml .= "</AuthorizeOnBillingAgreementResponse>";
|
183 |
return $xml;
|
184 |
}
|
185 |
+
|
186 |
private $_responseHeaderMetadata = null;
|
187 |
+
|
188 |
+
public function getResponseHeaderMetadata()
|
189 |
{
|
190 |
return $this->_responseHeaderMetadata;
|
191 |
}
|
192 |
+
|
193 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
194 |
{
|
195 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
196 |
}
|
197 |
+
}
|
lib/OffAmazonPaymentsService/Model/AuthorizeOnBillingAgreementResult.php
CHANGED
@@ -28,7 +28,7 @@
|
|
28 |
*/
|
29 |
class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult extends OffAmazonPaymentsService_Model
|
30 |
{
|
31 |
-
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult
|
34 |
*
|
@@ -42,7 +42,7 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult extends O
|
|
42 |
*
|
43 |
* </ul>
|
44 |
*/
|
45 |
-
public function __construct
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
|
@@ -58,92 +58,92 @@ class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult extends O
|
|
58 |
);
|
59 |
parent::__construct($data);
|
60 |
}
|
61 |
-
|
62 |
/**
|
63 |
* Gets the value of the AuthorizationDetails.
|
64 |
*
|
65 |
-
* @return
|
66 |
*/
|
67 |
-
public function getAuthorizationDetails
|
68 |
{
|
69 |
return $this->_fields['AuthorizationDetails']['FieldValue'];
|
70 |
}
|
71 |
-
|
72 |
/**
|
73 |
* Sets the value of the AuthorizationDetails.
|
74 |
*
|
75 |
-
* @param
|
76 |
* @return void
|
77 |
*/
|
78 |
-
public function setAuthorizationDetails
|
79 |
{
|
80 |
$this->_fields['AuthorizationDetails']['FieldValue'] = $value;
|
81 |
return;
|
82 |
}
|
83 |
-
|
84 |
/**
|
85 |
* Sets the value of the AuthorizationDetails and returns this instance
|
86 |
*
|
87 |
* @param AuthorizationDetails $value AuthorizationDetails
|
88 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult instance
|
89 |
*/
|
90 |
-
public function withAuthorizationDetails
|
91 |
{
|
92 |
$this->setAuthorizationDetails($value);
|
93 |
return $this;
|
94 |
}
|
95 |
-
|
96 |
/**
|
97 |
* Checks if AuthorizationDetails is set
|
98 |
*
|
99 |
-
* @return bool true if
|
100 |
*/
|
101 |
-
public function isSetAuthorizationDetails
|
102 |
{
|
103 |
-
return !
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the AmazonOrderReferenceId property.
|
108 |
*
|
109 |
* @return string AmazonOrderReferenceId
|
110 |
*/
|
111 |
-
public function getAmazonOrderReferenceId
|
112 |
{
|
113 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the AmazonOrderReferenceId property.
|
118 |
*
|
119 |
* @param string AmazonOrderReferenceId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setAmazonOrderReferenceId
|
123 |
{
|
124 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
130 |
*
|
131 |
* @param string $value AmazonOrderReferenceId
|
132 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult instance
|
133 |
*/
|
134 |
-
public function withAmazonOrderReferenceId
|
135 |
{
|
136 |
$this->setAmazonOrderReferenceId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
/**
|
141 |
* Checks if AmazonOrderReferenceId is set
|
142 |
*
|
143 |
* @return bool true if AmazonOrderReferenceId is set
|
144 |
*/
|
145 |
-
public function isSetAmazonOrderReferenceId
|
146 |
{
|
147 |
-
return !
|
148 |
}
|
149 |
-
}
|
28 |
*/
|
29 |
class OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult extends OffAmazonPaymentsService_Model
|
30 |
{
|
31 |
+
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult
|
34 |
*
|
42 |
*
|
43 |
* </ul>
|
44 |
*/
|
45 |
+
public function __construct($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
|
58 |
);
|
59 |
parent::__construct($data);
|
60 |
}
|
61 |
+
|
62 |
/**
|
63 |
* Gets the value of the AuthorizationDetails.
|
64 |
*
|
65 |
+
* @return OffAmazonPaymentsService_Model_AuthorizationDetails AuthorizationDetails
|
66 |
*/
|
67 |
+
public function getAuthorizationDetails()
|
68 |
{
|
69 |
return $this->_fields['AuthorizationDetails']['FieldValue'];
|
70 |
}
|
71 |
+
|
72 |
/**
|
73 |
* Sets the value of the AuthorizationDetails.
|
74 |
*
|
75 |
+
* @param OffAmazonPaymentsService_Model_AuthorizationDetails AuthorizationDetails
|
76 |
* @return void
|
77 |
*/
|
78 |
+
public function setAuthorizationDetails($value)
|
79 |
{
|
80 |
$this->_fields['AuthorizationDetails']['FieldValue'] = $value;
|
81 |
return;
|
82 |
}
|
83 |
+
|
84 |
/**
|
85 |
* Sets the value of the AuthorizationDetails and returns this instance
|
86 |
*
|
87 |
* @param AuthorizationDetails $value AuthorizationDetails
|
88 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult instance
|
89 |
*/
|
90 |
+
public function withAuthorizationDetails($value)
|
91 |
{
|
92 |
$this->setAuthorizationDetails($value);
|
93 |
return $this;
|
94 |
}
|
95 |
+
|
96 |
/**
|
97 |
* Checks if AuthorizationDetails is set
|
98 |
*
|
99 |
+
* @return bool true if OffAmazonPaymentsService_Model_AuthorizationDetails property is set
|
100 |
*/
|
101 |
+
public function isSetAuthorizationDetails()
|
102 |
{
|
103 |
+
return !is_null($this->_fields['AuthorizationDetails']['FieldValue']);
|
104 |
}
|
105 |
+
|
106 |
/**
|
107 |
* Gets the value of the AmazonOrderReferenceId property.
|
108 |
*
|
109 |
* @return string AmazonOrderReferenceId
|
110 |
*/
|
111 |
+
public function getAmazonOrderReferenceId()
|
112 |
{
|
113 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the AmazonOrderReferenceId property.
|
118 |
*
|
119 |
* @param string AmazonOrderReferenceId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
+
public function setAmazonOrderReferenceId($value)
|
123 |
{
|
124 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
/**
|
129 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
130 |
*
|
131 |
* @param string $value AmazonOrderReferenceId
|
132 |
* @return OffAmazonPaymentsService_Model_AuthorizeOnBillingAgreementResult instance
|
133 |
*/
|
134 |
+
public function withAmazonOrderReferenceId($value)
|
135 |
{
|
136 |
$this->setAmazonOrderReferenceId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Checks if AmazonOrderReferenceId is set
|
142 |
*
|
143 |
* @return bool true if AmazonOrderReferenceId is set
|
144 |
*/
|
145 |
+
public function isSetAmazonOrderReferenceId()
|
146 |
{
|
147 |
+
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
148 |
}
|
149 |
+
}
|
lib/OffAmazonPaymentsService/Model/AuthorizeRequest.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_AuthorizeRequest
|
@@ -39,10 +39,10 @@
|
|
39 |
* <li>SoftDescriptor: string</li>
|
40 |
*
|
41 |
* </ul>
|
42 |
-
*/
|
43 |
class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsService_Model
|
44 |
{
|
45 |
-
|
46 |
/**
|
47 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeRequest
|
48 |
*
|
@@ -65,47 +65,81 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
65 |
*/
|
66 |
public function __construct($data = null)
|
67 |
{
|
68 |
-
$this->_fields = array
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
);
|
84 |
parent::__construct($data);
|
85 |
}
|
86 |
-
|
87 |
-
|
88 |
* Gets the value of the SellerId property.
|
89 |
*
|
90 |
* @return string SellerId
|
91 |
*/
|
92 |
-
public function getSellerId()
|
93 |
{
|
94 |
return $this->_fields['SellerId']['FieldValue'];
|
95 |
}
|
96 |
-
|
97 |
/**
|
98 |
* Sets the value of the SellerId property.
|
99 |
*
|
100 |
* @param string SellerId
|
101 |
* @return this instance
|
102 |
*/
|
103 |
-
public function setSellerId($value)
|
104 |
{
|
105 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
106 |
return $this;
|
107 |
}
|
108 |
-
|
109 |
/**
|
110 |
* Sets the value of the SellerId and returns this instance
|
111 |
*
|
@@ -117,8 +151,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
117 |
$this->setSellerId($value);
|
118 |
return $this;
|
119 |
}
|
120 |
-
|
121 |
-
|
122 |
/**
|
123 |
* Checks if SellerId is set
|
124 |
*
|
@@ -128,29 +162,29 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
128 |
{
|
129 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
130 |
}
|
131 |
-
|
132 |
/**
|
133 |
* Gets the value of the AmazonOrderReferenceId property.
|
134 |
*
|
135 |
* @return string AmazonOrderReferenceId
|
136 |
*/
|
137 |
-
public function getAmazonOrderReferenceId()
|
138 |
{
|
139 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
140 |
}
|
141 |
-
|
142 |
/**
|
143 |
* Sets the value of the AmazonOrderReferenceId property.
|
144 |
*
|
145 |
* @param string AmazonOrderReferenceId
|
146 |
* @return this instance
|
147 |
*/
|
148 |
-
public function setAmazonOrderReferenceId($value)
|
149 |
{
|
150 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
151 |
return $this;
|
152 |
}
|
153 |
-
|
154 |
/**
|
155 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
156 |
*
|
@@ -162,8 +196,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
162 |
$this->setAmazonOrderReferenceId($value);
|
163 |
return $this;
|
164 |
}
|
165 |
-
|
166 |
-
|
167 |
/**
|
168 |
* Checks if AmazonOrderReferenceId is set
|
169 |
*
|
@@ -173,29 +207,29 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
173 |
{
|
174 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
175 |
}
|
176 |
-
|
177 |
/**
|
178 |
* Gets the value of the AuthorizationReferenceId property.
|
179 |
*
|
180 |
* @return string AuthorizationReferenceId
|
181 |
*/
|
182 |
-
public function getAuthorizationReferenceId()
|
183 |
{
|
184 |
return $this->_fields['AuthorizationReferenceId']['FieldValue'];
|
185 |
}
|
186 |
-
|
187 |
/**
|
188 |
* Sets the value of the AuthorizationReferenceId property.
|
189 |
*
|
190 |
* @param string AuthorizationReferenceId
|
191 |
* @return this instance
|
192 |
*/
|
193 |
-
public function setAuthorizationReferenceId($value)
|
194 |
{
|
195 |
$this->_fields['AuthorizationReferenceId']['FieldValue'] = $value;
|
196 |
return $this;
|
197 |
}
|
198 |
-
|
199 |
/**
|
200 |
* Sets the value of the AuthorizationReferenceId and returns this instance
|
201 |
*
|
@@ -207,8 +241,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
207 |
$this->setAuthorizationReferenceId($value);
|
208 |
return $this;
|
209 |
}
|
210 |
-
|
211 |
-
|
212 |
/**
|
213 |
* Checks if AuthorizationReferenceId is set
|
214 |
*
|
@@ -218,29 +252,29 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
218 |
{
|
219 |
return !is_null($this->_fields['AuthorizationReferenceId']['FieldValue']);
|
220 |
}
|
221 |
-
|
222 |
/**
|
223 |
* Gets the value of the AuthorizationAmount.
|
224 |
*
|
225 |
* @return Price AuthorizationAmount
|
226 |
*/
|
227 |
-
public function getAuthorizationAmount()
|
228 |
{
|
229 |
return $this->_fields['AuthorizationAmount']['FieldValue'];
|
230 |
}
|
231 |
-
|
232 |
/**
|
233 |
* Sets the value of the AuthorizationAmount.
|
234 |
*
|
235 |
* @param Price AuthorizationAmount
|
236 |
* @return void
|
237 |
*/
|
238 |
-
public function setAuthorizationAmount($value)
|
239 |
{
|
240 |
$this->_fields['AuthorizationAmount']['FieldValue'] = $value;
|
241 |
return;
|
242 |
}
|
243 |
-
|
244 |
/**
|
245 |
* Sets the value of the AuthorizationAmount and returns this instance
|
246 |
*
|
@@ -252,8 +286,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
252 |
$this->setAuthorizationAmount($value);
|
253 |
return $this;
|
254 |
}
|
255 |
-
|
256 |
-
|
257 |
/**
|
258 |
* Checks if AuthorizationAmount is set
|
259 |
*
|
@@ -262,31 +296,31 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
262 |
public function isSetAuthorizationAmount()
|
263 |
{
|
264 |
return !is_null($this->_fields['AuthorizationAmount']['FieldValue']);
|
265 |
-
|
266 |
}
|
267 |
-
|
268 |
/**
|
269 |
* Gets the value of the SellerAuthorizationNote property.
|
270 |
*
|
271 |
* @return string SellerAuthorizationNote
|
272 |
*/
|
273 |
-
public function getSellerAuthorizationNote()
|
274 |
{
|
275 |
return $this->_fields['SellerAuthorizationNote']['FieldValue'];
|
276 |
}
|
277 |
-
|
278 |
/**
|
279 |
* Sets the value of the SellerAuthorizationNote property.
|
280 |
*
|
281 |
* @param string SellerAuthorizationNote
|
282 |
* @return this instance
|
283 |
*/
|
284 |
-
public function setSellerAuthorizationNote($value)
|
285 |
{
|
286 |
$this->_fields['SellerAuthorizationNote']['FieldValue'] = $value;
|
287 |
return $this;
|
288 |
}
|
289 |
-
|
290 |
/**
|
291 |
* Sets the value of the SellerAuthorizationNote and returns this instance
|
292 |
*
|
@@ -298,8 +332,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
298 |
$this->setSellerAuthorizationNote($value);
|
299 |
return $this;
|
300 |
}
|
301 |
-
|
302 |
-
|
303 |
/**
|
304 |
* Checks if SellerAuthorizationNote is set
|
305 |
*
|
@@ -309,29 +343,29 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
309 |
{
|
310 |
return !is_null($this->_fields['SellerAuthorizationNote']['FieldValue']);
|
311 |
}
|
312 |
-
|
313 |
/**
|
314 |
* Gets the value of the OrderItemCategories.
|
315 |
*
|
316 |
* @return OrderItemCategories OrderItemCategories
|
317 |
*/
|
318 |
-
public function getOrderItemCategories()
|
319 |
{
|
320 |
return $this->_fields['OrderItemCategories']['FieldValue'];
|
321 |
}
|
322 |
-
|
323 |
/**
|
324 |
* Sets the value of the OrderItemCategories.
|
325 |
*
|
326 |
* @param OrderItemCategories OrderItemCategories
|
327 |
* @return void
|
328 |
*/
|
329 |
-
public function setOrderItemCategories($value)
|
330 |
{
|
331 |
$this->_fields['OrderItemCategories']['FieldValue'] = $value;
|
332 |
return;
|
333 |
}
|
334 |
-
|
335 |
/**
|
336 |
* Sets the value of the OrderItemCategories and returns this instance
|
337 |
*
|
@@ -343,8 +377,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
343 |
$this->setOrderItemCategories($value);
|
344 |
return $this;
|
345 |
}
|
346 |
-
|
347 |
-
|
348 |
/**
|
349 |
* Checks if OrderItemCategories is set
|
350 |
*
|
@@ -353,31 +387,31 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
353 |
public function isSetOrderItemCategories()
|
354 |
{
|
355 |
return !is_null($this->_fields['OrderItemCategories']['FieldValue']);
|
356 |
-
|
357 |
}
|
358 |
-
|
359 |
/**
|
360 |
* Gets the value of the TransactionTimeout property.
|
361 |
*
|
362 |
* @return int TransactionTimeout
|
363 |
*/
|
364 |
-
public function getTransactionTimeout()
|
365 |
{
|
366 |
return $this->_fields['TransactionTimeout']['FieldValue'];
|
367 |
}
|
368 |
-
|
369 |
/**
|
370 |
* Sets the value of the TransactionTimeout property.
|
371 |
*
|
372 |
* @param int TransactionTimeout
|
373 |
* @return this instance
|
374 |
*/
|
375 |
-
public function setTransactionTimeout($value)
|
376 |
{
|
377 |
$this->_fields['TransactionTimeout']['FieldValue'] = $value;
|
378 |
return $this;
|
379 |
}
|
380 |
-
|
381 |
/**
|
382 |
* Sets the value of the TransactionTimeout and returns this instance
|
383 |
*
|
@@ -389,8 +423,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
389 |
$this->setTransactionTimeout($value);
|
390 |
return $this;
|
391 |
}
|
392 |
-
|
393 |
-
|
394 |
/**
|
395 |
* Checks if TransactionTimeout is set
|
396 |
*
|
@@ -400,29 +434,29 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
400 |
{
|
401 |
return !is_null($this->_fields['TransactionTimeout']['FieldValue']);
|
402 |
}
|
403 |
-
|
404 |
/**
|
405 |
* Gets the value of the CaptureNow property.
|
406 |
*
|
407 |
* @return bool CaptureNow
|
408 |
*/
|
409 |
-
public function getCaptureNow()
|
410 |
{
|
411 |
return $this->_fields['CaptureNow']['FieldValue'];
|
412 |
}
|
413 |
-
|
414 |
/**
|
415 |
* Sets the value of the CaptureNow property.
|
416 |
*
|
417 |
* @param bool CaptureNow
|
418 |
* @return this instance
|
419 |
*/
|
420 |
-
public function setCaptureNow($value)
|
421 |
{
|
422 |
$this->_fields['CaptureNow']['FieldValue'] = $value;
|
423 |
return $this;
|
424 |
}
|
425 |
-
|
426 |
/**
|
427 |
* Sets the value of the CaptureNow and returns this instance
|
428 |
*
|
@@ -434,8 +468,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
434 |
$this->setCaptureNow($value);
|
435 |
return $this;
|
436 |
}
|
437 |
-
|
438 |
-
|
439 |
/**
|
440 |
* Checks if CaptureNow is set
|
441 |
*
|
@@ -445,29 +479,29 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
445 |
{
|
446 |
return !is_null($this->_fields['CaptureNow']['FieldValue']);
|
447 |
}
|
448 |
-
|
449 |
/**
|
450 |
* Gets the value of the SoftDescriptor property.
|
451 |
*
|
452 |
* @return string SoftDescriptor
|
453 |
*/
|
454 |
-
public function getSoftDescriptor()
|
455 |
{
|
456 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
457 |
}
|
458 |
-
|
459 |
/**
|
460 |
* Sets the value of the SoftDescriptor property.
|
461 |
*
|
462 |
* @param string SoftDescriptor
|
463 |
* @return this instance
|
464 |
*/
|
465 |
-
public function setSoftDescriptor($value)
|
466 |
{
|
467 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
468 |
return $this;
|
469 |
}
|
470 |
-
|
471 |
/**
|
472 |
* Sets the value of the SoftDescriptor and returns this instance
|
473 |
*
|
@@ -479,8 +513,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
479 |
$this->setSoftDescriptor($value);
|
480 |
return $this;
|
481 |
}
|
482 |
-
|
483 |
-
|
484 |
/**
|
485 |
* Checks if SoftDescriptor is set
|
486 |
*
|
@@ -498,7 +532,7 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
498 |
*/
|
499 |
public function getProviderCreditList()
|
500 |
{
|
501 |
-
|
502 |
}
|
503 |
|
504 |
/**
|
@@ -509,8 +543,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
509 |
*/
|
510 |
public function setProviderCreditList($value)
|
511 |
{
|
512 |
-
|
513 |
-
|
514 |
}
|
515 |
|
516 |
/**
|
@@ -521,8 +555,8 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
521 |
*/
|
522 |
public function withProviderCreditList($value)
|
523 |
{
|
524 |
-
|
525 |
-
|
526 |
}
|
527 |
|
528 |
|
@@ -533,7 +567,40 @@ class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsS
|
|
533 |
*/
|
534 |
public function isSetProviderCreditList()
|
535 |
{
|
536 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
}
|
539 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_AuthorizeRequest
|
39 |
* <li>SoftDescriptor: string</li>
|
40 |
*
|
41 |
* </ul>
|
42 |
+
*/
|
43 |
class OffAmazonPaymentsService_Model_AuthorizeRequest extends OffAmazonPaymentsService_Model
|
44 |
{
|
45 |
+
|
46 |
/**
|
47 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeRequest
|
48 |
*
|
65 |
*/
|
66 |
public function __construct($data = null)
|
67 |
{
|
68 |
+
$this->_fields = array(
|
69 |
+
'SellerId' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
),
|
73 |
+
'AmazonOrderReferenceId' => array(
|
74 |
+
'FieldValue' => null,
|
75 |
+
'FieldType' => 'string'
|
76 |
+
),
|
77 |
+
'AuthorizationReferenceId' => array(
|
78 |
+
'FieldValue' => null,
|
79 |
+
'FieldType' => 'string'
|
80 |
+
),
|
81 |
+
|
82 |
+
'AuthorizationAmount' => array(
|
83 |
+
'FieldValue' => null,
|
84 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
85 |
+
),
|
86 |
+
|
87 |
+
'SellerAuthorizationNote' => array(
|
88 |
+
'FieldValue' => null,
|
89 |
+
'FieldType' => 'string'
|
90 |
+
),
|
91 |
+
|
92 |
+
'OrderItemCategories' => array(
|
93 |
+
'FieldValue' => null,
|
94 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderItemCategories'
|
95 |
+
),
|
96 |
+
|
97 |
+
'TransactionTimeout' => array(
|
98 |
+
'FieldValue' => null,
|
99 |
+
'FieldType' => 'int'
|
100 |
+
),
|
101 |
+
'CaptureNow' => array(
|
102 |
+
'FieldValue' => null,
|
103 |
+
'FieldType' => 'bool'
|
104 |
+
),
|
105 |
+
'SoftDescriptor' => array(
|
106 |
+
'FieldValue' => null,
|
107 |
+
'FieldType' => 'string'
|
108 |
+
),
|
109 |
+
'MWSAuthToken' => array(
|
110 |
+
'FieldValue' => null,
|
111 |
+
'FieldType' => 'string'
|
112 |
+
),
|
113 |
+
'ProviderCreditList' => array(
|
114 |
+
'FieldValue' => null,
|
115 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditList'
|
116 |
+
)
|
117 |
);
|
118 |
parent::__construct($data);
|
119 |
}
|
120 |
+
|
121 |
+
/**
|
122 |
* Gets the value of the SellerId property.
|
123 |
*
|
124 |
* @return string SellerId
|
125 |
*/
|
126 |
+
public function getSellerId()
|
127 |
{
|
128 |
return $this->_fields['SellerId']['FieldValue'];
|
129 |
}
|
130 |
+
|
131 |
/**
|
132 |
* Sets the value of the SellerId property.
|
133 |
*
|
134 |
* @param string SellerId
|
135 |
* @return this instance
|
136 |
*/
|
137 |
+
public function setSellerId($value)
|
138 |
{
|
139 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
140 |
return $this;
|
141 |
}
|
142 |
+
|
143 |
/**
|
144 |
* Sets the value of the SellerId and returns this instance
|
145 |
*
|
151 |
$this->setSellerId($value);
|
152 |
return $this;
|
153 |
}
|
154 |
+
|
155 |
+
|
156 |
/**
|
157 |
* Checks if SellerId is set
|
158 |
*
|
162 |
{
|
163 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
164 |
}
|
165 |
+
|
166 |
/**
|
167 |
* Gets the value of the AmazonOrderReferenceId property.
|
168 |
*
|
169 |
* @return string AmazonOrderReferenceId
|
170 |
*/
|
171 |
+
public function getAmazonOrderReferenceId()
|
172 |
{
|
173 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
174 |
}
|
175 |
+
|
176 |
/**
|
177 |
* Sets the value of the AmazonOrderReferenceId property.
|
178 |
*
|
179 |
* @param string AmazonOrderReferenceId
|
180 |
* @return this instance
|
181 |
*/
|
182 |
+
public function setAmazonOrderReferenceId($value)
|
183 |
{
|
184 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
185 |
return $this;
|
186 |
}
|
187 |
+
|
188 |
/**
|
189 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
190 |
*
|
196 |
$this->setAmazonOrderReferenceId($value);
|
197 |
return $this;
|
198 |
}
|
199 |
+
|
200 |
+
|
201 |
/**
|
202 |
* Checks if AmazonOrderReferenceId is set
|
203 |
*
|
207 |
{
|
208 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
209 |
}
|
210 |
+
|
211 |
/**
|
212 |
* Gets the value of the AuthorizationReferenceId property.
|
213 |
*
|
214 |
* @return string AuthorizationReferenceId
|
215 |
*/
|
216 |
+
public function getAuthorizationReferenceId()
|
217 |
{
|
218 |
return $this->_fields['AuthorizationReferenceId']['FieldValue'];
|
219 |
}
|
220 |
+
|
221 |
/**
|
222 |
* Sets the value of the AuthorizationReferenceId property.
|
223 |
*
|
224 |
* @param string AuthorizationReferenceId
|
225 |
* @return this instance
|
226 |
*/
|
227 |
+
public function setAuthorizationReferenceId($value)
|
228 |
{
|
229 |
$this->_fields['AuthorizationReferenceId']['FieldValue'] = $value;
|
230 |
return $this;
|
231 |
}
|
232 |
+
|
233 |
/**
|
234 |
* Sets the value of the AuthorizationReferenceId and returns this instance
|
235 |
*
|
241 |
$this->setAuthorizationReferenceId($value);
|
242 |
return $this;
|
243 |
}
|
244 |
+
|
245 |
+
|
246 |
/**
|
247 |
* Checks if AuthorizationReferenceId is set
|
248 |
*
|
252 |
{
|
253 |
return !is_null($this->_fields['AuthorizationReferenceId']['FieldValue']);
|
254 |
}
|
255 |
+
|
256 |
/**
|
257 |
* Gets the value of the AuthorizationAmount.
|
258 |
*
|
259 |
* @return Price AuthorizationAmount
|
260 |
*/
|
261 |
+
public function getAuthorizationAmount()
|
262 |
{
|
263 |
return $this->_fields['AuthorizationAmount']['FieldValue'];
|
264 |
}
|
265 |
+
|
266 |
/**
|
267 |
* Sets the value of the AuthorizationAmount.
|
268 |
*
|
269 |
* @param Price AuthorizationAmount
|
270 |
* @return void
|
271 |
*/
|
272 |
+
public function setAuthorizationAmount($value)
|
273 |
{
|
274 |
$this->_fields['AuthorizationAmount']['FieldValue'] = $value;
|
275 |
return;
|
276 |
}
|
277 |
+
|
278 |
/**
|
279 |
* Sets the value of the AuthorizationAmount and returns this instance
|
280 |
*
|
286 |
$this->setAuthorizationAmount($value);
|
287 |
return $this;
|
288 |
}
|
289 |
+
|
290 |
+
|
291 |
/**
|
292 |
* Checks if AuthorizationAmount is set
|
293 |
*
|
296 |
public function isSetAuthorizationAmount()
|
297 |
{
|
298 |
return !is_null($this->_fields['AuthorizationAmount']['FieldValue']);
|
299 |
+
|
300 |
}
|
301 |
+
|
302 |
/**
|
303 |
* Gets the value of the SellerAuthorizationNote property.
|
304 |
*
|
305 |
* @return string SellerAuthorizationNote
|
306 |
*/
|
307 |
+
public function getSellerAuthorizationNote()
|
308 |
{
|
309 |
return $this->_fields['SellerAuthorizationNote']['FieldValue'];
|
310 |
}
|
311 |
+
|
312 |
/**
|
313 |
* Sets the value of the SellerAuthorizationNote property.
|
314 |
*
|
315 |
* @param string SellerAuthorizationNote
|
316 |
* @return this instance
|
317 |
*/
|
318 |
+
public function setSellerAuthorizationNote($value)
|
319 |
{
|
320 |
$this->_fields['SellerAuthorizationNote']['FieldValue'] = $value;
|
321 |
return $this;
|
322 |
}
|
323 |
+
|
324 |
/**
|
325 |
* Sets the value of the SellerAuthorizationNote and returns this instance
|
326 |
*
|
332 |
$this->setSellerAuthorizationNote($value);
|
333 |
return $this;
|
334 |
}
|
335 |
+
|
336 |
+
|
337 |
/**
|
338 |
* Checks if SellerAuthorizationNote is set
|
339 |
*
|
343 |
{
|
344 |
return !is_null($this->_fields['SellerAuthorizationNote']['FieldValue']);
|
345 |
}
|
346 |
+
|
347 |
/**
|
348 |
* Gets the value of the OrderItemCategories.
|
349 |
*
|
350 |
* @return OrderItemCategories OrderItemCategories
|
351 |
*/
|
352 |
+
public function getOrderItemCategories()
|
353 |
{
|
354 |
return $this->_fields['OrderItemCategories']['FieldValue'];
|
355 |
}
|
356 |
+
|
357 |
/**
|
358 |
* Sets the value of the OrderItemCategories.
|
359 |
*
|
360 |
* @param OrderItemCategories OrderItemCategories
|
361 |
* @return void
|
362 |
*/
|
363 |
+
public function setOrderItemCategories($value)
|
364 |
{
|
365 |
$this->_fields['OrderItemCategories']['FieldValue'] = $value;
|
366 |
return;
|
367 |
}
|
368 |
+
|
369 |
/**
|
370 |
* Sets the value of the OrderItemCategories and returns this instance
|
371 |
*
|
377 |
$this->setOrderItemCategories($value);
|
378 |
return $this;
|
379 |
}
|
380 |
+
|
381 |
+
|
382 |
/**
|
383 |
* Checks if OrderItemCategories is set
|
384 |
*
|
387 |
public function isSetOrderItemCategories()
|
388 |
{
|
389 |
return !is_null($this->_fields['OrderItemCategories']['FieldValue']);
|
390 |
+
|
391 |
}
|
392 |
+
|
393 |
/**
|
394 |
* Gets the value of the TransactionTimeout property.
|
395 |
*
|
396 |
* @return int TransactionTimeout
|
397 |
*/
|
398 |
+
public function getTransactionTimeout()
|
399 |
{
|
400 |
return $this->_fields['TransactionTimeout']['FieldValue'];
|
401 |
}
|
402 |
+
|
403 |
/**
|
404 |
* Sets the value of the TransactionTimeout property.
|
405 |
*
|
406 |
* @param int TransactionTimeout
|
407 |
* @return this instance
|
408 |
*/
|
409 |
+
public function setTransactionTimeout($value)
|
410 |
{
|
411 |
$this->_fields['TransactionTimeout']['FieldValue'] = $value;
|
412 |
return $this;
|
413 |
}
|
414 |
+
|
415 |
/**
|
416 |
* Sets the value of the TransactionTimeout and returns this instance
|
417 |
*
|
423 |
$this->setTransactionTimeout($value);
|
424 |
return $this;
|
425 |
}
|
426 |
+
|
427 |
+
|
428 |
/**
|
429 |
* Checks if TransactionTimeout is set
|
430 |
*
|
434 |
{
|
435 |
return !is_null($this->_fields['TransactionTimeout']['FieldValue']);
|
436 |
}
|
437 |
+
|
438 |
/**
|
439 |
* Gets the value of the CaptureNow property.
|
440 |
*
|
441 |
* @return bool CaptureNow
|
442 |
*/
|
443 |
+
public function getCaptureNow()
|
444 |
{
|
445 |
return $this->_fields['CaptureNow']['FieldValue'];
|
446 |
}
|
447 |
+
|
448 |
/**
|
449 |
* Sets the value of the CaptureNow property.
|
450 |
*
|
451 |
* @param bool CaptureNow
|
452 |
* @return this instance
|
453 |
*/
|
454 |
+
public function setCaptureNow($value)
|
455 |
{
|
456 |
$this->_fields['CaptureNow']['FieldValue'] = $value;
|
457 |
return $this;
|
458 |
}
|
459 |
+
|
460 |
/**
|
461 |
* Sets the value of the CaptureNow and returns this instance
|
462 |
*
|
468 |
$this->setCaptureNow($value);
|
469 |
return $this;
|
470 |
}
|
471 |
+
|
472 |
+
|
473 |
/**
|
474 |
* Checks if CaptureNow is set
|
475 |
*
|
479 |
{
|
480 |
return !is_null($this->_fields['CaptureNow']['FieldValue']);
|
481 |
}
|
482 |
+
|
483 |
/**
|
484 |
* Gets the value of the SoftDescriptor property.
|
485 |
*
|
486 |
* @return string SoftDescriptor
|
487 |
*/
|
488 |
+
public function getSoftDescriptor()
|
489 |
{
|
490 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
491 |
}
|
492 |
+
|
493 |
/**
|
494 |
* Sets the value of the SoftDescriptor property.
|
495 |
*
|
496 |
* @param string SoftDescriptor
|
497 |
* @return this instance
|
498 |
*/
|
499 |
+
public function setSoftDescriptor($value)
|
500 |
{
|
501 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
502 |
return $this;
|
503 |
}
|
504 |
+
|
505 |
/**
|
506 |
* Sets the value of the SoftDescriptor and returns this instance
|
507 |
*
|
513 |
$this->setSoftDescriptor($value);
|
514 |
return $this;
|
515 |
}
|
516 |
+
|
517 |
+
|
518 |
/**
|
519 |
* Checks if SoftDescriptor is set
|
520 |
*
|
532 |
*/
|
533 |
public function getProviderCreditList()
|
534 |
{
|
535 |
+
return $this->_fields['ProviderCreditList']['FieldValue'];
|
536 |
}
|
537 |
|
538 |
/**
|
543 |
*/
|
544 |
public function setProviderCreditList($value)
|
545 |
{
|
546 |
+
$this->_fields['ProviderCreditList']['FieldValue'] = $value;
|
547 |
+
return;
|
548 |
}
|
549 |
|
550 |
/**
|
555 |
*/
|
556 |
public function withProviderCreditList($value)
|
557 |
{
|
558 |
+
$this->setProviderCreditList($value);
|
559 |
+
return $this;
|
560 |
}
|
561 |
|
562 |
|
567 |
*/
|
568 |
public function isSetProviderCreditList()
|
569 |
{
|
570 |
+
return !is_null($this->_fields['ProviderCreditList']['FieldValue']);
|
571 |
+
|
572 |
+
}
|
573 |
+
|
574 |
+
/**
|
575 |
+
* Gets the value of the MWSAuthToken property.
|
576 |
+
*
|
577 |
+
* @return string MWSAuthToken
|
578 |
+
*/
|
579 |
+
public function getMWSAuthToken()
|
580 |
+
{
|
581 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
582 |
+
}
|
583 |
|
584 |
+
/**
|
585 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
586 |
+
*
|
587 |
+
* @param string $value MWSAuthToken
|
588 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
589 |
+
*/
|
590 |
+
public function setMWSAuthToken($value)
|
591 |
+
{
|
592 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
593 |
+
return $this;
|
594 |
+
}
|
595 |
+
|
596 |
+
|
597 |
+
/**
|
598 |
+
* Checks if MWSAuthToken is set
|
599 |
+
*
|
600 |
+
* @return bool true if MWSAuthToken is set
|
601 |
+
*/
|
602 |
+
public function isSetMWSAuthToken()
|
603 |
+
{
|
604 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
605 |
}
|
606 |
+
}
|
lib/OffAmazonPaymentsService/Model/AuthorizeResponse.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_AuthorizeResponse
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeResponse
|
41 |
*
|
@@ -51,18 +51,24 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_AuthorizeResponse from XML string
|
68 |
*
|
@@ -74,43 +80,43 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
|
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:AuthorizeResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_AuthorizeResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that AuthorizeResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the AuthorizeResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getAuthorizeResult()
|
94 |
{
|
95 |
return $this->_fields['AuthorizeResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the AuthorizeResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setAuthorizeResult($value)
|
105 |
{
|
106 |
$this->_fields['AuthorizeResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the AuthorizeResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_AuthorizeResponse instance
|
115 |
*/
|
116 |
public function withAuthorizeResult($value)
|
@@ -118,8 +124,8 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
|
|
118 |
$this->setAuthorizeResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if AuthorizeResult is set
|
125 |
*
|
@@ -128,31 +134,31 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
|
|
128 |
public function isSetAuthorizeResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['AuthorizeResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
*
|
@@ -164,8 +170,8 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
*
|
@@ -174,17 +180,16 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
|
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<AuthorizeResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,14 +197,16 @@ class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPayments
|
|
192 |
$xml .= "</AuthorizeResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_AuthorizeResponse
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_AuthorizeResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_AuthorizeResponse
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'AuthorizeResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_AuthorizeResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_AuthorizeResponse from XML string
|
74 |
*
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:AuthorizeResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_AuthorizeResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_AuthorizeResponse from provided XML.
|
89 |
Make sure that AuthorizeResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the AuthorizeResult.
|
96 |
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_AuthorizeResult AuthorizeResult
|
98 |
*/
|
99 |
+
public function getAuthorizeResult()
|
100 |
{
|
101 |
return $this->_fields['AuthorizeResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the AuthorizeResult.
|
106 |
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_AuthorizeResult AuthorizeResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setAuthorizeResult($value)
|
111 |
{
|
112 |
$this->_fields['AuthorizeResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the AuthorizeResult and returns this instance
|
118 |
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_AuthorizeResult $value AuthorizeResult
|
120 |
* @return OffAmazonPaymentsService_Model_AuthorizeResponse instance
|
121 |
*/
|
122 |
public function withAuthorizeResult($value)
|
124 |
$this->setAuthorizeResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if AuthorizeResult is set
|
131 |
*
|
134 |
public function isSetAuthorizeResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['AuthorizeResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
*
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
*
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
|
|
187 |
/**
|
188 |
* XML Representation for this object
|
189 |
*
|
190 |
* @return string XML for this object
|
191 |
*/
|
192 |
+
public function toXML()
|
193 |
{
|
194 |
$xml = "";
|
195 |
$xml .= "<AuthorizeResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
197 |
$xml .= "</AuthorizeResponse>";
|
198 |
return $xml;
|
199 |
}
|
200 |
+
|
201 |
private $_responseHeaderMetadata = null;
|
202 |
+
|
203 |
+
public function getResponseHeaderMetadata()
|
204 |
+
{
|
205 |
return $this->_responseHeaderMetadata;
|
206 |
}
|
207 |
+
|
208 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
209 |
+
{
|
210 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
211 |
}
|
212 |
+
}
|
lib/OffAmazonPaymentsService/Model/AuthorizeResult.php
CHANGED
@@ -51,7 +51,7 @@ class OffAmazonPaymentsService_Model_AuthorizeResult extends OffAmazonPaymentsSe
|
|
51 |
{
|
52 |
$this->_fields = array (
|
53 |
|
54 |
-
'AuthorizationDetails' => array('FieldValue' => null, 'FieldType' => 'OffAmazonPaymentsService_Model_AuthorizationDetails')
|
55 |
|
56 |
);
|
57 |
parent::__construct($data);
|
@@ -60,7 +60,7 @@ class OffAmazonPaymentsService_Model_AuthorizeResult extends OffAmazonPaymentsSe
|
|
60 |
/**
|
61 |
* Gets the value of the AuthorizationDetails.
|
62 |
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
public function getAuthorizationDetails()
|
66 |
{
|
@@ -70,7 +70,7 @@ class OffAmazonPaymentsService_Model_AuthorizeResult extends OffAmazonPaymentsSe
|
|
70 |
/**
|
71 |
* Sets the value of the AuthorizationDetails.
|
72 |
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
public function setAuthorizationDetails($value)
|
@@ -82,7 +82,7 @@ class OffAmazonPaymentsService_Model_AuthorizeResult extends OffAmazonPaymentsSe
|
|
82 |
/**
|
83 |
* Sets the value of the AuthorizationDetails and returns this instance
|
84 |
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_AuthorizeResult instance
|
87 |
*/
|
88 |
public function withAuthorizationDetails($value)
|
@@ -102,4 +102,4 @@ class OffAmazonPaymentsService_Model_AuthorizeResult extends OffAmazonPaymentsSe
|
|
102 |
return !is_null($this->_fields['AuthorizationDetails']['FieldValue']);
|
103 |
|
104 |
}
|
105 |
-
}
|
51 |
{
|
52 |
$this->_fields = array (
|
53 |
|
54 |
+
'AuthorizationDetails' => array('FieldValue' => null, 'FieldType' => 'OffAmazonPaymentsService_Model_AuthorizationDetails')
|
55 |
|
56 |
);
|
57 |
parent::__construct($data);
|
60 |
/**
|
61 |
* Gets the value of the AuthorizationDetails.
|
62 |
*
|
63 |
+
* @return OffAmazonPaymentsService_Model_AuthorizationDetails AuthorizationDetails
|
64 |
*/
|
65 |
public function getAuthorizationDetails()
|
66 |
{
|
70 |
/**
|
71 |
* Sets the value of the AuthorizationDetails.
|
72 |
*
|
73 |
+
* @param OffAmazonPaymentsService_Model_AuthorizationDetails AuthorizationDetails
|
74 |
* @return void
|
75 |
*/
|
76 |
public function setAuthorizationDetails($value)
|
82 |
/**
|
83 |
* Sets the value of the AuthorizationDetails and returns this instance
|
84 |
*
|
85 |
+
* @param OffAmazonPaymentsService_Model_AuthorizationDetails $value AuthorizationDetails
|
86 |
* @return OffAmazonPaymentsService_Model_AuthorizeResult instance
|
87 |
*/
|
88 |
public function withAuthorizationDetails($value)
|
102 |
return !is_null($this->_fields['AuthorizationDetails']['FieldValue']);
|
103 |
|
104 |
}
|
105 |
+
}
|
lib/OffAmazonPaymentsService/Model/BillingAddress.php
CHANGED
@@ -54,7 +54,7 @@ class OffAmazonPaymentsService_Model_BillingAddress extends OffAmazonPaymentsSer
|
|
54 |
$this->_fields = array (
|
55 |
'AddressType' => array('FieldValue' => null, 'FieldType' => 'string'),
|
56 |
|
57 |
-
'PhysicalAddress' => array('FieldValue' => null, 'FieldType' => 'OffAmazonPaymentsService_Model_Address')
|
58 |
|
59 |
);
|
60 |
parent::__construct($data);
|
@@ -150,5 +150,4 @@ class OffAmazonPaymentsService_Model_BillingAddress extends OffAmazonPaymentsSer
|
|
150 |
return !is_null($this->_fields['PhysicalAddress']['FieldValue']);
|
151 |
|
152 |
}
|
153 |
-
}
|
154 |
-
|
54 |
$this->_fields = array (
|
55 |
'AddressType' => array('FieldValue' => null, 'FieldType' => 'string'),
|
56 |
|
57 |
+
'PhysicalAddress' => array('FieldValue' => null, 'FieldType' => 'OffAmazonPaymentsService_Model_Address')
|
58 |
|
59 |
);
|
60 |
parent::__construct($data);
|
150 |
return !is_null($this->_fields['PhysicalAddress']['FieldValue']);
|
151 |
|
152 |
}
|
153 |
+
}
|
|
lib/OffAmazonPaymentsService/Model/BillingAgreementAttributes.php
CHANGED
@@ -60,8 +60,7 @@ class OffAmazonPaymentsService_Model_BillingAgreementAttributes extends OffAmazo
|
|
60 |
'FieldValue' => null,
|
61 |
'FieldType' => 'OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes'
|
62 |
)
|
63 |
-
)
|
64 |
-
;
|
65 |
parent::__construct($data);
|
66 |
}
|
67 |
|
@@ -196,4 +195,4 @@ class OffAmazonPaymentsService_Model_BillingAgreementAttributes extends OffAmazo
|
|
196 |
{
|
197 |
return ! is_null($this->_fields['SellerBillingAgreementAttributes']['FieldValue']);
|
198 |
}
|
199 |
-
}
|
60 |
'FieldValue' => null,
|
61 |
'FieldType' => 'OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes'
|
62 |
)
|
63 |
+
);
|
|
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
|
195 |
{
|
196 |
return ! is_null($this->_fields['SellerBillingAgreementAttributes']['FieldValue']);
|
197 |
}
|
198 |
+
}
|
lib/OffAmazonPaymentsService/Model/BillingAgreementDetails.php
CHANGED
@@ -35,6 +35,7 @@
|
|
35 |
* <li>CreationTimestamp: string</li>
|
36 |
* <li>ExpirationTimestamp: string</li>
|
37 |
* <li>BillingAgreementConsent: bool</li>
|
|
|
38 |
*
|
39 |
* </ul>
|
40 |
*/
|
@@ -63,6 +64,7 @@ class OffAmazonPaymentsService_Model_BillingAgreementDetails extends OffAmazonPa
|
|
63 |
* <li>CreationTimestamp: string</li>
|
64 |
* <li>ExpirationTimestamp: string</li>
|
65 |
* <li>BillingAgreementConsent: bool</li>
|
|
|
66 |
*
|
67 |
* </ul>
|
68 |
*/
|
@@ -134,6 +136,10 @@ class OffAmazonPaymentsService_Model_BillingAgreementDetails extends OffAmazonPa
|
|
134 |
'BillingAgreementConsent' => array(
|
135 |
'FieldValue' => null,
|
136 |
'FieldType' => 'bool'
|
|
|
|
|
|
|
|
|
137 |
)
|
138 |
);
|
139 |
parent::__construct($data);
|
@@ -754,5 +760,51 @@ class OffAmazonPaymentsService_Model_BillingAgreementDetails extends OffAmazonPa
|
|
754 |
{
|
755 |
return ! is_null($this->_fields['BillingAgreementConsent']['FieldValue']);
|
756 |
}
|
757 |
-
|
758 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
* <li>CreationTimestamp: string</li>
|
36 |
* <li>ExpirationTimestamp: string</li>
|
37 |
* <li>BillingAgreementConsent: bool</li>
|
38 |
+
* <li>OrderLanguage: string</li>
|
39 |
*
|
40 |
* </ul>
|
41 |
*/
|
64 |
* <li>CreationTimestamp: string</li>
|
65 |
* <li>ExpirationTimestamp: string</li>
|
66 |
* <li>BillingAgreementConsent: bool</li>
|
67 |
+
* <li>OrderLanguage: string</li>
|
68 |
*
|
69 |
* </ul>
|
70 |
*/
|
136 |
'BillingAgreementConsent' => array(
|
137 |
'FieldValue' => null,
|
138 |
'FieldType' => 'bool'
|
139 |
+
),
|
140 |
+
'OrderLanguage' => array(
|
141 |
+
'FieldValue' => null,
|
142 |
+
'FieldType' => 'string'
|
143 |
)
|
144 |
);
|
145 |
parent::__construct($data);
|
760 |
{
|
761 |
return ! is_null($this->_fields['BillingAgreementConsent']['FieldValue']);
|
762 |
}
|
763 |
+
|
764 |
+
/**
|
765 |
+
* Gets the value of the OrderLanguage.
|
766 |
+
*
|
767 |
+
* @return string OrderLanguage
|
768 |
+
*/
|
769 |
+
public function getOrderLanguage()
|
770 |
+
{
|
771 |
+
return $this->_fields['OrderLanguage']['FieldValue'];
|
772 |
+
}
|
773 |
+
|
774 |
+
/**
|
775 |
+
* Sets the value of the OrderLanguage.
|
776 |
+
*
|
777 |
+
* @param string OrderLanguage
|
778 |
+
* @return this instance
|
779 |
+
*/
|
780 |
+
public function setOrderLanguage($value)
|
781 |
+
{
|
782 |
+
$this->_fields['OrderLanguage']['FieldValue'] = $value;
|
783 |
+
return $this;
|
784 |
+
}
|
785 |
+
|
786 |
+
/**
|
787 |
+
* Sets the value of the OrderLanguage and returns this instance
|
788 |
+
*
|
789 |
+
* @param ParentDetails $value OrderLanguage
|
790 |
+
* @return OffAmazonPaymentsService_Model_BillingAgreementDetails instance
|
791 |
+
*/
|
792 |
+
public function withOrderLanguage($value)
|
793 |
+
{
|
794 |
+
$this->setOrderLanguage($value);
|
795 |
+
return $this;
|
796 |
+
}
|
797 |
+
|
798 |
+
|
799 |
+
/**
|
800 |
+
* Checks if OrderLanguage is set
|
801 |
+
*
|
802 |
+
* @return bool true if OrderLanguage property is set
|
803 |
+
*/
|
804 |
+
public function isSetOrderLanguage()
|
805 |
+
{
|
806 |
+
return !is_null($this->_fields['OrderLanguage']['FieldValue']);
|
807 |
+
|
808 |
+
}
|
809 |
+
|
810 |
+
}
|
lib/OffAmazonPaymentsService/Model/BillingAgreementLimits.php
CHANGED
@@ -68,8 +68,7 @@ class OffAmazonPaymentsService_Model_BillingAgreementLimits extends OffAmazonPay
|
|
68 |
'FieldValue' => null,
|
69 |
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
70 |
)
|
71 |
-
)
|
72 |
-
;
|
73 |
parent::__construct($data);
|
74 |
}
|
75 |
|
@@ -248,4 +247,4 @@ class OffAmazonPaymentsService_Model_BillingAgreementLimits extends OffAmazonPay
|
|
248 |
{
|
249 |
return ! is_null($this->_fields['CurrentRemainingBalance']['FieldValue']);
|
250 |
}
|
251 |
-
}
|
68 |
'FieldValue' => null,
|
69 |
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
70 |
)
|
71 |
+
);
|
|
|
72 |
parent::__construct($data);
|
73 |
}
|
74 |
|
247 |
{
|
248 |
return ! is_null($this->_fields['CurrentRemainingBalance']['FieldValue']);
|
249 |
}
|
250 |
+
}
|
lib/OffAmazonPaymentsService/Model/BillingAgreementStatus.php
CHANGED
@@ -244,4 +244,4 @@ class OffAmazonPaymentsService_Model_BillingAgreementStatus extends OffAmazonPay
|
|
244 |
{
|
245 |
return ! is_null($this->_fields['ReasonDescription']['FieldValue']);
|
246 |
}
|
247 |
-
}
|
244 |
{
|
245 |
return ! is_null($this->_fields['ReasonDescription']['FieldValue']);
|
246 |
}
|
247 |
+
}
|
lib/OffAmazonPaymentsService/Model/Buyer.php
CHANGED
@@ -56,7 +56,7 @@ class OffAmazonPaymentsService_Model_Buyer extends OffAmazonPaymentsService_Mode
|
|
56 |
$this->_fields = array (
|
57 |
'Name' => array('FieldValue' => null, 'FieldType' => 'string'),
|
58 |
'Email' => array('FieldValue' => null, 'FieldType' => 'string'),
|
59 |
-
'Phone' => array('FieldValue' => null, 'FieldType' => 'string')
|
60 |
);
|
61 |
parent::__construct($data);
|
62 |
}
|
@@ -195,4 +195,4 @@ class OffAmazonPaymentsService_Model_Buyer extends OffAmazonPaymentsService_Mode
|
|
195 |
{
|
196 |
return !is_null($this->_fields['Phone']['FieldValue']);
|
197 |
}
|
198 |
-
}
|
56 |
$this->_fields = array (
|
57 |
'Name' => array('FieldValue' => null, 'FieldType' => 'string'),
|
58 |
'Email' => array('FieldValue' => null, 'FieldType' => 'string'),
|
59 |
+
'Phone' => array('FieldValue' => null, 'FieldType' => 'string')
|
60 |
);
|
61 |
parent::__construct($data);
|
62 |
}
|
195 |
{
|
196 |
return !is_null($this->_fields['Phone']['FieldValue']);
|
197 |
}
|
198 |
+
}
|
lib/OffAmazonPaymentsService/Model/CancelOrderReferenceRequest.php
CHANGED
@@ -20,31 +20,31 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CancelOrderReferenceRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonOrderReferenceId: string</li>
|
33 |
* <li>CancelationReason: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
-
*/
|
37 |
class OffAmazonPaymentsService_Model_CancelOrderReferenceRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
-
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_CancelOrderReferenceRequest
|
42 |
-
*
|
43 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
44 |
*
|
45 |
* Valid properties:
|
46 |
* <ul>
|
47 |
-
*
|
48 |
* <li>SellerId: string</li>
|
49 |
* <li>AmazonOrderReferenceId: string</li>
|
50 |
* <li>CancelationReason: string</li>
|
@@ -53,39 +53,52 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceRequest extends OffAmaz
|
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
-
$this->_fields = array
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
);
|
61 |
parent::__construct($data);
|
62 |
}
|
63 |
-
|
64 |
-
|
65 |
* Gets the value of the SellerId property.
|
66 |
-
*
|
67 |
* @return string SellerId
|
68 |
*/
|
69 |
-
public function getSellerId()
|
70 |
{
|
71 |
return $this->_fields['SellerId']['FieldValue'];
|
72 |
}
|
73 |
-
|
74 |
/**
|
75 |
* Sets the value of the SellerId property.
|
76 |
-
*
|
77 |
* @param string SellerId
|
78 |
* @return this instance
|
79 |
*/
|
80 |
-
public function setSellerId($value)
|
81 |
{
|
82 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
83 |
return $this;
|
84 |
}
|
85 |
-
|
86 |
/**
|
87 |
* Sets the value of the SellerId and returns this instance
|
88 |
-
*
|
89 |
* @param string $value SellerId
|
90 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceRequest instance
|
91 |
*/
|
@@ -94,43 +107,43 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceRequest extends OffAmaz
|
|
94 |
$this->setSellerId($value);
|
95 |
return $this;
|
96 |
}
|
97 |
-
|
98 |
-
|
99 |
/**
|
100 |
* Checks if SellerId is set
|
101 |
-
*
|
102 |
* @return bool true if SellerId is set
|
103 |
*/
|
104 |
public function isSetSellerId()
|
105 |
{
|
106 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
107 |
}
|
108 |
-
|
109 |
/**
|
110 |
* Gets the value of the AmazonOrderReferenceId property.
|
111 |
-
*
|
112 |
* @return string AmazonOrderReferenceId
|
113 |
*/
|
114 |
-
public function getAmazonOrderReferenceId()
|
115 |
{
|
116 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
117 |
}
|
118 |
-
|
119 |
/**
|
120 |
* Sets the value of the AmazonOrderReferenceId property.
|
121 |
-
*
|
122 |
* @param string AmazonOrderReferenceId
|
123 |
* @return this instance
|
124 |
*/
|
125 |
-
public function setAmazonOrderReferenceId($value)
|
126 |
{
|
127 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
128 |
return $this;
|
129 |
}
|
130 |
-
|
131 |
/**
|
132 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
133 |
-
*
|
134 |
* @param string $value AmazonOrderReferenceId
|
135 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceRequest instance
|
136 |
*/
|
@@ -139,43 +152,43 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceRequest extends OffAmaz
|
|
139 |
$this->setAmazonOrderReferenceId($value);
|
140 |
return $this;
|
141 |
}
|
142 |
-
|
143 |
-
|
144 |
/**
|
145 |
* Checks if AmazonOrderReferenceId is set
|
146 |
-
*
|
147 |
* @return bool true if AmazonOrderReferenceId is set
|
148 |
*/
|
149 |
public function isSetAmazonOrderReferenceId()
|
150 |
{
|
151 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
152 |
}
|
153 |
-
|
154 |
/**
|
155 |
* Gets the value of the CancelationReason property.
|
156 |
-
*
|
157 |
* @return string CancelationReason
|
158 |
*/
|
159 |
-
public function getCancelationReason()
|
160 |
{
|
161 |
return $this->_fields['CancelationReason']['FieldValue'];
|
162 |
}
|
163 |
-
|
164 |
/**
|
165 |
* Sets the value of the CancelationReason property.
|
166 |
-
*
|
167 |
* @param string CancelationReason
|
168 |
* @return this instance
|
169 |
*/
|
170 |
-
public function setCancelationReason($value)
|
171 |
{
|
172 |
$this->_fields['CancelationReason']['FieldValue'] = $value;
|
173 |
return $this;
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* Sets the value of the CancelationReason and returns this instance
|
178 |
-
*
|
179 |
* @param string $value CancelationReason
|
180 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceRequest instance
|
181 |
*/
|
@@ -184,15 +197,48 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceRequest extends OffAmaz
|
|
184 |
$this->setCancelationReason($value);
|
185 |
return $this;
|
186 |
}
|
187 |
-
|
188 |
-
|
189 |
/**
|
190 |
* Checks if CancelationReason is set
|
191 |
-
*
|
192 |
* @return bool true if CancelationReason is set
|
193 |
*/
|
194 |
public function isSetCancelationReason()
|
195 |
{
|
196 |
return !is_null($this->_fields['CancelationReason']['FieldValue']);
|
197 |
}
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CancelOrderReferenceRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonOrderReferenceId: string</li>
|
33 |
* <li>CancelationReason: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
+
*/
|
37 |
class OffAmazonPaymentsService_Model_CancelOrderReferenceRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
+
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_CancelOrderReferenceRequest
|
42 |
+
*
|
43 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
44 |
*
|
45 |
* Valid properties:
|
46 |
* <ul>
|
47 |
+
*
|
48 |
* <li>SellerId: string</li>
|
49 |
* <li>AmazonOrderReferenceId: string</li>
|
50 |
* <li>CancelationReason: string</li>
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
+
$this->_fields = array(
|
57 |
+
'SellerId' => array(
|
58 |
+
'FieldValue' => null,
|
59 |
+
'FieldType' => 'string'
|
60 |
+
),
|
61 |
+
'AmazonOrderReferenceId' => array(
|
62 |
+
'FieldValue' => null,
|
63 |
+
'FieldType' => 'string'
|
64 |
+
),
|
65 |
+
'CancelationReason' => array(
|
66 |
+
'FieldValue' => null,
|
67 |
+
'FieldType' => 'string'
|
68 |
+
),
|
69 |
+
'MWSAuthToken' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
)
|
73 |
);
|
74 |
parent::__construct($data);
|
75 |
}
|
76 |
+
|
77 |
+
/**
|
78 |
* Gets the value of the SellerId property.
|
79 |
+
*
|
80 |
* @return string SellerId
|
81 |
*/
|
82 |
+
public function getSellerId()
|
83 |
{
|
84 |
return $this->_fields['SellerId']['FieldValue'];
|
85 |
}
|
86 |
+
|
87 |
/**
|
88 |
* Sets the value of the SellerId property.
|
89 |
+
*
|
90 |
* @param string SellerId
|
91 |
* @return this instance
|
92 |
*/
|
93 |
+
public function setSellerId($value)
|
94 |
{
|
95 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
96 |
return $this;
|
97 |
}
|
98 |
+
|
99 |
/**
|
100 |
* Sets the value of the SellerId and returns this instance
|
101 |
+
*
|
102 |
* @param string $value SellerId
|
103 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceRequest instance
|
104 |
*/
|
107 |
$this->setSellerId($value);
|
108 |
return $this;
|
109 |
}
|
110 |
+
|
111 |
+
|
112 |
/**
|
113 |
* Checks if SellerId is set
|
114 |
+
*
|
115 |
* @return bool true if SellerId is set
|
116 |
*/
|
117 |
public function isSetSellerId()
|
118 |
{
|
119 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Gets the value of the AmazonOrderReferenceId property.
|
124 |
+
*
|
125 |
* @return string AmazonOrderReferenceId
|
126 |
*/
|
127 |
+
public function getAmazonOrderReferenceId()
|
128 |
{
|
129 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
130 |
}
|
131 |
+
|
132 |
/**
|
133 |
* Sets the value of the AmazonOrderReferenceId property.
|
134 |
+
*
|
135 |
* @param string AmazonOrderReferenceId
|
136 |
* @return this instance
|
137 |
*/
|
138 |
+
public function setAmazonOrderReferenceId($value)
|
139 |
{
|
140 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
141 |
return $this;
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
146 |
+
*
|
147 |
* @param string $value AmazonOrderReferenceId
|
148 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceRequest instance
|
149 |
*/
|
152 |
$this->setAmazonOrderReferenceId($value);
|
153 |
return $this;
|
154 |
}
|
155 |
+
|
156 |
+
|
157 |
/**
|
158 |
* Checks if AmazonOrderReferenceId is set
|
159 |
+
*
|
160 |
* @return bool true if AmazonOrderReferenceId is set
|
161 |
*/
|
162 |
public function isSetAmazonOrderReferenceId()
|
163 |
{
|
164 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
165 |
}
|
166 |
+
|
167 |
/**
|
168 |
* Gets the value of the CancelationReason property.
|
169 |
+
*
|
170 |
* @return string CancelationReason
|
171 |
*/
|
172 |
+
public function getCancelationReason()
|
173 |
{
|
174 |
return $this->_fields['CancelationReason']['FieldValue'];
|
175 |
}
|
176 |
+
|
177 |
/**
|
178 |
* Sets the value of the CancelationReason property.
|
179 |
+
*
|
180 |
* @param string CancelationReason
|
181 |
* @return this instance
|
182 |
*/
|
183 |
+
public function setCancelationReason($value)
|
184 |
{
|
185 |
$this->_fields['CancelationReason']['FieldValue'] = $value;
|
186 |
return $this;
|
187 |
}
|
188 |
+
|
189 |
/**
|
190 |
* Sets the value of the CancelationReason and returns this instance
|
191 |
+
*
|
192 |
* @param string $value CancelationReason
|
193 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceRequest instance
|
194 |
*/
|
197 |
$this->setCancelationReason($value);
|
198 |
return $this;
|
199 |
}
|
200 |
+
|
201 |
+
|
202 |
/**
|
203 |
* Checks if CancelationReason is set
|
204 |
+
*
|
205 |
* @return bool true if CancelationReason is set
|
206 |
*/
|
207 |
public function isSetCancelationReason()
|
208 |
{
|
209 |
return !is_null($this->_fields['CancelationReason']['FieldValue']);
|
210 |
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Gets the value of the MWSAuthToken property.
|
214 |
+
*
|
215 |
+
* @return string MWSAuthToken
|
216 |
+
*/
|
217 |
+
public function getMWSAuthToken()
|
218 |
+
{
|
219 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
220 |
+
}
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
224 |
+
*
|
225 |
+
* @param string $value MWSAuthToken
|
226 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
227 |
+
*/
|
228 |
+
public function setMWSAuthToken($value)
|
229 |
+
{
|
230 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
231 |
+
return $this;
|
232 |
+
}
|
233 |
+
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Checks if MWSAuthToken is set
|
237 |
+
*
|
238 |
+
* @return bool true if MWSAuthToken is set
|
239 |
+
*/
|
240 |
+
public function isSetMWSAuthToken()
|
241 |
+
{
|
242 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
243 |
+
}
|
244 |
+
}
|
lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResponse.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CancelOrderReferenceResponse
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CancelOrderReferenceResponse
|
41 |
*
|
@@ -51,18 +51,23 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_CancelOrderReferenceResponse from XML string
|
68 |
*
|
@@ -74,43 +79,43 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
|
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:CancelOrderReferenceResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_CancelOrderReferenceResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that CancelOrderReferenceResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the CancelOrderReferenceResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getCancelOrderReferenceResult()
|
94 |
{
|
95 |
return $this->_fields['CancelOrderReferenceResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the CancelOrderReferenceResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setCancelOrderReferenceResult($value)
|
105 |
{
|
106 |
$this->_fields['CancelOrderReferenceResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the CancelOrderReferenceResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceResponse instance
|
115 |
*/
|
116 |
public function withCancelOrderReferenceResult($value)
|
@@ -118,8 +123,8 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
|
|
118 |
$this->setCancelOrderReferenceResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if CancelOrderReferenceResult is set
|
125 |
*
|
@@ -128,35 +133,35 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
|
|
128 |
public function isSetCancelOrderReferenceResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['CancelOrderReferenceResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,8 +169,8 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
*
|
@@ -174,17 +179,15 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
|
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<CancelOrderReferenceResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,14 +195,16 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAma
|
|
192 |
$xml .= "</CancelOrderReferenceResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CancelOrderReferenceResponse
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_CancelOrderReferenceResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CancelOrderReferenceResponse
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'CancelOrderReferenceResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_CancelOrderReferenceResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
'ResponseMetadata' => array(
|
62 |
+
'FieldValue' => null,
|
63 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
64 |
+
)
|
65 |
+
|
66 |
);
|
67 |
parent::__construct($data);
|
68 |
}
|
69 |
+
|
70 |
+
|
71 |
/**
|
72 |
* Construct OffAmazonPaymentsService_Model_CancelOrderReferenceResponse from XML string
|
73 |
*
|
79 |
$dom = new DOMDocument();
|
80 |
$dom->loadXML($xml);
|
81 |
$xpath = new DOMXPath($dom);
|
82 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
83 |
$response = $xpath->query('//a:CancelOrderReferenceResponse');
|
84 |
if ($response->length == 1) {
|
85 |
+
return new OffAmazonPaymentsService_Model_CancelOrderReferenceResponse(($response->item(0)));
|
86 |
} else {
|
87 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_CancelOrderReferenceResponse from provided XML.
|
88 |
Make sure that CancelOrderReferenceResponse is a root element");
|
89 |
}
|
90 |
+
|
91 |
}
|
92 |
|
93 |
/**
|
94 |
* Gets the value of the CancelOrderReferenceResult.
|
95 |
*
|
96 |
+
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceResult CancelOrderReferenceResult
|
97 |
*/
|
98 |
+
public function getCancelOrderReferenceResult()
|
99 |
{
|
100 |
return $this->_fields['CancelOrderReferenceResult']['FieldValue'];
|
101 |
}
|
102 |
+
|
103 |
/**
|
104 |
* Sets the value of the CancelOrderReferenceResult.
|
105 |
*
|
106 |
+
* @param OffAmazonPaymentsService_Model_CancelOrderReferenceResult CancelOrderReferenceResult
|
107 |
* @return void
|
108 |
*/
|
109 |
+
public function setCancelOrderReferenceResult($value)
|
110 |
{
|
111 |
$this->_fields['CancelOrderReferenceResult']['FieldValue'] = $value;
|
112 |
return;
|
113 |
}
|
114 |
+
|
115 |
/**
|
116 |
* Sets the value of the CancelOrderReferenceResult and returns this instance
|
117 |
*
|
118 |
+
* @param OffAmazonPaymentsService_Model_CancelOrderReferenceResult $value CancelOrderReferenceResult
|
119 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceResponse instance
|
120 |
*/
|
121 |
public function withCancelOrderReferenceResult($value)
|
123 |
$this->setCancelOrderReferenceResult($value);
|
124 |
return $this;
|
125 |
}
|
126 |
+
|
127 |
+
|
128 |
/**
|
129 |
* Checks if CancelOrderReferenceResult is set
|
130 |
*
|
133 |
public function isSetCancelOrderReferenceResult()
|
134 |
{
|
135 |
return !is_null($this->_fields['CancelOrderReferenceResult']['FieldValue']);
|
136 |
+
|
137 |
}
|
138 |
+
|
139 |
/**
|
140 |
* Gets the value of the ResponseMetadata.
|
141 |
*
|
142 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
143 |
*/
|
144 |
+
public function getResponseMetadata()
|
145 |
{
|
146 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
147 |
}
|
148 |
+
|
149 |
/**
|
150 |
* Sets the value of the ResponseMetadata.
|
151 |
*
|
152 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
153 |
* @return void
|
154 |
*/
|
155 |
+
public function setResponseMetadata($value)
|
156 |
{
|
157 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
158 |
return;
|
159 |
}
|
160 |
+
|
161 |
/**
|
162 |
* Sets the value of the ResponseMetadata and returns this instance
|
163 |
*
|
164 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
165 |
* @return OffAmazonPaymentsService_Model_CancelOrderReferenceResponse instance
|
166 |
*/
|
167 |
public function withResponseMetadata($value)
|
169 |
$this->setResponseMetadata($value);
|
170 |
return $this;
|
171 |
}
|
172 |
+
|
173 |
+
|
174 |
/**
|
175 |
* Checks if ResponseMetadata is set
|
176 |
*
|
179 |
public function isSetResponseMetadata()
|
180 |
{
|
181 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
182 |
+
|
183 |
}
|
184 |
+
|
|
|
|
|
185 |
/**
|
186 |
* XML Representation for this object
|
187 |
*
|
188 |
* @return string XML for this object
|
189 |
*/
|
190 |
+
public function toXML()
|
191 |
{
|
192 |
$xml = "";
|
193 |
$xml .= "<CancelOrderReferenceResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
195 |
$xml .= "</CancelOrderReferenceResponse>";
|
196 |
return $xml;
|
197 |
}
|
198 |
+
|
199 |
private $_responseHeaderMetadata = null;
|
200 |
+
|
201 |
+
public function getResponseHeaderMetadata()
|
202 |
+
{
|
203 |
return $this->_responseHeaderMetadata;
|
204 |
}
|
205 |
+
|
206 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
207 |
+
{
|
208 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
209 |
}
|
210 |
+
}
|
lib/OffAmazonPaymentsService/Model/CancelOrderReferenceResult.php
CHANGED
@@ -51,4 +51,4 @@ class OffAmazonPaymentsService_Model_CancelOrderReferenceResult extends OffAmazo
|
|
51 |
);
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
-
}
|
51 |
);
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
+
}
|
lib/OffAmazonPaymentsService/Model/CaptureDetails.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureDetails
|
@@ -40,10 +40,10 @@
|
|
40 |
* <li>SoftDescriptor: string</li>
|
41 |
*
|
42 |
* </ul>
|
43 |
-
*/
|
44 |
class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsService_Model
|
45 |
{
|
46 |
-
|
47 |
/**
|
48 |
* Construct new OffAmazonPaymentsService_Model_CaptureDetails
|
49 |
*
|
@@ -67,56 +67,87 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
67 |
*/
|
68 |
public function __construct($data = null)
|
69 |
{
|
70 |
-
$this->_fields = array
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
);
|
95 |
parent::__construct($data);
|
96 |
}
|
97 |
-
|
98 |
-
|
99 |
* Gets the value of the AmazonCaptureId property.
|
100 |
*
|
101 |
* @return string AmazonCaptureId
|
102 |
*/
|
103 |
-
public function getAmazonCaptureId()
|
104 |
{
|
105 |
return $this->_fields['AmazonCaptureId']['FieldValue'];
|
106 |
}
|
107 |
-
|
108 |
/**
|
109 |
* Sets the value of the AmazonCaptureId property.
|
110 |
*
|
111 |
* @param string AmazonCaptureId
|
112 |
* @return this instance
|
113 |
*/
|
114 |
-
public function setAmazonCaptureId($value)
|
115 |
{
|
116 |
$this->_fields['AmazonCaptureId']['FieldValue'] = $value;
|
117 |
return $this;
|
118 |
}
|
119 |
-
|
120 |
/**
|
121 |
* Sets the value of the AmazonCaptureId and returns this instance
|
122 |
*
|
@@ -128,8 +159,7 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
128 |
$this->setAmazonCaptureId($value);
|
129 |
return $this;
|
130 |
}
|
131 |
-
|
132 |
-
|
133 |
/**
|
134 |
* Checks if AmazonCaptureId is set
|
135 |
*
|
@@ -139,29 +169,29 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
139 |
{
|
140 |
return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
|
141 |
}
|
142 |
-
|
143 |
/**
|
144 |
* Gets the value of the CaptureReferenceId property.
|
145 |
*
|
146 |
* @return string CaptureReferenceId
|
147 |
*/
|
148 |
-
public function getCaptureReferenceId()
|
149 |
{
|
150 |
return $this->_fields['CaptureReferenceId']['FieldValue'];
|
151 |
}
|
152 |
-
|
153 |
/**
|
154 |
* Sets the value of the CaptureReferenceId property.
|
155 |
*
|
156 |
* @param string CaptureReferenceId
|
157 |
* @return this instance
|
158 |
*/
|
159 |
-
public function setCaptureReferenceId($value)
|
160 |
{
|
161 |
$this->_fields['CaptureReferenceId']['FieldValue'] = $value;
|
162 |
return $this;
|
163 |
}
|
164 |
-
|
165 |
/**
|
166 |
* Sets the value of the CaptureReferenceId and returns this instance
|
167 |
*
|
@@ -173,8 +203,7 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
173 |
$this->setCaptureReferenceId($value);
|
174 |
return $this;
|
175 |
}
|
176 |
-
|
177 |
-
|
178 |
/**
|
179 |
* Checks if CaptureReferenceId is set
|
180 |
*
|
@@ -184,29 +213,29 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
184 |
{
|
185 |
return !is_null($this->_fields['CaptureReferenceId']['FieldValue']);
|
186 |
}
|
187 |
-
|
188 |
/**
|
189 |
* Gets the value of the SellerCaptureNote property.
|
190 |
*
|
191 |
* @return string SellerCaptureNote
|
192 |
*/
|
193 |
-
public function getSellerCaptureNote()
|
194 |
{
|
195 |
return $this->_fields['SellerCaptureNote']['FieldValue'];
|
196 |
}
|
197 |
-
|
198 |
/**
|
199 |
* Sets the value of the SellerCaptureNote property.
|
200 |
*
|
201 |
* @param string SellerCaptureNote
|
202 |
* @return this instance
|
203 |
*/
|
204 |
-
public function setSellerCaptureNote($value)
|
205 |
{
|
206 |
$this->_fields['SellerCaptureNote']['FieldValue'] = $value;
|
207 |
return $this;
|
208 |
}
|
209 |
-
|
210 |
/**
|
211 |
* Sets the value of the SellerCaptureNote and returns this instance
|
212 |
*
|
@@ -218,8 +247,7 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
218 |
$this->setSellerCaptureNote($value);
|
219 |
return $this;
|
220 |
}
|
221 |
-
|
222 |
-
|
223 |
/**
|
224 |
* Checks if SellerCaptureNote is set
|
225 |
*
|
@@ -229,29 +257,29 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
229 |
{
|
230 |
return !is_null($this->_fields['SellerCaptureNote']['FieldValue']);
|
231 |
}
|
232 |
-
|
233 |
/**
|
234 |
* Gets the value of the CaptureAmount.
|
235 |
*
|
236 |
* @return Price CaptureAmount
|
237 |
*/
|
238 |
-
public function getCaptureAmount()
|
239 |
{
|
240 |
return $this->_fields['CaptureAmount']['FieldValue'];
|
241 |
}
|
242 |
-
|
243 |
/**
|
244 |
* Sets the value of the CaptureAmount.
|
245 |
*
|
246 |
* @param Price CaptureAmount
|
247 |
* @return void
|
248 |
*/
|
249 |
-
public function setCaptureAmount($value)
|
250 |
{
|
251 |
$this->_fields['CaptureAmount']['FieldValue'] = $value;
|
252 |
return;
|
253 |
}
|
254 |
-
|
255 |
/**
|
256 |
* Sets the value of the CaptureAmount and returns this instance
|
257 |
*
|
@@ -263,8 +291,8 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
263 |
$this->setCaptureAmount($value);
|
264 |
return $this;
|
265 |
}
|
266 |
-
|
267 |
-
|
268 |
/**
|
269 |
* Checks if CaptureAmount is set
|
270 |
*
|
@@ -273,31 +301,31 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
273 |
public function isSetCaptureAmount()
|
274 |
{
|
275 |
return !is_null($this->_fields['CaptureAmount']['FieldValue']);
|
276 |
-
|
277 |
}
|
278 |
-
|
279 |
/**
|
280 |
* Gets the value of the RefundedAmount.
|
281 |
*
|
282 |
* @return Price RefundedAmount
|
283 |
*/
|
284 |
-
public function getRefundedAmount()
|
285 |
{
|
286 |
return $this->_fields['RefundedAmount']['FieldValue'];
|
287 |
}
|
288 |
-
|
289 |
/**
|
290 |
* Sets the value of the RefundedAmount.
|
291 |
*
|
292 |
* @param Price RefundedAmount
|
293 |
* @return void
|
294 |
*/
|
295 |
-
public function setRefundedAmount($value)
|
296 |
{
|
297 |
$this->_fields['RefundedAmount']['FieldValue'] = $value;
|
298 |
return;
|
299 |
}
|
300 |
-
|
301 |
/**
|
302 |
* Sets the value of the RefundedAmount and returns this instance
|
303 |
*
|
@@ -309,8 +337,8 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
309 |
$this->setRefundedAmount($value);
|
310 |
return $this;
|
311 |
}
|
312 |
-
|
313 |
-
|
314 |
/**
|
315 |
* Checks if RefundedAmount is set
|
316 |
*
|
@@ -319,31 +347,31 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
319 |
public function isSetRefundedAmount()
|
320 |
{
|
321 |
return !is_null($this->_fields['RefundedAmount']['FieldValue']);
|
322 |
-
|
323 |
}
|
324 |
-
|
325 |
/**
|
326 |
* Gets the value of the CaptureFee.
|
327 |
*
|
328 |
* @return Price CaptureFee
|
329 |
*/
|
330 |
-
public function getCaptureFee()
|
331 |
{
|
332 |
return $this->_fields['CaptureFee']['FieldValue'];
|
333 |
}
|
334 |
-
|
335 |
/**
|
336 |
* Sets the value of the CaptureFee.
|
337 |
*
|
338 |
* @param Price CaptureFee
|
339 |
* @return void
|
340 |
*/
|
341 |
-
public function setCaptureFee($value)
|
342 |
{
|
343 |
$this->_fields['CaptureFee']['FieldValue'] = $value;
|
344 |
return;
|
345 |
}
|
346 |
-
|
347 |
/**
|
348 |
* Sets the value of the CaptureFee and returns this instance
|
349 |
*
|
@@ -355,8 +383,7 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
355 |
$this->setCaptureFee($value);
|
356 |
return $this;
|
357 |
}
|
358 |
-
|
359 |
-
|
360 |
/**
|
361 |
* Checks if CaptureFee is set
|
362 |
*
|
@@ -365,31 +392,31 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
365 |
public function isSetCaptureFee()
|
366 |
{
|
367 |
return !is_null($this->_fields['CaptureFee']['FieldValue']);
|
368 |
-
|
369 |
}
|
370 |
-
|
371 |
/**
|
372 |
* Gets the value of the IdList.
|
373 |
*
|
374 |
* @return IdList IdList
|
375 |
*/
|
376 |
-
public function getIdList()
|
377 |
{
|
378 |
return $this->_fields['IdList']['FieldValue'];
|
379 |
}
|
380 |
-
|
381 |
/**
|
382 |
* Sets the value of the IdList.
|
383 |
*
|
384 |
* @param IdList IdList
|
385 |
* @return void
|
386 |
*/
|
387 |
-
public function setIdList($value)
|
388 |
{
|
389 |
$this->_fields['IdList']['FieldValue'] = $value;
|
390 |
return;
|
391 |
}
|
392 |
-
|
393 |
/**
|
394 |
* Sets the value of the IdList and returns this instance
|
395 |
*
|
@@ -401,8 +428,8 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
401 |
$this->setIdList($value);
|
402 |
return $this;
|
403 |
}
|
404 |
-
|
405 |
-
|
406 |
/**
|
407 |
* Checks if IdList is set
|
408 |
*
|
@@ -411,31 +438,31 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
411 |
public function isSetIdList()
|
412 |
{
|
413 |
return !is_null($this->_fields['IdList']['FieldValue']);
|
414 |
-
|
415 |
}
|
416 |
-
|
417 |
/**
|
418 |
* Gets the value of the CreationTimestamp property.
|
419 |
*
|
420 |
* @return string CreationTimestamp
|
421 |
*/
|
422 |
-
public function getCreationTimestamp()
|
423 |
{
|
424 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
425 |
}
|
426 |
-
|
427 |
/**
|
428 |
* Sets the value of the CreationTimestamp property.
|
429 |
*
|
430 |
* @param string CreationTimestamp
|
431 |
* @return this instance
|
432 |
*/
|
433 |
-
public function setCreationTimestamp($value)
|
434 |
{
|
435 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
436 |
return $this;
|
437 |
}
|
438 |
-
|
439 |
/**
|
440 |
* Sets the value of the CreationTimestamp and returns this instance
|
441 |
*
|
@@ -447,8 +474,8 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
447 |
$this->setCreationTimestamp($value);
|
448 |
return $this;
|
449 |
}
|
450 |
-
|
451 |
-
|
452 |
/**
|
453 |
* Checks if CreationTimestamp is set
|
454 |
*
|
@@ -458,29 +485,29 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
458 |
{
|
459 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
460 |
}
|
461 |
-
|
462 |
/**
|
463 |
* Gets the value of the CaptureStatus.
|
464 |
*
|
465 |
* @return Status CaptureStatus
|
466 |
*/
|
467 |
-
public function getCaptureStatus()
|
468 |
{
|
469 |
return $this->_fields['CaptureStatus']['FieldValue'];
|
470 |
}
|
471 |
-
|
472 |
/**
|
473 |
* Sets the value of the CaptureStatus.
|
474 |
*
|
475 |
* @param Status CaptureStatus
|
476 |
* @return void
|
477 |
*/
|
478 |
-
public function setCaptureStatus($value)
|
479 |
{
|
480 |
$this->_fields['CaptureStatus']['FieldValue'] = $value;
|
481 |
return;
|
482 |
}
|
483 |
-
|
484 |
/**
|
485 |
* Sets the value of the CaptureStatus and returns this instance
|
486 |
*
|
@@ -492,8 +519,8 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
492 |
$this->setCaptureStatus($value);
|
493 |
return $this;
|
494 |
}
|
495 |
-
|
496 |
-
|
497 |
/**
|
498 |
* Checks if CaptureStatus is set
|
499 |
*
|
@@ -502,31 +529,31 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
502 |
public function isSetCaptureStatus()
|
503 |
{
|
504 |
return !is_null($this->_fields['CaptureStatus']['FieldValue']);
|
505 |
-
|
506 |
}
|
507 |
-
|
508 |
/**
|
509 |
* Gets the value of the SoftDescriptor property.
|
510 |
*
|
511 |
* @return string SoftDescriptor
|
512 |
*/
|
513 |
-
public function getSoftDescriptor()
|
514 |
{
|
515 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
516 |
}
|
517 |
-
|
518 |
/**
|
519 |
* Sets the value of the SoftDescriptor property.
|
520 |
*
|
521 |
* @param string SoftDescriptor
|
522 |
* @return this instance
|
523 |
*/
|
524 |
-
public function setSoftDescriptor($value)
|
525 |
{
|
526 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
527 |
return $this;
|
528 |
}
|
529 |
-
|
530 |
/**
|
531 |
* Sets the value of the SoftDescriptor and returns this instance
|
532 |
*
|
@@ -538,8 +565,8 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
538 |
$this->setSoftDescriptor($value);
|
539 |
return $this;
|
540 |
}
|
541 |
-
|
542 |
-
|
543 |
/**
|
544 |
* Checks if SoftDescriptor is set
|
545 |
*
|
@@ -557,7 +584,7 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
557 |
*/
|
558 |
public function getProviderCreditSummaryList()
|
559 |
{
|
560 |
-
|
561 |
}
|
562 |
|
563 |
/**
|
@@ -568,8 +595,8 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
568 |
*/
|
569 |
public function setProviderCreditSummaryList($value)
|
570 |
{
|
571 |
-
|
572 |
-
|
573 |
}
|
574 |
|
575 |
/**
|
@@ -580,11 +607,10 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
580 |
*/
|
581 |
public function withProviderCreditSummaryList($value)
|
582 |
{
|
583 |
-
|
584 |
-
|
585 |
}
|
586 |
|
587 |
-
|
588 |
/**
|
589 |
* Checks if ProviderCreditSummaryList is set
|
590 |
*
|
@@ -592,8 +618,7 @@ class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsSer
|
|
592 |
*/
|
593 |
public function isSetProviderCreditSummaryList()
|
594 |
{
|
595 |
-
|
596 |
-
|
597 |
}
|
598 |
-
|
599 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureDetails
|
40 |
* <li>SoftDescriptor: string</li>
|
41 |
*
|
42 |
* </ul>
|
43 |
+
*/
|
44 |
class OffAmazonPaymentsService_Model_CaptureDetails extends OffAmazonPaymentsService_Model
|
45 |
{
|
46 |
+
|
47 |
/**
|
48 |
* Construct new OffAmazonPaymentsService_Model_CaptureDetails
|
49 |
*
|
67 |
*/
|
68 |
public function __construct($data = null)
|
69 |
{
|
70 |
+
$this->_fields = array(
|
71 |
+
'AmazonCaptureId' => array(
|
72 |
+
'FieldValue' => null,
|
73 |
+
'FieldType' => 'string'
|
74 |
+
),
|
75 |
+
|
76 |
+
'CaptureReferenceId' => array(
|
77 |
+
'FieldValue' => null,
|
78 |
+
'FieldType' => 'string'
|
79 |
+
),
|
80 |
+
|
81 |
+
'SellerCaptureNote' => array(
|
82 |
+
'FieldValue' => null,
|
83 |
+
'FieldType' => 'string'
|
84 |
+
),
|
85 |
+
|
86 |
+
'CaptureAmount' => array(
|
87 |
+
'FieldValue' => null,
|
88 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
89 |
+
),
|
90 |
+
|
91 |
+
'RefundedAmount' => array(
|
92 |
+
'FieldValue' => null,
|
93 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
94 |
+
),
|
95 |
+
|
96 |
+
'CaptureFee' => array(
|
97 |
+
'FieldValue' => null,
|
98 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
99 |
+
),
|
100 |
+
|
101 |
+
'IdList' => array(
|
102 |
+
'FieldValue' => null,
|
103 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_IdList'
|
104 |
+
),
|
105 |
+
|
106 |
+
'CreationTimestamp' => array(
|
107 |
+
'FieldValue' => null,
|
108 |
+
'FieldType' => 'string'
|
109 |
+
),
|
110 |
+
|
111 |
+
'CaptureStatus' => array(
|
112 |
+
'FieldValue' => null,
|
113 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Status'
|
114 |
+
),
|
115 |
+
|
116 |
+
'SoftDescriptor' => array(
|
117 |
+
'FieldValue' => null,
|
118 |
+
'FieldType' => 'string'
|
119 |
+
),
|
120 |
+
|
121 |
+
'ProviderCreditSummaryList' => array(
|
122 |
+
'FieldValue' => null,
|
123 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditSummaryList'
|
124 |
+
)
|
125 |
);
|
126 |
parent::__construct($data);
|
127 |
}
|
128 |
+
|
129 |
+
/**
|
130 |
* Gets the value of the AmazonCaptureId property.
|
131 |
*
|
132 |
* @return string AmazonCaptureId
|
133 |
*/
|
134 |
+
public function getAmazonCaptureId()
|
135 |
{
|
136 |
return $this->_fields['AmazonCaptureId']['FieldValue'];
|
137 |
}
|
138 |
+
|
139 |
/**
|
140 |
* Sets the value of the AmazonCaptureId property.
|
141 |
*
|
142 |
* @param string AmazonCaptureId
|
143 |
* @return this instance
|
144 |
*/
|
145 |
+
public function setAmazonCaptureId($value)
|
146 |
{
|
147 |
$this->_fields['AmazonCaptureId']['FieldValue'] = $value;
|
148 |
return $this;
|
149 |
}
|
150 |
+
|
151 |
/**
|
152 |
* Sets the value of the AmazonCaptureId and returns this instance
|
153 |
*
|
159 |
$this->setAmazonCaptureId($value);
|
160 |
return $this;
|
161 |
}
|
162 |
+
|
|
|
163 |
/**
|
164 |
* Checks if AmazonCaptureId is set
|
165 |
*
|
169 |
{
|
170 |
return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
|
171 |
}
|
172 |
+
|
173 |
/**
|
174 |
* Gets the value of the CaptureReferenceId property.
|
175 |
*
|
176 |
* @return string CaptureReferenceId
|
177 |
*/
|
178 |
+
public function getCaptureReferenceId()
|
179 |
{
|
180 |
return $this->_fields['CaptureReferenceId']['FieldValue'];
|
181 |
}
|
182 |
+
|
183 |
/**
|
184 |
* Sets the value of the CaptureReferenceId property.
|
185 |
*
|
186 |
* @param string CaptureReferenceId
|
187 |
* @return this instance
|
188 |
*/
|
189 |
+
public function setCaptureReferenceId($value)
|
190 |
{
|
191 |
$this->_fields['CaptureReferenceId']['FieldValue'] = $value;
|
192 |
return $this;
|
193 |
}
|
194 |
+
|
195 |
/**
|
196 |
* Sets the value of the CaptureReferenceId and returns this instance
|
197 |
*
|
203 |
$this->setCaptureReferenceId($value);
|
204 |
return $this;
|
205 |
}
|
206 |
+
|
|
|
207 |
/**
|
208 |
* Checks if CaptureReferenceId is set
|
209 |
*
|
213 |
{
|
214 |
return !is_null($this->_fields['CaptureReferenceId']['FieldValue']);
|
215 |
}
|
216 |
+
|
217 |
/**
|
218 |
* Gets the value of the SellerCaptureNote property.
|
219 |
*
|
220 |
* @return string SellerCaptureNote
|
221 |
*/
|
222 |
+
public function getSellerCaptureNote()
|
223 |
{
|
224 |
return $this->_fields['SellerCaptureNote']['FieldValue'];
|
225 |
}
|
226 |
+
|
227 |
/**
|
228 |
* Sets the value of the SellerCaptureNote property.
|
229 |
*
|
230 |
* @param string SellerCaptureNote
|
231 |
* @return this instance
|
232 |
*/
|
233 |
+
public function setSellerCaptureNote($value)
|
234 |
{
|
235 |
$this->_fields['SellerCaptureNote']['FieldValue'] = $value;
|
236 |
return $this;
|
237 |
}
|
238 |
+
|
239 |
/**
|
240 |
* Sets the value of the SellerCaptureNote and returns this instance
|
241 |
*
|
247 |
$this->setSellerCaptureNote($value);
|
248 |
return $this;
|
249 |
}
|
250 |
+
|
|
|
251 |
/**
|
252 |
* Checks if SellerCaptureNote is set
|
253 |
*
|
257 |
{
|
258 |
return !is_null($this->_fields['SellerCaptureNote']['FieldValue']);
|
259 |
}
|
260 |
+
|
261 |
/**
|
262 |
* Gets the value of the CaptureAmount.
|
263 |
*
|
264 |
* @return Price CaptureAmount
|
265 |
*/
|
266 |
+
public function getCaptureAmount()
|
267 |
{
|
268 |
return $this->_fields['CaptureAmount']['FieldValue'];
|
269 |
}
|
270 |
+
|
271 |
/**
|
272 |
* Sets the value of the CaptureAmount.
|
273 |
*
|
274 |
* @param Price CaptureAmount
|
275 |
* @return void
|
276 |
*/
|
277 |
+
public function setCaptureAmount($value)
|
278 |
{
|
279 |
$this->_fields['CaptureAmount']['FieldValue'] = $value;
|
280 |
return;
|
281 |
}
|
282 |
+
|
283 |
/**
|
284 |
* Sets the value of the CaptureAmount and returns this instance
|
285 |
*
|
291 |
$this->setCaptureAmount($value);
|
292 |
return $this;
|
293 |
}
|
294 |
+
|
295 |
+
|
296 |
/**
|
297 |
* Checks if CaptureAmount is set
|
298 |
*
|
301 |
public function isSetCaptureAmount()
|
302 |
{
|
303 |
return !is_null($this->_fields['CaptureAmount']['FieldValue']);
|
304 |
+
|
305 |
}
|
306 |
+
|
307 |
/**
|
308 |
* Gets the value of the RefundedAmount.
|
309 |
*
|
310 |
* @return Price RefundedAmount
|
311 |
*/
|
312 |
+
public function getRefundedAmount()
|
313 |
{
|
314 |
return $this->_fields['RefundedAmount']['FieldValue'];
|
315 |
}
|
316 |
+
|
317 |
/**
|
318 |
* Sets the value of the RefundedAmount.
|
319 |
*
|
320 |
* @param Price RefundedAmount
|
321 |
* @return void
|
322 |
*/
|
323 |
+
public function setRefundedAmount($value)
|
324 |
{
|
325 |
$this->_fields['RefundedAmount']['FieldValue'] = $value;
|
326 |
return;
|
327 |
}
|
328 |
+
|
329 |
/**
|
330 |
* Sets the value of the RefundedAmount and returns this instance
|
331 |
*
|
337 |
$this->setRefundedAmount($value);
|
338 |
return $this;
|
339 |
}
|
340 |
+
|
341 |
+
|
342 |
/**
|
343 |
* Checks if RefundedAmount is set
|
344 |
*
|
347 |
public function isSetRefundedAmount()
|
348 |
{
|
349 |
return !is_null($this->_fields['RefundedAmount']['FieldValue']);
|
350 |
+
|
351 |
}
|
352 |
+
|
353 |
/**
|
354 |
* Gets the value of the CaptureFee.
|
355 |
*
|
356 |
* @return Price CaptureFee
|
357 |
*/
|
358 |
+
public function getCaptureFee()
|
359 |
{
|
360 |
return $this->_fields['CaptureFee']['FieldValue'];
|
361 |
}
|
362 |
+
|
363 |
/**
|
364 |
* Sets the value of the CaptureFee.
|
365 |
*
|
366 |
* @param Price CaptureFee
|
367 |
* @return void
|
368 |
*/
|
369 |
+
public function setCaptureFee($value)
|
370 |
{
|
371 |
$this->_fields['CaptureFee']['FieldValue'] = $value;
|
372 |
return;
|
373 |
}
|
374 |
+
|
375 |
/**
|
376 |
* Sets the value of the CaptureFee and returns this instance
|
377 |
*
|
383 |
$this->setCaptureFee($value);
|
384 |
return $this;
|
385 |
}
|
386 |
+
|
|
|
387 |
/**
|
388 |
* Checks if CaptureFee is set
|
389 |
*
|
392 |
public function isSetCaptureFee()
|
393 |
{
|
394 |
return !is_null($this->_fields['CaptureFee']['FieldValue']);
|
395 |
+
|
396 |
}
|
397 |
+
|
398 |
/**
|
399 |
* Gets the value of the IdList.
|
400 |
*
|
401 |
* @return IdList IdList
|
402 |
*/
|
403 |
+
public function getIdList()
|
404 |
{
|
405 |
return $this->_fields['IdList']['FieldValue'];
|
406 |
}
|
407 |
+
|
408 |
/**
|
409 |
* Sets the value of the IdList.
|
410 |
*
|
411 |
* @param IdList IdList
|
412 |
* @return void
|
413 |
*/
|
414 |
+
public function setIdList($value)
|
415 |
{
|
416 |
$this->_fields['IdList']['FieldValue'] = $value;
|
417 |
return;
|
418 |
}
|
419 |
+
|
420 |
/**
|
421 |
* Sets the value of the IdList and returns this instance
|
422 |
*
|
428 |
$this->setIdList($value);
|
429 |
return $this;
|
430 |
}
|
431 |
+
|
432 |
+
|
433 |
/**
|
434 |
* Checks if IdList is set
|
435 |
*
|
438 |
public function isSetIdList()
|
439 |
{
|
440 |
return !is_null($this->_fields['IdList']['FieldValue']);
|
441 |
+
|
442 |
}
|
443 |
+
|
444 |
/**
|
445 |
* Gets the value of the CreationTimestamp property.
|
446 |
*
|
447 |
* @return string CreationTimestamp
|
448 |
*/
|
449 |
+
public function getCreationTimestamp()
|
450 |
{
|
451 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
452 |
}
|
453 |
+
|
454 |
/**
|
455 |
* Sets the value of the CreationTimestamp property.
|
456 |
*
|
457 |
* @param string CreationTimestamp
|
458 |
* @return this instance
|
459 |
*/
|
460 |
+
public function setCreationTimestamp($value)
|
461 |
{
|
462 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
463 |
return $this;
|
464 |
}
|
465 |
+
|
466 |
/**
|
467 |
* Sets the value of the CreationTimestamp and returns this instance
|
468 |
*
|
474 |
$this->setCreationTimestamp($value);
|
475 |
return $this;
|
476 |
}
|
477 |
+
|
478 |
+
|
479 |
/**
|
480 |
* Checks if CreationTimestamp is set
|
481 |
*
|
485 |
{
|
486 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
487 |
}
|
488 |
+
|
489 |
/**
|
490 |
* Gets the value of the CaptureStatus.
|
491 |
*
|
492 |
* @return Status CaptureStatus
|
493 |
*/
|
494 |
+
public function getCaptureStatus()
|
495 |
{
|
496 |
return $this->_fields['CaptureStatus']['FieldValue'];
|
497 |
}
|
498 |
+
|
499 |
/**
|
500 |
* Sets the value of the CaptureStatus.
|
501 |
*
|
502 |
* @param Status CaptureStatus
|
503 |
* @return void
|
504 |
*/
|
505 |
+
public function setCaptureStatus($value)
|
506 |
{
|
507 |
$this->_fields['CaptureStatus']['FieldValue'] = $value;
|
508 |
return;
|
509 |
}
|
510 |
+
|
511 |
/**
|
512 |
* Sets the value of the CaptureStatus and returns this instance
|
513 |
*
|
519 |
$this->setCaptureStatus($value);
|
520 |
return $this;
|
521 |
}
|
522 |
+
|
523 |
+
|
524 |
/**
|
525 |
* Checks if CaptureStatus is set
|
526 |
*
|
529 |
public function isSetCaptureStatus()
|
530 |
{
|
531 |
return !is_null($this->_fields['CaptureStatus']['FieldValue']);
|
532 |
+
|
533 |
}
|
534 |
+
|
535 |
/**
|
536 |
* Gets the value of the SoftDescriptor property.
|
537 |
*
|
538 |
* @return string SoftDescriptor
|
539 |
*/
|
540 |
+
public function getSoftDescriptor()
|
541 |
{
|
542 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
543 |
}
|
544 |
+
|
545 |
/**
|
546 |
* Sets the value of the SoftDescriptor property.
|
547 |
*
|
548 |
* @param string SoftDescriptor
|
549 |
* @return this instance
|
550 |
*/
|
551 |
+
public function setSoftDescriptor($value)
|
552 |
{
|
553 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
554 |
return $this;
|
555 |
}
|
556 |
+
|
557 |
/**
|
558 |
* Sets the value of the SoftDescriptor and returns this instance
|
559 |
*
|
565 |
$this->setSoftDescriptor($value);
|
566 |
return $this;
|
567 |
}
|
568 |
+
|
569 |
+
|
570 |
/**
|
571 |
* Checks if SoftDescriptor is set
|
572 |
*
|
584 |
*/
|
585 |
public function getProviderCreditSummaryList()
|
586 |
{
|
587 |
+
return $this->_fields['ProviderCreditSummaryList']['FieldValue'];
|
588 |
}
|
589 |
|
590 |
/**
|
595 |
*/
|
596 |
public function setProviderCreditSummaryList($value)
|
597 |
{
|
598 |
+
$this->_fields['ProviderCreditSummaryList']['FieldValue'] = $value;
|
599 |
+
return;
|
600 |
}
|
601 |
|
602 |
/**
|
607 |
*/
|
608 |
public function withProviderCreditSummaryList($value)
|
609 |
{
|
610 |
+
$this->setProviderCreditSummaryList($value);
|
611 |
+
return $this;
|
612 |
}
|
613 |
|
|
|
614 |
/**
|
615 |
* Checks if ProviderCreditSummaryList is set
|
616 |
*
|
618 |
*/
|
619 |
public function isSetProviderCreditSummaryList()
|
620 |
{
|
621 |
+
return !is_null($this->_fields['ProviderCreditSummaryList']['FieldValue']);
|
622 |
+
|
623 |
}
|
624 |
+
}
|
|
lib/OffAmazonPaymentsService/Model/CaptureRequest.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureRequest
|
@@ -36,10 +36,10 @@
|
|
36 |
* <li>SoftDescriptor: string</li>
|
37 |
*
|
38 |
* </ul>
|
39 |
-
*/
|
40 |
class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsService_Model
|
41 |
{
|
42 |
-
|
43 |
/**
|
44 |
* Construct new OffAmazonPaymentsService_Model_CaptureRequest
|
45 |
*
|
@@ -59,42 +59,67 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
59 |
*/
|
60 |
public function __construct($data = null)
|
61 |
{
|
62 |
-
$this->_fields = array
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
);
|
73 |
parent::__construct($data);
|
74 |
}
|
75 |
-
|
76 |
-
|
77 |
* Gets the value of the SellerId property.
|
78 |
*
|
79 |
* @return string SellerId
|
80 |
*/
|
81 |
-
public function getSellerId()
|
82 |
{
|
83 |
return $this->_fields['SellerId']['FieldValue'];
|
84 |
}
|
85 |
-
|
86 |
/**
|
87 |
* Sets the value of the SellerId property.
|
88 |
*
|
89 |
* @param string SellerId
|
90 |
* @return this instance
|
91 |
*/
|
92 |
-
public function setSellerId($value)
|
93 |
{
|
94 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
95 |
return $this;
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the SellerId and returns this instance
|
100 |
*
|
@@ -106,8 +131,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
106 |
$this->setSellerId($value);
|
107 |
return $this;
|
108 |
}
|
109 |
-
|
110 |
-
|
111 |
/**
|
112 |
* Checks if SellerId is set
|
113 |
*
|
@@ -117,29 +142,29 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
117 |
{
|
118 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
119 |
}
|
120 |
-
|
121 |
/**
|
122 |
* Gets the value of the AmazonAuthorizationId property.
|
123 |
*
|
124 |
* @return string AmazonAuthorizationId
|
125 |
*/
|
126 |
-
public function getAmazonAuthorizationId()
|
127 |
{
|
128 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
129 |
}
|
130 |
-
|
131 |
/**
|
132 |
* Sets the value of the AmazonAuthorizationId property.
|
133 |
*
|
134 |
* @param string AmazonAuthorizationId
|
135 |
* @return this instance
|
136 |
*/
|
137 |
-
public function setAmazonAuthorizationId($value)
|
138 |
{
|
139 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
140 |
return $this;
|
141 |
}
|
142 |
-
|
143 |
/**
|
144 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
145 |
*
|
@@ -151,8 +176,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
151 |
$this->setAmazonAuthorizationId($value);
|
152 |
return $this;
|
153 |
}
|
154 |
-
|
155 |
-
|
156 |
/**
|
157 |
* Checks if AmazonAuthorizationId is set
|
158 |
*
|
@@ -162,29 +187,29 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
162 |
{
|
163 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
164 |
}
|
165 |
-
|
166 |
/**
|
167 |
* Gets the value of the CaptureReferenceId property.
|
168 |
*
|
169 |
* @return string CaptureReferenceId
|
170 |
*/
|
171 |
-
public function getCaptureReferenceId()
|
172 |
{
|
173 |
return $this->_fields['CaptureReferenceId']['FieldValue'];
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* Sets the value of the CaptureReferenceId property.
|
178 |
*
|
179 |
* @param string CaptureReferenceId
|
180 |
* @return this instance
|
181 |
*/
|
182 |
-
public function setCaptureReferenceId($value)
|
183 |
{
|
184 |
$this->_fields['CaptureReferenceId']['FieldValue'] = $value;
|
185 |
return $this;
|
186 |
}
|
187 |
-
|
188 |
/**
|
189 |
* Sets the value of the CaptureReferenceId and returns this instance
|
190 |
*
|
@@ -196,8 +221,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
196 |
$this->setCaptureReferenceId($value);
|
197 |
return $this;
|
198 |
}
|
199 |
-
|
200 |
-
|
201 |
/**
|
202 |
* Checks if CaptureReferenceId is set
|
203 |
*
|
@@ -207,29 +232,29 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
207 |
{
|
208 |
return !is_null($this->_fields['CaptureReferenceId']['FieldValue']);
|
209 |
}
|
210 |
-
|
211 |
/**
|
212 |
* Gets the value of the CaptureAmount.
|
213 |
*
|
214 |
* @return Price CaptureAmount
|
215 |
*/
|
216 |
-
public function getCaptureAmount()
|
217 |
{
|
218 |
return $this->_fields['CaptureAmount']['FieldValue'];
|
219 |
}
|
220 |
-
|
221 |
/**
|
222 |
* Sets the value of the CaptureAmount.
|
223 |
*
|
224 |
* @param Price CaptureAmount
|
225 |
* @return void
|
226 |
*/
|
227 |
-
public function setCaptureAmount($value)
|
228 |
{
|
229 |
$this->_fields['CaptureAmount']['FieldValue'] = $value;
|
230 |
return;
|
231 |
}
|
232 |
-
|
233 |
/**
|
234 |
* Sets the value of the CaptureAmount and returns this instance
|
235 |
*
|
@@ -241,8 +266,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
241 |
$this->setCaptureAmount($value);
|
242 |
return $this;
|
243 |
}
|
244 |
-
|
245 |
-
|
246 |
/**
|
247 |
* Checks if CaptureAmount is set
|
248 |
*
|
@@ -251,31 +276,31 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
251 |
public function isSetCaptureAmount()
|
252 |
{
|
253 |
return !is_null($this->_fields['CaptureAmount']['FieldValue']);
|
254 |
-
|
255 |
}
|
256 |
-
|
257 |
/**
|
258 |
* Gets the value of the SellerCaptureNote property.
|
259 |
*
|
260 |
* @return string SellerCaptureNote
|
261 |
*/
|
262 |
-
public function getSellerCaptureNote()
|
263 |
{
|
264 |
return $this->_fields['SellerCaptureNote']['FieldValue'];
|
265 |
}
|
266 |
-
|
267 |
/**
|
268 |
* Sets the value of the SellerCaptureNote property.
|
269 |
*
|
270 |
* @param string SellerCaptureNote
|
271 |
* @return this instance
|
272 |
*/
|
273 |
-
public function setSellerCaptureNote($value)
|
274 |
{
|
275 |
$this->_fields['SellerCaptureNote']['FieldValue'] = $value;
|
276 |
return $this;
|
277 |
}
|
278 |
-
|
279 |
/**
|
280 |
* Sets the value of the SellerCaptureNote and returns this instance
|
281 |
*
|
@@ -287,8 +312,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
287 |
$this->setSellerCaptureNote($value);
|
288 |
return $this;
|
289 |
}
|
290 |
-
|
291 |
-
|
292 |
/**
|
293 |
* Checks if SellerCaptureNote is set
|
294 |
*
|
@@ -298,29 +323,29 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
298 |
{
|
299 |
return !is_null($this->_fields['SellerCaptureNote']['FieldValue']);
|
300 |
}
|
301 |
-
|
302 |
/**
|
303 |
* Gets the value of the SoftDescriptor property.
|
304 |
*
|
305 |
* @return string SoftDescriptor
|
306 |
*/
|
307 |
-
public function getSoftDescriptor()
|
308 |
{
|
309 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
310 |
}
|
311 |
-
|
312 |
/**
|
313 |
* Sets the value of the SoftDescriptor property.
|
314 |
*
|
315 |
* @param string SoftDescriptor
|
316 |
* @return this instance
|
317 |
*/
|
318 |
-
public function setSoftDescriptor($value)
|
319 |
{
|
320 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
321 |
return $this;
|
322 |
}
|
323 |
-
|
324 |
/**
|
325 |
* Sets the value of the SoftDescriptor and returns this instance
|
326 |
*
|
@@ -332,8 +357,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
332 |
$this->setSoftDescriptor($value);
|
333 |
return $this;
|
334 |
}
|
335 |
-
|
336 |
-
|
337 |
/**
|
338 |
* Checks if SoftDescriptor is set
|
339 |
*
|
@@ -351,7 +376,7 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
351 |
*/
|
352 |
public function getProviderCreditList()
|
353 |
{
|
354 |
-
|
355 |
}
|
356 |
|
357 |
/**
|
@@ -362,8 +387,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
362 |
*/
|
363 |
public function setProviderCreditList($value)
|
364 |
{
|
365 |
-
|
366 |
-
|
367 |
}
|
368 |
|
369 |
/**
|
@@ -374,8 +399,8 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
374 |
*/
|
375 |
public function withProviderCreditList($value)
|
376 |
{
|
377 |
-
|
378 |
-
|
379 |
}
|
380 |
|
381 |
|
@@ -386,7 +411,40 @@ class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsSer
|
|
386 |
*/
|
387 |
public function isSetProviderCreditList()
|
388 |
{
|
389 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
}
|
392 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureRequest
|
36 |
* <li>SoftDescriptor: string</li>
|
37 |
*
|
38 |
* </ul>
|
39 |
+
*/
|
40 |
class OffAmazonPaymentsService_Model_CaptureRequest extends OffAmazonPaymentsService_Model
|
41 |
{
|
42 |
+
|
43 |
/**
|
44 |
* Construct new OffAmazonPaymentsService_Model_CaptureRequest
|
45 |
*
|
59 |
*/
|
60 |
public function __construct($data = null)
|
61 |
{
|
62 |
+
$this->_fields = array(
|
63 |
+
'SellerId' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
),
|
67 |
+
'AmazonAuthorizationId' => array(
|
68 |
+
'FieldValue' => null,
|
69 |
+
'FieldType' => 'string'
|
70 |
+
),
|
71 |
+
'CaptureReferenceId' => array(
|
72 |
+
'FieldValue' => null,
|
73 |
+
'FieldType' => 'string'
|
74 |
+
),
|
75 |
+
|
76 |
+
'CaptureAmount' => array(
|
77 |
+
'FieldValue' => null,
|
78 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
79 |
+
),
|
80 |
+
|
81 |
+
'SellerCaptureNote' => array(
|
82 |
+
'FieldValue' => null,
|
83 |
+
'FieldType' => 'string'
|
84 |
+
),
|
85 |
+
'SoftDescriptor' => array(
|
86 |
+
'FieldValue' => null,
|
87 |
+
'FieldType' => 'string'
|
88 |
+
),
|
89 |
+
'ProviderCreditList' => array(
|
90 |
+
'FieldValue' => null,
|
91 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditList'
|
92 |
+
),
|
93 |
+
'MWSAuthToken' => array(
|
94 |
+
'FieldValue' => null,
|
95 |
+
'FieldType' => 'string'
|
96 |
+
)
|
97 |
);
|
98 |
parent::__construct($data);
|
99 |
}
|
100 |
+
|
101 |
+
/**
|
102 |
* Gets the value of the SellerId property.
|
103 |
*
|
104 |
* @return string SellerId
|
105 |
*/
|
106 |
+
public function getSellerId()
|
107 |
{
|
108 |
return $this->_fields['SellerId']['FieldValue'];
|
109 |
}
|
110 |
+
|
111 |
/**
|
112 |
* Sets the value of the SellerId property.
|
113 |
*
|
114 |
* @param string SellerId
|
115 |
* @return this instance
|
116 |
*/
|
117 |
+
public function setSellerId($value)
|
118 |
{
|
119 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
120 |
return $this;
|
121 |
}
|
122 |
+
|
123 |
/**
|
124 |
* Sets the value of the SellerId and returns this instance
|
125 |
*
|
131 |
$this->setSellerId($value);
|
132 |
return $this;
|
133 |
}
|
134 |
+
|
135 |
+
|
136 |
/**
|
137 |
* Checks if SellerId is set
|
138 |
*
|
142 |
{
|
143 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
144 |
}
|
145 |
+
|
146 |
/**
|
147 |
* Gets the value of the AmazonAuthorizationId property.
|
148 |
*
|
149 |
* @return string AmazonAuthorizationId
|
150 |
*/
|
151 |
+
public function getAmazonAuthorizationId()
|
152 |
{
|
153 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
154 |
}
|
155 |
+
|
156 |
/**
|
157 |
* Sets the value of the AmazonAuthorizationId property.
|
158 |
*
|
159 |
* @param string AmazonAuthorizationId
|
160 |
* @return this instance
|
161 |
*/
|
162 |
+
public function setAmazonAuthorizationId($value)
|
163 |
{
|
164 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
165 |
return $this;
|
166 |
}
|
167 |
+
|
168 |
/**
|
169 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
170 |
*
|
176 |
$this->setAmazonAuthorizationId($value);
|
177 |
return $this;
|
178 |
}
|
179 |
+
|
180 |
+
|
181 |
/**
|
182 |
* Checks if AmazonAuthorizationId is set
|
183 |
*
|
187 |
{
|
188 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
189 |
}
|
190 |
+
|
191 |
/**
|
192 |
* Gets the value of the CaptureReferenceId property.
|
193 |
*
|
194 |
* @return string CaptureReferenceId
|
195 |
*/
|
196 |
+
public function getCaptureReferenceId()
|
197 |
{
|
198 |
return $this->_fields['CaptureReferenceId']['FieldValue'];
|
199 |
}
|
200 |
+
|
201 |
/**
|
202 |
* Sets the value of the CaptureReferenceId property.
|
203 |
*
|
204 |
* @param string CaptureReferenceId
|
205 |
* @return this instance
|
206 |
*/
|
207 |
+
public function setCaptureReferenceId($value)
|
208 |
{
|
209 |
$this->_fields['CaptureReferenceId']['FieldValue'] = $value;
|
210 |
return $this;
|
211 |
}
|
212 |
+
|
213 |
/**
|
214 |
* Sets the value of the CaptureReferenceId and returns this instance
|
215 |
*
|
221 |
$this->setCaptureReferenceId($value);
|
222 |
return $this;
|
223 |
}
|
224 |
+
|
225 |
+
|
226 |
/**
|
227 |
* Checks if CaptureReferenceId is set
|
228 |
*
|
232 |
{
|
233 |
return !is_null($this->_fields['CaptureReferenceId']['FieldValue']);
|
234 |
}
|
235 |
+
|
236 |
/**
|
237 |
* Gets the value of the CaptureAmount.
|
238 |
*
|
239 |
* @return Price CaptureAmount
|
240 |
*/
|
241 |
+
public function getCaptureAmount()
|
242 |
{
|
243 |
return $this->_fields['CaptureAmount']['FieldValue'];
|
244 |
}
|
245 |
+
|
246 |
/**
|
247 |
* Sets the value of the CaptureAmount.
|
248 |
*
|
249 |
* @param Price CaptureAmount
|
250 |
* @return void
|
251 |
*/
|
252 |
+
public function setCaptureAmount($value)
|
253 |
{
|
254 |
$this->_fields['CaptureAmount']['FieldValue'] = $value;
|
255 |
return;
|
256 |
}
|
257 |
+
|
258 |
/**
|
259 |
* Sets the value of the CaptureAmount and returns this instance
|
260 |
*
|
266 |
$this->setCaptureAmount($value);
|
267 |
return $this;
|
268 |
}
|
269 |
+
|
270 |
+
|
271 |
/**
|
272 |
* Checks if CaptureAmount is set
|
273 |
*
|
276 |
public function isSetCaptureAmount()
|
277 |
{
|
278 |
return !is_null($this->_fields['CaptureAmount']['FieldValue']);
|
279 |
+
|
280 |
}
|
281 |
+
|
282 |
/**
|
283 |
* Gets the value of the SellerCaptureNote property.
|
284 |
*
|
285 |
* @return string SellerCaptureNote
|
286 |
*/
|
287 |
+
public function getSellerCaptureNote()
|
288 |
{
|
289 |
return $this->_fields['SellerCaptureNote']['FieldValue'];
|
290 |
}
|
291 |
+
|
292 |
/**
|
293 |
* Sets the value of the SellerCaptureNote property.
|
294 |
*
|
295 |
* @param string SellerCaptureNote
|
296 |
* @return this instance
|
297 |
*/
|
298 |
+
public function setSellerCaptureNote($value)
|
299 |
{
|
300 |
$this->_fields['SellerCaptureNote']['FieldValue'] = $value;
|
301 |
return $this;
|
302 |
}
|
303 |
+
|
304 |
/**
|
305 |
* Sets the value of the SellerCaptureNote and returns this instance
|
306 |
*
|
312 |
$this->setSellerCaptureNote($value);
|
313 |
return $this;
|
314 |
}
|
315 |
+
|
316 |
+
|
317 |
/**
|
318 |
* Checks if SellerCaptureNote is set
|
319 |
*
|
323 |
{
|
324 |
return !is_null($this->_fields['SellerCaptureNote']['FieldValue']);
|
325 |
}
|
326 |
+
|
327 |
/**
|
328 |
* Gets the value of the SoftDescriptor property.
|
329 |
*
|
330 |
* @return string SoftDescriptor
|
331 |
*/
|
332 |
+
public function getSoftDescriptor()
|
333 |
{
|
334 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
335 |
}
|
336 |
+
|
337 |
/**
|
338 |
* Sets the value of the SoftDescriptor property.
|
339 |
*
|
340 |
* @param string SoftDescriptor
|
341 |
* @return this instance
|
342 |
*/
|
343 |
+
public function setSoftDescriptor($value)
|
344 |
{
|
345 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
346 |
return $this;
|
347 |
}
|
348 |
+
|
349 |
/**
|
350 |
* Sets the value of the SoftDescriptor and returns this instance
|
351 |
*
|
357 |
$this->setSoftDescriptor($value);
|
358 |
return $this;
|
359 |
}
|
360 |
+
|
361 |
+
|
362 |
/**
|
363 |
* Checks if SoftDescriptor is set
|
364 |
*
|
376 |
*/
|
377 |
public function getProviderCreditList()
|
378 |
{
|
379 |
+
return $this->_fields['ProviderCreditList']['FieldValue'];
|
380 |
}
|
381 |
|
382 |
/**
|
387 |
*/
|
388 |
public function setProviderCreditList($value)
|
389 |
{
|
390 |
+
$this->_fields['ProviderCreditList']['FieldValue'] = $value;
|
391 |
+
return;
|
392 |
}
|
393 |
|
394 |
/**
|
399 |
*/
|
400 |
public function withProviderCreditList($value)
|
401 |
{
|
402 |
+
$this->setProviderCreditList($value);
|
403 |
+
return $this;
|
404 |
}
|
405 |
|
406 |
|
411 |
*/
|
412 |
public function isSetProviderCreditList()
|
413 |
{
|
414 |
+
return !is_null($this->_fields['ProviderCreditList']['FieldValue']);
|
415 |
+
|
416 |
+
}
|
417 |
+
|
418 |
+
/**
|
419 |
+
* Gets the value of the MWSAuthToken property.
|
420 |
+
*
|
421 |
+
* @return string MWSAuthToken
|
422 |
+
*/
|
423 |
+
public function getMWSAuthToken()
|
424 |
+
{
|
425 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
426 |
+
}
|
427 |
+
|
428 |
+
/**
|
429 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
430 |
+
*
|
431 |
+
* @param string $value MWSAuthToken
|
432 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
433 |
+
*/
|
434 |
+
public function setMWSAuthToken($value)
|
435 |
+
{
|
436 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
437 |
+
return $this;
|
438 |
+
}
|
439 |
|
440 |
+
|
441 |
+
/**
|
442 |
+
* Checks if MWSAuthToken is set
|
443 |
+
*
|
444 |
+
* @return bool true if MWSAuthToken is set
|
445 |
+
*/
|
446 |
+
public function isSetMWSAuthToken()
|
447 |
+
{
|
448 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
449 |
}
|
450 |
+
}
|
lib/OffAmazonPaymentsService/Model/CaptureResponse.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureResponse
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CaptureResponse
|
41 |
*
|
@@ -51,18 +51,24 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_CaptureResponse from XML string
|
68 |
*
|
@@ -74,43 +80,43 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
|
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:CaptureResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_CaptureResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that CaptureResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the CaptureResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getCaptureResult()
|
94 |
{
|
95 |
return $this->_fields['CaptureResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the CaptureResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setCaptureResult($value)
|
105 |
{
|
106 |
$this->_fields['CaptureResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the CaptureResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_CaptureResponse instance
|
115 |
*/
|
116 |
public function withCaptureResult($value)
|
@@ -118,8 +124,8 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
|
|
118 |
$this->setCaptureResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if CaptureResult is set
|
125 |
*
|
@@ -128,35 +134,35 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
|
|
128 |
public function isSetCaptureResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['CaptureResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_CaptureResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,8 +170,8 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
*
|
@@ -174,17 +180,15 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
|
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<CaptureResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,14 +196,16 @@ class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsSe
|
|
192 |
$xml .= "</CaptureResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureResponse
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_CaptureResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CaptureResponse
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'CaptureResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_CaptureResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_CaptureResponse from XML string
|
74 |
*
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:CaptureResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_CaptureResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_CaptureResponse from provided XML.
|
89 |
Make sure that CaptureResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the CaptureResult.
|
96 |
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_CaptureResult CaptureResult
|
98 |
*/
|
99 |
+
public function getCaptureResult()
|
100 |
{
|
101 |
return $this->_fields['CaptureResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the CaptureResult.
|
106 |
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_CaptureResult CaptureResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setCaptureResult($value)
|
111 |
{
|
112 |
$this->_fields['CaptureResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the CaptureResult and returns this instance
|
118 |
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_CaptureResult $value CaptureResult
|
120 |
* @return OffAmazonPaymentsService_Model_CaptureResponse instance
|
121 |
*/
|
122 |
public function withCaptureResult($value)
|
124 |
$this->setCaptureResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if CaptureResult is set
|
131 |
*
|
134 |
public function isSetCaptureResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['CaptureResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_CaptureResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
*
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
|
|
|
|
186 |
/**
|
187 |
* XML Representation for this object
|
188 |
*
|
189 |
* @return string XML for this object
|
190 |
*/
|
191 |
+
public function toXML()
|
192 |
{
|
193 |
$xml = "";
|
194 |
$xml .= "<CaptureResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
196 |
$xml .= "</CaptureResponse>";
|
197 |
return $xml;
|
198 |
}
|
199 |
+
|
200 |
private $_responseHeaderMetadata = null;
|
201 |
+
|
202 |
+
public function getResponseHeaderMetadata()
|
203 |
+
{
|
204 |
return $this->_responseHeaderMetadata;
|
205 |
}
|
206 |
+
|
207 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
208 |
+
{
|
209 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
210 |
}
|
211 |
+
}
|
lib/OffAmazonPaymentsService/Model/CaptureResult.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureResult
|
@@ -31,10 +31,10 @@
|
|
31 |
* <li>CaptureDetails: OffAmazonPaymentsService_Model_CaptureDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_CaptureResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_CaptureResult
|
40 |
*
|
@@ -49,40 +49,43 @@ class OffAmazonPaymentsService_Model_CaptureResult extends OffAmazonPaymentsServ
|
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the CaptureDetails.
|
62 |
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getCaptureDetails()
|
66 |
{
|
67 |
return $this->_fields['CaptureDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the CaptureDetails.
|
72 |
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setCaptureDetails($value)
|
77 |
{
|
78 |
$this->_fields['CaptureDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the CaptureDetails and returns this instance
|
84 |
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_CaptureResult instance
|
87 |
*/
|
88 |
public function withCaptureDetails($value)
|
@@ -90,8 +93,8 @@ class OffAmazonPaymentsService_Model_CaptureResult extends OffAmazonPaymentsServ
|
|
90 |
$this->setCaptureDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if CaptureDetails is set
|
97 |
*
|
@@ -100,6 +103,6 @@ class OffAmazonPaymentsService_Model_CaptureResult extends OffAmazonPaymentsServ
|
|
100 |
public function isSetCaptureDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['CaptureDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CaptureResult
|
31 |
* <li>CaptureDetails: OffAmazonPaymentsService_Model_CaptureDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_CaptureResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_CaptureResult
|
40 |
*
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'CaptureDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_CaptureDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the CaptureDetails.
|
65 |
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_CaptureDetails CaptureDetails
|
67 |
*/
|
68 |
+
public function getCaptureDetails()
|
69 |
{
|
70 |
return $this->_fields['CaptureDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the CaptureDetails.
|
75 |
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_CaptureDetails CaptureDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setCaptureDetails($value)
|
80 |
{
|
81 |
$this->_fields['CaptureDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the CaptureDetails and returns this instance
|
87 |
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_CaptureDetails $value CaptureDetails
|
89 |
* @return OffAmazonPaymentsService_Model_CaptureResult instance
|
90 |
*/
|
91 |
public function withCaptureDetails($value)
|
93 |
$this->setCaptureDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if CaptureDetails is set
|
100 |
*
|
103 |
public function isSetCaptureDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['CaptureDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseAuthorizationRequest.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseAuthorizationRequest
|
@@ -33,10 +33,10 @@
|
|
33 |
* <li>ClosureReason: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
-
*/
|
37 |
class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
-
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_CloseAuthorizationRequest
|
42 |
*
|
@@ -53,36 +53,49 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
|
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
-
$this->_fields = array
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
);
|
61 |
parent::__construct($data);
|
62 |
}
|
63 |
-
|
64 |
-
|
65 |
* Gets the value of the SellerId property.
|
66 |
*
|
67 |
* @return string SellerId
|
68 |
*/
|
69 |
-
public function getSellerId()
|
70 |
{
|
71 |
return $this->_fields['SellerId']['FieldValue'];
|
72 |
}
|
73 |
-
|
74 |
/**
|
75 |
* Sets the value of the SellerId property.
|
76 |
*
|
77 |
* @param string SellerId
|
78 |
* @return this instance
|
79 |
*/
|
80 |
-
public function setSellerId($value)
|
81 |
{
|
82 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
83 |
return $this;
|
84 |
}
|
85 |
-
|
86 |
/**
|
87 |
* Sets the value of the SellerId and returns this instance
|
88 |
*
|
@@ -94,8 +107,8 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
|
|
94 |
$this->setSellerId($value);
|
95 |
return $this;
|
96 |
}
|
97 |
-
|
98 |
-
|
99 |
/**
|
100 |
* Checks if SellerId is set
|
101 |
*
|
@@ -105,29 +118,29 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
|
|
105 |
{
|
106 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
107 |
}
|
108 |
-
|
109 |
/**
|
110 |
* Gets the value of the AmazonAuthorizationId property.
|
111 |
*
|
112 |
* @return string AmazonAuthorizationId
|
113 |
*/
|
114 |
-
public function getAmazonAuthorizationId()
|
115 |
{
|
116 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
117 |
}
|
118 |
-
|
119 |
/**
|
120 |
* Sets the value of the AmazonAuthorizationId property.
|
121 |
*
|
122 |
* @param string AmazonAuthorizationId
|
123 |
* @return this instance
|
124 |
*/
|
125 |
-
public function setAmazonAuthorizationId($value)
|
126 |
{
|
127 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
128 |
return $this;
|
129 |
}
|
130 |
-
|
131 |
/**
|
132 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
133 |
*
|
@@ -139,8 +152,8 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
|
|
139 |
$this->setAmazonAuthorizationId($value);
|
140 |
return $this;
|
141 |
}
|
142 |
-
|
143 |
-
|
144 |
/**
|
145 |
* Checks if AmazonAuthorizationId is set
|
146 |
*
|
@@ -150,29 +163,29 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
|
|
150 |
{
|
151 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
152 |
}
|
153 |
-
|
154 |
/**
|
155 |
* Gets the value of the ClosureReason property.
|
156 |
*
|
157 |
* @return string ClosureReason
|
158 |
*/
|
159 |
-
public function getClosureReason()
|
160 |
{
|
161 |
return $this->_fields['ClosureReason']['FieldValue'];
|
162 |
}
|
163 |
-
|
164 |
/**
|
165 |
* Sets the value of the ClosureReason property.
|
166 |
*
|
167 |
* @param string ClosureReason
|
168 |
* @return this instance
|
169 |
*/
|
170 |
-
public function setClosureReason($value)
|
171 |
{
|
172 |
$this->_fields['ClosureReason']['FieldValue'] = $value;
|
173 |
return $this;
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* Sets the value of the ClosureReason and returns this instance
|
178 |
*
|
@@ -184,8 +197,8 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
|
|
184 |
$this->setClosureReason($value);
|
185 |
return $this;
|
186 |
}
|
187 |
-
|
188 |
-
|
189 |
/**
|
190 |
* Checks if ClosureReason is set
|
191 |
*
|
@@ -195,4 +208,37 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazon
|
|
195 |
{
|
196 |
return !is_null($this->_fields['ClosureReason']['FieldValue']);
|
197 |
}
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseAuthorizationRequest
|
33 |
* <li>ClosureReason: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
+
*/
|
37 |
class OffAmazonPaymentsService_Model_CloseAuthorizationRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
+
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_CloseAuthorizationRequest
|
42 |
*
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
+
$this->_fields = array(
|
57 |
+
'SellerId' => array(
|
58 |
+
'FieldValue' => null,
|
59 |
+
'FieldType' => 'string'
|
60 |
+
),
|
61 |
+
'AmazonAuthorizationId' => array(
|
62 |
+
'FieldValue' => null,
|
63 |
+
'FieldType' => 'string'
|
64 |
+
),
|
65 |
+
'ClosureReason' => array(
|
66 |
+
'FieldValue' => null,
|
67 |
+
'FieldType' => 'string'
|
68 |
+
),
|
69 |
+
'MWSAuthToken' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
)
|
73 |
);
|
74 |
parent::__construct($data);
|
75 |
}
|
76 |
+
|
77 |
+
/**
|
78 |
* Gets the value of the SellerId property.
|
79 |
*
|
80 |
* @return string SellerId
|
81 |
*/
|
82 |
+
public function getSellerId()
|
83 |
{
|
84 |
return $this->_fields['SellerId']['FieldValue'];
|
85 |
}
|
86 |
+
|
87 |
/**
|
88 |
* Sets the value of the SellerId property.
|
89 |
*
|
90 |
* @param string SellerId
|
91 |
* @return this instance
|
92 |
*/
|
93 |
+
public function setSellerId($value)
|
94 |
{
|
95 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
96 |
return $this;
|
97 |
}
|
98 |
+
|
99 |
/**
|
100 |
* Sets the value of the SellerId and returns this instance
|
101 |
*
|
107 |
$this->setSellerId($value);
|
108 |
return $this;
|
109 |
}
|
110 |
+
|
111 |
+
|
112 |
/**
|
113 |
* Checks if SellerId is set
|
114 |
*
|
118 |
{
|
119 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Gets the value of the AmazonAuthorizationId property.
|
124 |
*
|
125 |
* @return string AmazonAuthorizationId
|
126 |
*/
|
127 |
+
public function getAmazonAuthorizationId()
|
128 |
{
|
129 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
130 |
}
|
131 |
+
|
132 |
/**
|
133 |
* Sets the value of the AmazonAuthorizationId property.
|
134 |
*
|
135 |
* @param string AmazonAuthorizationId
|
136 |
* @return this instance
|
137 |
*/
|
138 |
+
public function setAmazonAuthorizationId($value)
|
139 |
{
|
140 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
141 |
return $this;
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
146 |
*
|
152 |
$this->setAmazonAuthorizationId($value);
|
153 |
return $this;
|
154 |
}
|
155 |
+
|
156 |
+
|
157 |
/**
|
158 |
* Checks if AmazonAuthorizationId is set
|
159 |
*
|
163 |
{
|
164 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
165 |
}
|
166 |
+
|
167 |
/**
|
168 |
* Gets the value of the ClosureReason property.
|
169 |
*
|
170 |
* @return string ClosureReason
|
171 |
*/
|
172 |
+
public function getClosureReason()
|
173 |
{
|
174 |
return $this->_fields['ClosureReason']['FieldValue'];
|
175 |
}
|
176 |
+
|
177 |
/**
|
178 |
* Sets the value of the ClosureReason property.
|
179 |
*
|
180 |
* @param string ClosureReason
|
181 |
* @return this instance
|
182 |
*/
|
183 |
+
public function setClosureReason($value)
|
184 |
{
|
185 |
$this->_fields['ClosureReason']['FieldValue'] = $value;
|
186 |
return $this;
|
187 |
}
|
188 |
+
|
189 |
/**
|
190 |
* Sets the value of the ClosureReason and returns this instance
|
191 |
*
|
197 |
$this->setClosureReason($value);
|
198 |
return $this;
|
199 |
}
|
200 |
+
|
201 |
+
|
202 |
/**
|
203 |
* Checks if ClosureReason is set
|
204 |
*
|
208 |
{
|
209 |
return !is_null($this->_fields['ClosureReason']['FieldValue']);
|
210 |
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Gets the value of the MWSAuthToken property.
|
214 |
+
*
|
215 |
+
* @return string MWSAuthToken
|
216 |
+
*/
|
217 |
+
public function getMWSAuthToken()
|
218 |
+
{
|
219 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
220 |
+
}
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
224 |
+
*
|
225 |
+
* @param string $value MWSAuthToken
|
226 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
227 |
+
*/
|
228 |
+
public function setMWSAuthToken($value)
|
229 |
+
{
|
230 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
231 |
+
return $this;
|
232 |
+
}
|
233 |
+
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Checks if MWSAuthToken is set
|
237 |
+
*
|
238 |
+
* @return bool true if MWSAuthToken is set
|
239 |
+
*/
|
240 |
+
public function isSetMWSAuthToken()
|
241 |
+
{
|
242 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
243 |
+
}
|
244 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseAuthorizationResponse.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseAuthorizationResponse
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CloseAuthorizationResponse
|
41 |
*
|
@@ -51,18 +51,24 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_CloseAuthorizationResponse from XML string
|
68 |
*
|
@@ -74,43 +80,43 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
|
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:CloseAuthorizationResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_CloseAuthorizationResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that CloseAuthorizationResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the CloseAuthorizationResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getCloseAuthorizationResult()
|
94 |
{
|
95 |
return $this->_fields['CloseAuthorizationResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the CloseAuthorizationResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setCloseAuthorizationResult($value)
|
105 |
{
|
106 |
$this->_fields['CloseAuthorizationResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the CloseAuthorizationResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_CloseAuthorizationResponse instance
|
115 |
*/
|
116 |
public function withCloseAuthorizationResult($value)
|
@@ -118,8 +124,8 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
|
|
118 |
$this->setCloseAuthorizationResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if CloseAuthorizationResult is set
|
125 |
*
|
@@ -128,35 +134,35 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
|
|
128 |
public function isSetCloseAuthorizationResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['CloseAuthorizationResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_CloseAuthorizationResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,8 +170,8 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
*
|
@@ -174,17 +180,16 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
|
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<CloseAuthorizationResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,14 +197,16 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazo
|
|
192 |
$xml .= "</CloseAuthorizationResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseAuthorizationResponse
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_CloseAuthorizationResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CloseAuthorizationResponse
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'CloseAuthorizationResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_CloseAuthorizationResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_CloseAuthorizationResponse from XML string
|
74 |
*
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:CloseAuthorizationResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_CloseAuthorizationResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_CloseAuthorizationResponse from provided XML.
|
89 |
Make sure that CloseAuthorizationResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the CloseAuthorizationResult.
|
96 |
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_CloseAuthorizationResult CloseAuthorizationResult
|
98 |
*/
|
99 |
+
public function getCloseAuthorizationResult()
|
100 |
{
|
101 |
return $this->_fields['CloseAuthorizationResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the CloseAuthorizationResult.
|
106 |
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_CloseAuthorizationResult CloseAuthorizationResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setCloseAuthorizationResult($value)
|
111 |
{
|
112 |
$this->_fields['CloseAuthorizationResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the CloseAuthorizationResult and returns this instance
|
118 |
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_CloseAuthorizationResult $value CloseAuthorizationResult
|
120 |
* @return OffAmazonPaymentsService_Model_CloseAuthorizationResponse instance
|
121 |
*/
|
122 |
public function withCloseAuthorizationResult($value)
|
124 |
$this->setCloseAuthorizationResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if CloseAuthorizationResult is set
|
131 |
*
|
134 |
public function isSetCloseAuthorizationResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['CloseAuthorizationResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_CloseAuthorizationResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
*
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
|
|
187 |
/**
|
188 |
* XML Representation for this object
|
189 |
*
|
190 |
* @return string XML for this object
|
191 |
*/
|
192 |
+
public function toXML()
|
193 |
{
|
194 |
$xml = "";
|
195 |
$xml .= "<CloseAuthorizationResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
197 |
$xml .= "</CloseAuthorizationResponse>";
|
198 |
return $xml;
|
199 |
}
|
200 |
+
|
201 |
private $_responseHeaderMetadata = null;
|
202 |
+
|
203 |
+
public function getResponseHeaderMetadata()
|
204 |
+
{
|
205 |
return $this->_responseHeaderMetadata;
|
206 |
}
|
207 |
+
|
208 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
209 |
+
{
|
210 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
211 |
}
|
212 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseAuthorizationResult.php
CHANGED
@@ -51,4 +51,4 @@ class OffAmazonPaymentsService_Model_CloseAuthorizationResult extends OffAmazonP
|
|
51 |
);
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
-
}
|
51 |
);
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseBillingAgreementRequest.php
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
*/
|
31 |
class OffAmazonPaymentsService_Model_CloseBillingAgreementRequest extends OffAmazonPaymentsService_Model
|
32 |
{
|
33 |
-
|
34 |
/**
|
35 |
* Construct new OffAmazonPaymentsService_Model_CloseBillingAgreementRequest
|
36 |
*
|
@@ -46,7 +46,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementRequest extends OffAma
|
|
46 |
*
|
47 |
* </ul>
|
48 |
*/
|
49 |
-
public function __construct
|
50 |
{
|
51 |
$this->_fields = array(
|
52 |
'AmazonBillingAgreementId' => array(
|
@@ -64,184 +64,221 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementRequest extends OffAma
|
|
64 |
'ReasonCode' => array(
|
65 |
'FieldValue' => null,
|
66 |
'FieldType' => 'string'
|
|
|
|
|
|
|
|
|
67 |
)
|
68 |
);
|
69 |
parent::__construct($data);
|
70 |
}
|
71 |
-
|
72 |
/**
|
73 |
* Gets the value of the AmazonBillingAgreementId property.
|
74 |
*
|
75 |
* @return string AmazonBillingAgreementId
|
76 |
*/
|
77 |
-
public function getAmazonBillingAgreementId
|
78 |
{
|
79 |
return $this->_fields['AmazonBillingAgreementId']['FieldValue'];
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the AmazonBillingAgreementId property.
|
84 |
*
|
85 |
* @param string AmazonBillingAgreementId
|
86 |
* @return this instance
|
87 |
*/
|
88 |
-
public function setAmazonBillingAgreementId
|
89 |
{
|
90 |
$this->_fields['AmazonBillingAgreementId']['FieldValue'] = $value;
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
/**
|
95 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
96 |
*
|
97 |
* @param string $value AmazonBillingAgreementId
|
98 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
99 |
*/
|
100 |
-
public function withAmazonBillingAgreementId
|
101 |
{
|
102 |
$this->setAmazonBillingAgreementId($value);
|
103 |
return $this;
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Checks if AmazonBillingAgreementId is set
|
108 |
*
|
109 |
* @return bool true if AmazonBillingAgreementId is set
|
110 |
*/
|
111 |
-
public function isSetAmazonBillingAgreementId
|
112 |
{
|
113 |
-
return !
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Gets the value of the SellerId property.
|
118 |
*
|
119 |
* @return string SellerId
|
120 |
*/
|
121 |
-
public function getSellerId
|
122 |
{
|
123 |
return $this->_fields['SellerId']['FieldValue'];
|
124 |
}
|
125 |
-
|
126 |
/**
|
127 |
* Sets the value of the SellerId property.
|
128 |
*
|
129 |
* @param string SellerId
|
130 |
* @return this instance
|
131 |
*/
|
132 |
-
public function setSellerId
|
133 |
{
|
134 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
135 |
return $this;
|
136 |
}
|
137 |
-
|
138 |
/**
|
139 |
* Sets the value of the SellerId and returns this instance
|
140 |
*
|
141 |
* @param string $value SellerId
|
142 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
143 |
*/
|
144 |
-
public function withSellerId
|
145 |
{
|
146 |
$this->setSellerId($value);
|
147 |
return $this;
|
148 |
}
|
149 |
-
|
150 |
/**
|
151 |
* Checks if SellerId is set
|
152 |
*
|
153 |
* @return bool true if SellerId is set
|
154 |
*/
|
155 |
-
public function isSetSellerId
|
156 |
{
|
157 |
-
return !
|
158 |
}
|
159 |
-
|
160 |
/**
|
161 |
* Gets the value of the ClosureReason property.
|
162 |
*
|
163 |
* @return string ClosureReason
|
164 |
*/
|
165 |
-
public function getClosureReason
|
166 |
{
|
167 |
return $this->_fields['ClosureReason']['FieldValue'];
|
168 |
}
|
169 |
-
|
170 |
/**
|
171 |
* Sets the value of the ClosureReason property.
|
172 |
*
|
173 |
* @param string ClosureReason
|
174 |
* @return this instance
|
175 |
*/
|
176 |
-
public function setClosureReason
|
177 |
{
|
178 |
$this->_fields['ClosureReason']['FieldValue'] = $value;
|
179 |
return $this;
|
180 |
}
|
181 |
-
|
182 |
/**
|
183 |
* Sets the value of the ClosureReason and returns this instance
|
184 |
*
|
185 |
* @param string $value ClosureReason
|
186 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
187 |
*/
|
188 |
-
public function withClosureReason
|
189 |
{
|
190 |
$this->setClosureReason($value);
|
191 |
return $this;
|
192 |
}
|
193 |
-
|
194 |
/**
|
195 |
* Checks if ClosureReason is set
|
196 |
*
|
197 |
* @return bool true if ClosureReason is set
|
198 |
*/
|
199 |
-
public function isSetClosureReason
|
200 |
{
|
201 |
-
return !
|
202 |
}
|
203 |
-
|
204 |
/**
|
205 |
* Gets the value of the ReasonCode property.
|
206 |
*
|
207 |
* @return string ReasonCode
|
208 |
*/
|
209 |
-
public function getReasonCode
|
210 |
{
|
211 |
return $this->_fields['ReasonCode']['FieldValue'];
|
212 |
}
|
213 |
-
|
214 |
/**
|
215 |
* Sets the value of the ReasonCode property.
|
216 |
*
|
217 |
* @param string ReasonCode
|
218 |
* @return this instance
|
219 |
*/
|
220 |
-
public function setReasonCode
|
221 |
{
|
222 |
$this->_fields['ReasonCode']['FieldValue'] = $value;
|
223 |
return $this;
|
224 |
}
|
225 |
-
|
226 |
/**
|
227 |
* Sets the value of the ReasonCode and returns this instance
|
228 |
*
|
229 |
* @param string $value ReasonCode
|
230 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
231 |
*/
|
232 |
-
public function withReasonCode
|
233 |
{
|
234 |
$this->setReasonCode($value);
|
235 |
return $this;
|
236 |
}
|
237 |
-
|
238 |
/**
|
239 |
* Checks if ReasonCode is set
|
240 |
*
|
241 |
* @return bool true if ReasonCode is set
|
242 |
*/
|
243 |
-
public function isSetReasonCode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
{
|
245 |
-
return !
|
246 |
}
|
247 |
-
}
|
30 |
*/
|
31 |
class OffAmazonPaymentsService_Model_CloseBillingAgreementRequest extends OffAmazonPaymentsService_Model
|
32 |
{
|
33 |
+
|
34 |
/**
|
35 |
* Construct new OffAmazonPaymentsService_Model_CloseBillingAgreementRequest
|
36 |
*
|
46 |
*
|
47 |
* </ul>
|
48 |
*/
|
49 |
+
public function __construct($data = null)
|
50 |
{
|
51 |
$this->_fields = array(
|
52 |
'AmazonBillingAgreementId' => array(
|
64 |
'ReasonCode' => array(
|
65 |
'FieldValue' => null,
|
66 |
'FieldType' => 'string'
|
67 |
+
),
|
68 |
+
'MWSAuthToken' => array(
|
69 |
+
'FieldValue' => null,
|
70 |
+
'FieldType' => 'string'
|
71 |
)
|
72 |
);
|
73 |
parent::__construct($data);
|
74 |
}
|
75 |
+
|
76 |
/**
|
77 |
* Gets the value of the AmazonBillingAgreementId property.
|
78 |
*
|
79 |
* @return string AmazonBillingAgreementId
|
80 |
*/
|
81 |
+
public function getAmazonBillingAgreementId()
|
82 |
{
|
83 |
return $this->_fields['AmazonBillingAgreementId']['FieldValue'];
|
84 |
}
|
85 |
+
|
86 |
/**
|
87 |
* Sets the value of the AmazonBillingAgreementId property.
|
88 |
*
|
89 |
* @param string AmazonBillingAgreementId
|
90 |
* @return this instance
|
91 |
*/
|
92 |
+
public function setAmazonBillingAgreementId($value)
|
93 |
{
|
94 |
$this->_fields['AmazonBillingAgreementId']['FieldValue'] = $value;
|
95 |
return $this;
|
96 |
}
|
97 |
+
|
98 |
/**
|
99 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
100 |
*
|
101 |
* @param string $value AmazonBillingAgreementId
|
102 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
103 |
*/
|
104 |
+
public function withAmazonBillingAgreementId($value)
|
105 |
{
|
106 |
$this->setAmazonBillingAgreementId($value);
|
107 |
return $this;
|
108 |
}
|
109 |
+
|
110 |
/**
|
111 |
* Checks if AmazonBillingAgreementId is set
|
112 |
*
|
113 |
* @return bool true if AmazonBillingAgreementId is set
|
114 |
*/
|
115 |
+
public function isSetAmazonBillingAgreementId()
|
116 |
{
|
117 |
+
return !is_null($this->_fields['AmazonBillingAgreementId']['FieldValue']);
|
118 |
}
|
119 |
+
|
120 |
/**
|
121 |
* Gets the value of the SellerId property.
|
122 |
*
|
123 |
* @return string SellerId
|
124 |
*/
|
125 |
+
public function getSellerId()
|
126 |
{
|
127 |
return $this->_fields['SellerId']['FieldValue'];
|
128 |
}
|
129 |
+
|
130 |
/**
|
131 |
* Sets the value of the SellerId property.
|
132 |
*
|
133 |
* @param string SellerId
|
134 |
* @return this instance
|
135 |
*/
|
136 |
+
public function setSellerId($value)
|
137 |
{
|
138 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
139 |
return $this;
|
140 |
}
|
141 |
+
|
142 |
/**
|
143 |
* Sets the value of the SellerId and returns this instance
|
144 |
*
|
145 |
* @param string $value SellerId
|
146 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
147 |
*/
|
148 |
+
public function withSellerId($value)
|
149 |
{
|
150 |
$this->setSellerId($value);
|
151 |
return $this;
|
152 |
}
|
153 |
+
|
154 |
/**
|
155 |
* Checks if SellerId is set
|
156 |
*
|
157 |
* @return bool true if SellerId is set
|
158 |
*/
|
159 |
+
public function isSetSellerId()
|
160 |
{
|
161 |
+
return !is_null($this->_fields['SellerId']['FieldValue']);
|
162 |
}
|
163 |
+
|
164 |
/**
|
165 |
* Gets the value of the ClosureReason property.
|
166 |
*
|
167 |
* @return string ClosureReason
|
168 |
*/
|
169 |
+
public function getClosureReason()
|
170 |
{
|
171 |
return $this->_fields['ClosureReason']['FieldValue'];
|
172 |
}
|
173 |
+
|
174 |
/**
|
175 |
* Sets the value of the ClosureReason property.
|
176 |
*
|
177 |
* @param string ClosureReason
|
178 |
* @return this instance
|
179 |
*/
|
180 |
+
public function setClosureReason($value)
|
181 |
{
|
182 |
$this->_fields['ClosureReason']['FieldValue'] = $value;
|
183 |
return $this;
|
184 |
}
|
185 |
+
|
186 |
/**
|
187 |
* Sets the value of the ClosureReason and returns this instance
|
188 |
*
|
189 |
* @param string $value ClosureReason
|
190 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
191 |
*/
|
192 |
+
public function withClosureReason($value)
|
193 |
{
|
194 |
$this->setClosureReason($value);
|
195 |
return $this;
|
196 |
}
|
197 |
+
|
198 |
/**
|
199 |
* Checks if ClosureReason is set
|
200 |
*
|
201 |
* @return bool true if ClosureReason is set
|
202 |
*/
|
203 |
+
public function isSetClosureReason()
|
204 |
{
|
205 |
+
return !is_null($this->_fields['ClosureReason']['FieldValue']);
|
206 |
}
|
207 |
+
|
208 |
/**
|
209 |
* Gets the value of the ReasonCode property.
|
210 |
*
|
211 |
* @return string ReasonCode
|
212 |
*/
|
213 |
+
public function getReasonCode()
|
214 |
{
|
215 |
return $this->_fields['ReasonCode']['FieldValue'];
|
216 |
}
|
217 |
+
|
218 |
/**
|
219 |
* Sets the value of the ReasonCode property.
|
220 |
*
|
221 |
* @param string ReasonCode
|
222 |
* @return this instance
|
223 |
*/
|
224 |
+
public function setReasonCode($value)
|
225 |
{
|
226 |
$this->_fields['ReasonCode']['FieldValue'] = $value;
|
227 |
return $this;
|
228 |
}
|
229 |
+
|
230 |
/**
|
231 |
* Sets the value of the ReasonCode and returns this instance
|
232 |
*
|
233 |
* @param string $value ReasonCode
|
234 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementRequest instance
|
235 |
*/
|
236 |
+
public function withReasonCode($value)
|
237 |
{
|
238 |
$this->setReasonCode($value);
|
239 |
return $this;
|
240 |
}
|
241 |
+
|
242 |
/**
|
243 |
* Checks if ReasonCode is set
|
244 |
*
|
245 |
* @return bool true if ReasonCode is set
|
246 |
*/
|
247 |
+
public function isSetReasonCode()
|
248 |
+
{
|
249 |
+
return !is_null($this->_fields['ReasonCode']['FieldValue']);
|
250 |
+
}
|
251 |
+
|
252 |
+
/**
|
253 |
+
* Gets the value of the MWSAuthToken property.
|
254 |
+
*
|
255 |
+
* @return string MWSAuthToken
|
256 |
+
*/
|
257 |
+
public function getMWSAuthToken()
|
258 |
+
{
|
259 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
260 |
+
}
|
261 |
+
|
262 |
+
/**
|
263 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
264 |
+
*
|
265 |
+
* @param string $value MWSAuthToken
|
266 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
267 |
+
*/
|
268 |
+
public function setMWSAuthToken($value)
|
269 |
+
{
|
270 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
271 |
+
return $this;
|
272 |
+
}
|
273 |
+
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Checks if MWSAuthToken is set
|
277 |
+
*
|
278 |
+
* @return bool true if MWSAuthToken is set
|
279 |
+
*/
|
280 |
+
public function isSetMWSAuthToken()
|
281 |
{
|
282 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
283 |
}
|
284 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResponse.php
CHANGED
@@ -55,8 +55,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
-
)
|
59 |
-
;
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
|
@@ -87,7 +86,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
87 |
/**
|
88 |
* Gets the value of the CloseBillingAgreementResult.
|
89 |
*
|
90 |
-
* @return
|
91 |
*/
|
92 |
public function getCloseBillingAgreementResult ()
|
93 |
{
|
@@ -97,7 +96,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
97 |
/**
|
98 |
* Sets the value of the CloseBillingAgreementResult.
|
99 |
*
|
100 |
-
* @param
|
101 |
* @return void
|
102 |
*/
|
103 |
public function setCloseBillingAgreementResult ($value)
|
@@ -109,7 +108,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
109 |
/**
|
110 |
* Sets the value of the CloseBillingAgreementResult and returns this instance
|
111 |
*
|
112 |
-
* @param
|
113 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementResponse instance
|
114 |
*/
|
115 |
public function withCloseBillingAgreementResult ($value)
|
@@ -131,7 +130,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
131 |
/**
|
132 |
* Gets the value of the ResponseMetadata.
|
133 |
*
|
134 |
-
* @return
|
135 |
*/
|
136 |
public function getResponseMetadata ()
|
137 |
{
|
@@ -141,7 +140,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
141 |
/**
|
142 |
* Sets the value of the ResponseMetadata.
|
143 |
*
|
144 |
-
* @param
|
145 |
* @return void
|
146 |
*/
|
147 |
public function setResponseMetadata ($value)
|
@@ -153,7 +152,7 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
153 |
/**
|
154 |
* Sets the value of the ResponseMetadata and returns this instance
|
155 |
*
|
156 |
-
* @param
|
157 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementResponse instance
|
158 |
*/
|
159 |
public function withResponseMetadata ($value)
|
@@ -197,4 +196,4 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResponse extends OffAm
|
|
197 |
{
|
198 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
199 |
}
|
200 |
-
}
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
+
);
|
|
|
59 |
parent::__construct($data);
|
60 |
}
|
61 |
|
86 |
/**
|
87 |
* Gets the value of the CloseBillingAgreementResult.
|
88 |
*
|
89 |
+
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementResult CloseBillingAgreementResult
|
90 |
*/
|
91 |
public function getCloseBillingAgreementResult ()
|
92 |
{
|
96 |
/**
|
97 |
* Sets the value of the CloseBillingAgreementResult.
|
98 |
*
|
99 |
+
* @param OffAmazonPaymentsService_Model_CloseBillingAgreementResult CloseBillingAgreementResult
|
100 |
* @return void
|
101 |
*/
|
102 |
public function setCloseBillingAgreementResult ($value)
|
108 |
/**
|
109 |
* Sets the value of the CloseBillingAgreementResult and returns this instance
|
110 |
*
|
111 |
+
* @param OffAmazonPaymentsService_Model_CloseBillingAgreementResult $value CloseBillingAgreementResult
|
112 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementResponse instance
|
113 |
*/
|
114 |
public function withCloseBillingAgreementResult ($value)
|
130 |
/**
|
131 |
* Gets the value of the ResponseMetadata.
|
132 |
*
|
133 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
134 |
*/
|
135 |
public function getResponseMetadata ()
|
136 |
{
|
140 |
/**
|
141 |
* Sets the value of the ResponseMetadata.
|
142 |
*
|
143 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
* @return void
|
145 |
*/
|
146 |
public function setResponseMetadata ($value)
|
152 |
/**
|
153 |
* Sets the value of the ResponseMetadata and returns this instance
|
154 |
*
|
155 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
156 |
* @return OffAmazonPaymentsService_Model_CloseBillingAgreementResponse instance
|
157 |
*/
|
158 |
public function withResponseMetadata ($value)
|
196 |
{
|
197 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
198 |
}
|
199 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseBillingAgreementResult.php
CHANGED
@@ -43,4 +43,4 @@ class OffAmazonPaymentsService_Model_CloseBillingAgreementResult extends OffAmaz
|
|
43 |
$this->_fields = array();
|
44 |
parent::__construct($data);
|
45 |
}
|
46 |
-
}
|
43 |
$this->_fields = array();
|
44 |
parent::__construct($data);
|
45 |
}
|
46 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseOrderReferenceRequest.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseOrderReferenceRequest
|
@@ -33,10 +33,10 @@
|
|
33 |
* <li>ClosureReason: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
-
*/
|
37 |
class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
-
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_CloseOrderReferenceRequest
|
42 |
*
|
@@ -53,36 +53,49 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
|
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
-
$this->_fields = array
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
);
|
61 |
parent::__construct($data);
|
62 |
}
|
63 |
-
|
64 |
-
|
65 |
* Gets the value of the SellerId property.
|
66 |
*
|
67 |
* @return string SellerId
|
68 |
*/
|
69 |
-
public function getSellerId()
|
70 |
{
|
71 |
return $this->_fields['SellerId']['FieldValue'];
|
72 |
}
|
73 |
-
|
74 |
/**
|
75 |
* Sets the value of the SellerId property.
|
76 |
*
|
77 |
* @param string SellerId
|
78 |
* @return this instance
|
79 |
*/
|
80 |
-
public function setSellerId($value)
|
81 |
{
|
82 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
83 |
return $this;
|
84 |
}
|
85 |
-
|
86 |
/**
|
87 |
* Sets the value of the SellerId and returns this instance
|
88 |
*
|
@@ -94,8 +107,8 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
|
|
94 |
$this->setSellerId($value);
|
95 |
return $this;
|
96 |
}
|
97 |
-
|
98 |
-
|
99 |
/**
|
100 |
* Checks if SellerId is set
|
101 |
*
|
@@ -105,29 +118,29 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
|
|
105 |
{
|
106 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
107 |
}
|
108 |
-
|
109 |
/**
|
110 |
* Gets the value of the AmazonOrderReferenceId property.
|
111 |
*
|
112 |
* @return string AmazonOrderReferenceId
|
113 |
*/
|
114 |
-
public function getAmazonOrderReferenceId()
|
115 |
{
|
116 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
117 |
}
|
118 |
-
|
119 |
/**
|
120 |
* Sets the value of the AmazonOrderReferenceId property.
|
121 |
*
|
122 |
* @param string AmazonOrderReferenceId
|
123 |
* @return this instance
|
124 |
*/
|
125 |
-
public function setAmazonOrderReferenceId($value)
|
126 |
{
|
127 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
128 |
return $this;
|
129 |
}
|
130 |
-
|
131 |
/**
|
132 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
133 |
*
|
@@ -139,8 +152,8 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
|
|
139 |
$this->setAmazonOrderReferenceId($value);
|
140 |
return $this;
|
141 |
}
|
142 |
-
|
143 |
-
|
144 |
/**
|
145 |
* Checks if AmazonOrderReferenceId is set
|
146 |
*
|
@@ -150,29 +163,29 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
|
|
150 |
{
|
151 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
152 |
}
|
153 |
-
|
154 |
/**
|
155 |
* Gets the value of the ClosureReason property.
|
156 |
*
|
157 |
* @return string ClosureReason
|
158 |
*/
|
159 |
-
public function getClosureReason()
|
160 |
{
|
161 |
return $this->_fields['ClosureReason']['FieldValue'];
|
162 |
}
|
163 |
-
|
164 |
/**
|
165 |
* Sets the value of the ClosureReason property.
|
166 |
*
|
167 |
* @param string ClosureReason
|
168 |
* @return this instance
|
169 |
*/
|
170 |
-
public function setClosureReason($value)
|
171 |
{
|
172 |
$this->_fields['ClosureReason']['FieldValue'] = $value;
|
173 |
return $this;
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* Sets the value of the ClosureReason and returns this instance
|
178 |
*
|
@@ -184,8 +197,8 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
|
|
184 |
$this->setClosureReason($value);
|
185 |
return $this;
|
186 |
}
|
187 |
-
|
188 |
-
|
189 |
/**
|
190 |
* Checks if ClosureReason is set
|
191 |
*
|
@@ -195,4 +208,38 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazo
|
|
195 |
{
|
196 |
return !is_null($this->_fields['ClosureReason']['FieldValue']);
|
197 |
}
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseOrderReferenceRequest
|
33 |
* <li>ClosureReason: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
+
*/
|
37 |
class OffAmazonPaymentsService_Model_CloseOrderReferenceRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
+
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_CloseOrderReferenceRequest
|
42 |
*
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
+
$this->_fields = array(
|
57 |
+
'SellerId' => array(
|
58 |
+
'FieldValue' => null,
|
59 |
+
'FieldType' => 'string'
|
60 |
+
),
|
61 |
+
'AmazonOrderReferenceId' => array(
|
62 |
+
'FieldValue' => null,
|
63 |
+
'FieldType' => 'string'
|
64 |
+
),
|
65 |
+
'ClosureReason' => array(
|
66 |
+
'FieldValue' => null,
|
67 |
+
'FieldType' => 'string'
|
68 |
+
),
|
69 |
+
'MWSAuthToken' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
)
|
73 |
);
|
74 |
parent::__construct($data);
|
75 |
}
|
76 |
+
|
77 |
+
/**
|
78 |
* Gets the value of the SellerId property.
|
79 |
*
|
80 |
* @return string SellerId
|
81 |
*/
|
82 |
+
public function getSellerId()
|
83 |
{
|
84 |
return $this->_fields['SellerId']['FieldValue'];
|
85 |
}
|
86 |
+
|
87 |
/**
|
88 |
* Sets the value of the SellerId property.
|
89 |
*
|
90 |
* @param string SellerId
|
91 |
* @return this instance
|
92 |
*/
|
93 |
+
public function setSellerId($value)
|
94 |
{
|
95 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
96 |
return $this;
|
97 |
}
|
98 |
+
|
99 |
/**
|
100 |
* Sets the value of the SellerId and returns this instance
|
101 |
*
|
107 |
$this->setSellerId($value);
|
108 |
return $this;
|
109 |
}
|
110 |
+
|
111 |
+
|
112 |
/**
|
113 |
* Checks if SellerId is set
|
114 |
*
|
118 |
{
|
119 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Gets the value of the AmazonOrderReferenceId property.
|
124 |
*
|
125 |
* @return string AmazonOrderReferenceId
|
126 |
*/
|
127 |
+
public function getAmazonOrderReferenceId()
|
128 |
{
|
129 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
130 |
}
|
131 |
+
|
132 |
/**
|
133 |
* Sets the value of the AmazonOrderReferenceId property.
|
134 |
*
|
135 |
* @param string AmazonOrderReferenceId
|
136 |
* @return this instance
|
137 |
*/
|
138 |
+
public function setAmazonOrderReferenceId($value)
|
139 |
{
|
140 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
141 |
return $this;
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
146 |
*
|
152 |
$this->setAmazonOrderReferenceId($value);
|
153 |
return $this;
|
154 |
}
|
155 |
+
|
156 |
+
|
157 |
/**
|
158 |
* Checks if AmazonOrderReferenceId is set
|
159 |
*
|
163 |
{
|
164 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
165 |
}
|
166 |
+
|
167 |
/**
|
168 |
* Gets the value of the ClosureReason property.
|
169 |
*
|
170 |
* @return string ClosureReason
|
171 |
*/
|
172 |
+
public function getClosureReason()
|
173 |
{
|
174 |
return $this->_fields['ClosureReason']['FieldValue'];
|
175 |
}
|
176 |
+
|
177 |
/**
|
178 |
* Sets the value of the ClosureReason property.
|
179 |
*
|
180 |
* @param string ClosureReason
|
181 |
* @return this instance
|
182 |
*/
|
183 |
+
public function setClosureReason($value)
|
184 |
{
|
185 |
$this->_fields['ClosureReason']['FieldValue'] = $value;
|
186 |
return $this;
|
187 |
}
|
188 |
+
|
189 |
/**
|
190 |
* Sets the value of the ClosureReason and returns this instance
|
191 |
*
|
197 |
$this->setClosureReason($value);
|
198 |
return $this;
|
199 |
}
|
200 |
+
|
201 |
+
|
202 |
/**
|
203 |
* Checks if ClosureReason is set
|
204 |
*
|
208 |
{
|
209 |
return !is_null($this->_fields['ClosureReason']['FieldValue']);
|
210 |
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Gets the value of the MWSAuthToken property.
|
214 |
+
*
|
215 |
+
* @return string MWSAuthToken
|
216 |
+
*/
|
217 |
+
public function getMWSAuthToken()
|
218 |
+
{
|
219 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
220 |
+
}
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
224 |
+
*
|
225 |
+
* @param string $value MWSAuthToken
|
226 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
227 |
+
*/
|
228 |
+
public function setMWSAuthToken($value)
|
229 |
+
{
|
230 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
231 |
+
return $this;
|
232 |
+
}
|
233 |
+
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Checks if MWSAuthToken is set
|
237 |
+
*
|
238 |
+
* @return bool true if MWSAuthToken is set
|
239 |
+
*/
|
240 |
+
public function isSetMWSAuthToken()
|
241 |
+
{
|
242 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
243 |
+
}
|
244 |
+
|
245 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResponse.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseOrderReferenceResponse
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CloseOrderReferenceResponse
|
41 |
*
|
@@ -51,18 +51,24 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_CloseOrderReferenceResponse from XML string
|
68 |
*
|
@@ -74,43 +80,43 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
|
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:CloseOrderReferenceResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_CloseOrderReferenceResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that CloseOrderReferenceResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the CloseOrderReferenceResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getCloseOrderReferenceResult()
|
94 |
{
|
95 |
return $this->_fields['CloseOrderReferenceResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the CloseOrderReferenceResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setCloseOrderReferenceResult($value)
|
105 |
{
|
106 |
$this->_fields['CloseOrderReferenceResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the CloseOrderReferenceResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_CloseOrderReferenceResponse instance
|
115 |
*/
|
116 |
public function withCloseOrderReferenceResult($value)
|
@@ -118,8 +124,8 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
|
|
118 |
$this->setCloseOrderReferenceResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if CloseOrderReferenceResult is set
|
125 |
*
|
@@ -128,35 +134,35 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
|
|
128 |
public function isSetCloseOrderReferenceResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['CloseOrderReferenceResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_CloseOrderReferenceResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,8 +170,8 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
*
|
@@ -174,17 +180,17 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
|
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<CloseOrderReferenceResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,14 +198,16 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmaz
|
|
192 |
$xml .= "</CloseOrderReferenceResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_CloseOrderReferenceResponse
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_CloseOrderReferenceResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_CloseOrderReferenceResponse
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'CloseOrderReferenceResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_CloseOrderReferenceResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_CloseOrderReferenceResponse from XML string
|
74 |
*
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:CloseOrderReferenceResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_CloseOrderReferenceResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_CloseOrderReferenceResponse from provided XML.
|
89 |
Make sure that CloseOrderReferenceResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the CloseOrderReferenceResult.
|
96 |
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_CloseOrderReferenceResult CloseOrderReferenceResult
|
98 |
*/
|
99 |
+
public function getCloseOrderReferenceResult()
|
100 |
{
|
101 |
return $this->_fields['CloseOrderReferenceResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the CloseOrderReferenceResult.
|
106 |
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_CloseOrderReferenceResult CloseOrderReferenceResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setCloseOrderReferenceResult($value)
|
111 |
{
|
112 |
$this->_fields['CloseOrderReferenceResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the CloseOrderReferenceResult and returns this instance
|
118 |
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_CloseOrderReferenceResult $value CloseOrderReferenceResult
|
120 |
* @return OffAmazonPaymentsService_Model_CloseOrderReferenceResponse instance
|
121 |
*/
|
122 |
public function withCloseOrderReferenceResult($value)
|
124 |
$this->setCloseOrderReferenceResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if CloseOrderReferenceResult is set
|
131 |
*
|
134 |
public function isSetCloseOrderReferenceResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['CloseOrderReferenceResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_CloseOrderReferenceResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
*
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<CloseOrderReferenceResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</CloseOrderReferenceResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
}
|
lib/OffAmazonPaymentsService/Model/CloseOrderReferenceResult.php
CHANGED
@@ -51,4 +51,4 @@ class OffAmazonPaymentsService_Model_CloseOrderReferenceResult extends OffAmazon
|
|
51 |
);
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
-
}
|
51 |
);
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
+
}
|
lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementRequest.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>SellerId: string</li>
|
25 |
* <li>AmazonBillingAgreementId: string</li>
|
26 |
*
|
@@ -31,12 +31,12 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest
|
34 |
-
*
|
35 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
-
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
-
*
|
40 |
* <li>SellerId: string</li>
|
41 |
* <li>AmazonBillingAgreementId: string</li>
|
42 |
*
|
@@ -52,6 +52,10 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
52 |
'AmazonBillingAgreementId' => array(
|
53 |
'FieldValue' => null,
|
54 |
'FieldType' => 'string'
|
|
|
|
|
|
|
|
|
55 |
)
|
56 |
);
|
57 |
parent::__construct($data);
|
@@ -59,7 +63,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
59 |
|
60 |
/**
|
61 |
* Gets the value of the SellerId property.
|
62 |
-
*
|
63 |
* @return string SellerId
|
64 |
*/
|
65 |
public function getSellerId ()
|
@@ -69,7 +73,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
69 |
|
70 |
/**
|
71 |
* Sets the value of the SellerId property.
|
72 |
-
*
|
73 |
* @param string SellerId
|
74 |
* @return this instance
|
75 |
*/
|
@@ -81,7 +85,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
81 |
|
82 |
/**
|
83 |
* Sets the value of the SellerId and returns this instance
|
84 |
-
*
|
85 |
* @param string $value SellerId
|
86 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest instance
|
87 |
*/
|
@@ -93,7 +97,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
93 |
|
94 |
/**
|
95 |
* Checks if SellerId is set
|
96 |
-
*
|
97 |
* @return bool true if SellerId is set
|
98 |
*/
|
99 |
public function isSetSellerId ()
|
@@ -103,7 +107,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
103 |
|
104 |
/**
|
105 |
* Gets the value of the AmazonBillingAgreementId property.
|
106 |
-
*
|
107 |
* @return string AmazonBillingAgreementId
|
108 |
*/
|
109 |
public function getAmazonBillingAgreementId ()
|
@@ -113,7 +117,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
113 |
|
114 |
/**
|
115 |
* Sets the value of the AmazonBillingAgreementId property.
|
116 |
-
*
|
117 |
* @param string AmazonBillingAgreementId
|
118 |
* @return this instance
|
119 |
*/
|
@@ -125,7 +129,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
125 |
|
126 |
/**
|
127 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
128 |
-
*
|
129 |
* @param string $value AmazonBillingAgreementId
|
130 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest instance
|
131 |
*/
|
@@ -137,11 +141,44 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest extends OffA
|
|
137 |
|
138 |
/**
|
139 |
* Checks if AmazonBillingAgreementId is set
|
140 |
-
*
|
141 |
* @return bool true if AmazonBillingAgreementId is set
|
142 |
*/
|
143 |
public function isSetAmazonBillingAgreementId ()
|
144 |
{
|
145 |
return ! is_null($this->_fields['AmazonBillingAgreementId']['FieldValue']);
|
146 |
}
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>SellerId: string</li>
|
25 |
* <li>AmazonBillingAgreementId: string</li>
|
26 |
*
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest
|
34 |
+
*
|
35 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
+
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
+
*
|
40 |
* <li>SellerId: string</li>
|
41 |
* <li>AmazonBillingAgreementId: string</li>
|
42 |
*
|
52 |
'AmazonBillingAgreementId' => array(
|
53 |
'FieldValue' => null,
|
54 |
'FieldType' => 'string'
|
55 |
+
),
|
56 |
+
'MWSAuthToken' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'string'
|
59 |
)
|
60 |
);
|
61 |
parent::__construct($data);
|
63 |
|
64 |
/**
|
65 |
* Gets the value of the SellerId property.
|
66 |
+
*
|
67 |
* @return string SellerId
|
68 |
*/
|
69 |
public function getSellerId ()
|
73 |
|
74 |
/**
|
75 |
* Sets the value of the SellerId property.
|
76 |
+
*
|
77 |
* @param string SellerId
|
78 |
* @return this instance
|
79 |
*/
|
85 |
|
86 |
/**
|
87 |
* Sets the value of the SellerId and returns this instance
|
88 |
+
*
|
89 |
* @param string $value SellerId
|
90 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest instance
|
91 |
*/
|
97 |
|
98 |
/**
|
99 |
* Checks if SellerId is set
|
100 |
+
*
|
101 |
* @return bool true if SellerId is set
|
102 |
*/
|
103 |
public function isSetSellerId ()
|
107 |
|
108 |
/**
|
109 |
* Gets the value of the AmazonBillingAgreementId property.
|
110 |
+
*
|
111 |
* @return string AmazonBillingAgreementId
|
112 |
*/
|
113 |
public function getAmazonBillingAgreementId ()
|
117 |
|
118 |
/**
|
119 |
* Sets the value of the AmazonBillingAgreementId property.
|
120 |
+
*
|
121 |
* @param string AmazonBillingAgreementId
|
122 |
* @return this instance
|
123 |
*/
|
129 |
|
130 |
/**
|
131 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
132 |
+
*
|
133 |
* @param string $value AmazonBillingAgreementId
|
134 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementRequest instance
|
135 |
*/
|
141 |
|
142 |
/**
|
143 |
* Checks if AmazonBillingAgreementId is set
|
144 |
+
*
|
145 |
* @return bool true if AmazonBillingAgreementId is set
|
146 |
*/
|
147 |
public function isSetAmazonBillingAgreementId ()
|
148 |
{
|
149 |
return ! is_null($this->_fields['AmazonBillingAgreementId']['FieldValue']);
|
150 |
}
|
151 |
+
|
152 |
+
/**
|
153 |
+
* Gets the value of the MWSAuthToken property.
|
154 |
+
*
|
155 |
+
* @return string MWSAuthToken
|
156 |
+
*/
|
157 |
+
public function getMWSAuthToken()
|
158 |
+
{
|
159 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
160 |
+
}
|
161 |
+
|
162 |
+
/**
|
163 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
164 |
+
*
|
165 |
+
* @param string $value MWSAuthToken
|
166 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
167 |
+
*/
|
168 |
+
public function setMWSAuthToken($value)
|
169 |
+
{
|
170 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
171 |
+
return $this;
|
172 |
+
}
|
173 |
+
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Checks if MWSAuthToken is set
|
177 |
+
*
|
178 |
+
* @return bool true if MWSAuthToken is set
|
179 |
+
*/
|
180 |
+
public function isSetMWSAuthToken()
|
181 |
+
{
|
182 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
183 |
+
}
|
184 |
+
}
|
lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResponse.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>ConfirmBillingAgreementResult: OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
@@ -31,12 +31,12 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse
|
34 |
-
*
|
35 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
-
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
-
*
|
40 |
* <li>ConfirmBillingAgreementResult: OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
@@ -45,33 +45,32 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
-
|
49 |
'ConfirmBillingAgreementResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult'
|
52 |
),
|
53 |
-
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
-
)
|
59 |
-
;
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
|
63 |
/**
|
64 |
* Construct OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse from XML string
|
65 |
-
*
|
66 |
* @param string $xml XML string to construct from
|
67 |
-
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse
|
68 |
*/
|
69 |
public static function fromXML ($xml)
|
70 |
{
|
71 |
$dom = new DOMDocument();
|
72 |
$dom->loadXML($xml);
|
73 |
$xpath = new DOMXPath($dom);
|
74 |
-
$xpath->registerNamespace('a',
|
75 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
76 |
$response = $xpath->query('//a:ConfirmBillingAgreementResponse');
|
77 |
if ($response->length == 1) {
|
@@ -79,15 +78,15 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
79 |
($response->item(0)));
|
80 |
} else {
|
81 |
throw new Exception(
|
82 |
-
"Unable to construct OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse from provided XML.
|
83 |
Make sure that ConfirmBillingAgreementResponse is a root element");
|
84 |
}
|
85 |
}
|
86 |
|
87 |
/**
|
88 |
* Gets the value of the ConfirmBillingAgreementResult.
|
89 |
-
*
|
90 |
-
* @return
|
91 |
*/
|
92 |
public function getConfirmBillingAgreementResult ()
|
93 |
{
|
@@ -96,8 +95,8 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
96 |
|
97 |
/**
|
98 |
* Sets the value of the ConfirmBillingAgreementResult.
|
99 |
-
*
|
100 |
-
* @param
|
101 |
* @return void
|
102 |
*/
|
103 |
public function setConfirmBillingAgreementResult ($value)
|
@@ -108,8 +107,8 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
108 |
|
109 |
/**
|
110 |
* Sets the value of the ConfirmBillingAgreementResult and returns this instance
|
111 |
-
*
|
112 |
-
* @param
|
113 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse instance
|
114 |
*/
|
115 |
public function withConfirmBillingAgreementResult ($value)
|
@@ -120,7 +119,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
120 |
|
121 |
/**
|
122 |
* Checks if ConfirmBillingAgreementResult is set
|
123 |
-
*
|
124 |
* @return bool true if ConfirmBillingAgreementResult property is set
|
125 |
*/
|
126 |
public function isSetConfirmBillingAgreementResult ()
|
@@ -130,8 +129,8 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
130 |
|
131 |
/**
|
132 |
* Gets the value of the ResponseMetadata.
|
133 |
-
*
|
134 |
-
* @return
|
135 |
*/
|
136 |
public function getResponseMetadata ()
|
137 |
{
|
@@ -140,8 +139,8 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
140 |
|
141 |
/**
|
142 |
* Sets the value of the ResponseMetadata.
|
143 |
-
*
|
144 |
-
* @param
|
145 |
* @return void
|
146 |
*/
|
147 |
public function setResponseMetadata ($value)
|
@@ -152,8 +151,8 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
152 |
|
153 |
/**
|
154 |
* Sets the value of the ResponseMetadata and returns this instance
|
155 |
-
*
|
156 |
-
* @param
|
157 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse instance
|
158 |
*/
|
159 |
public function withResponseMetadata ($value)
|
@@ -164,7 +163,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
164 |
|
165 |
/**
|
166 |
* Checks if ResponseMetadata is set
|
167 |
-
*
|
168 |
* @return bool true if ResponseMetadata property is set
|
169 |
*/
|
170 |
public function isSetResponseMetadata ()
|
@@ -174,7 +173,7 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
174 |
|
175 |
/**
|
176 |
* XML Representation for this object
|
177 |
-
*
|
178 |
* @return string XML for this object
|
179 |
*/
|
180 |
public function toXML ()
|
@@ -197,4 +196,4 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse extends Off
|
|
197 |
{
|
198 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
199 |
}
|
200 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>ConfirmBillingAgreementResult: OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse
|
34 |
+
*
|
35 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
+
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
+
*
|
40 |
* <li>ConfirmBillingAgreementResult: OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
+
|
49 |
'ConfirmBillingAgreementResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult'
|
52 |
),
|
53 |
+
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
+
);
|
|
|
59 |
parent::__construct($data);
|
60 |
}
|
61 |
|
62 |
/**
|
63 |
* Construct OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse from XML string
|
64 |
+
*
|
65 |
* @param string $xml XML string to construct from
|
66 |
+
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse
|
67 |
*/
|
68 |
public static function fromXML ($xml)
|
69 |
{
|
70 |
$dom = new DOMDocument();
|
71 |
$dom->loadXML($xml);
|
72 |
$xpath = new DOMXPath($dom);
|
73 |
+
$xpath->registerNamespace('a',
|
74 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
75 |
$response = $xpath->query('//a:ConfirmBillingAgreementResponse');
|
76 |
if ($response->length == 1) {
|
78 |
($response->item(0)));
|
79 |
} else {
|
80 |
throw new Exception(
|
81 |
+
"Unable to construct OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse from provided XML.
|
82 |
Make sure that ConfirmBillingAgreementResponse is a root element");
|
83 |
}
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
* Gets the value of the ConfirmBillingAgreementResult.
|
88 |
+
*
|
89 |
+
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult ConfirmBillingAgreementResult
|
90 |
*/
|
91 |
public function getConfirmBillingAgreementResult ()
|
92 |
{
|
95 |
|
96 |
/**
|
97 |
* Sets the value of the ConfirmBillingAgreementResult.
|
98 |
+
*
|
99 |
+
* @param OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult ConfirmBillingAgreementResult
|
100 |
* @return void
|
101 |
*/
|
102 |
public function setConfirmBillingAgreementResult ($value)
|
107 |
|
108 |
/**
|
109 |
* Sets the value of the ConfirmBillingAgreementResult and returns this instance
|
110 |
+
*
|
111 |
+
* @param OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult $value ConfirmBillingAgreementResult
|
112 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse instance
|
113 |
*/
|
114 |
public function withConfirmBillingAgreementResult ($value)
|
119 |
|
120 |
/**
|
121 |
* Checks if ConfirmBillingAgreementResult is set
|
122 |
+
*
|
123 |
* @return bool true if ConfirmBillingAgreementResult property is set
|
124 |
*/
|
125 |
public function isSetConfirmBillingAgreementResult ()
|
129 |
|
130 |
/**
|
131 |
* Gets the value of the ResponseMetadata.
|
132 |
+
*
|
133 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
134 |
*/
|
135 |
public function getResponseMetadata ()
|
136 |
{
|
139 |
|
140 |
/**
|
141 |
* Sets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
* @return void
|
145 |
*/
|
146 |
public function setResponseMetadata ($value)
|
151 |
|
152 |
/**
|
153 |
* Sets the value of the ResponseMetadata and returns this instance
|
154 |
+
*
|
155 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
156 |
* @return OffAmazonPaymentsService_Model_ConfirmBillingAgreementResponse instance
|
157 |
*/
|
158 |
public function withResponseMetadata ($value)
|
163 |
|
164 |
/**
|
165 |
* Checks if ResponseMetadata is set
|
166 |
+
*
|
167 |
* @return bool true if ResponseMetadata property is set
|
168 |
*/
|
169 |
public function isSetResponseMetadata ()
|
173 |
|
174 |
/**
|
175 |
* XML Representation for this object
|
176 |
+
*
|
177 |
* @return string XML for this object
|
178 |
*/
|
179 |
public function toXML ()
|
196 |
{
|
197 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
198 |
}
|
199 |
+
}
|
lib/OffAmazonPaymentsService/Model/ConfirmBillingAgreementResult.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
*
|
25 |
* </ul>
|
26 |
*/
|
@@ -29,12 +29,12 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult extends OffAm
|
|
29 |
|
30 |
/**
|
31 |
* Construct new OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult
|
32 |
-
*
|
33 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
34 |
-
*
|
35 |
* Valid properties:
|
36 |
* <ul>
|
37 |
-
*
|
38 |
*
|
39 |
* </ul>
|
40 |
*/
|
@@ -43,4 +43,4 @@ class OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult extends OffAm
|
|
43 |
$this->_fields = array();
|
44 |
parent::__construct($data);
|
45 |
}
|
46 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
*
|
25 |
* </ul>
|
26 |
*/
|
29 |
|
30 |
/**
|
31 |
* Construct new OffAmazonPaymentsService_Model_ConfirmBillingAgreementResult
|
32 |
+
*
|
33 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
34 |
+
*
|
35 |
* Valid properties:
|
36 |
* <ul>
|
37 |
+
*
|
38 |
*
|
39 |
* </ul>
|
40 |
*/
|
43 |
$this->_fields = array();
|
44 |
parent::__construct($data);
|
45 |
}
|
46 |
+
}
|
lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceRequest.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>AmazonOrderReferenceId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>AmazonOrderReferenceId: string</li>
|
48 |
* <li>SellerId: string</li>
|
49 |
*
|
@@ -51,38 +51,48 @@ class OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest extends OffAma
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the AmazonOrderReferenceId property.
|
63 |
-
*
|
64 |
* @return string AmazonOrderReferenceId
|
65 |
*/
|
66 |
-
public function getAmazonOrderReferenceId()
|
67 |
{
|
68 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the AmazonOrderReferenceId property.
|
73 |
-
*
|
74 |
* @param string AmazonOrderReferenceId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setAmazonOrderReferenceId($value)
|
78 |
{
|
79 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
85 |
-
*
|
86 |
* @param string $value AmazonOrderReferenceId
|
87 |
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest instance
|
88 |
*/
|
@@ -91,43 +101,43 @@ class OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest extends OffAma
|
|
91 |
$this->setAmazonOrderReferenceId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if AmazonOrderReferenceId is set
|
98 |
-
*
|
99 |
* @return bool true if AmazonOrderReferenceId is set
|
100 |
*/
|
101 |
public function isSetAmazonOrderReferenceId()
|
102 |
{
|
103 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the SellerId property.
|
108 |
-
*
|
109 |
* @return string SellerId
|
110 |
*/
|
111 |
-
public function getSellerId()
|
112 |
{
|
113 |
return $this->_fields['SellerId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the SellerId property.
|
118 |
-
*
|
119 |
* @param string SellerId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setSellerId($value)
|
123 |
{
|
124 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the SellerId and returns this instance
|
130 |
-
*
|
131 |
* @param string $value SellerId
|
132 |
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest instance
|
133 |
*/
|
@@ -136,15 +146,48 @@ class OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest extends OffAma
|
|
136 |
$this->setSellerId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if SellerId is set
|
143 |
-
*
|
144 |
* @return bool true if SellerId is set
|
145 |
*/
|
146 |
public function isSetSellerId()
|
147 |
{
|
148 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
149 |
}
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>AmazonOrderReferenceId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>AmazonOrderReferenceId: string</li>
|
48 |
* <li>SellerId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'AmazonOrderReferenceId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'SellerId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'MWSAuthToken' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
)
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
/**
|
72 |
* Gets the value of the AmazonOrderReferenceId property.
|
73 |
+
*
|
74 |
* @return string AmazonOrderReferenceId
|
75 |
*/
|
76 |
+
public function getAmazonOrderReferenceId()
|
77 |
{
|
78 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
79 |
}
|
80 |
+
|
81 |
/**
|
82 |
* Sets the value of the AmazonOrderReferenceId property.
|
83 |
+
*
|
84 |
* @param string AmazonOrderReferenceId
|
85 |
* @return this instance
|
86 |
*/
|
87 |
+
public function setAmazonOrderReferenceId($value)
|
88 |
{
|
89 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
90 |
return $this;
|
91 |
}
|
92 |
+
|
93 |
/**
|
94 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
95 |
+
*
|
96 |
* @param string $value AmazonOrderReferenceId
|
97 |
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest instance
|
98 |
*/
|
101 |
$this->setAmazonOrderReferenceId($value);
|
102 |
return $this;
|
103 |
}
|
104 |
+
|
105 |
+
|
106 |
/**
|
107 |
* Checks if AmazonOrderReferenceId is set
|
108 |
+
*
|
109 |
* @return bool true if AmazonOrderReferenceId is set
|
110 |
*/
|
111 |
public function isSetAmazonOrderReferenceId()
|
112 |
{
|
113 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Gets the value of the SellerId property.
|
118 |
+
*
|
119 |
* @return string SellerId
|
120 |
*/
|
121 |
+
public function getSellerId()
|
122 |
{
|
123 |
return $this->_fields['SellerId']['FieldValue'];
|
124 |
}
|
125 |
+
|
126 |
/**
|
127 |
* Sets the value of the SellerId property.
|
128 |
+
*
|
129 |
* @param string SellerId
|
130 |
* @return this instance
|
131 |
*/
|
132 |
+
public function setSellerId($value)
|
133 |
{
|
134 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
135 |
return $this;
|
136 |
}
|
137 |
+
|
138 |
/**
|
139 |
* Sets the value of the SellerId and returns this instance
|
140 |
+
*
|
141 |
* @param string $value SellerId
|
142 |
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest instance
|
143 |
*/
|
146 |
$this->setSellerId($value);
|
147 |
return $this;
|
148 |
}
|
149 |
+
|
150 |
+
|
151 |
/**
|
152 |
* Checks if SellerId is set
|
153 |
+
*
|
154 |
* @return bool true if SellerId is set
|
155 |
*/
|
156 |
public function isSetSellerId()
|
157 |
{
|
158 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
159 |
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Gets the value of the MWSAuthToken property.
|
163 |
+
*
|
164 |
+
* @return string MWSAuthToken
|
165 |
+
*/
|
166 |
+
public function getMWSAuthToken()
|
167 |
+
{
|
168 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
173 |
+
*
|
174 |
+
* @param string $value MWSAuthToken
|
175 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
176 |
+
*/
|
177 |
+
public function setMWSAuthToken($value)
|
178 |
+
{
|
179 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
180 |
+
return $this;
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Checks if MWSAuthToken is set
|
186 |
+
*
|
187 |
+
* @return bool true if MWSAuthToken is set
|
188 |
+
*/
|
189 |
+
public function isSetMWSAuthToken()
|
190 |
+
{
|
191 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
192 |
+
}
|
193 |
+
}
|
lib/OffAmazonPaymentsService/Model/ConfirmOrderReferenceResponse.php
CHANGED
@@ -20,92 +20,95 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
/**
|
62 |
* Construct OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse from XML string
|
63 |
-
*
|
64 |
* @param string $xml XML string to construct from
|
65 |
-
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse
|
66 |
*/
|
67 |
public static function fromXML($xml)
|
68 |
{
|
69 |
$dom = new DOMDocument();
|
70 |
$dom->loadXML($xml);
|
71 |
$xpath = new DOMXPath($dom);
|
72 |
-
|
73 |
$response = $xpath->query('//a:ConfirmOrderReferenceResponse');
|
74 |
if ($response->length == 1) {
|
75 |
-
return new OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse(($response->item(0)));
|
76 |
} else {
|
77 |
-
throw new Exception
|
78 |
Make sure that ConfirmOrderReferenceResponse is a root element");
|
79 |
}
|
80 |
-
|
81 |
}
|
82 |
|
83 |
/**
|
84 |
* Gets the value of the ResponseMetadata.
|
85 |
-
*
|
86 |
-
* @return
|
87 |
*/
|
88 |
-
public function getResponseMetadata()
|
89 |
{
|
90 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
91 |
}
|
92 |
-
|
93 |
/**
|
94 |
* Sets the value of the ResponseMetadata.
|
95 |
-
*
|
96 |
-
* @param
|
97 |
* @return void
|
98 |
*/
|
99 |
-
public function setResponseMetadata($value)
|
100 |
{
|
101 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
102 |
return;
|
103 |
}
|
104 |
-
|
105 |
/**
|
106 |
* Sets the value of the ResponseMetadata and returns this instance
|
107 |
-
*
|
108 |
-
* @param
|
109 |
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse instance
|
110 |
*/
|
111 |
public function withResponseMetadata($value)
|
@@ -113,27 +116,26 @@ class OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse extends OffAm
|
|
113 |
$this->setResponseMetadata($value);
|
114 |
return $this;
|
115 |
}
|
116 |
-
|
117 |
-
|
118 |
/**
|
119 |
* Checks if ResponseMetadata is set
|
120 |
-
*
|
121 |
* @return bool true if ResponseMetadata property is set
|
122 |
*/
|
123 |
public function isSetResponseMetadata()
|
124 |
{
|
125 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
126 |
-
|
127 |
}
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
/**
|
132 |
* XML Representation for this object
|
133 |
-
*
|
134 |
* @return string XML for this object
|
135 |
*/
|
136 |
-
public function toXML()
|
137 |
{
|
138 |
$xml = "";
|
139 |
$xml .= "<ConfirmOrderReferenceResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -141,14 +143,16 @@ class OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse extends OffAm
|
|
141 |
$xml .= "</ConfirmOrderReferenceResponse>";
|
142 |
return $xml;
|
143 |
}
|
144 |
-
|
145 |
private $_responseHeaderMetadata = null;
|
146 |
-
|
147 |
-
public function getResponseHeaderMetadata()
|
|
|
148 |
return $this->_responseHeaderMetadata;
|
149 |
}
|
150 |
-
|
151 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
152 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
153 |
}
|
154 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'ResponseMetadata' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
|
64 |
/**
|
65 |
* Construct OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse from XML string
|
66 |
+
*
|
67 |
* @param string $xml XML string to construct from
|
68 |
+
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse
|
69 |
*/
|
70 |
public static function fromXML($xml)
|
71 |
{
|
72 |
$dom = new DOMDocument();
|
73 |
$dom->loadXML($xml);
|
74 |
$xpath = new DOMXPath($dom);
|
75 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
76 |
$response = $xpath->query('//a:ConfirmOrderReferenceResponse');
|
77 |
if ($response->length == 1) {
|
78 |
+
return new OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse(($response->item(0)));
|
79 |
} else {
|
80 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse from provided XML.
|
81 |
Make sure that ConfirmOrderReferenceResponse is a root element");
|
82 |
}
|
83 |
+
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
* Gets the value of the ResponseMetadata.
|
88 |
+
*
|
89 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
90 |
*/
|
91 |
+
public function getResponseMetadata()
|
92 |
{
|
93 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
94 |
}
|
95 |
+
|
96 |
/**
|
97 |
* Sets the value of the ResponseMetadata.
|
98 |
+
*
|
99 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
100 |
* @return void
|
101 |
*/
|
102 |
+
public function setResponseMetadata($value)
|
103 |
{
|
104 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
105 |
return;
|
106 |
}
|
107 |
+
|
108 |
/**
|
109 |
* Sets the value of the ResponseMetadata and returns this instance
|
110 |
+
*
|
111 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
112 |
* @return OffAmazonPaymentsService_Model_ConfirmOrderReferenceResponse instance
|
113 |
*/
|
114 |
public function withResponseMetadata($value)
|
116 |
$this->setResponseMetadata($value);
|
117 |
return $this;
|
118 |
}
|
119 |
+
|
120 |
+
|
121 |
/**
|
122 |
* Checks if ResponseMetadata is set
|
123 |
+
*
|
124 |
* @return bool true if ResponseMetadata property is set
|
125 |
*/
|
126 |
public function isSetResponseMetadata()
|
127 |
{
|
128 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
129 |
+
|
130 |
}
|
131 |
+
|
132 |
+
|
|
|
133 |
/**
|
134 |
* XML Representation for this object
|
135 |
+
*
|
136 |
* @return string XML for this object
|
137 |
*/
|
138 |
+
public function toXML()
|
139 |
{
|
140 |
$xml = "";
|
141 |
$xml .= "<ConfirmOrderReferenceResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
143 |
$xml .= "</ConfirmOrderReferenceResponse>";
|
144 |
return $xml;
|
145 |
}
|
146 |
+
|
147 |
private $_responseHeaderMetadata = null;
|
148 |
+
|
149 |
+
public function getResponseHeaderMetadata()
|
150 |
+
{
|
151 |
return $this->_responseHeaderMetadata;
|
152 |
}
|
153 |
+
|
154 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
155 |
+
{
|
156 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
157 |
}
|
158 |
+
}
|
lib/OffAmazonPaymentsService/Model/Constraint.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Constraint
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ConstraintID: string</li>
|
32 |
* <li>Description: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_Constraint extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_Constraint
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>ConstraintID: string</li>
|
48 |
* <li>Description: string</li>
|
49 |
*
|
@@ -51,38 +51,44 @@ class OffAmazonPaymentsService_Model_Constraint extends OffAmazonPaymentsService
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the ConstraintID property.
|
63 |
-
*
|
64 |
* @return string ConstraintID
|
65 |
*/
|
66 |
-
public function getConstraintID()
|
67 |
{
|
68 |
return $this->_fields['ConstraintID']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the ConstraintID property.
|
73 |
-
*
|
74 |
* @param string ConstraintID
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setConstraintID($value)
|
78 |
{
|
79 |
$this->_fields['ConstraintID']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the ConstraintID and returns this instance
|
85 |
-
*
|
86 |
* @param string $value ConstraintID
|
87 |
* @return OffAmazonPaymentsService_Model_Constraint instance
|
88 |
*/
|
@@ -91,43 +97,43 @@ class OffAmazonPaymentsService_Model_Constraint extends OffAmazonPaymentsService
|
|
91 |
$this->setConstraintID($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if ConstraintID is set
|
98 |
-
*
|
99 |
* @return bool true if ConstraintID is set
|
100 |
*/
|
101 |
public function isSetConstraintID()
|
102 |
{
|
103 |
return !is_null($this->_fields['ConstraintID']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the Description property.
|
108 |
-
*
|
109 |
* @return string Description
|
110 |
*/
|
111 |
-
public function getDescription()
|
112 |
{
|
113 |
return $this->_fields['Description']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the Description property.
|
118 |
-
*
|
119 |
* @param string Description
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setDescription($value)
|
123 |
{
|
124 |
$this->_fields['Description']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the Description and returns this instance
|
130 |
-
*
|
131 |
* @param string $value Description
|
132 |
* @return OffAmazonPaymentsService_Model_Constraint instance
|
133 |
*/
|
@@ -136,15 +142,15 @@ class OffAmazonPaymentsService_Model_Constraint extends OffAmazonPaymentsService
|
|
136 |
$this->setDescription($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if Description is set
|
143 |
-
*
|
144 |
* @return bool true if Description is set
|
145 |
*/
|
146 |
public function isSetDescription()
|
147 |
{
|
148 |
return !is_null($this->_fields['Description']['FieldValue']);
|
149 |
}
|
150 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Constraint
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ConstraintID: string</li>
|
32 |
* <li>Description: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_Constraint extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_Constraint
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>ConstraintID: string</li>
|
48 |
* <li>Description: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'ConstraintID' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'Description' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
)
|
63 |
);
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
+
|
67 |
+
/**
|
68 |
* Gets the value of the ConstraintID property.
|
69 |
+
*
|
70 |
* @return string ConstraintID
|
71 |
*/
|
72 |
+
public function getConstraintID()
|
73 |
{
|
74 |
return $this->_fields['ConstraintID']['FieldValue'];
|
75 |
}
|
76 |
+
|
77 |
/**
|
78 |
* Sets the value of the ConstraintID property.
|
79 |
+
*
|
80 |
* @param string ConstraintID
|
81 |
* @return this instance
|
82 |
*/
|
83 |
+
public function setConstraintID($value)
|
84 |
{
|
85 |
$this->_fields['ConstraintID']['FieldValue'] = $value;
|
86 |
return $this;
|
87 |
}
|
88 |
+
|
89 |
/**
|
90 |
* Sets the value of the ConstraintID and returns this instance
|
91 |
+
*
|
92 |
* @param string $value ConstraintID
|
93 |
* @return OffAmazonPaymentsService_Model_Constraint instance
|
94 |
*/
|
97 |
$this->setConstraintID($value);
|
98 |
return $this;
|
99 |
}
|
100 |
+
|
101 |
+
|
102 |
/**
|
103 |
* Checks if ConstraintID is set
|
104 |
+
*
|
105 |
* @return bool true if ConstraintID is set
|
106 |
*/
|
107 |
public function isSetConstraintID()
|
108 |
{
|
109 |
return !is_null($this->_fields['ConstraintID']['FieldValue']);
|
110 |
}
|
111 |
+
|
112 |
/**
|
113 |
* Gets the value of the Description property.
|
114 |
+
*
|
115 |
* @return string Description
|
116 |
*/
|
117 |
+
public function getDescription()
|
118 |
{
|
119 |
return $this->_fields['Description']['FieldValue'];
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Sets the value of the Description property.
|
124 |
+
*
|
125 |
* @param string Description
|
126 |
* @return this instance
|
127 |
*/
|
128 |
+
public function setDescription($value)
|
129 |
{
|
130 |
$this->_fields['Description']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Sets the value of the Description and returns this instance
|
136 |
+
*
|
137 |
* @param string $value Description
|
138 |
* @return OffAmazonPaymentsService_Model_Constraint instance
|
139 |
*/
|
142 |
$this->setDescription($value);
|
143 |
return $this;
|
144 |
}
|
145 |
+
|
146 |
+
|
147 |
/**
|
148 |
* Checks if Description is set
|
149 |
+
*
|
150 |
* @return bool true if Description is set
|
151 |
*/
|
152 |
public function isSetDescription()
|
153 |
{
|
154 |
return !is_null($this->_fields['Description']['FieldValue']);
|
155 |
}
|
156 |
+
}
|
lib/OffAmazonPaymentsService/Model/Constraints.php
CHANGED
@@ -20,72 +20,79 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Constraints
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>Constraint: OffAmazonPaymentsService_Model_Constraint</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_Constraints extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_Constraints
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>Constraint: OffAmazonPaymentsService_Model_Constraint</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the Constraint.
|
60 |
-
*
|
61 |
* @return array of Constraint Constraint
|
62 |
*/
|
63 |
-
public function getConstraint()
|
64 |
{
|
65 |
return $this->_fields['Constraint']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the Constraint.
|
70 |
-
*
|
71 |
* @param mixed Constraint or an array of Constraint Constraint
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setConstraint($constraint)
|
75 |
{
|
76 |
if (!$this->_isNumericArray($constraint)) {
|
77 |
-
$constraint =
|
|
|
|
|
78 |
}
|
79 |
$this->_fields['Constraint']['FieldValue'] = $constraint;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
/**
|
85 |
-
* Sets single or multiple values of Constraint list via variable number of arguments.
|
86 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
87 |
* <code>withConstraint($constraint1, $constraint2)</code>
|
88 |
-
*
|
89 |
* @param Constraint $constraintArgs one or more Constraint
|
90 |
* @return OffAmazonPaymentsService_Model_Constraints instance
|
91 |
*/
|
@@ -95,17 +102,17 @@ class OffAmazonPaymentsService_Model_Constraints extends OffAmazonPaymentsServic
|
|
95 |
$this->_fields['Constraint']['FieldValue'][] = $constraint;
|
96 |
}
|
97 |
return $this;
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
/**
|
103 |
* Checks if Constraint list is non-empty
|
104 |
-
*
|
105 |
* @return bool true if Constraint list is non-empty
|
106 |
*/
|
107 |
public function isSetConstraint()
|
108 |
{
|
109 |
-
return count
|
110 |
}
|
111 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Constraints
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>Constraint: OffAmazonPaymentsService_Model_Constraint</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_Constraints extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_Constraints
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>Constraint: OffAmazonPaymentsService_Model_Constraint</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'Constraint' => array(
|
54 |
+
'FieldValue' => array(),
|
55 |
+
'FieldType' => array(
|
56 |
+
'OffAmazonPaymentsService_Model_Constraint'
|
57 |
+
)
|
58 |
+
)
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the Constraint.
|
65 |
+
*
|
66 |
* @return array of Constraint Constraint
|
67 |
*/
|
68 |
+
public function getConstraint()
|
69 |
{
|
70 |
return $this->_fields['Constraint']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the Constraint.
|
75 |
+
*
|
76 |
* @param mixed Constraint or an array of Constraint Constraint
|
77 |
* @return this instance
|
78 |
*/
|
79 |
+
public function setConstraint($constraint)
|
80 |
{
|
81 |
if (!$this->_isNumericArray($constraint)) {
|
82 |
+
$constraint = array(
|
83 |
+
$constraint
|
84 |
+
);
|
85 |
}
|
86 |
$this->_fields['Constraint']['FieldValue'] = $constraint;
|
87 |
return $this;
|
88 |
}
|
89 |
+
|
90 |
+
|
91 |
/**
|
92 |
+
* Sets single or multiple values of Constraint list via variable number of arguments.
|
93 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
94 |
* <code>withConstraint($constraint1, $constraint2)</code>
|
95 |
+
*
|
96 |
* @param Constraint $constraintArgs one or more Constraint
|
97 |
* @return OffAmazonPaymentsService_Model_Constraints instance
|
98 |
*/
|
102 |
$this->_fields['Constraint']['FieldValue'][] = $constraint;
|
103 |
}
|
104 |
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
/**
|
110 |
* Checks if Constraint list is non-empty
|
111 |
+
*
|
112 |
* @return bool true if Constraint list is non-empty
|
113 |
*/
|
114 |
public function isSetConstraint()
|
115 |
{
|
116 |
+
return count($this->_fields['Constraint']['FieldValue']) > 0;
|
117 |
}
|
118 |
+
}
|
lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdRequest.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>Id: string</li>
|
25 |
* <li>SellerId: string</li>
|
26 |
* <li>IdType: string</li>
|
@@ -32,15 +32,15 @@
|
|
32 |
*/
|
33 |
class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest extends OffAmazonPaymentsService_Model
|
34 |
{
|
35 |
-
|
36 |
/**
|
37 |
* Construct new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest
|
38 |
-
*
|
39 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
40 |
-
*
|
41 |
* Valid properties:
|
42 |
* <ul>
|
43 |
-
*
|
44 |
* <li>Id: string</li>
|
45 |
* <li>SellerId: string</li>
|
46 |
* <li>IdType: string</li>
|
@@ -50,7 +50,7 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest extends Of
|
|
50 |
*
|
51 |
* </ul>
|
52 |
*/
|
53 |
-
public function __construct
|
54 |
{
|
55 |
$this->_fields = array(
|
56 |
'Id' => array(
|
@@ -77,273 +77,310 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest extends Of
|
|
77 |
'OrderReferenceAttributes' => array(
|
78 |
'FieldValue' => null,
|
79 |
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceAttributes'
|
|
|
|
|
|
|
|
|
|
|
80 |
)
|
81 |
-
)
|
82 |
-
;
|
83 |
parent::__construct($data);
|
84 |
}
|
85 |
-
|
86 |
/**
|
87 |
* Gets the value of the Id property.
|
88 |
-
*
|
89 |
* @return string Id
|
90 |
*/
|
91 |
-
public function getId
|
92 |
{
|
93 |
return $this->_fields['Id']['FieldValue'];
|
94 |
}
|
95 |
-
|
96 |
/**
|
97 |
* Sets the value of the Id property.
|
98 |
-
*
|
99 |
* @param string Id
|
100 |
* @return this instance
|
101 |
*/
|
102 |
-
public function setId
|
103 |
{
|
104 |
$this->_fields['Id']['FieldValue'] = $value;
|
105 |
return $this;
|
106 |
}
|
107 |
-
|
108 |
/**
|
109 |
* Sets the value of the Id and returns this instance
|
110 |
-
*
|
111 |
* @param string $value Id
|
112 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
113 |
*/
|
114 |
-
public function withId
|
115 |
{
|
116 |
$this->setId($value);
|
117 |
return $this;
|
118 |
}
|
119 |
-
|
120 |
/**
|
121 |
* Checks if Id is set
|
122 |
-
*
|
123 |
* @return bool true if Id is set
|
124 |
*/
|
125 |
-
public function isSetId
|
126 |
{
|
127 |
-
return !
|
128 |
}
|
129 |
-
|
130 |
/**
|
131 |
* Gets the value of the SellerId property.
|
132 |
-
*
|
133 |
* @return string SellerId
|
134 |
*/
|
135 |
-
public function getSellerId
|
136 |
{
|
137 |
return $this->_fields['SellerId']['FieldValue'];
|
138 |
}
|
139 |
-
|
140 |
/**
|
141 |
* Sets the value of the SellerId property.
|
142 |
-
*
|
143 |
* @param string SellerId
|
144 |
* @return this instance
|
145 |
*/
|
146 |
-
public function setSellerId
|
147 |
{
|
148 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
149 |
return $this;
|
150 |
}
|
151 |
-
|
152 |
/**
|
153 |
* Sets the value of the SellerId and returns this instance
|
154 |
-
*
|
155 |
* @param string $value SellerId
|
156 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
157 |
*/
|
158 |
-
public function withSellerId
|
159 |
{
|
160 |
$this->setSellerId($value);
|
161 |
return $this;
|
162 |
}
|
163 |
-
|
164 |
/**
|
165 |
* Checks if SellerId is set
|
166 |
-
*
|
167 |
* @return bool true if SellerId is set
|
168 |
*/
|
169 |
-
public function isSetSellerId
|
170 |
{
|
171 |
-
return !
|
172 |
}
|
173 |
-
|
174 |
/**
|
175 |
* Gets the value of the IdType property.
|
176 |
-
*
|
177 |
* @return string IdType
|
178 |
*/
|
179 |
-
public function getIdType
|
180 |
{
|
181 |
return $this->_fields['IdType']['FieldValue'];
|
182 |
}
|
183 |
-
|
184 |
/**
|
185 |
* Sets the value of the IdType property.
|
186 |
-
*
|
187 |
* @param string IdType
|
188 |
* @return this instance
|
189 |
*/
|
190 |
-
public function setIdType
|
191 |
{
|
192 |
$this->_fields['IdType']['FieldValue'] = $value;
|
193 |
return $this;
|
194 |
}
|
195 |
-
|
196 |
/**
|
197 |
* Sets the value of the IdType and returns this instance
|
198 |
-
*
|
199 |
* @param string $value IdType
|
200 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
201 |
*/
|
202 |
-
public function withIdType
|
203 |
{
|
204 |
$this->setIdType($value);
|
205 |
return $this;
|
206 |
}
|
207 |
-
|
208 |
/**
|
209 |
* Checks if IdType is set
|
210 |
-
*
|
211 |
* @return bool true if IdType is set
|
212 |
*/
|
213 |
-
public function isSetIdType
|
214 |
{
|
215 |
-
return !
|
216 |
}
|
217 |
-
|
218 |
/**
|
219 |
* Gets the value of the InheritShippingAddress property.
|
220 |
-
*
|
221 |
* @return bool InheritShippingAddress
|
222 |
*/
|
223 |
-
public function getInheritShippingAddress
|
224 |
{
|
225 |
return $this->_fields['InheritShippingAddress']['FieldValue'];
|
226 |
}
|
227 |
-
|
228 |
/**
|
229 |
* Sets the value of the InheritShippingAddress property.
|
230 |
-
*
|
231 |
* @param bool InheritShippingAddress
|
232 |
* @return this instance
|
233 |
*/
|
234 |
-
public function setInheritShippingAddress
|
235 |
{
|
236 |
$this->_fields['InheritShippingAddress']['FieldValue'] = $value;
|
237 |
return $this;
|
238 |
}
|
239 |
-
|
240 |
/**
|
241 |
* Sets the value of the InheritShippingAddress and returns this instance
|
242 |
-
*
|
243 |
* @param bool $value InheritShippingAddress
|
244 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
245 |
*/
|
246 |
-
public function withInheritShippingAddress
|
247 |
{
|
248 |
$this->setInheritShippingAddress($value);
|
249 |
return $this;
|
250 |
}
|
251 |
-
|
252 |
/**
|
253 |
* Checks if InheritShippingAddress is set
|
254 |
-
*
|
255 |
* @return bool true if InheritShippingAddress is set
|
256 |
*/
|
257 |
-
public function isSetInheritShippingAddress
|
258 |
{
|
259 |
-
return !
|
260 |
}
|
261 |
-
|
262 |
/**
|
263 |
* Gets the value of the ConfirmNow property.
|
264 |
-
*
|
265 |
* @return bool ConfirmNow
|
266 |
*/
|
267 |
-
public function getConfirmNow
|
268 |
{
|
269 |
return $this->_fields['ConfirmNow']['FieldValue'];
|
270 |
}
|
271 |
-
|
272 |
/**
|
273 |
* Sets the value of the ConfirmNow property.
|
274 |
-
*
|
275 |
* @param bool ConfirmNow
|
276 |
* @return this instance
|
277 |
*/
|
278 |
-
public function setConfirmNow
|
279 |
{
|
280 |
$this->_fields['ConfirmNow']['FieldValue'] = $value;
|
281 |
return $this;
|
282 |
}
|
283 |
-
|
284 |
/**
|
285 |
* Sets the value of the ConfirmNow and returns this instance
|
286 |
-
*
|
287 |
* @param bool $value ConfirmNow
|
288 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
289 |
*/
|
290 |
-
public function withConfirmNow
|
291 |
{
|
292 |
$this->setConfirmNow($value);
|
293 |
return $this;
|
294 |
}
|
295 |
-
|
296 |
/**
|
297 |
* Checks if ConfirmNow is set
|
298 |
-
*
|
299 |
* @return bool true if ConfirmNow is set
|
300 |
*/
|
301 |
-
public function isSetConfirmNow
|
302 |
{
|
303 |
-
return !
|
304 |
}
|
305 |
-
|
306 |
/**
|
307 |
* Gets the value of the OrderReferenceAttributes.
|
308 |
-
*
|
309 |
* @return OrderReferenceAttributes OrderReferenceAttributes
|
310 |
*/
|
311 |
-
public function getOrderReferenceAttributes
|
312 |
{
|
313 |
return $this->_fields['OrderReferenceAttributes']['FieldValue'];
|
314 |
}
|
315 |
-
|
316 |
/**
|
317 |
* Sets the value of the OrderReferenceAttributes.
|
318 |
-
*
|
319 |
* @param OrderReferenceAttributes OrderReferenceAttributes
|
320 |
* @return void
|
321 |
*/
|
322 |
-
public function setOrderReferenceAttributes
|
323 |
{
|
324 |
$this->_fields['OrderReferenceAttributes']['FieldValue'] = $value;
|
325 |
return;
|
326 |
}
|
327 |
-
|
328 |
/**
|
329 |
* Sets the value of the OrderReferenceAttributes and returns this instance
|
330 |
-
*
|
331 |
* @param OrderReferenceAttributes $value OrderReferenceAttributes
|
332 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
333 |
*/
|
334 |
-
public function withOrderReferenceAttributes
|
335 |
{
|
336 |
$this->setOrderReferenceAttributes($value);
|
337 |
return $this;
|
338 |
}
|
339 |
-
|
340 |
/**
|
341 |
* Checks if OrderReferenceAttributes is set
|
342 |
-
*
|
343 |
* @return bool true if OrderReferenceAttributes property is set
|
344 |
*/
|
345 |
-
public function isSetOrderReferenceAttributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
{
|
347 |
-
return !
|
348 |
}
|
349 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>Id: string</li>
|
25 |
* <li>SellerId: string</li>
|
26 |
* <li>IdType: string</li>
|
32 |
*/
|
33 |
class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest extends OffAmazonPaymentsService_Model
|
34 |
{
|
35 |
+
|
36 |
/**
|
37 |
* Construct new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest
|
38 |
+
*
|
39 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
40 |
+
*
|
41 |
* Valid properties:
|
42 |
* <ul>
|
43 |
+
*
|
44 |
* <li>Id: string</li>
|
45 |
* <li>SellerId: string</li>
|
46 |
* <li>IdType: string</li>
|
50 |
*
|
51 |
* </ul>
|
52 |
*/
|
53 |
+
public function __construct($data = null)
|
54 |
{
|
55 |
$this->_fields = array(
|
56 |
'Id' => array(
|
77 |
'OrderReferenceAttributes' => array(
|
78 |
'FieldValue' => null,
|
79 |
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceAttributes'
|
80 |
+
),
|
81 |
+
|
82 |
+
'MWSAuthToken' => array(
|
83 |
+
'FieldValue' => null,
|
84 |
+
'FieldType' => 'string'
|
85 |
)
|
86 |
+
);
|
|
|
87 |
parent::__construct($data);
|
88 |
}
|
89 |
+
|
90 |
/**
|
91 |
* Gets the value of the Id property.
|
92 |
+
*
|
93 |
* @return string Id
|
94 |
*/
|
95 |
+
public function getId()
|
96 |
{
|
97 |
return $this->_fields['Id']['FieldValue'];
|
98 |
}
|
99 |
+
|
100 |
/**
|
101 |
* Sets the value of the Id property.
|
102 |
+
*
|
103 |
* @param string Id
|
104 |
* @return this instance
|
105 |
*/
|
106 |
+
public function setId($value)
|
107 |
{
|
108 |
$this->_fields['Id']['FieldValue'] = $value;
|
109 |
return $this;
|
110 |
}
|
111 |
+
|
112 |
/**
|
113 |
* Sets the value of the Id and returns this instance
|
114 |
+
*
|
115 |
* @param string $value Id
|
116 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
117 |
*/
|
118 |
+
public function withId($value)
|
119 |
{
|
120 |
$this->setId($value);
|
121 |
return $this;
|
122 |
}
|
123 |
+
|
124 |
/**
|
125 |
* Checks if Id is set
|
126 |
+
*
|
127 |
* @return bool true if Id is set
|
128 |
*/
|
129 |
+
public function isSetId()
|
130 |
{
|
131 |
+
return !is_null($this->_fields['Id']['FieldValue']);
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Gets the value of the SellerId property.
|
136 |
+
*
|
137 |
* @return string SellerId
|
138 |
*/
|
139 |
+
public function getSellerId()
|
140 |
{
|
141 |
return $this->_fields['SellerId']['FieldValue'];
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Sets the value of the SellerId property.
|
146 |
+
*
|
147 |
* @param string SellerId
|
148 |
* @return this instance
|
149 |
*/
|
150 |
+
public function setSellerId($value)
|
151 |
{
|
152 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
153 |
return $this;
|
154 |
}
|
155 |
+
|
156 |
/**
|
157 |
* Sets the value of the SellerId and returns this instance
|
158 |
+
*
|
159 |
* @param string $value SellerId
|
160 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
161 |
*/
|
162 |
+
public function withSellerId($value)
|
163 |
{
|
164 |
$this->setSellerId($value);
|
165 |
return $this;
|
166 |
}
|
167 |
+
|
168 |
/**
|
169 |
* Checks if SellerId is set
|
170 |
+
*
|
171 |
* @return bool true if SellerId is set
|
172 |
*/
|
173 |
+
public function isSetSellerId()
|
174 |
{
|
175 |
+
return !is_null($this->_fields['SellerId']['FieldValue']);
|
176 |
}
|
177 |
+
|
178 |
/**
|
179 |
* Gets the value of the IdType property.
|
180 |
+
*
|
181 |
* @return string IdType
|
182 |
*/
|
183 |
+
public function getIdType()
|
184 |
{
|
185 |
return $this->_fields['IdType']['FieldValue'];
|
186 |
}
|
187 |
+
|
188 |
/**
|
189 |
* Sets the value of the IdType property.
|
190 |
+
*
|
191 |
* @param string IdType
|
192 |
* @return this instance
|
193 |
*/
|
194 |
+
public function setIdType($value)
|
195 |
{
|
196 |
$this->_fields['IdType']['FieldValue'] = $value;
|
197 |
return $this;
|
198 |
}
|
199 |
+
|
200 |
/**
|
201 |
* Sets the value of the IdType and returns this instance
|
202 |
+
*
|
203 |
* @param string $value IdType
|
204 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
205 |
*/
|
206 |
+
public function withIdType($value)
|
207 |
{
|
208 |
$this->setIdType($value);
|
209 |
return $this;
|
210 |
}
|
211 |
+
|
212 |
/**
|
213 |
* Checks if IdType is set
|
214 |
+
*
|
215 |
* @return bool true if IdType is set
|
216 |
*/
|
217 |
+
public function isSetIdType()
|
218 |
{
|
219 |
+
return !is_null($this->_fields['IdType']['FieldValue']);
|
220 |
}
|
221 |
+
|
222 |
/**
|
223 |
* Gets the value of the InheritShippingAddress property.
|
224 |
+
*
|
225 |
* @return bool InheritShippingAddress
|
226 |
*/
|
227 |
+
public function getInheritShippingAddress()
|
228 |
{
|
229 |
return $this->_fields['InheritShippingAddress']['FieldValue'];
|
230 |
}
|
231 |
+
|
232 |
/**
|
233 |
* Sets the value of the InheritShippingAddress property.
|
234 |
+
*
|
235 |
* @param bool InheritShippingAddress
|
236 |
* @return this instance
|
237 |
*/
|
238 |
+
public function setInheritShippingAddress($value)
|
239 |
{
|
240 |
$this->_fields['InheritShippingAddress']['FieldValue'] = $value;
|
241 |
return $this;
|
242 |
}
|
243 |
+
|
244 |
/**
|
245 |
* Sets the value of the InheritShippingAddress and returns this instance
|
246 |
+
*
|
247 |
* @param bool $value InheritShippingAddress
|
248 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
249 |
*/
|
250 |
+
public function withInheritShippingAddress($value)
|
251 |
{
|
252 |
$this->setInheritShippingAddress($value);
|
253 |
return $this;
|
254 |
}
|
255 |
+
|
256 |
/**
|
257 |
* Checks if InheritShippingAddress is set
|
258 |
+
*
|
259 |
* @return bool true if InheritShippingAddress is set
|
260 |
*/
|
261 |
+
public function isSetInheritShippingAddress()
|
262 |
{
|
263 |
+
return !is_null($this->_fields['InheritShippingAddress']['FieldValue']);
|
264 |
}
|
265 |
+
|
266 |
/**
|
267 |
* Gets the value of the ConfirmNow property.
|
268 |
+
*
|
269 |
* @return bool ConfirmNow
|
270 |
*/
|
271 |
+
public function getConfirmNow()
|
272 |
{
|
273 |
return $this->_fields['ConfirmNow']['FieldValue'];
|
274 |
}
|
275 |
+
|
276 |
/**
|
277 |
* Sets the value of the ConfirmNow property.
|
278 |
+
*
|
279 |
* @param bool ConfirmNow
|
280 |
* @return this instance
|
281 |
*/
|
282 |
+
public function setConfirmNow($value)
|
283 |
{
|
284 |
$this->_fields['ConfirmNow']['FieldValue'] = $value;
|
285 |
return $this;
|
286 |
}
|
287 |
+
|
288 |
/**
|
289 |
* Sets the value of the ConfirmNow and returns this instance
|
290 |
+
*
|
291 |
* @param bool $value ConfirmNow
|
292 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
293 |
*/
|
294 |
+
public function withConfirmNow($value)
|
295 |
{
|
296 |
$this->setConfirmNow($value);
|
297 |
return $this;
|
298 |
}
|
299 |
+
|
300 |
/**
|
301 |
* Checks if ConfirmNow is set
|
302 |
+
*
|
303 |
* @return bool true if ConfirmNow is set
|
304 |
*/
|
305 |
+
public function isSetConfirmNow()
|
306 |
{
|
307 |
+
return !is_null($this->_fields['ConfirmNow']['FieldValue']);
|
308 |
}
|
309 |
+
|
310 |
/**
|
311 |
* Gets the value of the OrderReferenceAttributes.
|
312 |
+
*
|
313 |
* @return OrderReferenceAttributes OrderReferenceAttributes
|
314 |
*/
|
315 |
+
public function getOrderReferenceAttributes()
|
316 |
{
|
317 |
return $this->_fields['OrderReferenceAttributes']['FieldValue'];
|
318 |
}
|
319 |
+
|
320 |
/**
|
321 |
* Sets the value of the OrderReferenceAttributes.
|
322 |
+
*
|
323 |
* @param OrderReferenceAttributes OrderReferenceAttributes
|
324 |
* @return void
|
325 |
*/
|
326 |
+
public function setOrderReferenceAttributes($value)
|
327 |
{
|
328 |
$this->_fields['OrderReferenceAttributes']['FieldValue'] = $value;
|
329 |
return;
|
330 |
}
|
331 |
+
|
332 |
/**
|
333 |
* Sets the value of the OrderReferenceAttributes and returns this instance
|
334 |
+
*
|
335 |
* @param OrderReferenceAttributes $value OrderReferenceAttributes
|
336 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest instance
|
337 |
*/
|
338 |
+
public function withOrderReferenceAttributes($value)
|
339 |
{
|
340 |
$this->setOrderReferenceAttributes($value);
|
341 |
return $this;
|
342 |
}
|
343 |
+
|
344 |
/**
|
345 |
* Checks if OrderReferenceAttributes is set
|
346 |
+
*
|
347 |
* @return bool true if OrderReferenceAttributes property is set
|
348 |
*/
|
349 |
+
public function isSetOrderReferenceAttributes()
|
350 |
+
{
|
351 |
+
return !is_null($this->_fields['OrderReferenceAttributes']['FieldValue']);
|
352 |
+
}
|
353 |
+
|
354 |
+
/**
|
355 |
+
* Gets the value of the MWSAuthToken property.
|
356 |
+
*
|
357 |
+
* @return string MWSAuthToken
|
358 |
+
*/
|
359 |
+
public function getMWSAuthToken()
|
360 |
+
{
|
361 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
362 |
+
}
|
363 |
+
|
364 |
+
/**
|
365 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
366 |
+
*
|
367 |
+
* @param string $value MWSAuthToken
|
368 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
369 |
+
*/
|
370 |
+
public function setMWSAuthToken($value)
|
371 |
+
{
|
372 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
373 |
+
return $this;
|
374 |
+
}
|
375 |
+
|
376 |
+
|
377 |
+
/**
|
378 |
+
* Checks if MWSAuthToken is set
|
379 |
+
*
|
380 |
+
* @return bool true if MWSAuthToken is set
|
381 |
+
*/
|
382 |
+
public function isSetMWSAuthToken()
|
383 |
{
|
384 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
385 |
}
|
386 |
+
}
|
lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResponse.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>CreateOrderReferenceForIdResult: OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
@@ -31,12 +31,12 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse
|
34 |
-
*
|
35 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
-
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
-
*
|
40 |
* <li>CreateOrderReferenceForIdResult: OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
@@ -45,33 +45,32 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
-
|
49 |
'CreateOrderReferenceForIdResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult'
|
52 |
),
|
53 |
-
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
-
)
|
59 |
-
;
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
|
63 |
/**
|
64 |
* Construct OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse from XML string
|
65 |
-
*
|
66 |
* @param string $xml XML string to construct from
|
67 |
-
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse
|
68 |
*/
|
69 |
public static function fromXML ($xml)
|
70 |
{
|
71 |
$dom = new DOMDocument();
|
72 |
$dom->loadXML($xml);
|
73 |
$xpath = new DOMXPath($dom);
|
74 |
-
$xpath->registerNamespace('a',
|
75 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
76 |
$response = $xpath->query('//a:CreateOrderReferenceForIdResponse');
|
77 |
if ($response->length == 1) {
|
@@ -79,15 +78,15 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
79 |
($response->item(0)));
|
80 |
} else {
|
81 |
throw new Exception(
|
82 |
-
"Unable to construct OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse from provided XML.
|
83 |
Make sure that CreateOrderReferenceForIdResponse is a root element");
|
84 |
}
|
85 |
}
|
86 |
|
87 |
/**
|
88 |
* Gets the value of the CreateOrderReferenceForIdResult.
|
89 |
-
*
|
90 |
-
* @return
|
91 |
*/
|
92 |
public function getCreateOrderReferenceForIdResult ()
|
93 |
{
|
@@ -96,8 +95,8 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
96 |
|
97 |
/**
|
98 |
* Sets the value of the CreateOrderReferenceForIdResult.
|
99 |
-
*
|
100 |
-
* @param
|
101 |
* @return void
|
102 |
*/
|
103 |
public function setCreateOrderReferenceForIdResult ($value)
|
@@ -108,8 +107,8 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
108 |
|
109 |
/**
|
110 |
* Sets the value of the CreateOrderReferenceForIdResult and returns this instance
|
111 |
-
*
|
112 |
-
* @param
|
113 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse instance
|
114 |
*/
|
115 |
public function withCreateOrderReferenceForIdResult ($value)
|
@@ -120,7 +119,7 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
120 |
|
121 |
/**
|
122 |
* Checks if CreateOrderReferenceForIdResult is set
|
123 |
-
*
|
124 |
* @return bool true if CreateOrderReferenceForIdResult property is set
|
125 |
*/
|
126 |
public function isSetCreateOrderReferenceForIdResult ()
|
@@ -130,8 +129,8 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
130 |
|
131 |
/**
|
132 |
* Gets the value of the ResponseMetadata.
|
133 |
-
*
|
134 |
-
* @return
|
135 |
*/
|
136 |
public function getResponseMetadata ()
|
137 |
{
|
@@ -140,8 +139,8 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
140 |
|
141 |
/**
|
142 |
* Sets the value of the ResponseMetadata.
|
143 |
-
*
|
144 |
-
* @param
|
145 |
* @return void
|
146 |
*/
|
147 |
public function setResponseMetadata ($value)
|
@@ -152,8 +151,8 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
152 |
|
153 |
/**
|
154 |
* Sets the value of the ResponseMetadata and returns this instance
|
155 |
-
*
|
156 |
-
* @param
|
157 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse instance
|
158 |
*/
|
159 |
public function withResponseMetadata ($value)
|
@@ -164,7 +163,7 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
164 |
|
165 |
/**
|
166 |
* Checks if ResponseMetadata is set
|
167 |
-
*
|
168 |
* @return bool true if ResponseMetadata property is set
|
169 |
*/
|
170 |
public function isSetResponseMetadata ()
|
@@ -174,7 +173,7 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
174 |
|
175 |
/**
|
176 |
* XML Representation for this object
|
177 |
-
*
|
178 |
* @return string XML for this object
|
179 |
*/
|
180 |
public function toXML ()
|
@@ -197,4 +196,4 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse extends O
|
|
197 |
{
|
198 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
199 |
}
|
200 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>CreateOrderReferenceForIdResult: OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse
|
34 |
+
*
|
35 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
+
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
+
*
|
40 |
* <li>CreateOrderReferenceForIdResult: OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
+
|
49 |
'CreateOrderReferenceForIdResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult'
|
52 |
),
|
53 |
+
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
+
);
|
|
|
59 |
parent::__construct($data);
|
60 |
}
|
61 |
|
62 |
/**
|
63 |
* Construct OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse from XML string
|
64 |
+
*
|
65 |
* @param string $xml XML string to construct from
|
66 |
+
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse
|
67 |
*/
|
68 |
public static function fromXML ($xml)
|
69 |
{
|
70 |
$dom = new DOMDocument();
|
71 |
$dom->loadXML($xml);
|
72 |
$xpath = new DOMXPath($dom);
|
73 |
+
$xpath->registerNamespace('a',
|
74 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
75 |
$response = $xpath->query('//a:CreateOrderReferenceForIdResponse');
|
76 |
if ($response->length == 1) {
|
78 |
($response->item(0)));
|
79 |
} else {
|
80 |
throw new Exception(
|
81 |
+
"Unable to construct OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse from provided XML.
|
82 |
Make sure that CreateOrderReferenceForIdResponse is a root element");
|
83 |
}
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
* Gets the value of the CreateOrderReferenceForIdResult.
|
88 |
+
*
|
89 |
+
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult CreateOrderReferenceForIdResult
|
90 |
*/
|
91 |
public function getCreateOrderReferenceForIdResult ()
|
92 |
{
|
95 |
|
96 |
/**
|
97 |
* Sets the value of the CreateOrderReferenceForIdResult.
|
98 |
+
*
|
99 |
+
* @param OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult CreateOrderReferenceForIdResult
|
100 |
* @return void
|
101 |
*/
|
102 |
public function setCreateOrderReferenceForIdResult ($value)
|
107 |
|
108 |
/**
|
109 |
* Sets the value of the CreateOrderReferenceForIdResult and returns this instance
|
110 |
+
*
|
111 |
+
* @param OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult $value CreateOrderReferenceForIdResult
|
112 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse instance
|
113 |
*/
|
114 |
public function withCreateOrderReferenceForIdResult ($value)
|
119 |
|
120 |
/**
|
121 |
* Checks if CreateOrderReferenceForIdResult is set
|
122 |
+
*
|
123 |
* @return bool true if CreateOrderReferenceForIdResult property is set
|
124 |
*/
|
125 |
public function isSetCreateOrderReferenceForIdResult ()
|
129 |
|
130 |
/**
|
131 |
* Gets the value of the ResponseMetadata.
|
132 |
+
*
|
133 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
134 |
*/
|
135 |
public function getResponseMetadata ()
|
136 |
{
|
139 |
|
140 |
/**
|
141 |
* Sets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
* @return void
|
145 |
*/
|
146 |
public function setResponseMetadata ($value)
|
151 |
|
152 |
/**
|
153 |
* Sets the value of the ResponseMetadata and returns this instance
|
154 |
+
*
|
155 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
156 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResponse instance
|
157 |
*/
|
158 |
public function withResponseMetadata ($value)
|
163 |
|
164 |
/**
|
165 |
* Checks if ResponseMetadata is set
|
166 |
+
*
|
167 |
* @return bool true if ResponseMetadata property is set
|
168 |
*/
|
169 |
public function isSetResponseMetadata ()
|
173 |
|
174 |
/**
|
175 |
* XML Representation for this object
|
176 |
+
*
|
177 |
* @return string XML for this object
|
178 |
*/
|
179 |
public function toXML ()
|
196 |
{
|
197 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
198 |
}
|
199 |
+
}
|
lib/OffAmazonPaymentsService/Model/CreateOrderReferenceForIdResult.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
25 |
*
|
26 |
* </ul>
|
@@ -30,12 +30,12 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult extends Off
|
|
30 |
|
31 |
/**
|
32 |
* Construct new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult
|
33 |
-
*
|
34 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
35 |
-
*
|
36 |
* Valid properties:
|
37 |
* <ul>
|
38 |
-
*
|
39 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
40 |
*
|
41 |
* </ul>
|
@@ -43,20 +43,19 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult extends Off
|
|
43 |
public function __construct ($data = null)
|
44 |
{
|
45 |
$this->_fields = array(
|
46 |
-
|
47 |
'OrderReferenceDetails' => array(
|
48 |
'FieldValue' => null,
|
49 |
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceDetails'
|
50 |
)
|
51 |
-
)
|
52 |
-
;
|
53 |
parent::__construct($data);
|
54 |
}
|
55 |
|
56 |
/**
|
57 |
* Gets the value of the OrderReferenceDetails.
|
58 |
-
*
|
59 |
-
* @return
|
60 |
*/
|
61 |
public function getOrderReferenceDetails ()
|
62 |
{
|
@@ -65,8 +64,8 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult extends Off
|
|
65 |
|
66 |
/**
|
67 |
* Sets the value of the OrderReferenceDetails.
|
68 |
-
*
|
69 |
-
* @param
|
70 |
* @return void
|
71 |
*/
|
72 |
public function setOrderReferenceDetails ($value)
|
@@ -77,8 +76,8 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult extends Off
|
|
77 |
|
78 |
/**
|
79 |
* Sets the value of the OrderReferenceDetails and returns this instance
|
80 |
-
*
|
81 |
-
* @param
|
82 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult instance
|
83 |
*/
|
84 |
public function withOrderReferenceDetails ($value)
|
@@ -89,11 +88,11 @@ class OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult extends Off
|
|
89 |
|
90 |
/**
|
91 |
* Checks if OrderReferenceDetails is set
|
92 |
-
*
|
93 |
* @return bool true if OrderReferenceDetails property is set
|
94 |
*/
|
95 |
public function isSetOrderReferenceDetails ()
|
96 |
{
|
97 |
return ! is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
|
98 |
}
|
99 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
25 |
*
|
26 |
* </ul>
|
30 |
|
31 |
/**
|
32 |
* Construct new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult
|
33 |
+
*
|
34 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
35 |
+
*
|
36 |
* Valid properties:
|
37 |
* <ul>
|
38 |
+
*
|
39 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
40 |
*
|
41 |
* </ul>
|
43 |
public function __construct ($data = null)
|
44 |
{
|
45 |
$this->_fields = array(
|
46 |
+
|
47 |
'OrderReferenceDetails' => array(
|
48 |
'FieldValue' => null,
|
49 |
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceDetails'
|
50 |
)
|
51 |
+
);
|
|
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
|
55 |
/**
|
56 |
* Gets the value of the OrderReferenceDetails.
|
57 |
+
*
|
58 |
+
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails OrderReferenceDetails
|
59 |
*/
|
60 |
public function getOrderReferenceDetails ()
|
61 |
{
|
64 |
|
65 |
/**
|
66 |
* Sets the value of the OrderReferenceDetails.
|
67 |
+
*
|
68 |
+
* @param OffAmazonPaymentsService_Model_OrderReferenceDetails OrderReferenceDetails
|
69 |
* @return void
|
70 |
*/
|
71 |
public function setOrderReferenceDetails ($value)
|
76 |
|
77 |
/**
|
78 |
* Sets the value of the OrderReferenceDetails and returns this instance
|
79 |
+
*
|
80 |
+
* @param OffAmazonPaymentsService_Model_OrderReferenceDetails $value OrderReferenceDetails
|
81 |
* @return OffAmazonPaymentsService_Model_CreateOrderReferenceForIdResult instance
|
82 |
*/
|
83 |
public function withOrderReferenceDetails ($value)
|
88 |
|
89 |
/**
|
90 |
* Checks if OrderReferenceDetails is set
|
91 |
+
*
|
92 |
* @return bool true if OrderReferenceDetails property is set
|
93 |
*/
|
94 |
public function isSetOrderReferenceDetails ()
|
95 |
{
|
96 |
return ! is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
|
97 |
}
|
98 |
+
}
|
lib/OffAmazonPaymentsService/Model/Destination.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Destination
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>DestinationType: string</li>
|
32 |
* <li>PhysicalDestination: OffAmazonPaymentsService_Model_Address</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_Destination extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_Destination
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>DestinationType: string</li>
|
48 |
* <li>PhysicalDestination: OffAmazonPaymentsService_Model_Address</li>
|
49 |
*
|
@@ -51,40 +51,46 @@ class OffAmazonPaymentsService_Model_Destination extends OffAmazonPaymentsServic
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
-
|
63 |
-
|
64 |
* Gets the value of the DestinationType property.
|
65 |
-
*
|
66 |
* @return string DestinationType
|
67 |
*/
|
68 |
-
public function getDestinationType()
|
69 |
{
|
70 |
return $this->_fields['DestinationType']['FieldValue'];
|
71 |
}
|
72 |
-
|
73 |
/**
|
74 |
* Sets the value of the DestinationType property.
|
75 |
-
*
|
76 |
* @param string DestinationType
|
77 |
* @return this instance
|
78 |
*/
|
79 |
-
public function setDestinationType($value)
|
80 |
{
|
81 |
$this->_fields['DestinationType']['FieldValue'] = $value;
|
82 |
return $this;
|
83 |
}
|
84 |
-
|
85 |
/**
|
86 |
* Sets the value of the DestinationType and returns this instance
|
87 |
-
*
|
88 |
* @param string $value DestinationType
|
89 |
* @return OffAmazonPaymentsService_Model_Destination instance
|
90 |
*/
|
@@ -93,43 +99,43 @@ class OffAmazonPaymentsService_Model_Destination extends OffAmazonPaymentsServic
|
|
93 |
$this->setDestinationType($value);
|
94 |
return $this;
|
95 |
}
|
96 |
-
|
97 |
-
|
98 |
/**
|
99 |
* Checks if DestinationType is set
|
100 |
-
*
|
101 |
* @return bool true if DestinationType is set
|
102 |
*/
|
103 |
public function isSetDestinationType()
|
104 |
{
|
105 |
return !is_null($this->_fields['DestinationType']['FieldValue']);
|
106 |
}
|
107 |
-
|
108 |
/**
|
109 |
* Gets the value of the PhysicalDestination.
|
110 |
-
*
|
111 |
* @return Address PhysicalDestination
|
112 |
*/
|
113 |
-
public function getPhysicalDestination()
|
114 |
{
|
115 |
return $this->_fields['PhysicalDestination']['FieldValue'];
|
116 |
}
|
117 |
-
|
118 |
/**
|
119 |
* Sets the value of the PhysicalDestination.
|
120 |
-
*
|
121 |
* @param Address PhysicalDestination
|
122 |
* @return void
|
123 |
*/
|
124 |
-
public function setPhysicalDestination($value)
|
125 |
{
|
126 |
$this->_fields['PhysicalDestination']['FieldValue'] = $value;
|
127 |
return;
|
128 |
}
|
129 |
-
|
130 |
/**
|
131 |
* Sets the value of the PhysicalDestination and returns this instance
|
132 |
-
*
|
133 |
* @param Address $value PhysicalDestination
|
134 |
* @return OffAmazonPaymentsService_Model_Destination instance
|
135 |
*/
|
@@ -138,16 +144,16 @@ class OffAmazonPaymentsService_Model_Destination extends OffAmazonPaymentsServic
|
|
138 |
$this->setPhysicalDestination($value);
|
139 |
return $this;
|
140 |
}
|
141 |
-
|
142 |
-
|
143 |
/**
|
144 |
* Checks if PhysicalDestination is set
|
145 |
-
*
|
146 |
* @return bool true if PhysicalDestination property is set
|
147 |
*/
|
148 |
public function isSetPhysicalDestination()
|
149 |
{
|
150 |
return !is_null($this->_fields['PhysicalDestination']['FieldValue']);
|
151 |
-
|
152 |
}
|
153 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Destination
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>DestinationType: string</li>
|
32 |
* <li>PhysicalDestination: OffAmazonPaymentsService_Model_Address</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_Destination extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_Destination
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>DestinationType: string</li>
|
48 |
* <li>PhysicalDestination: OffAmazonPaymentsService_Model_Address</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'DestinationType' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
|
60 |
+
'PhysicalDestination' => array(
|
61 |
+
'FieldValue' => null,
|
62 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Address'
|
63 |
+
)
|
64 |
+
|
65 |
);
|
66 |
parent::__construct($data);
|
67 |
}
|
68 |
+
|
69 |
+
/**
|
70 |
* Gets the value of the DestinationType property.
|
71 |
+
*
|
72 |
* @return string DestinationType
|
73 |
*/
|
74 |
+
public function getDestinationType()
|
75 |
{
|
76 |
return $this->_fields['DestinationType']['FieldValue'];
|
77 |
}
|
78 |
+
|
79 |
/**
|
80 |
* Sets the value of the DestinationType property.
|
81 |
+
*
|
82 |
* @param string DestinationType
|
83 |
* @return this instance
|
84 |
*/
|
85 |
+
public function setDestinationType($value)
|
86 |
{
|
87 |
$this->_fields['DestinationType']['FieldValue'] = $value;
|
88 |
return $this;
|
89 |
}
|
90 |
+
|
91 |
/**
|
92 |
* Sets the value of the DestinationType and returns this instance
|
93 |
+
*
|
94 |
* @param string $value DestinationType
|
95 |
* @return OffAmazonPaymentsService_Model_Destination instance
|
96 |
*/
|
99 |
$this->setDestinationType($value);
|
100 |
return $this;
|
101 |
}
|
102 |
+
|
103 |
+
|
104 |
/**
|
105 |
* Checks if DestinationType is set
|
106 |
+
*
|
107 |
* @return bool true if DestinationType is set
|
108 |
*/
|
109 |
public function isSetDestinationType()
|
110 |
{
|
111 |
return !is_null($this->_fields['DestinationType']['FieldValue']);
|
112 |
}
|
113 |
+
|
114 |
/**
|
115 |
* Gets the value of the PhysicalDestination.
|
116 |
+
*
|
117 |
* @return Address PhysicalDestination
|
118 |
*/
|
119 |
+
public function getPhysicalDestination()
|
120 |
{
|
121 |
return $this->_fields['PhysicalDestination']['FieldValue'];
|
122 |
}
|
123 |
+
|
124 |
/**
|
125 |
* Sets the value of the PhysicalDestination.
|
126 |
+
*
|
127 |
* @param Address PhysicalDestination
|
128 |
* @return void
|
129 |
*/
|
130 |
+
public function setPhysicalDestination($value)
|
131 |
{
|
132 |
$this->_fields['PhysicalDestination']['FieldValue'] = $value;
|
133 |
return;
|
134 |
}
|
135 |
+
|
136 |
/**
|
137 |
* Sets the value of the PhysicalDestination and returns this instance
|
138 |
+
*
|
139 |
* @param Address $value PhysicalDestination
|
140 |
* @return OffAmazonPaymentsService_Model_Destination instance
|
141 |
*/
|
144 |
$this->setPhysicalDestination($value);
|
145 |
return $this;
|
146 |
}
|
147 |
+
|
148 |
+
|
149 |
/**
|
150 |
* Checks if PhysicalDestination is set
|
151 |
+
*
|
152 |
* @return bool true if PhysicalDestination property is set
|
153 |
*/
|
154 |
public function isSetPhysicalDestination()
|
155 |
{
|
156 |
return !is_null($this->_fields['PhysicalDestination']['FieldValue']);
|
157 |
+
|
158 |
}
|
159 |
+
}
|
lib/OffAmazonPaymentsService/Model/Error.php
CHANGED
@@ -20,32 +20,32 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Error
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>Type: string</li>
|
32 |
* <li>Code: string</li>
|
33 |
* <li>Message: string</li>
|
34 |
* <li>Detail: OffAmazonPaymentsService_Model_Object</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
-
*/
|
38 |
class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
-
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_Error
|
43 |
-
*
|
44 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
-
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
-
*
|
49 |
* <li>Type: string</li>
|
50 |
* <li>Code: string</li>
|
51 |
* <li>Message: string</li>
|
@@ -55,41 +55,53 @@ class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Mode
|
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
-
$this->_fields = array
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
);
|
65 |
parent::__construct($data);
|
66 |
}
|
67 |
-
|
68 |
-
|
69 |
* Gets the value of the Type property.
|
70 |
-
*
|
71 |
* @return string Type
|
72 |
*/
|
73 |
-
public function getType()
|
74 |
{
|
75 |
return $this->_fields['Type']['FieldValue'];
|
76 |
}
|
77 |
-
|
78 |
/**
|
79 |
* Sets the value of the Type property.
|
80 |
-
*
|
81 |
* @param string Type
|
82 |
* @return this instance
|
83 |
*/
|
84 |
-
public function setType($value)
|
85 |
{
|
86 |
$this->_fields['Type']['FieldValue'] = $value;
|
87 |
return $this;
|
88 |
}
|
89 |
-
|
90 |
/**
|
91 |
* Sets the value of the Type and returns this instance
|
92 |
-
*
|
93 |
* @param string $value Type
|
94 |
* @return OffAmazonPaymentsService_Model_Error instance
|
95 |
*/
|
@@ -98,43 +110,43 @@ class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Mode
|
|
98 |
$this->setType($value);
|
99 |
return $this;
|
100 |
}
|
101 |
-
|
102 |
-
|
103 |
/**
|
104 |
* Checks if Type is set
|
105 |
-
*
|
106 |
* @return bool true if Type is set
|
107 |
*/
|
108 |
public function isSetType()
|
109 |
{
|
110 |
return !is_null($this->_fields['Type']['FieldValue']);
|
111 |
}
|
112 |
-
|
113 |
/**
|
114 |
* Gets the value of the Code property.
|
115 |
-
*
|
116 |
* @return string Code
|
117 |
*/
|
118 |
-
public function getCode()
|
119 |
{
|
120 |
return $this->_fields['Code']['FieldValue'];
|
121 |
}
|
122 |
-
|
123 |
/**
|
124 |
* Sets the value of the Code property.
|
125 |
-
*
|
126 |
* @param string Code
|
127 |
* @return this instance
|
128 |
*/
|
129 |
-
public function setCode($value)
|
130 |
{
|
131 |
$this->_fields['Code']['FieldValue'] = $value;
|
132 |
return $this;
|
133 |
}
|
134 |
-
|
135 |
/**
|
136 |
* Sets the value of the Code and returns this instance
|
137 |
-
*
|
138 |
* @param string $value Code
|
139 |
* @return OffAmazonPaymentsService_Model_Error instance
|
140 |
*/
|
@@ -143,43 +155,43 @@ class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Mode
|
|
143 |
$this->setCode($value);
|
144 |
return $this;
|
145 |
}
|
146 |
-
|
147 |
-
|
148 |
/**
|
149 |
* Checks if Code is set
|
150 |
-
*
|
151 |
* @return bool true if Code is set
|
152 |
*/
|
153 |
public function isSetCode()
|
154 |
{
|
155 |
return !is_null($this->_fields['Code']['FieldValue']);
|
156 |
}
|
157 |
-
|
158 |
/**
|
159 |
* Gets the value of the Message property.
|
160 |
-
*
|
161 |
* @return string Message
|
162 |
*/
|
163 |
-
public function getMessage()
|
164 |
{
|
165 |
return $this->_fields['Message']['FieldValue'];
|
166 |
}
|
167 |
-
|
168 |
/**
|
169 |
* Sets the value of the Message property.
|
170 |
-
*
|
171 |
* @param string Message
|
172 |
* @return this instance
|
173 |
*/
|
174 |
-
public function setMessage($value)
|
175 |
{
|
176 |
$this->_fields['Message']['FieldValue'] = $value;
|
177 |
return $this;
|
178 |
}
|
179 |
-
|
180 |
/**
|
181 |
* Sets the value of the Message and returns this instance
|
182 |
-
*
|
183 |
* @param string $value Message
|
184 |
* @return OffAmazonPaymentsService_Model_Error instance
|
185 |
*/
|
@@ -188,43 +200,43 @@ class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Mode
|
|
188 |
$this->setMessage($value);
|
189 |
return $this;
|
190 |
}
|
191 |
-
|
192 |
-
|
193 |
/**
|
194 |
* Checks if Message is set
|
195 |
-
*
|
196 |
* @return bool true if Message is set
|
197 |
*/
|
198 |
public function isSetMessage()
|
199 |
{
|
200 |
return !is_null($this->_fields['Message']['FieldValue']);
|
201 |
}
|
202 |
-
|
203 |
/**
|
204 |
* Gets the value of the Detail.
|
205 |
-
*
|
206 |
* @return Error.Detail Detail
|
207 |
*/
|
208 |
-
public function getDetail()
|
209 |
{
|
210 |
return $this->_fields['Detail']['FieldValue'];
|
211 |
}
|
212 |
-
|
213 |
/**
|
214 |
* Sets the value of the Detail.
|
215 |
-
*
|
216 |
* @param Error.Detail Detail
|
217 |
* @return void
|
218 |
*/
|
219 |
-
public function setDetail($value)
|
220 |
{
|
221 |
$this->_fields['Detail']['FieldValue'] = $value;
|
222 |
return;
|
223 |
}
|
224 |
-
|
225 |
/**
|
226 |
* Sets the value of the Detail and returns this instance
|
227 |
-
*
|
228 |
* @param Object $value Detail
|
229 |
* @return OffAmazonPaymentsService_Model_Error instance
|
230 |
*/
|
@@ -233,16 +245,16 @@ class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Mode
|
|
233 |
$this->setDetail($value);
|
234 |
return $this;
|
235 |
}
|
236 |
-
|
237 |
-
|
238 |
/**
|
239 |
* Checks if Detail is set
|
240 |
-
*
|
241 |
* @return bool true if Detail property is set
|
242 |
*/
|
243 |
public function isSetDetail()
|
244 |
{
|
245 |
return !is_null($this->_fields['Detail']['FieldValue']);
|
246 |
-
|
247 |
}
|
248 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Error
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>Type: string</li>
|
32 |
* <li>Code: string</li>
|
33 |
* <li>Message: string</li>
|
34 |
* <li>Detail: OffAmazonPaymentsService_Model_Object</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
+
*/
|
38 |
class OffAmazonPaymentsService_Model_Error extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
+
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_Error
|
43 |
+
*
|
44 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
+
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
+
*
|
49 |
* <li>Type: string</li>
|
50 |
* <li>Code: string</li>
|
51 |
* <li>Message: string</li>
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
+
$this->_fields = array(
|
59 |
+
'Type' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'Code' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
),
|
67 |
+
'Message' => array(
|
68 |
+
'FieldValue' => null,
|
69 |
+
'FieldType' => 'string'
|
70 |
+
),
|
71 |
+
'Detail' => array(
|
72 |
+
'FieldValue' => null,
|
73 |
+
'FieldType' => 'string'
|
74 |
+
)
|
75 |
+
|
76 |
);
|
77 |
parent::__construct($data);
|
78 |
}
|
79 |
+
|
80 |
+
/**
|
81 |
* Gets the value of the Type property.
|
82 |
+
*
|
83 |
* @return string Type
|
84 |
*/
|
85 |
+
public function getType()
|
86 |
{
|
87 |
return $this->_fields['Type']['FieldValue'];
|
88 |
}
|
89 |
+
|
90 |
/**
|
91 |
* Sets the value of the Type property.
|
92 |
+
*
|
93 |
* @param string Type
|
94 |
* @return this instance
|
95 |
*/
|
96 |
+
public function setType($value)
|
97 |
{
|
98 |
$this->_fields['Type']['FieldValue'] = $value;
|
99 |
return $this;
|
100 |
}
|
101 |
+
|
102 |
/**
|
103 |
* Sets the value of the Type and returns this instance
|
104 |
+
*
|
105 |
* @param string $value Type
|
106 |
* @return OffAmazonPaymentsService_Model_Error instance
|
107 |
*/
|
110 |
$this->setType($value);
|
111 |
return $this;
|
112 |
}
|
113 |
+
|
114 |
+
|
115 |
/**
|
116 |
* Checks if Type is set
|
117 |
+
*
|
118 |
* @return bool true if Type is set
|
119 |
*/
|
120 |
public function isSetType()
|
121 |
{
|
122 |
return !is_null($this->_fields['Type']['FieldValue']);
|
123 |
}
|
124 |
+
|
125 |
/**
|
126 |
* Gets the value of the Code property.
|
127 |
+
*
|
128 |
* @return string Code
|
129 |
*/
|
130 |
+
public function getCode()
|
131 |
{
|
132 |
return $this->_fields['Code']['FieldValue'];
|
133 |
}
|
134 |
+
|
135 |
/**
|
136 |
* Sets the value of the Code property.
|
137 |
+
*
|
138 |
* @param string Code
|
139 |
* @return this instance
|
140 |
*/
|
141 |
+
public function setCode($value)
|
142 |
{
|
143 |
$this->_fields['Code']['FieldValue'] = $value;
|
144 |
return $this;
|
145 |
}
|
146 |
+
|
147 |
/**
|
148 |
* Sets the value of the Code and returns this instance
|
149 |
+
*
|
150 |
* @param string $value Code
|
151 |
* @return OffAmazonPaymentsService_Model_Error instance
|
152 |
*/
|
155 |
$this->setCode($value);
|
156 |
return $this;
|
157 |
}
|
158 |
+
|
159 |
+
|
160 |
/**
|
161 |
* Checks if Code is set
|
162 |
+
*
|
163 |
* @return bool true if Code is set
|
164 |
*/
|
165 |
public function isSetCode()
|
166 |
{
|
167 |
return !is_null($this->_fields['Code']['FieldValue']);
|
168 |
}
|
169 |
+
|
170 |
/**
|
171 |
* Gets the value of the Message property.
|
172 |
+
*
|
173 |
* @return string Message
|
174 |
*/
|
175 |
+
public function getMessage()
|
176 |
{
|
177 |
return $this->_fields['Message']['FieldValue'];
|
178 |
}
|
179 |
+
|
180 |
/**
|
181 |
* Sets the value of the Message property.
|
182 |
+
*
|
183 |
* @param string Message
|
184 |
* @return this instance
|
185 |
*/
|
186 |
+
public function setMessage($value)
|
187 |
{
|
188 |
$this->_fields['Message']['FieldValue'] = $value;
|
189 |
return $this;
|
190 |
}
|
191 |
+
|
192 |
/**
|
193 |
* Sets the value of the Message and returns this instance
|
194 |
+
*
|
195 |
* @param string $value Message
|
196 |
* @return OffAmazonPaymentsService_Model_Error instance
|
197 |
*/
|
200 |
$this->setMessage($value);
|
201 |
return $this;
|
202 |
}
|
203 |
+
|
204 |
+
|
205 |
/**
|
206 |
* Checks if Message is set
|
207 |
+
*
|
208 |
* @return bool true if Message is set
|
209 |
*/
|
210 |
public function isSetMessage()
|
211 |
{
|
212 |
return !is_null($this->_fields['Message']['FieldValue']);
|
213 |
}
|
214 |
+
|
215 |
/**
|
216 |
* Gets the value of the Detail.
|
217 |
+
*
|
218 |
* @return Error.Detail Detail
|
219 |
*/
|
220 |
+
public function getDetail()
|
221 |
{
|
222 |
return $this->_fields['Detail']['FieldValue'];
|
223 |
}
|
224 |
+
|
225 |
/**
|
226 |
* Sets the value of the Detail.
|
227 |
+
*
|
228 |
* @param Error.Detail Detail
|
229 |
* @return void
|
230 |
*/
|
231 |
+
public function setDetail($value)
|
232 |
{
|
233 |
$this->_fields['Detail']['FieldValue'] = $value;
|
234 |
return;
|
235 |
}
|
236 |
+
|
237 |
/**
|
238 |
* Sets the value of the Detail and returns this instance
|
239 |
+
*
|
240 |
* @param Object $value Detail
|
241 |
* @return OffAmazonPaymentsService_Model_Error instance
|
242 |
*/
|
245 |
$this->setDetail($value);
|
246 |
return $this;
|
247 |
}
|
248 |
+
|
249 |
+
|
250 |
/**
|
251 |
* Checks if Detail is set
|
252 |
+
*
|
253 |
* @return bool true if Detail property is set
|
254 |
*/
|
255 |
public function isSetDetail()
|
256 |
{
|
257 |
return !is_null($this->_fields['Detail']['FieldValue']);
|
258 |
+
|
259 |
}
|
260 |
+
}
|
lib/OffAmazonPaymentsService/Model/ErrorResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ErrorResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>Error: OffAmazonPaymentsService_Model_Error</li>
|
32 |
* <li>RequestId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_ErrorResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ErrorResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>Error: OffAmazonPaymentsService_Model_Error</li>
|
48 |
* <li>RequestId: string</li>
|
49 |
*
|
@@ -51,67 +51,77 @@ class OffAmazonPaymentsService_Model_ErrorResponse extends OffAmazonPaymentsServ
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
/**
|
63 |
* Construct OffAmazonPaymentsService_Model_ErrorResponse from XML string
|
64 |
-
*
|
65 |
* @param string $xml XML string to construct from
|
66 |
-
* @return OffAmazonPaymentsService_Model_ErrorResponse
|
67 |
*/
|
68 |
public static function fromXML($xml)
|
69 |
{
|
70 |
$dom = new DOMDocument();
|
71 |
$dom->loadXML($xml);
|
72 |
$xpath = new DOMXPath($dom);
|
73 |
-
|
74 |
$response = $xpath->query('//a:ErrorResponse');
|
75 |
if ($response->length == 1) {
|
76 |
-
return new OffAmazonPaymentsService_Model_ErrorResponse(($response->item(0)));
|
77 |
} else {
|
78 |
-
throw new Exception
|
79 |
Make sure that ErrorResponse is a root element");
|
80 |
}
|
81 |
-
|
82 |
}
|
83 |
|
84 |
/**
|
85 |
* Gets the value of the Error.
|
86 |
-
*
|
87 |
* @return array of Error Error
|
88 |
*/
|
89 |
-
public function getError()
|
90 |
{
|
91 |
return $this->_fields['Error']['FieldValue'];
|
92 |
}
|
93 |
-
|
94 |
/**
|
95 |
* Sets the value of the Error.
|
96 |
-
*
|
97 |
* @param mixed Error or an array of Error Error
|
98 |
* @return this instance
|
99 |
*/
|
100 |
-
public function setError($error)
|
101 |
{
|
102 |
if (!$this->_isNumericArray($error)) {
|
103 |
-
$error =
|
|
|
|
|
104 |
}
|
105 |
$this->_fields['Error']['FieldValue'] = $error;
|
106 |
return $this;
|
107 |
}
|
108 |
-
|
109 |
-
|
110 |
/**
|
111 |
-
* Sets single or multiple values of Error list via variable number of arguments.
|
112 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
113 |
* <code>withError($error1, $error2)</code>
|
114 |
-
*
|
115 |
* @param Error $errorArgs one or more Error
|
116 |
* @return OffAmazonPaymentsService_Model_ErrorResponse instance
|
117 |
*/
|
@@ -121,45 +131,45 @@ class OffAmazonPaymentsService_Model_ErrorResponse extends OffAmazonPaymentsServ
|
|
121 |
$this->_fields['Error']['FieldValue'][] = $error;
|
122 |
}
|
123 |
return $this;
|
124 |
-
}
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
/**
|
129 |
* Checks if Error list is non-empty
|
130 |
-
*
|
131 |
* @return bool true if Error list is non-empty
|
132 |
*/
|
133 |
public function isSetError()
|
134 |
{
|
135 |
-
return count
|
136 |
}
|
137 |
-
|
138 |
/**
|
139 |
* Gets the value of the RequestId property.
|
140 |
-
*
|
141 |
* @return string RequestId
|
142 |
*/
|
143 |
-
public function getRequestId()
|
144 |
{
|
145 |
return $this->_fields['RequestId']['FieldValue'];
|
146 |
}
|
147 |
-
|
148 |
/**
|
149 |
* Sets the value of the RequestId property.
|
150 |
-
*
|
151 |
* @param string RequestId
|
152 |
* @return this instance
|
153 |
*/
|
154 |
-
public function setRequestId($value)
|
155 |
{
|
156 |
$this->_fields['RequestId']['FieldValue'] = $value;
|
157 |
return $this;
|
158 |
}
|
159 |
-
|
160 |
/**
|
161 |
* Sets the value of the RequestId and returns this instance
|
162 |
-
*
|
163 |
* @param string $value RequestId
|
164 |
* @return OffAmazonPaymentsService_Model_ErrorResponse instance
|
165 |
*/
|
@@ -168,26 +178,26 @@ class OffAmazonPaymentsService_Model_ErrorResponse extends OffAmazonPaymentsServ
|
|
168 |
$this->setRequestId($value);
|
169 |
return $this;
|
170 |
}
|
171 |
-
|
172 |
-
|
173 |
/**
|
174 |
* Checks if RequestId is set
|
175 |
-
*
|
176 |
* @return bool true if RequestId is set
|
177 |
*/
|
178 |
public function isSetRequestId()
|
179 |
{
|
180 |
return !is_null($this->_fields['RequestId']['FieldValue']);
|
181 |
}
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
/**
|
186 |
* XML Representation for this object
|
187 |
-
*
|
188 |
* @return string XML for this object
|
189 |
*/
|
190 |
-
public function toXML()
|
191 |
{
|
192 |
$xml = "";
|
193 |
$xml .= "<ErrorResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -195,14 +205,16 @@ class OffAmazonPaymentsService_Model_ErrorResponse extends OffAmazonPaymentsServ
|
|
195 |
$xml .= "</ErrorResponse>";
|
196 |
return $xml;
|
197 |
}
|
198 |
-
|
199 |
private $_responseHeaderMetadata = null;
|
200 |
-
|
201 |
-
public function getResponseHeaderMetadata()
|
|
|
202 |
return $this->_responseHeaderMetadata;
|
203 |
}
|
204 |
-
|
205 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
206 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
207 |
}
|
208 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ErrorResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>Error: OffAmazonPaymentsService_Model_Error</li>
|
32 |
* <li>RequestId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_ErrorResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ErrorResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>Error: OffAmazonPaymentsService_Model_Error</li>
|
48 |
* <li>RequestId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'Error' => array(
|
56 |
+
'FieldValue' => array(),
|
57 |
+
'FieldType' => array(
|
58 |
+
'OffAmazonPaymentsService_Model_Error'
|
59 |
+
)
|
60 |
+
),
|
61 |
+
'RequestId' => array(
|
62 |
+
'FieldValue' => null,
|
63 |
+
'FieldType' => 'string'
|
64 |
+
)
|
65 |
);
|
66 |
parent::__construct($data);
|
67 |
}
|
68 |
+
|
69 |
+
|
70 |
/**
|
71 |
* Construct OffAmazonPaymentsService_Model_ErrorResponse from XML string
|
72 |
+
*
|
73 |
* @param string $xml XML string to construct from
|
74 |
+
* @return OffAmazonPaymentsService_Model_ErrorResponse
|
75 |
*/
|
76 |
public static function fromXML($xml)
|
77 |
{
|
78 |
$dom = new DOMDocument();
|
79 |
$dom->loadXML($xml);
|
80 |
$xpath = new DOMXPath($dom);
|
81 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
82 |
$response = $xpath->query('//a:ErrorResponse');
|
83 |
if ($response->length == 1) {
|
84 |
+
return new OffAmazonPaymentsService_Model_ErrorResponse(($response->item(0)));
|
85 |
} else {
|
86 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_ErrorResponse from provided XML.
|
87 |
Make sure that ErrorResponse is a root element");
|
88 |
}
|
89 |
+
|
90 |
}
|
91 |
|
92 |
/**
|
93 |
* Gets the value of the Error.
|
94 |
+
*
|
95 |
* @return array of Error Error
|
96 |
*/
|
97 |
+
public function getError()
|
98 |
{
|
99 |
return $this->_fields['Error']['FieldValue'];
|
100 |
}
|
101 |
+
|
102 |
/**
|
103 |
* Sets the value of the Error.
|
104 |
+
*
|
105 |
* @param mixed Error or an array of Error Error
|
106 |
* @return this instance
|
107 |
*/
|
108 |
+
public function setError($error)
|
109 |
{
|
110 |
if (!$this->_isNumericArray($error)) {
|
111 |
+
$error = array(
|
112 |
+
$error
|
113 |
+
);
|
114 |
}
|
115 |
$this->_fields['Error']['FieldValue'] = $error;
|
116 |
return $this;
|
117 |
}
|
118 |
+
|
119 |
+
|
120 |
/**
|
121 |
+
* Sets single or multiple values of Error list via variable number of arguments.
|
122 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
123 |
* <code>withError($error1, $error2)</code>
|
124 |
+
*
|
125 |
* @param Error $errorArgs one or more Error
|
126 |
* @return OffAmazonPaymentsService_Model_ErrorResponse instance
|
127 |
*/
|
131 |
$this->_fields['Error']['FieldValue'][] = $error;
|
132 |
}
|
133 |
return $this;
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
/**
|
139 |
* Checks if Error list is non-empty
|
140 |
+
*
|
141 |
* @return bool true if Error list is non-empty
|
142 |
*/
|
143 |
public function isSetError()
|
144 |
{
|
145 |
+
return count($this->_fields['Error']['FieldValue']) > 0;
|
146 |
}
|
147 |
+
|
148 |
/**
|
149 |
* Gets the value of the RequestId property.
|
150 |
+
*
|
151 |
* @return string RequestId
|
152 |
*/
|
153 |
+
public function getRequestId()
|
154 |
{
|
155 |
return $this->_fields['RequestId']['FieldValue'];
|
156 |
}
|
157 |
+
|
158 |
/**
|
159 |
* Sets the value of the RequestId property.
|
160 |
+
*
|
161 |
* @param string RequestId
|
162 |
* @return this instance
|
163 |
*/
|
164 |
+
public function setRequestId($value)
|
165 |
{
|
166 |
$this->_fields['RequestId']['FieldValue'] = $value;
|
167 |
return $this;
|
168 |
}
|
169 |
+
|
170 |
/**
|
171 |
* Sets the value of the RequestId and returns this instance
|
172 |
+
*
|
173 |
* @param string $value RequestId
|
174 |
* @return OffAmazonPaymentsService_Model_ErrorResponse instance
|
175 |
*/
|
178 |
$this->setRequestId($value);
|
179 |
return $this;
|
180 |
}
|
181 |
+
|
182 |
+
|
183 |
/**
|
184 |
* Checks if RequestId is set
|
185 |
+
*
|
186 |
* @return bool true if RequestId is set
|
187 |
*/
|
188 |
public function isSetRequestId()
|
189 |
{
|
190 |
return !is_null($this->_fields['RequestId']['FieldValue']);
|
191 |
}
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
/**
|
196 |
* XML Representation for this object
|
197 |
+
*
|
198 |
* @return string XML for this object
|
199 |
*/
|
200 |
+
public function toXML()
|
201 |
{
|
202 |
$xml = "";
|
203 |
$xml .= "<ErrorResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
205 |
$xml .= "</ErrorResponse>";
|
206 |
return $xml;
|
207 |
}
|
208 |
+
|
209 |
private $_responseHeaderMetadata = null;
|
210 |
+
|
211 |
+
public function getResponseHeaderMetadata()
|
212 |
+
{
|
213 |
return $this->_responseHeaderMetadata;
|
214 |
}
|
215 |
+
|
216 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
217 |
+
{
|
218 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
219 |
}
|
220 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsRequest.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonAuthorizationId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonAuthorizationId: string</li>
|
49 |
*
|
@@ -51,38 +51,48 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest extends OffA
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the SellerId property.
|
63 |
-
*
|
64 |
* @return string SellerId
|
65 |
*/
|
66 |
-
public function getSellerId()
|
67 |
{
|
68 |
return $this->_fields['SellerId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the SellerId property.
|
73 |
-
*
|
74 |
* @param string SellerId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setSellerId($value)
|
78 |
{
|
79 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the SellerId and returns this instance
|
85 |
-
*
|
86 |
* @param string $value SellerId
|
87 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest instance
|
88 |
*/
|
@@ -91,43 +101,43 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest extends OffA
|
|
91 |
$this->setSellerId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if SellerId is set
|
98 |
-
*
|
99 |
* @return bool true if SellerId is set
|
100 |
*/
|
101 |
public function isSetSellerId()
|
102 |
{
|
103 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the AmazonAuthorizationId property.
|
108 |
-
*
|
109 |
* @return string AmazonAuthorizationId
|
110 |
*/
|
111 |
-
public function getAmazonAuthorizationId()
|
112 |
{
|
113 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the AmazonAuthorizationId property.
|
118 |
-
*
|
119 |
* @param string AmazonAuthorizationId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setAmazonAuthorizationId($value)
|
123 |
{
|
124 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
130 |
-
*
|
131 |
* @param string $value AmazonAuthorizationId
|
132 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest instance
|
133 |
*/
|
@@ -136,15 +146,48 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest extends OffA
|
|
136 |
$this->setAmazonAuthorizationId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if AmazonAuthorizationId is set
|
143 |
-
*
|
144 |
* @return bool true if AmazonAuthorizationId is set
|
145 |
*/
|
146 |
public function isSetAmazonAuthorizationId()
|
147 |
{
|
148 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
149 |
}
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonAuthorizationId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonAuthorizationId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'SellerId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'AmazonAuthorizationId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'MWSAuthToken' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
)
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
/**
|
72 |
* Gets the value of the SellerId property.
|
73 |
+
*
|
74 |
* @return string SellerId
|
75 |
*/
|
76 |
+
public function getSellerId()
|
77 |
{
|
78 |
return $this->_fields['SellerId']['FieldValue'];
|
79 |
}
|
80 |
+
|
81 |
/**
|
82 |
* Sets the value of the SellerId property.
|
83 |
+
*
|
84 |
* @param string SellerId
|
85 |
* @return this instance
|
86 |
*/
|
87 |
+
public function setSellerId($value)
|
88 |
{
|
89 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
90 |
return $this;
|
91 |
}
|
92 |
+
|
93 |
/**
|
94 |
* Sets the value of the SellerId and returns this instance
|
95 |
+
*
|
96 |
* @param string $value SellerId
|
97 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest instance
|
98 |
*/
|
101 |
$this->setSellerId($value);
|
102 |
return $this;
|
103 |
}
|
104 |
+
|
105 |
+
|
106 |
/**
|
107 |
* Checks if SellerId is set
|
108 |
+
*
|
109 |
* @return bool true if SellerId is set
|
110 |
*/
|
111 |
public function isSetSellerId()
|
112 |
{
|
113 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Gets the value of the AmazonAuthorizationId property.
|
118 |
+
*
|
119 |
* @return string AmazonAuthorizationId
|
120 |
*/
|
121 |
+
public function getAmazonAuthorizationId()
|
122 |
{
|
123 |
return $this->_fields['AmazonAuthorizationId']['FieldValue'];
|
124 |
}
|
125 |
+
|
126 |
/**
|
127 |
* Sets the value of the AmazonAuthorizationId property.
|
128 |
+
*
|
129 |
* @param string AmazonAuthorizationId
|
130 |
* @return this instance
|
131 |
*/
|
132 |
+
public function setAmazonAuthorizationId($value)
|
133 |
{
|
134 |
$this->_fields['AmazonAuthorizationId']['FieldValue'] = $value;
|
135 |
return $this;
|
136 |
}
|
137 |
+
|
138 |
/**
|
139 |
* Sets the value of the AmazonAuthorizationId and returns this instance
|
140 |
+
*
|
141 |
* @param string $value AmazonAuthorizationId
|
142 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest instance
|
143 |
*/
|
146 |
$this->setAmazonAuthorizationId($value);
|
147 |
return $this;
|
148 |
}
|
149 |
+
|
150 |
+
|
151 |
/**
|
152 |
* Checks if AmazonAuthorizationId is set
|
153 |
+
*
|
154 |
* @return bool true if AmazonAuthorizationId is set
|
155 |
*/
|
156 |
public function isSetAmazonAuthorizationId()
|
157 |
{
|
158 |
return !is_null($this->_fields['AmazonAuthorizationId']['FieldValue']);
|
159 |
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Gets the value of the MWSAuthToken property.
|
163 |
+
*
|
164 |
+
* @return string MWSAuthToken
|
165 |
+
*/
|
166 |
+
public function getMWSAuthToken()
|
167 |
+
{
|
168 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
173 |
+
*
|
174 |
+
* @param string $value MWSAuthToken
|
175 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
176 |
+
*/
|
177 |
+
public function setMWSAuthToken($value)
|
178 |
+
{
|
179 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
180 |
+
return $this;
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Checks if MWSAuthToken is set
|
186 |
+
*
|
187 |
+
* @return bool true if MWSAuthToken is set
|
188 |
+
*/
|
189 |
+
public function isSetMWSAuthToken()
|
190 |
+
{
|
191 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
192 |
+
}
|
193 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>GetAuthorizationDetailsResult: OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>GetAuthorizationDetailsResult: OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
@@ -51,66 +51,72 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse extends Off
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse from XML string
|
68 |
-
*
|
69 |
* @param string $xml XML string to construct from
|
70 |
-
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse
|
71 |
*/
|
72 |
public static function fromXML($xml)
|
73 |
{
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:GetAuthorizationDetailsResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that GetAuthorizationDetailsResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the GetAuthorizationDetailsResult.
|
90 |
-
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getGetAuthorizationDetailsResult()
|
94 |
{
|
95 |
return $this->_fields['GetAuthorizationDetailsResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the GetAuthorizationDetailsResult.
|
100 |
-
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setGetAuthorizationDetailsResult($value)
|
105 |
{
|
106 |
$this->_fields['GetAuthorizationDetailsResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the GetAuthorizationDetailsResult and returns this instance
|
112 |
-
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse instance
|
115 |
*/
|
116 |
public function withGetAuthorizationDetailsResult($value)
|
@@ -118,45 +124,45 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse extends Off
|
|
118 |
$this->setGetAuthorizationDetailsResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if GetAuthorizationDetailsResult is set
|
125 |
-
*
|
126 |
* @return bool true if GetAuthorizationDetailsResult property is set
|
127 |
*/
|
128 |
public function isSetGetAuthorizationDetailsResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['GetAuthorizationDetailsResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
-
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
-
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
-
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,27 +170,27 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse extends Off
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
-
*
|
172 |
* @return bool true if ResponseMetadata property is set
|
173 |
*/
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
-
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<GetAuthorizationDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse extends Off
|
|
192 |
$xml .= "</GetAuthorizationDetailsResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>GetAuthorizationDetailsResult: OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>GetAuthorizationDetailsResult: OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'GetAuthorizationDetailsResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse from XML string
|
74 |
+
*
|
75 |
* @param string $xml XML string to construct from
|
76 |
+
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse
|
77 |
*/
|
78 |
public static function fromXML($xml)
|
79 |
{
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:GetAuthorizationDetailsResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse from provided XML.
|
89 |
Make sure that GetAuthorizationDetailsResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the GetAuthorizationDetailsResult.
|
96 |
+
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult GetAuthorizationDetailsResult
|
98 |
*/
|
99 |
+
public function getGetAuthorizationDetailsResult()
|
100 |
{
|
101 |
return $this->_fields['GetAuthorizationDetailsResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the GetAuthorizationDetailsResult.
|
106 |
+
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult GetAuthorizationDetailsResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setGetAuthorizationDetailsResult($value)
|
111 |
{
|
112 |
$this->_fields['GetAuthorizationDetailsResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the GetAuthorizationDetailsResult and returns this instance
|
118 |
+
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult $value GetAuthorizationDetailsResult
|
120 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse instance
|
121 |
*/
|
122 |
public function withGetAuthorizationDetailsResult($value)
|
124 |
$this->setGetAuthorizationDetailsResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if GetAuthorizationDetailsResult is set
|
131 |
+
*
|
132 |
* @return bool true if GetAuthorizationDetailsResult property is set
|
133 |
*/
|
134 |
public function isSetGetAuthorizationDetailsResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['GetAuthorizationDetailsResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
+
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
+
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
+
*
|
178 |
* @return bool true if ResponseMetadata property is set
|
179 |
*/
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
+
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<GetAuthorizationDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</GetAuthorizationDetailsResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetAuthorizationDetailsResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>AuthorizationDetails: OffAmazonPaymentsService_Model_AuthorizationDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>AuthorizationDetails: OffAmazonPaymentsService_Model_AuthorizationDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the AuthorizationDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getAuthorizationDetails()
|
66 |
{
|
67 |
return $this->_fields['AuthorizationDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the AuthorizationDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setAuthorizationDetails($value)
|
77 |
{
|
78 |
$this->_fields['AuthorizationDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the AuthorizationDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult instance
|
87 |
*/
|
88 |
public function withAuthorizationDetails($value)
|
@@ -90,16 +93,16 @@ class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult extends OffAm
|
|
90 |
$this->setAuthorizationDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if AuthorizationDetails is set
|
97 |
-
*
|
98 |
* @return bool true if AuthorizationDetails property is set
|
99 |
*/
|
100 |
public function isSetAuthorizationDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['AuthorizationDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>AuthorizationDetails: OffAmazonPaymentsService_Model_AuthorizationDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>AuthorizationDetails: OffAmazonPaymentsService_Model_AuthorizationDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'AuthorizationDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_AuthorizationDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the AuthorizationDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_AuthorizationDetails AuthorizationDetails
|
67 |
*/
|
68 |
+
public function getAuthorizationDetails()
|
69 |
{
|
70 |
return $this->_fields['AuthorizationDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the AuthorizationDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_AuthorizationDetails AuthorizationDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setAuthorizationDetails($value)
|
80 |
{
|
81 |
$this->_fields['AuthorizationDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the AuthorizationDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_AuthorizationDetails $value AuthorizationDetails
|
89 |
* @return OffAmazonPaymentsService_Model_GetAuthorizationDetailsResult instance
|
90 |
*/
|
91 |
public function withAuthorizationDetails($value)
|
93 |
$this->setAuthorizationDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if AuthorizationDetails is set
|
100 |
+
*
|
101 |
* @return bool true if AuthorizationDetails property is set
|
102 |
*/
|
103 |
public function isSetAuthorizationDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['AuthorizationDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
}
|
lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsRequest.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>AmazonBillingAgreementId: string</li>
|
25 |
* <li>SellerId: string</li>
|
26 |
* <li>AddressConsentToken: string</li>
|
@@ -29,22 +29,22 @@
|
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest extends OffAmazonPaymentsService_Model
|
31 |
{
|
32 |
-
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest
|
35 |
-
*
|
36 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
37 |
-
*
|
38 |
* Valid properties:
|
39 |
* <ul>
|
40 |
-
*
|
41 |
* <li>AmazonBillingAgreementId: string</li>
|
42 |
* <li>SellerId: string</li>
|
43 |
* <li>AddressConsentToken: string</li>
|
44 |
*
|
45 |
* </ul>
|
46 |
*/
|
47 |
-
public function __construct
|
48 |
{
|
49 |
$this->_fields = array(
|
50 |
'AmazonBillingAgreementId' => array(
|
@@ -58,140 +58,177 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest extends O
|
|
58 |
'AddressConsentToken' => array(
|
59 |
'FieldValue' => null,
|
60 |
'FieldType' => 'string'
|
|
|
|
|
|
|
|
|
61 |
)
|
62 |
);
|
63 |
parent::__construct($data);
|
64 |
}
|
65 |
-
|
66 |
/**
|
67 |
* Gets the value of the AmazonBillingAgreementId property.
|
68 |
-
*
|
69 |
* @return string AmazonBillingAgreementId
|
70 |
*/
|
71 |
-
public function getAmazonBillingAgreementId
|
72 |
{
|
73 |
return $this->_fields['AmazonBillingAgreementId']['FieldValue'];
|
74 |
}
|
75 |
-
|
76 |
/**
|
77 |
* Sets the value of the AmazonBillingAgreementId property.
|
78 |
-
*
|
79 |
* @param string AmazonBillingAgreementId
|
80 |
* @return this instance
|
81 |
*/
|
82 |
-
public function setAmazonBillingAgreementId
|
83 |
{
|
84 |
$this->_fields['AmazonBillingAgreementId']['FieldValue'] = $value;
|
85 |
return $this;
|
86 |
}
|
87 |
-
|
88 |
/**
|
89 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
90 |
-
*
|
91 |
* @param string $value AmazonBillingAgreementId
|
92 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest instance
|
93 |
*/
|
94 |
-
public function withAmazonBillingAgreementId
|
95 |
{
|
96 |
$this->setAmazonBillingAgreementId($value);
|
97 |
return $this;
|
98 |
}
|
99 |
-
|
100 |
/**
|
101 |
* Checks if AmazonBillingAgreementId is set
|
102 |
-
*
|
103 |
* @return bool true if AmazonBillingAgreementId is set
|
104 |
*/
|
105 |
-
public function isSetAmazonBillingAgreementId
|
106 |
{
|
107 |
-
return !
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Gets the value of the SellerId property.
|
112 |
-
*
|
113 |
* @return string SellerId
|
114 |
*/
|
115 |
-
public function getSellerId
|
116 |
{
|
117 |
return $this->_fields['SellerId']['FieldValue'];
|
118 |
}
|
119 |
-
|
120 |
/**
|
121 |
* Sets the value of the SellerId property.
|
122 |
-
*
|
123 |
* @param string SellerId
|
124 |
* @return this instance
|
125 |
*/
|
126 |
-
public function setSellerId
|
127 |
{
|
128 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
129 |
return $this;
|
130 |
}
|
131 |
-
|
132 |
/**
|
133 |
* Sets the value of the SellerId and returns this instance
|
134 |
-
*
|
135 |
* @param string $value SellerId
|
136 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest instance
|
137 |
*/
|
138 |
-
public function withSellerId
|
139 |
{
|
140 |
$this->setSellerId($value);
|
141 |
return $this;
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Checks if SellerId is set
|
146 |
-
*
|
147 |
* @return bool true if SellerId is set
|
148 |
*/
|
149 |
-
public function isSetSellerId
|
150 |
{
|
151 |
-
return !
|
152 |
}
|
153 |
-
|
154 |
/**
|
155 |
* Gets the value of the AddressConsentToken property.
|
156 |
-
*
|
157 |
* @return string AddressConsentToken
|
158 |
*/
|
159 |
-
public function getAddressConsentToken
|
160 |
{
|
161 |
return $this->_fields['AddressConsentToken']['FieldValue'];
|
162 |
}
|
163 |
-
|
164 |
/**
|
165 |
* Sets the value of the AddressConsentToken property.
|
166 |
-
*
|
167 |
* @param string AddressConsentToken
|
168 |
* @return this instance
|
169 |
*/
|
170 |
-
public function setAddressConsentToken
|
171 |
{
|
172 |
$this->_fields['AddressConsentToken']['FieldValue'] = $value;
|
173 |
return $this;
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* Sets the value of the AddressConsentToken and returns this instance
|
178 |
-
*
|
179 |
* @param string $value AddressConsentToken
|
180 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest instance
|
181 |
*/
|
182 |
-
public function withAddressConsentToken
|
183 |
{
|
184 |
$this->setAddressConsentToken($value);
|
185 |
return $this;
|
186 |
}
|
187 |
-
|
188 |
/**
|
189 |
* Checks if AddressConsentToken is set
|
190 |
-
*
|
191 |
* @return bool true if AddressConsentToken is set
|
192 |
*/
|
193 |
-
public function isSetAddressConsentToken
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
{
|
195 |
-
return !
|
196 |
}
|
197 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>AmazonBillingAgreementId: string</li>
|
25 |
* <li>SellerId: string</li>
|
26 |
* <li>AddressConsentToken: string</li>
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest extends OffAmazonPaymentsService_Model
|
31 |
{
|
32 |
+
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest
|
35 |
+
*
|
36 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
37 |
+
*
|
38 |
* Valid properties:
|
39 |
* <ul>
|
40 |
+
*
|
41 |
* <li>AmazonBillingAgreementId: string</li>
|
42 |
* <li>SellerId: string</li>
|
43 |
* <li>AddressConsentToken: string</li>
|
44 |
*
|
45 |
* </ul>
|
46 |
*/
|
47 |
+
public function __construct($data = null)
|
48 |
{
|
49 |
$this->_fields = array(
|
50 |
'AmazonBillingAgreementId' => array(
|
58 |
'AddressConsentToken' => array(
|
59 |
'FieldValue' => null,
|
60 |
'FieldType' => 'string'
|
61 |
+
),
|
62 |
+
'MWSAuthToken' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'string'
|
65 |
)
|
66 |
);
|
67 |
parent::__construct($data);
|
68 |
}
|
69 |
+
|
70 |
/**
|
71 |
* Gets the value of the AmazonBillingAgreementId property.
|
72 |
+
*
|
73 |
* @return string AmazonBillingAgreementId
|
74 |
*/
|
75 |
+
public function getAmazonBillingAgreementId()
|
76 |
{
|
77 |
return $this->_fields['AmazonBillingAgreementId']['FieldValue'];
|
78 |
}
|
79 |
+
|
80 |
/**
|
81 |
* Sets the value of the AmazonBillingAgreementId property.
|
82 |
+
*
|
83 |
* @param string AmazonBillingAgreementId
|
84 |
* @return this instance
|
85 |
*/
|
86 |
+
public function setAmazonBillingAgreementId($value)
|
87 |
{
|
88 |
$this->_fields['AmazonBillingAgreementId']['FieldValue'] = $value;
|
89 |
return $this;
|
90 |
}
|
91 |
+
|
92 |
/**
|
93 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
94 |
+
*
|
95 |
* @param string $value AmazonBillingAgreementId
|
96 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest instance
|
97 |
*/
|
98 |
+
public function withAmazonBillingAgreementId($value)
|
99 |
{
|
100 |
$this->setAmazonBillingAgreementId($value);
|
101 |
return $this;
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Checks if AmazonBillingAgreementId is set
|
106 |
+
*
|
107 |
* @return bool true if AmazonBillingAgreementId is set
|
108 |
*/
|
109 |
+
public function isSetAmazonBillingAgreementId()
|
110 |
{
|
111 |
+
return !is_null($this->_fields['AmazonBillingAgreementId']['FieldValue']);
|
112 |
}
|
113 |
+
|
114 |
/**
|
115 |
* Gets the value of the SellerId property.
|
116 |
+
*
|
117 |
* @return string SellerId
|
118 |
*/
|
119 |
+
public function getSellerId()
|
120 |
{
|
121 |
return $this->_fields['SellerId']['FieldValue'];
|
122 |
}
|
123 |
+
|
124 |
/**
|
125 |
* Sets the value of the SellerId property.
|
126 |
+
*
|
127 |
* @param string SellerId
|
128 |
* @return this instance
|
129 |
*/
|
130 |
+
public function setSellerId($value)
|
131 |
{
|
132 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
133 |
return $this;
|
134 |
}
|
135 |
+
|
136 |
/**
|
137 |
* Sets the value of the SellerId and returns this instance
|
138 |
+
*
|
139 |
* @param string $value SellerId
|
140 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest instance
|
141 |
*/
|
142 |
+
public function withSellerId($value)
|
143 |
{
|
144 |
$this->setSellerId($value);
|
145 |
return $this;
|
146 |
}
|
147 |
+
|
148 |
/**
|
149 |
* Checks if SellerId is set
|
150 |
+
*
|
151 |
* @return bool true if SellerId is set
|
152 |
*/
|
153 |
+
public function isSetSellerId()
|
154 |
{
|
155 |
+
return !is_null($this->_fields['SellerId']['FieldValue']);
|
156 |
}
|
157 |
+
|
158 |
/**
|
159 |
* Gets the value of the AddressConsentToken property.
|
160 |
+
*
|
161 |
* @return string AddressConsentToken
|
162 |
*/
|
163 |
+
public function getAddressConsentToken()
|
164 |
{
|
165 |
return $this->_fields['AddressConsentToken']['FieldValue'];
|
166 |
}
|
167 |
+
|
168 |
/**
|
169 |
* Sets the value of the AddressConsentToken property.
|
170 |
+
*
|
171 |
* @param string AddressConsentToken
|
172 |
* @return this instance
|
173 |
*/
|
174 |
+
public function setAddressConsentToken($value)
|
175 |
{
|
176 |
$this->_fields['AddressConsentToken']['FieldValue'] = $value;
|
177 |
return $this;
|
178 |
}
|
179 |
+
|
180 |
/**
|
181 |
* Sets the value of the AddressConsentToken and returns this instance
|
182 |
+
*
|
183 |
* @param string $value AddressConsentToken
|
184 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsRequest instance
|
185 |
*/
|
186 |
+
public function withAddressConsentToken($value)
|
187 |
{
|
188 |
$this->setAddressConsentToken($value);
|
189 |
return $this;
|
190 |
}
|
191 |
+
|
192 |
/**
|
193 |
* Checks if AddressConsentToken is set
|
194 |
+
*
|
195 |
* @return bool true if AddressConsentToken is set
|
196 |
*/
|
197 |
+
public function isSetAddressConsentToken()
|
198 |
+
{
|
199 |
+
return !is_null($this->_fields['AddressConsentToken']['FieldValue']);
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Gets the value of the MWSAuthToken property.
|
204 |
+
*
|
205 |
+
* @return string MWSAuthToken
|
206 |
+
*/
|
207 |
+
public function getMWSAuthToken()
|
208 |
+
{
|
209 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
210 |
+
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
214 |
+
*
|
215 |
+
* @param string $value MWSAuthToken
|
216 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
217 |
+
*/
|
218 |
+
public function setMWSAuthToken($value)
|
219 |
+
{
|
220 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
221 |
+
return $this;
|
222 |
+
}
|
223 |
+
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Checks if MWSAuthToken is set
|
227 |
+
*
|
228 |
+
* @return bool true if MWSAuthToken is set
|
229 |
+
*/
|
230 |
+
public function isSetMWSAuthToken()
|
231 |
{
|
232 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
233 |
}
|
234 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResponse.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>GetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
@@ -31,12 +31,12 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse
|
34 |
-
*
|
35 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
-
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
-
*
|
40 |
* <li>GetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
@@ -45,12 +45,12 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
-
|
49 |
'GetBillingAgreementDetailsResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult'
|
52 |
),
|
53 |
-
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
@@ -62,16 +62,16 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
62 |
|
63 |
/**
|
64 |
* Construct OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse from XML string
|
65 |
-
*
|
66 |
* @param string $xml XML string to construct from
|
67 |
-
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse
|
68 |
*/
|
69 |
public static function fromXML ($xml)
|
70 |
{
|
71 |
$dom = new DOMDocument();
|
72 |
$dom->loadXML($xml);
|
73 |
$xpath = new DOMXPath($dom);
|
74 |
-
$xpath->registerNamespace('a',
|
75 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
76 |
$response = $xpath->query('//a:GetBillingAgreementDetailsResponse');
|
77 |
if ($response->length == 1) {
|
@@ -79,15 +79,15 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
79 |
($response->item(0)));
|
80 |
} else {
|
81 |
throw new Exception(
|
82 |
-
"Unable to construct OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse from provided XML.
|
83 |
Make sure that GetBillingAgreementDetailsResponse is a root element");
|
84 |
}
|
85 |
}
|
86 |
|
87 |
/**
|
88 |
* Gets the value of the GetBillingAgreementDetailsResult.
|
89 |
-
*
|
90 |
-
* @return
|
91 |
*/
|
92 |
public function getGetBillingAgreementDetailsResult ()
|
93 |
{
|
@@ -96,8 +96,8 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
96 |
|
97 |
/**
|
98 |
* Sets the value of the GetBillingAgreementDetailsResult.
|
99 |
-
*
|
100 |
-
* @param
|
101 |
* @return void
|
102 |
*/
|
103 |
public function setGetBillingAgreementDetailsResult ($value)
|
@@ -108,8 +108,8 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
108 |
|
109 |
/**
|
110 |
* Sets the value of the GetBillingAgreementDetailsResult and returns this instance
|
111 |
-
*
|
112 |
-
* @param
|
113 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse instance
|
114 |
*/
|
115 |
public function withGetBillingAgreementDetailsResult ($value)
|
@@ -120,7 +120,7 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
120 |
|
121 |
/**
|
122 |
* Checks if GetBillingAgreementDetailsResult is set
|
123 |
-
*
|
124 |
* @return bool true if GetBillingAgreementDetailsResult property is set
|
125 |
*/
|
126 |
public function isSetGetBillingAgreementDetailsResult ()
|
@@ -130,8 +130,8 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
130 |
|
131 |
/**
|
132 |
* Gets the value of the ResponseMetadata.
|
133 |
-
*
|
134 |
-
* @return
|
135 |
*/
|
136 |
public function getResponseMetadata ()
|
137 |
{
|
@@ -140,8 +140,8 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
140 |
|
141 |
/**
|
142 |
* Sets the value of the ResponseMetadata.
|
143 |
-
*
|
144 |
-
* @param
|
145 |
* @return void
|
146 |
*/
|
147 |
public function setResponseMetadata ($value)
|
@@ -152,8 +152,8 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
152 |
|
153 |
/**
|
154 |
* Sets the value of the ResponseMetadata and returns this instance
|
155 |
-
*
|
156 |
-
* @param
|
157 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse instance
|
158 |
*/
|
159 |
public function withResponseMetadata ($value)
|
@@ -164,7 +164,7 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
164 |
|
165 |
/**
|
166 |
* Checks if ResponseMetadata is set
|
167 |
-
*
|
168 |
* @return bool true if ResponseMetadata property is set
|
169 |
*/
|
170 |
public function isSetResponseMetadata ()
|
@@ -174,7 +174,7 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
174 |
|
175 |
/**
|
176 |
* XML Representation for this object
|
177 |
-
*
|
178 |
* @return string XML for this object
|
179 |
*/
|
180 |
public function toXML ()
|
@@ -197,4 +197,4 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse extends
|
|
197 |
{
|
198 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
199 |
}
|
200 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>GetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse
|
34 |
+
*
|
35 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
+
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
+
*
|
40 |
* <li>GetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
+
|
49 |
'GetBillingAgreementDetailsResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult'
|
52 |
),
|
53 |
+
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
62 |
|
63 |
/**
|
64 |
* Construct OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse from XML string
|
65 |
+
*
|
66 |
* @param string $xml XML string to construct from
|
67 |
+
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse
|
68 |
*/
|
69 |
public static function fromXML ($xml)
|
70 |
{
|
71 |
$dom = new DOMDocument();
|
72 |
$dom->loadXML($xml);
|
73 |
$xpath = new DOMXPath($dom);
|
74 |
+
$xpath->registerNamespace('a',
|
75 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
76 |
$response = $xpath->query('//a:GetBillingAgreementDetailsResponse');
|
77 |
if ($response->length == 1) {
|
79 |
($response->item(0)));
|
80 |
} else {
|
81 |
throw new Exception(
|
82 |
+
"Unable to construct OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse from provided XML.
|
83 |
Make sure that GetBillingAgreementDetailsResponse is a root element");
|
84 |
}
|
85 |
}
|
86 |
|
87 |
/**
|
88 |
* Gets the value of the GetBillingAgreementDetailsResult.
|
89 |
+
*
|
90 |
+
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult GetBillingAgreementDetailsResult
|
91 |
*/
|
92 |
public function getGetBillingAgreementDetailsResult ()
|
93 |
{
|
96 |
|
97 |
/**
|
98 |
* Sets the value of the GetBillingAgreementDetailsResult.
|
99 |
+
*
|
100 |
+
* @param OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult GetBillingAgreementDetailsResult
|
101 |
* @return void
|
102 |
*/
|
103 |
public function setGetBillingAgreementDetailsResult ($value)
|
108 |
|
109 |
/**
|
110 |
* Sets the value of the GetBillingAgreementDetailsResult and returns this instance
|
111 |
+
*
|
112 |
+
* @param OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult $value GetBillingAgreementDetailsResult
|
113 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse instance
|
114 |
*/
|
115 |
public function withGetBillingAgreementDetailsResult ($value)
|
120 |
|
121 |
/**
|
122 |
* Checks if GetBillingAgreementDetailsResult is set
|
123 |
+
*
|
124 |
* @return bool true if GetBillingAgreementDetailsResult property is set
|
125 |
*/
|
126 |
public function isSetGetBillingAgreementDetailsResult ()
|
130 |
|
131 |
/**
|
132 |
* Gets the value of the ResponseMetadata.
|
133 |
+
*
|
134 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
135 |
*/
|
136 |
public function getResponseMetadata ()
|
137 |
{
|
140 |
|
141 |
/**
|
142 |
* Sets the value of the ResponseMetadata.
|
143 |
+
*
|
144 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
145 |
* @return void
|
146 |
*/
|
147 |
public function setResponseMetadata ($value)
|
152 |
|
153 |
/**
|
154 |
* Sets the value of the ResponseMetadata and returns this instance
|
155 |
+
*
|
156 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
157 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResponse instance
|
158 |
*/
|
159 |
public function withResponseMetadata ($value)
|
164 |
|
165 |
/**
|
166 |
* Checks if ResponseMetadata is set
|
167 |
+
*
|
168 |
* @return bool true if ResponseMetadata property is set
|
169 |
*/
|
170 |
public function isSetResponseMetadata ()
|
174 |
|
175 |
/**
|
176 |
* XML Representation for this object
|
177 |
+
*
|
178 |
* @return string XML for this object
|
179 |
*/
|
180 |
public function toXML ()
|
197 |
{
|
198 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
199 |
}
|
200 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetBillingAgreementDetailsResult.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
25 |
*
|
26 |
* </ul>
|
@@ -30,12 +30,12 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult extends Of
|
|
30 |
|
31 |
/**
|
32 |
* Construct new OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult
|
33 |
-
*
|
34 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
35 |
-
*
|
36 |
* Valid properties:
|
37 |
* <ul>
|
38 |
-
*
|
39 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
40 |
*
|
41 |
* </ul>
|
@@ -43,20 +43,19 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult extends Of
|
|
43 |
public function __construct ($data = null)
|
44 |
{
|
45 |
$this->_fields = array(
|
46 |
-
|
47 |
'BillingAgreementDetails' => array(
|
48 |
'FieldValue' => null,
|
49 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementDetails'
|
50 |
)
|
51 |
-
)
|
52 |
-
;
|
53 |
parent::__construct($data);
|
54 |
}
|
55 |
|
56 |
/**
|
57 |
* Gets the value of the BillingAgreementDetails.
|
58 |
-
*
|
59 |
-
* @return
|
60 |
*/
|
61 |
public function getBillingAgreementDetails ()
|
62 |
{
|
@@ -65,8 +64,8 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult extends Of
|
|
65 |
|
66 |
/**
|
67 |
* Sets the value of the BillingAgreementDetails.
|
68 |
-
*
|
69 |
-
* @param
|
70 |
* @return void
|
71 |
*/
|
72 |
public function setBillingAgreementDetails ($value)
|
@@ -77,8 +76,8 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult extends Of
|
|
77 |
|
78 |
/**
|
79 |
* Sets the value of the BillingAgreementDetails and returns this instance
|
80 |
-
*
|
81 |
-
* @param
|
82 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult instance
|
83 |
*/
|
84 |
public function withBillingAgreementDetails ($value)
|
@@ -89,11 +88,11 @@ class OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult extends Of
|
|
89 |
|
90 |
/**
|
91 |
* Checks if BillingAgreementDetails is set
|
92 |
-
*
|
93 |
* @return bool true if BillingAgreementDetails property is set
|
94 |
*/
|
95 |
public function isSetBillingAgreementDetails ()
|
96 |
{
|
97 |
return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
|
98 |
}
|
99 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
25 |
*
|
26 |
* </ul>
|
30 |
|
31 |
/**
|
32 |
* Construct new OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult
|
33 |
+
*
|
34 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
35 |
+
*
|
36 |
* Valid properties:
|
37 |
* <ul>
|
38 |
+
*
|
39 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
40 |
*
|
41 |
* </ul>
|
43 |
public function __construct ($data = null)
|
44 |
{
|
45 |
$this->_fields = array(
|
46 |
+
|
47 |
'BillingAgreementDetails' => array(
|
48 |
'FieldValue' => null,
|
49 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementDetails'
|
50 |
)
|
51 |
+
);
|
|
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
|
55 |
/**
|
56 |
* Gets the value of the BillingAgreementDetails.
|
57 |
+
*
|
58 |
+
* @return OffAmazonPaymentsService_Model_BillingAgreementDetails BillingAgreementDetails
|
59 |
*/
|
60 |
public function getBillingAgreementDetails ()
|
61 |
{
|
64 |
|
65 |
/**
|
66 |
* Sets the value of the BillingAgreementDetails.
|
67 |
+
*
|
68 |
+
* @param OffAmazonPaymentsService_Model_BillingAgreementDetails BillingAgreementDetails
|
69 |
* @return void
|
70 |
*/
|
71 |
public function setBillingAgreementDetails ($value)
|
76 |
|
77 |
/**
|
78 |
* Sets the value of the BillingAgreementDetails and returns this instance
|
79 |
+
*
|
80 |
+
* @param OffAmazonPaymentsService_Model_BillingAgreementDetails $value BillingAgreementDetails
|
81 |
* @return OffAmazonPaymentsService_Model_GetBillingAgreementDetailsResult instance
|
82 |
*/
|
83 |
public function withBillingAgreementDetails ($value)
|
88 |
|
89 |
/**
|
90 |
* Checks if BillingAgreementDetails is set
|
91 |
+
*
|
92 |
* @return bool true if BillingAgreementDetails property is set
|
93 |
*/
|
94 |
public function isSetBillingAgreementDetails ()
|
95 |
{
|
96 |
return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
|
97 |
}
|
98 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetCaptureDetailsRequest.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetCaptureDetailsRequest
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>AmazonCaptureId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetCaptureDetailsRequest
|
41 |
*
|
@@ -51,35 +51,45 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonP
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the SellerId property.
|
63 |
*
|
64 |
* @return string SellerId
|
65 |
*/
|
66 |
-
public function getSellerId()
|
67 |
{
|
68 |
return $this->_fields['SellerId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the SellerId property.
|
73 |
*
|
74 |
* @param string SellerId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setSellerId($value)
|
78 |
{
|
79 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the SellerId and returns this instance
|
85 |
*
|
@@ -91,8 +101,8 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonP
|
|
91 |
$this->setSellerId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if SellerId is set
|
98 |
*
|
@@ -102,29 +112,29 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonP
|
|
102 |
{
|
103 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the AmazonCaptureId property.
|
108 |
*
|
109 |
* @return string AmazonCaptureId
|
110 |
*/
|
111 |
-
public function getAmazonCaptureId()
|
112 |
{
|
113 |
return $this->_fields['AmazonCaptureId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the AmazonCaptureId property.
|
118 |
*
|
119 |
* @param string AmazonCaptureId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setAmazonCaptureId($value)
|
123 |
{
|
124 |
$this->_fields['AmazonCaptureId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the AmazonCaptureId and returns this instance
|
130 |
*
|
@@ -136,8 +146,8 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonP
|
|
136 |
$this->setAmazonCaptureId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if AmazonCaptureId is set
|
143 |
*
|
@@ -147,4 +157,37 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonP
|
|
147 |
{
|
148 |
return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
|
149 |
}
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetCaptureDetailsRequest
|
32 |
* <li>AmazonCaptureId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetCaptureDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetCaptureDetailsRequest
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'SellerId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'AmazonCaptureId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'MWSAuthToken' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
)
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
/**
|
72 |
* Gets the value of the SellerId property.
|
73 |
*
|
74 |
* @return string SellerId
|
75 |
*/
|
76 |
+
public function getSellerId()
|
77 |
{
|
78 |
return $this->_fields['SellerId']['FieldValue'];
|
79 |
}
|
80 |
+
|
81 |
/**
|
82 |
* Sets the value of the SellerId property.
|
83 |
*
|
84 |
* @param string SellerId
|
85 |
* @return this instance
|
86 |
*/
|
87 |
+
public function setSellerId($value)
|
88 |
{
|
89 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
90 |
return $this;
|
91 |
}
|
92 |
+
|
93 |
/**
|
94 |
* Sets the value of the SellerId and returns this instance
|
95 |
*
|
101 |
$this->setSellerId($value);
|
102 |
return $this;
|
103 |
}
|
104 |
+
|
105 |
+
|
106 |
/**
|
107 |
* Checks if SellerId is set
|
108 |
*
|
112 |
{
|
113 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Gets the value of the AmazonCaptureId property.
|
118 |
*
|
119 |
* @return string AmazonCaptureId
|
120 |
*/
|
121 |
+
public function getAmazonCaptureId()
|
122 |
{
|
123 |
return $this->_fields['AmazonCaptureId']['FieldValue'];
|
124 |
}
|
125 |
+
|
126 |
/**
|
127 |
* Sets the value of the AmazonCaptureId property.
|
128 |
*
|
129 |
* @param string AmazonCaptureId
|
130 |
* @return this instance
|
131 |
*/
|
132 |
+
public function setAmazonCaptureId($value)
|
133 |
{
|
134 |
$this->_fields['AmazonCaptureId']['FieldValue'] = $value;
|
135 |
return $this;
|
136 |
}
|
137 |
+
|
138 |
/**
|
139 |
* Sets the value of the AmazonCaptureId and returns this instance
|
140 |
*
|
146 |
$this->setAmazonCaptureId($value);
|
147 |
return $this;
|
148 |
}
|
149 |
+
|
150 |
+
|
151 |
/**
|
152 |
* Checks if AmazonCaptureId is set
|
153 |
*
|
157 |
{
|
158 |
return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
|
159 |
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Gets the value of the MWSAuthToken property.
|
163 |
+
*
|
164 |
+
* @return string MWSAuthToken
|
165 |
+
*/
|
166 |
+
public function getMWSAuthToken()
|
167 |
+
{
|
168 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
173 |
+
*
|
174 |
+
* @param string $value MWSAuthToken
|
175 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
176 |
+
*/
|
177 |
+
public function setMWSAuthToken($value)
|
178 |
+
{
|
179 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
180 |
+
return $this;
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Checks if MWSAuthToken is set
|
186 |
+
*
|
187 |
+
* @return bool true if MWSAuthToken is set
|
188 |
+
*/
|
189 |
+
public function isSetMWSAuthToken()
|
190 |
+
{
|
191 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
192 |
+
}
|
193 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetCaptureDetailsResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>GetCaptureDetailsResult: OffAmazonPaymentsService_Model_GetCaptureDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetCaptureDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetCaptureDetailsResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>GetCaptureDetailsResult: OffAmazonPaymentsService_Model_GetCaptureDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
@@ -51,65 +51,71 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsResponse extends OffAmazon
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_GetCaptureDetailsResponse from XML string
|
68 |
-
*
|
69 |
* @param string $xml XML string to construct from
|
70 |
-
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResponse
|
71 |
*/
|
72 |
public static function fromXML($xml)
|
73 |
{
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:GetCaptureDetailsResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_GetCaptureDetailsResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that GetCaptureDetailsResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the GetCaptureDetailsResult.
|
90 |
-
*
|
91 |
* @return GetCaptureDetailsResult GetCaptureDetailsResult
|
92 |
*/
|
93 |
-
public function getGetCaptureDetailsResult()
|
94 |
{
|
95 |
return $this->_fields['GetCaptureDetailsResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the GetCaptureDetailsResult.
|
100 |
-
*
|
101 |
* @param GetCaptureDetailsResult GetCaptureDetailsResult
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setGetCaptureDetailsResult($value)
|
105 |
{
|
106 |
$this->_fields['GetCaptureDetailsResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the GetCaptureDetailsResult and returns this instance
|
112 |
-
*
|
113 |
* @param GetCaptureDetailsResult $value GetCaptureDetailsResult
|
114 |
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResponse instance
|
115 |
*/
|
@@ -118,44 +124,44 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsResponse extends OffAmazon
|
|
118 |
$this->setGetCaptureDetailsResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if GetCaptureDetailsResult is set
|
125 |
-
*
|
126 |
* @return bool true if GetCaptureDetailsResult property is set
|
127 |
*/
|
128 |
public function isSetGetCaptureDetailsResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['GetCaptureDetailsResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
-
*
|
137 |
* @return ResponseMetadata ResponseMetadata
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
-
*
|
147 |
* @param ResponseMetadata ResponseMetadata
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
-
*
|
159 |
* @param ResponseMetadata $value ResponseMetadata
|
160 |
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResponse instance
|
161 |
*/
|
@@ -164,27 +170,27 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsResponse extends OffAmazon
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
-
*
|
172 |
* @return bool true if ResponseMetadata property is set
|
173 |
*/
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
-
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<GetCaptureDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsResponse extends OffAmazon
|
|
192 |
$xml .= "</GetCaptureDetailsResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetCaptureDetailsResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>GetCaptureDetailsResult: OffAmazonPaymentsService_Model_GetCaptureDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetCaptureDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetCaptureDetailsResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>GetCaptureDetailsResult: OffAmazonPaymentsService_Model_GetCaptureDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'GetCaptureDetailsResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_GetCaptureDetailsResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_GetCaptureDetailsResponse from XML string
|
74 |
+
*
|
75 |
* @param string $xml XML string to construct from
|
76 |
+
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResponse
|
77 |
*/
|
78 |
public static function fromXML($xml)
|
79 |
{
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:GetCaptureDetailsResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_GetCaptureDetailsResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_GetCaptureDetailsResponse from provided XML.
|
89 |
Make sure that GetCaptureDetailsResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the GetCaptureDetailsResult.
|
96 |
+
*
|
97 |
* @return GetCaptureDetailsResult GetCaptureDetailsResult
|
98 |
*/
|
99 |
+
public function getGetCaptureDetailsResult()
|
100 |
{
|
101 |
return $this->_fields['GetCaptureDetailsResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the GetCaptureDetailsResult.
|
106 |
+
*
|
107 |
* @param GetCaptureDetailsResult GetCaptureDetailsResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setGetCaptureDetailsResult($value)
|
111 |
{
|
112 |
$this->_fields['GetCaptureDetailsResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the GetCaptureDetailsResult and returns this instance
|
118 |
+
*
|
119 |
* @param GetCaptureDetailsResult $value GetCaptureDetailsResult
|
120 |
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResponse instance
|
121 |
*/
|
124 |
$this->setGetCaptureDetailsResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if GetCaptureDetailsResult is set
|
131 |
+
*
|
132 |
* @return bool true if GetCaptureDetailsResult property is set
|
133 |
*/
|
134 |
public function isSetGetCaptureDetailsResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['GetCaptureDetailsResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
* @return ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
+
*
|
153 |
* @param ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
+
*
|
165 |
* @param ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResponse instance
|
167 |
*/
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
+
*
|
178 |
* @return bool true if ResponseMetadata property is set
|
179 |
*/
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
+
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<GetCaptureDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</GetCaptureDetailsResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetCaptureDetailsResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetCaptureDetailsResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>CaptureDetails: OffAmazonPaymentsService_Model_CaptureDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_GetCaptureDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetCaptureDetailsResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>CaptureDetails: OffAmazonPaymentsService_Model_CaptureDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the CaptureDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getCaptureDetails()
|
66 |
{
|
67 |
return $this->_fields['CaptureDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the CaptureDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setCaptureDetails($value)
|
77 |
{
|
78 |
$this->_fields['CaptureDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the CaptureDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResult instance
|
87 |
*/
|
88 |
public function withCaptureDetails($value)
|
@@ -90,20 +93,17 @@ class OffAmazonPaymentsService_Model_GetCaptureDetailsResult extends OffAmazonPa
|
|
90 |
$this->setCaptureDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if CaptureDetails is set
|
97 |
-
*
|
98 |
* @return bool true if CaptureDetails property is set
|
99 |
*/
|
100 |
public function isSetCaptureDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['CaptureDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetCaptureDetailsResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>CaptureDetails: OffAmazonPaymentsService_Model_CaptureDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_GetCaptureDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetCaptureDetailsResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>CaptureDetails: OffAmazonPaymentsService_Model_CaptureDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'CaptureDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_CaptureDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the CaptureDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_CaptureDetails CaptureDetails
|
67 |
*/
|
68 |
+
public function getCaptureDetails()
|
69 |
{
|
70 |
return $this->_fields['CaptureDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the CaptureDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_CaptureDetails CaptureDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setCaptureDetails($value)
|
80 |
{
|
81 |
$this->_fields['CaptureDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the CaptureDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_CaptureDetails $value CaptureDetails
|
89 |
* @return OffAmazonPaymentsService_Model_GetCaptureDetailsResult instance
|
90 |
*/
|
91 |
public function withCaptureDetails($value)
|
93 |
$this->setCaptureDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if CaptureDetails is set
|
100 |
+
*
|
101 |
* @return bool true if CaptureDetails property is set
|
102 |
*/
|
103 |
public function isSetCaptureDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['CaptureDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
109 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsRequest.php
CHANGED
@@ -20,31 +20,31 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>AmazonOrderReferenceId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
* <li>AddressConsentToken: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
-
*/
|
37 |
class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
-
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest
|
42 |
-
*
|
43 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
44 |
-
*
|
45 |
* Valid properties:
|
46 |
* <ul>
|
47 |
-
*
|
48 |
* <li>AmazonOrderReferenceId: string</li>
|
49 |
* <li>SellerId: string</li>
|
50 |
* <li>AddressConsentToken: string</li>
|
@@ -52,39 +52,52 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
|
|
52 |
*/
|
53 |
public function __construct($data = null)
|
54 |
{
|
55 |
-
$this->_fields = array
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
-
|
63 |
/**
|
64 |
* Gets the value of the AmazonOrderReferenceId property.
|
65 |
-
*
|
66 |
* @return string AmazonOrderReferenceId
|
67 |
*/
|
68 |
-
public function getAmazonOrderReferenceId()
|
69 |
{
|
70 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
71 |
}
|
72 |
-
|
73 |
/**
|
74 |
* Sets the value of the AmazonOrderReferenceId property.
|
75 |
-
*
|
76 |
* @param string AmazonOrderReferenceId
|
77 |
* @return this instance
|
78 |
*/
|
79 |
-
public function setAmazonOrderReferenceId($value)
|
80 |
{
|
81 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
82 |
return $this;
|
83 |
}
|
84 |
-
|
85 |
/**
|
86 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
87 |
-
*
|
88 |
* @param string $value AmazonOrderReferenceId
|
89 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
90 |
*/
|
@@ -93,43 +106,43 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
|
|
93 |
$this->setAmazonOrderReferenceId($value);
|
94 |
return $this;
|
95 |
}
|
96 |
-
|
97 |
-
|
98 |
/**
|
99 |
* Checks if AmazonOrderReferenceId is set
|
100 |
-
*
|
101 |
* @return bool true if AmazonOrderReferenceId is set
|
102 |
*/
|
103 |
public function isSetAmazonOrderReferenceId()
|
104 |
{
|
105 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
106 |
}
|
107 |
-
|
108 |
/**
|
109 |
* Gets the value of the SellerId property.
|
110 |
-
*
|
111 |
* @return string SellerId
|
112 |
*/
|
113 |
-
public function getSellerId()
|
114 |
{
|
115 |
return $this->_fields['SellerId']['FieldValue'];
|
116 |
}
|
117 |
-
|
118 |
/**
|
119 |
* Sets the value of the SellerId property.
|
120 |
-
*
|
121 |
* @param string SellerId
|
122 |
* @return this instance
|
123 |
*/
|
124 |
-
public function setSellerId($value)
|
125 |
{
|
126 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
127 |
return $this;
|
128 |
}
|
129 |
-
|
130 |
/**
|
131 |
* Sets the value of the SellerId and returns this instance
|
132 |
-
*
|
133 |
* @param string $value SellerId
|
134 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
135 |
*/
|
@@ -138,19 +151,19 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
|
|
138 |
$this->setSellerId($value);
|
139 |
return $this;
|
140 |
}
|
141 |
-
|
142 |
-
|
143 |
/**
|
144 |
* Checks if SellerId is set
|
145 |
-
*
|
146 |
* @return bool true if SellerId is set
|
147 |
*/
|
148 |
public function isSetSellerId()
|
149 |
{
|
150 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
151 |
}
|
152 |
-
|
153 |
-
|
154 |
/**
|
155 |
* Gets the value of the AddressConsentToken property.
|
156 |
*
|
@@ -158,7 +171,7 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
|
|
158 |
*/
|
159 |
public function getAddressConsentToken()
|
160 |
{
|
161 |
-
|
162 |
}
|
163 |
|
164 |
/**
|
@@ -169,8 +182,8 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
|
|
169 |
*/
|
170 |
public function setAddressConsentToken($value)
|
171 |
{
|
172 |
-
|
173 |
-
|
174 |
}
|
175 |
|
176 |
/**
|
@@ -181,8 +194,8 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
|
|
181 |
*/
|
182 |
public function withAddressConsentToken($value)
|
183 |
{
|
184 |
-
|
185 |
-
|
186 |
}
|
187 |
|
188 |
|
@@ -193,7 +206,40 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends Off
|
|
193 |
*/
|
194 |
public function isSetAddressConsentToken()
|
195 |
{
|
196 |
-
|
197 |
}
|
198 |
-
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>AmazonOrderReferenceId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
* <li>AddressConsentToken: string</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
+
*/
|
37 |
class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
+
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest
|
42 |
+
*
|
43 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
44 |
+
*
|
45 |
* Valid properties:
|
46 |
* <ul>
|
47 |
+
*
|
48 |
* <li>AmazonOrderReferenceId: string</li>
|
49 |
* <li>SellerId: string</li>
|
50 |
* <li>AddressConsentToken: string</li>
|
52 |
*/
|
53 |
public function __construct($data = null)
|
54 |
{
|
55 |
+
$this->_fields = array(
|
56 |
+
'AmazonOrderReferenceId' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'string'
|
59 |
+
),
|
60 |
+
'SellerId' => array(
|
61 |
+
'FieldValue' => null,
|
62 |
+
'FieldType' => 'string'
|
63 |
+
),
|
64 |
+
'AddressConsentToken' => array(
|
65 |
+
'FieldValue' => null,
|
66 |
+
'FieldType' => 'string'
|
67 |
+
),
|
68 |
+
'MWSAuthToken' => array(
|
69 |
+
'FieldValue' => null,
|
70 |
+
'FieldType' => 'string'
|
71 |
+
)
|
72 |
);
|
73 |
parent::__construct($data);
|
74 |
}
|
75 |
+
|
76 |
/**
|
77 |
* Gets the value of the AmazonOrderReferenceId property.
|
78 |
+
*
|
79 |
* @return string AmazonOrderReferenceId
|
80 |
*/
|
81 |
+
public function getAmazonOrderReferenceId()
|
82 |
{
|
83 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
84 |
}
|
85 |
+
|
86 |
/**
|
87 |
* Sets the value of the AmazonOrderReferenceId property.
|
88 |
+
*
|
89 |
* @param string AmazonOrderReferenceId
|
90 |
* @return this instance
|
91 |
*/
|
92 |
+
public function setAmazonOrderReferenceId($value)
|
93 |
{
|
94 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
95 |
return $this;
|
96 |
}
|
97 |
+
|
98 |
/**
|
99 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
100 |
+
*
|
101 |
* @param string $value AmazonOrderReferenceId
|
102 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
103 |
*/
|
106 |
$this->setAmazonOrderReferenceId($value);
|
107 |
return $this;
|
108 |
}
|
109 |
+
|
110 |
+
|
111 |
/**
|
112 |
* Checks if AmazonOrderReferenceId is set
|
113 |
+
*
|
114 |
* @return bool true if AmazonOrderReferenceId is set
|
115 |
*/
|
116 |
public function isSetAmazonOrderReferenceId()
|
117 |
{
|
118 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
119 |
}
|
120 |
+
|
121 |
/**
|
122 |
* Gets the value of the SellerId property.
|
123 |
+
*
|
124 |
* @return string SellerId
|
125 |
*/
|
126 |
+
public function getSellerId()
|
127 |
{
|
128 |
return $this->_fields['SellerId']['FieldValue'];
|
129 |
}
|
130 |
+
|
131 |
/**
|
132 |
* Sets the value of the SellerId property.
|
133 |
+
*
|
134 |
* @param string SellerId
|
135 |
* @return this instance
|
136 |
*/
|
137 |
+
public function setSellerId($value)
|
138 |
{
|
139 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
140 |
return $this;
|
141 |
}
|
142 |
+
|
143 |
/**
|
144 |
* Sets the value of the SellerId and returns this instance
|
145 |
+
*
|
146 |
* @param string $value SellerId
|
147 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
148 |
*/
|
151 |
$this->setSellerId($value);
|
152 |
return $this;
|
153 |
}
|
154 |
+
|
155 |
+
|
156 |
/**
|
157 |
* Checks if SellerId is set
|
158 |
+
*
|
159 |
* @return bool true if SellerId is set
|
160 |
*/
|
161 |
public function isSetSellerId()
|
162 |
{
|
163 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
164 |
}
|
165 |
+
|
166 |
+
|
167 |
/**
|
168 |
* Gets the value of the AddressConsentToken property.
|
169 |
*
|
171 |
*/
|
172 |
public function getAddressConsentToken()
|
173 |
{
|
174 |
+
return $this->_fields['AddressConsentToken']['FieldValue'];
|
175 |
}
|
176 |
|
177 |
/**
|
182 |
*/
|
183 |
public function setAddressConsentToken($value)
|
184 |
{
|
185 |
+
$this->_fields['AddressConsentToken']['FieldValue'] = $value;
|
186 |
+
return $this;
|
187 |
}
|
188 |
|
189 |
/**
|
194 |
*/
|
195 |
public function withAddressConsentToken($value)
|
196 |
{
|
197 |
+
$this->setAddressConsentToken($value);
|
198 |
+
return $this;
|
199 |
}
|
200 |
|
201 |
|
206 |
*/
|
207 |
public function isSetAddressConsentToken()
|
208 |
{
|
209 |
+
return !is_null($this->_fields['AddressConsentToken']['FieldValue']);
|
210 |
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Gets the value of the MWSAuthToken property.
|
214 |
+
*
|
215 |
+
* @return string MWSAuthToken
|
216 |
+
*/
|
217 |
+
public function getMWSAuthToken()
|
218 |
+
{
|
219 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
220 |
+
}
|
221 |
+
|
222 |
+
/**
|
223 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
224 |
+
*
|
225 |
+
* @param string $value MWSAuthToken
|
226 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
227 |
+
*/
|
228 |
+
public function setMWSAuthToken($value)
|
229 |
+
{
|
230 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
231 |
+
return $this;
|
232 |
+
}
|
233 |
+
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Checks if MWSAuthToken is set
|
237 |
+
*
|
238 |
+
* @return bool true if MWSAuthToken is set
|
239 |
+
*/
|
240 |
+
public function isSetMWSAuthToken()
|
241 |
+
{
|
242 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
243 |
+
}
|
244 |
+
|
245 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResponse.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse
|
41 |
*
|
@@ -51,18 +51,24 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse from XML string
|
68 |
*
|
@@ -74,43 +80,43 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
|
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:GetOrderReferenceDetailsResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that GetOrderReferenceDetailsResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the GetOrderReferenceDetailsResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getGetOrderReferenceDetailsResult()
|
94 |
{
|
95 |
return $this->_fields['GetOrderReferenceDetailsResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the GetOrderReferenceDetailsResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setGetOrderReferenceDetailsResult($value)
|
105 |
{
|
106 |
$this->_fields['GetOrderReferenceDetailsResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the GetOrderReferenceDetailsResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse instance
|
115 |
*/
|
116 |
public function withGetOrderReferenceDetailsResult($value)
|
@@ -118,8 +124,8 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
|
|
118 |
$this->setGetOrderReferenceDetailsResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if GetOrderReferenceDetailsResult is set
|
125 |
*
|
@@ -128,35 +134,35 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
|
|
128 |
public function isSetGetOrderReferenceDetailsResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['GetOrderReferenceDetailsResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,8 +170,8 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
*
|
@@ -174,17 +180,17 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
|
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<GetOrderReferenceDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends Of
|
|
192 |
$xml .= "</GetOrderReferenceDetailsResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'GetOrderReferenceDetailsResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse from XML string
|
74 |
*
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:GetOrderReferenceDetailsResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse from provided XML.
|
89 |
Make sure that GetOrderReferenceDetailsResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the GetOrderReferenceDetailsResult.
|
96 |
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult GetOrderReferenceDetailsResult
|
98 |
*/
|
99 |
+
public function getGetOrderReferenceDetailsResult()
|
100 |
{
|
101 |
return $this->_fields['GetOrderReferenceDetailsResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the GetOrderReferenceDetailsResult.
|
106 |
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult GetOrderReferenceDetailsResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setGetOrderReferenceDetailsResult($value)
|
111 |
{
|
112 |
$this->_fields['GetOrderReferenceDetailsResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the GetOrderReferenceDetailsResult and returns this instance
|
118 |
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult $value GetOrderReferenceDetailsResult
|
120 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse instance
|
121 |
*/
|
122 |
public function withGetOrderReferenceDetailsResult($value)
|
124 |
$this->setGetOrderReferenceDetailsResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if GetOrderReferenceDetailsResult is set
|
131 |
*
|
134 |
public function isSetGetOrderReferenceDetailsResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['GetOrderReferenceDetailsResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
*
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<GetOrderReferenceDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</GetOrderReferenceDetailsResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetOrderReferenceDetailsResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the OrderReferenceDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getOrderReferenceDetails()
|
66 |
{
|
67 |
return $this->_fields['OrderReferenceDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the OrderReferenceDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setOrderReferenceDetails($value)
|
77 |
{
|
78 |
$this->_fields['OrderReferenceDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the OrderReferenceDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult instance
|
87 |
*/
|
88 |
public function withOrderReferenceDetails($value)
|
@@ -90,20 +93,17 @@ class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult extends OffA
|
|
90 |
$this->setOrderReferenceDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if OrderReferenceDetails is set
|
97 |
-
*
|
98 |
* @return bool true if OrderReferenceDetails property is set
|
99 |
*/
|
100 |
public function isSetOrderReferenceDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'OrderReferenceDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the OrderReferenceDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails OrderReferenceDetails
|
67 |
*/
|
68 |
+
public function getOrderReferenceDetails()
|
69 |
{
|
70 |
return $this->_fields['OrderReferenceDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the OrderReferenceDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_OrderReferenceDetails OrderReferenceDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setOrderReferenceDetails($value)
|
80 |
{
|
81 |
$this->_fields['OrderReferenceDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the OrderReferenceDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_OrderReferenceDetails $value OrderReferenceDetails
|
89 |
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsResult instance
|
90 |
*/
|
91 |
public function withOrderReferenceDetails($value)
|
93 |
$this->setOrderReferenceDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if OrderReferenceDetails is set
|
100 |
+
*
|
101 |
* @return bool true if OrderReferenceDetails property is set
|
102 |
*/
|
103 |
public function isSetOrderReferenceDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
109 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/GetProviderCreditDetailsRequest.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonProviderCreditId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonProviderCreditId: string</li>
|
49 |
*
|
@@ -51,38 +51,48 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest extends Off
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the SellerId property.
|
63 |
-
*
|
64 |
* @return string SellerId
|
65 |
*/
|
66 |
-
public function getSellerId()
|
67 |
{
|
68 |
return $this->_fields['SellerId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the SellerId property.
|
73 |
-
*
|
74 |
* @param string SellerId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setSellerId($value)
|
78 |
{
|
79 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the SellerId and returns this instance
|
85 |
-
*
|
86 |
* @param string $value SellerId
|
87 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest instance
|
88 |
*/
|
@@ -91,43 +101,43 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest extends Off
|
|
91 |
$this->setSellerId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if SellerId is set
|
98 |
-
*
|
99 |
* @return bool true if SellerId is set
|
100 |
*/
|
101 |
public function isSetSellerId()
|
102 |
{
|
103 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the AmazonProviderCreditId property.
|
108 |
-
*
|
109 |
* @return string AmazonProviderCreditId
|
110 |
*/
|
111 |
-
public function getAmazonProviderCreditId()
|
112 |
{
|
113 |
return $this->_fields['AmazonProviderCreditId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the AmazonProviderCreditId property.
|
118 |
-
*
|
119 |
* @param string AmazonProviderCreditId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setAmazonProviderCreditId($value)
|
123 |
{
|
124 |
$this->_fields['AmazonProviderCreditId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the AmazonProviderCreditId and returns this instance
|
130 |
-
*
|
131 |
* @param string $value AmazonProviderCreditId
|
132 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest instance
|
133 |
*/
|
@@ -136,19 +146,49 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest extends Off
|
|
136 |
$this->setAmazonProviderCreditId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if AmazonProviderCreditId is set
|
143 |
-
*
|
144 |
* @return bool true if AmazonProviderCreditId is set
|
145 |
*/
|
146 |
public function isSetAmazonProviderCreditId()
|
147 |
{
|
148 |
return !is_null($this->_fields['AmazonProviderCreditId']['FieldValue']);
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonProviderCreditId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonProviderCreditId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'SellerId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'AmazonProviderCreditId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'MWSAuthToken' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
)
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
/**
|
72 |
* Gets the value of the SellerId property.
|
73 |
+
*
|
74 |
* @return string SellerId
|
75 |
*/
|
76 |
+
public function getSellerId()
|
77 |
{
|
78 |
return $this->_fields['SellerId']['FieldValue'];
|
79 |
}
|
80 |
+
|
81 |
/**
|
82 |
* Sets the value of the SellerId property.
|
83 |
+
*
|
84 |
* @param string SellerId
|
85 |
* @return this instance
|
86 |
*/
|
87 |
+
public function setSellerId($value)
|
88 |
{
|
89 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
90 |
return $this;
|
91 |
}
|
92 |
+
|
93 |
/**
|
94 |
* Sets the value of the SellerId and returns this instance
|
95 |
+
*
|
96 |
* @param string $value SellerId
|
97 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest instance
|
98 |
*/
|
101 |
$this->setSellerId($value);
|
102 |
return $this;
|
103 |
}
|
104 |
+
|
105 |
+
|
106 |
/**
|
107 |
* Checks if SellerId is set
|
108 |
+
*
|
109 |
* @return bool true if SellerId is set
|
110 |
*/
|
111 |
public function isSetSellerId()
|
112 |
{
|
113 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Gets the value of the AmazonProviderCreditId property.
|
118 |
+
*
|
119 |
* @return string AmazonProviderCreditId
|
120 |
*/
|
121 |
+
public function getAmazonProviderCreditId()
|
122 |
{
|
123 |
return $this->_fields['AmazonProviderCreditId']['FieldValue'];
|
124 |
}
|
125 |
+
|
126 |
/**
|
127 |
* Sets the value of the AmazonProviderCreditId property.
|
128 |
+
*
|
129 |
* @param string AmazonProviderCreditId
|
130 |
* @return this instance
|
131 |
*/
|
132 |
+
public function setAmazonProviderCreditId($value)
|
133 |
{
|
134 |
$this->_fields['AmazonProviderCreditId']['FieldValue'] = $value;
|
135 |
return $this;
|
136 |
}
|
137 |
+
|
138 |
/**
|
139 |
* Sets the value of the AmazonProviderCreditId and returns this instance
|
140 |
+
*
|
141 |
* @param string $value AmazonProviderCreditId
|
142 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsRequest instance
|
143 |
*/
|
146 |
$this->setAmazonProviderCreditId($value);
|
147 |
return $this;
|
148 |
}
|
149 |
+
|
150 |
+
|
151 |
/**
|
152 |
* Checks if AmazonProviderCreditId is set
|
153 |
+
*
|
154 |
* @return bool true if AmazonProviderCreditId is set
|
155 |
*/
|
156 |
public function isSetAmazonProviderCreditId()
|
157 |
{
|
158 |
return !is_null($this->_fields['AmazonProviderCreditId']['FieldValue']);
|
159 |
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Gets the value of the MWSAuthToken property.
|
163 |
+
*
|
164 |
+
* @return string MWSAuthToken
|
165 |
+
*/
|
166 |
+
public function getMWSAuthToken()
|
167 |
+
{
|
168 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
173 |
+
*
|
174 |
+
* @param string $value MWSAuthToken
|
175 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
176 |
+
*/
|
177 |
+
public function setMWSAuthToken($value)
|
178 |
+
{
|
179 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
180 |
+
return $this;
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Checks if MWSAuthToken is set
|
186 |
+
*
|
187 |
+
* @return bool true if MWSAuthToken is set
|
188 |
+
*/
|
189 |
+
public function isSetMWSAuthToken()
|
190 |
+
{
|
191 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
192 |
+
}
|
193 |
+
|
194 |
}
|
lib/OffAmazonPaymentsService/Model/GetProviderCreditDetailsResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>GetProviderCreditDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>GetProviderCreditDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
@@ -51,66 +51,72 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse extends Of
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse from XML string
|
68 |
-
*
|
69 |
* @param string $xml XML string to construct from
|
70 |
-
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse
|
71 |
*/
|
72 |
public static function fromXML($xml)
|
73 |
{
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:GetProviderCreditDetailsResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that GetProviderCreditDetailsResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the GetProviderCreditDetailsResult.
|
90 |
-
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getGetProviderCreditDetailsResult()
|
94 |
{
|
95 |
return $this->_fields['GetProviderCreditDetailsResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the GetProviderCreditDetailsResult.
|
100 |
-
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setGetProviderCreditDetailsResult($value)
|
105 |
{
|
106 |
$this->_fields['GetProviderCreditDetailsResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the GetProviderCreditDetailsResult and returns this instance
|
112 |
-
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse instance
|
115 |
*/
|
116 |
public function withGetProviderCreditDetailsResult($value)
|
@@ -118,45 +124,45 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse extends Of
|
|
118 |
$this->setGetProviderCreditDetailsResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if GetProviderCreditDetailsResult is set
|
125 |
-
*
|
126 |
* @return bool true if GetProviderCreditDetailsResult property is set
|
127 |
*/
|
128 |
public function isSetGetProviderCreditDetailsResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['GetProviderCreditDetailsResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
-
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
-
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
-
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,27 +170,27 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse extends Of
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
-
*
|
172 |
* @return bool true if ResponseMetadata property is set
|
173 |
*/
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
-
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<GetProviderCreditDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse extends Of
|
|
192 |
$xml .= "</GetProviderCreditDetailsResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>GetProviderCreditDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>GetProviderCreditDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'GetProviderCreditDetailsResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse from XML string
|
74 |
+
*
|
75 |
* @param string $xml XML string to construct from
|
76 |
+
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse
|
77 |
*/
|
78 |
public static function fromXML($xml)
|
79 |
{
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:GetProviderCreditDetailsResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse from provided XML.
|
89 |
Make sure that GetProviderCreditDetailsResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the GetProviderCreditDetailsResult.
|
96 |
+
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult GetProviderCreditDetailsResult
|
98 |
*/
|
99 |
+
public function getGetProviderCreditDetailsResult()
|
100 |
{
|
101 |
return $this->_fields['GetProviderCreditDetailsResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the GetProviderCreditDetailsResult.
|
106 |
+
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult GetProviderCreditDetailsResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setGetProviderCreditDetailsResult($value)
|
111 |
{
|
112 |
$this->_fields['GetProviderCreditDetailsResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the GetProviderCreditDetailsResult and returns this instance
|
118 |
+
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult $value GetProviderCreditDetailsResult
|
120 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse instance
|
121 |
*/
|
122 |
public function withGetProviderCreditDetailsResult($value)
|
124 |
$this->setGetProviderCreditDetailsResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if GetProviderCreditDetailsResult is set
|
131 |
+
*
|
132 |
* @return bool true if GetProviderCreditDetailsResult property is set
|
133 |
*/
|
134 |
public function isSetGetProviderCreditDetailsResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['GetProviderCreditDetailsResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
+
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
+
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
+
*
|
178 |
* @return bool true if ResponseMetadata property is set
|
179 |
*/
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
+
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<GetProviderCreditDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</GetProviderCreditDetailsResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
}
|
lib/OffAmazonPaymentsService/Model/GetProviderCreditDetailsResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ProviderCreditDetails: OffAmazonPaymentsService_Model_ProviderCreditDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>ProviderCreditDetails: OffAmazonPaymentsService_Model_ProviderCreditDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the ProviderCreditDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getProviderCreditDetails()
|
66 |
{
|
67 |
return $this->_fields['ProviderCreditDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the ProviderCreditDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setProviderCreditDetails($value)
|
77 |
{
|
78 |
$this->_fields['ProviderCreditDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the ProviderCreditDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult instance
|
87 |
*/
|
88 |
public function withProviderCreditDetails($value)
|
@@ -90,20 +93,17 @@ class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult extends OffA
|
|
90 |
$this->setProviderCreditDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if ProviderCreditDetails is set
|
97 |
-
*
|
98 |
* @return bool true if ProviderCreditDetails property is set
|
99 |
*/
|
100 |
public function isSetProviderCreditDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['ProviderCreditDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ProviderCreditDetails: OffAmazonPaymentsService_Model_ProviderCreditDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>ProviderCreditDetails: OffAmazonPaymentsService_Model_ProviderCreditDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'ProviderCreditDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the ProviderCreditDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails ProviderCreditDetails
|
67 |
*/
|
68 |
+
public function getProviderCreditDetails()
|
69 |
{
|
70 |
return $this->_fields['ProviderCreditDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the ProviderCreditDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_ProviderCreditDetails ProviderCreditDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setProviderCreditDetails($value)
|
80 |
{
|
81 |
$this->_fields['ProviderCreditDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the ProviderCreditDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_ProviderCreditDetails $value ProviderCreditDetails
|
89 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditDetailsResult instance
|
90 |
*/
|
91 |
public function withProviderCreditDetails($value)
|
93 |
$this->setProviderCreditDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if ProviderCreditDetails is set
|
100 |
+
*
|
101 |
* @return bool true if ProviderCreditDetails property is set
|
102 |
*/
|
103 |
public function isSetProviderCreditDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['ProviderCreditDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
|
|
|
|
|
|
109 |
}
|
lib/OffAmazonPaymentsService/Model/GetProviderCreditReversalDetailsRequest.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonProviderCreditReversalId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonProviderCreditReversalId: string</li>
|
49 |
*
|
@@ -51,38 +51,48 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest ext
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the SellerId property.
|
63 |
-
*
|
64 |
* @return string SellerId
|
65 |
*/
|
66 |
-
public function getSellerId()
|
67 |
{
|
68 |
return $this->_fields['SellerId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the SellerId property.
|
73 |
-
*
|
74 |
* @param string SellerId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setSellerId($value)
|
78 |
{
|
79 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the SellerId and returns this instance
|
85 |
-
*
|
86 |
* @param string $value SellerId
|
87 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest instance
|
88 |
*/
|
@@ -91,43 +101,43 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest ext
|
|
91 |
$this->setSellerId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if SellerId is set
|
98 |
-
*
|
99 |
* @return bool true if SellerId is set
|
100 |
*/
|
101 |
public function isSetSellerId()
|
102 |
{
|
103 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the AmazonProviderCreditReversalId property.
|
108 |
-
*
|
109 |
* @return string AmazonProviderCreditReversalId
|
110 |
*/
|
111 |
-
public function getAmazonProviderCreditReversalId()
|
112 |
{
|
113 |
return $this->_fields['AmazonProviderCreditReversalId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the AmazonProviderCreditReversalId property.
|
118 |
-
*
|
119 |
* @param string AmazonProviderCreditReversalId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setAmazonProviderCreditReversalId($value)
|
123 |
{
|
124 |
$this->_fields['AmazonProviderCreditReversalId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the AmazonProviderCreditReversalId and returns this instance
|
130 |
-
*
|
131 |
* @param string $value AmazonProviderCreditReversalId
|
132 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest instance
|
133 |
*/
|
@@ -136,19 +146,49 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest ext
|
|
136 |
$this->setAmazonProviderCreditReversalId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if AmazonProviderCreditReversalId is set
|
143 |
-
*
|
144 |
* @return bool true if AmazonProviderCreditReversalId is set
|
145 |
*/
|
146 |
public function isSetAmazonProviderCreditReversalId()
|
147 |
{
|
148 |
return !is_null($this->_fields['AmazonProviderCreditReversalId']['FieldValue']);
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonProviderCreditReversalId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonProviderCreditReversalId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'SellerId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'AmazonProviderCreditReversalId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'MWSAuthToken' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
)
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
/**
|
72 |
* Gets the value of the SellerId property.
|
73 |
+
*
|
74 |
* @return string SellerId
|
75 |
*/
|
76 |
+
public function getSellerId()
|
77 |
{
|
78 |
return $this->_fields['SellerId']['FieldValue'];
|
79 |
}
|
80 |
+
|
81 |
/**
|
82 |
* Sets the value of the SellerId property.
|
83 |
+
*
|
84 |
* @param string SellerId
|
85 |
* @return this instance
|
86 |
*/
|
87 |
+
public function setSellerId($value)
|
88 |
{
|
89 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
90 |
return $this;
|
91 |
}
|
92 |
+
|
93 |
/**
|
94 |
* Sets the value of the SellerId and returns this instance
|
95 |
+
*
|
96 |
* @param string $value SellerId
|
97 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest instance
|
98 |
*/
|
101 |
$this->setSellerId($value);
|
102 |
return $this;
|
103 |
}
|
104 |
+
|
105 |
+
|
106 |
/**
|
107 |
* Checks if SellerId is set
|
108 |
+
*
|
109 |
* @return bool true if SellerId is set
|
110 |
*/
|
111 |
public function isSetSellerId()
|
112 |
{
|
113 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Gets the value of the AmazonProviderCreditReversalId property.
|
118 |
+
*
|
119 |
* @return string AmazonProviderCreditReversalId
|
120 |
*/
|
121 |
+
public function getAmazonProviderCreditReversalId()
|
122 |
{
|
123 |
return $this->_fields['AmazonProviderCreditReversalId']['FieldValue'];
|
124 |
}
|
125 |
+
|
126 |
/**
|
127 |
* Sets the value of the AmazonProviderCreditReversalId property.
|
128 |
+
*
|
129 |
* @param string AmazonProviderCreditReversalId
|
130 |
* @return this instance
|
131 |
*/
|
132 |
+
public function setAmazonProviderCreditReversalId($value)
|
133 |
{
|
134 |
$this->_fields['AmazonProviderCreditReversalId']['FieldValue'] = $value;
|
135 |
return $this;
|
136 |
}
|
137 |
+
|
138 |
/**
|
139 |
* Sets the value of the AmazonProviderCreditReversalId and returns this instance
|
140 |
+
*
|
141 |
* @param string $value AmazonProviderCreditReversalId
|
142 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsRequest instance
|
143 |
*/
|
146 |
$this->setAmazonProviderCreditReversalId($value);
|
147 |
return $this;
|
148 |
}
|
149 |
+
|
150 |
+
|
151 |
/**
|
152 |
* Checks if AmazonProviderCreditReversalId is set
|
153 |
+
*
|
154 |
* @return bool true if AmazonProviderCreditReversalId is set
|
155 |
*/
|
156 |
public function isSetAmazonProviderCreditReversalId()
|
157 |
{
|
158 |
return !is_null($this->_fields['AmazonProviderCreditReversalId']['FieldValue']);
|
159 |
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Gets the value of the MWSAuthToken property.
|
163 |
+
*
|
164 |
+
* @return string MWSAuthToken
|
165 |
+
*/
|
166 |
+
public function getMWSAuthToken()
|
167 |
+
{
|
168 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
173 |
+
*
|
174 |
+
* @param string $value MWSAuthToken
|
175 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
176 |
+
*/
|
177 |
+
public function setMWSAuthToken($value)
|
178 |
+
{
|
179 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
180 |
+
return $this;
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Checks if MWSAuthToken is set
|
186 |
+
*
|
187 |
+
* @return bool true if MWSAuthToken is set
|
188 |
+
*/
|
189 |
+
public function isSetMWSAuthToken()
|
190 |
+
{
|
191 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
192 |
+
}
|
193 |
+
|
194 |
}
|
lib/OffAmazonPaymentsService/Model/GetProviderCreditReversalDetailsResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>GetProviderCreditReversalDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>GetProviderCreditReversalDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
@@ -51,66 +51,72 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse ex
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse from XML string
|
68 |
-
*
|
69 |
* @param string $xml XML string to construct from
|
70 |
-
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse
|
71 |
*/
|
72 |
public static function fromXML($xml)
|
73 |
{
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:GetProviderCreditReversalDetailsResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that GetProviderCreditReversalDetailsResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the GetProviderCreditReversalDetailsResult.
|
90 |
-
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getGetProviderCreditReversalDetailsResult()
|
94 |
{
|
95 |
return $this->_fields['GetProviderCreditReversalDetailsResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the GetProviderCreditReversalDetailsResult.
|
100 |
-
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setGetProviderCreditReversalDetailsResult($value)
|
105 |
{
|
106 |
$this->_fields['GetProviderCreditReversalDetailsResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the GetProviderCreditReversalDetailsResult and returns this instance
|
112 |
-
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse instance
|
115 |
*/
|
116 |
public function withGetProviderCreditReversalDetailsResult($value)
|
@@ -118,45 +124,45 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse ex
|
|
118 |
$this->setGetProviderCreditReversalDetailsResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if GetProviderCreditReversalDetailsResult is set
|
125 |
-
*
|
126 |
* @return bool true if GetProviderCreditReversalDetailsResult property is set
|
127 |
*/
|
128 |
public function isSetGetProviderCreditReversalDetailsResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['GetProviderCreditReversalDetailsResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
-
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
-
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
-
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,27 +170,25 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse ex
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
-
*
|
172 |
* @return bool true if ResponseMetadata property is set
|
173 |
*/
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
-
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<GetProviderCreditReversalDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +196,17 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse ex
|
|
192 |
$xml .= "</GetProviderCreditReversalDetailsResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>GetProviderCreditReversalDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>GetProviderCreditReversalDetailsResult: OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'GetProviderCreditReversalDetailsResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse from XML string
|
74 |
+
*
|
75 |
* @param string $xml XML string to construct from
|
76 |
+
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse
|
77 |
*/
|
78 |
public static function fromXML($xml)
|
79 |
{
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:GetProviderCreditReversalDetailsResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse from provided XML.
|
89 |
Make sure that GetProviderCreditReversalDetailsResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the GetProviderCreditReversalDetailsResult.
|
96 |
+
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult GetProviderCreditReversalDetailsResult
|
98 |
*/
|
99 |
+
public function getGetProviderCreditReversalDetailsResult()
|
100 |
{
|
101 |
return $this->_fields['GetProviderCreditReversalDetailsResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the GetProviderCreditReversalDetailsResult.
|
106 |
+
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult GetProviderCreditReversalDetailsResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setGetProviderCreditReversalDetailsResult($value)
|
111 |
{
|
112 |
$this->_fields['GetProviderCreditReversalDetailsResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the GetProviderCreditReversalDetailsResult and returns this instance
|
118 |
+
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult $value GetProviderCreditReversalDetailsResult
|
120 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse instance
|
121 |
*/
|
122 |
public function withGetProviderCreditReversalDetailsResult($value)
|
124 |
$this->setGetProviderCreditReversalDetailsResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if GetProviderCreditReversalDetailsResult is set
|
131 |
+
*
|
132 |
* @return bool true if GetProviderCreditReversalDetailsResult property is set
|
133 |
*/
|
134 |
public function isSetGetProviderCreditReversalDetailsResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['GetProviderCreditReversalDetailsResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
+
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
+
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
+
*
|
178 |
* @return bool true if ResponseMetadata property is set
|
179 |
*/
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
|
|
|
|
186 |
/**
|
187 |
* XML Representation for this object
|
188 |
+
*
|
189 |
* @return string XML for this object
|
190 |
*/
|
191 |
+
public function toXML()
|
192 |
{
|
193 |
$xml = "";
|
194 |
$xml .= "<GetProviderCreditReversalDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
196 |
$xml .= "</GetProviderCreditReversalDetailsResponse>";
|
197 |
return $xml;
|
198 |
}
|
199 |
+
|
200 |
private $_responseHeaderMetadata = null;
|
201 |
+
|
202 |
+
public function getResponseHeaderMetadata()
|
203 |
+
{
|
204 |
return $this->_responseHeaderMetadata;
|
205 |
}
|
206 |
+
|
207 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
208 |
+
{
|
209 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
210 |
}
|
211 |
+
|
212 |
}
|
lib/OffAmazonPaymentsService/Model/GetProviderCreditReversalDetailsResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the ProviderCreditReversalDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getProviderCreditReversalDetails()
|
66 |
{
|
67 |
return $this->_fields['ProviderCreditReversalDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the ProviderCreditReversalDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setProviderCreditReversalDetails($value)
|
77 |
{
|
78 |
$this->_fields['ProviderCreditReversalDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the ProviderCreditReversalDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult instance
|
87 |
*/
|
88 |
public function withProviderCreditReversalDetails($value)
|
@@ -90,20 +93,17 @@ class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult exte
|
|
90 |
$this->setProviderCreditReversalDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if ProviderCreditReversalDetails is set
|
97 |
-
*
|
98 |
* @return bool true if ProviderCreditReversalDetails property is set
|
99 |
*/
|
100 |
public function isSetProviderCreditReversalDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['ProviderCreditReversalDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'ProviderCreditReversalDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditReversalDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the ProviderCreditReversalDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails ProviderCreditReversalDetails
|
67 |
*/
|
68 |
+
public function getProviderCreditReversalDetails()
|
69 |
{
|
70 |
return $this->_fields['ProviderCreditReversalDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the ProviderCreditReversalDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_ProviderCreditReversalDetails ProviderCreditReversalDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setProviderCreditReversalDetails($value)
|
80 |
{
|
81 |
$this->_fields['ProviderCreditReversalDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the ProviderCreditReversalDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_ProviderCreditReversalDetails $value ProviderCreditReversalDetails
|
89 |
* @return OffAmazonPaymentsService_Model_GetProviderCreditReversalDetailsResult instance
|
90 |
*/
|
91 |
public function withProviderCreditReversalDetails($value)
|
93 |
$this->setProviderCreditReversalDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if ProviderCreditReversalDetails is set
|
100 |
+
*
|
101 |
* @return bool true if ProviderCreditReversalDetails property is set
|
102 |
*/
|
103 |
public function isSetProviderCreditReversalDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['ProviderCreditReversalDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
|
|
|
|
|
|
109 |
}
|
lib/OffAmazonPaymentsService/Model/GetRefundDetailsRequest.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetRefundDetailsRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonRefundId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetRefundDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetRefundDetailsRequest
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonRefundId: string</li>
|
49 |
*
|
@@ -51,38 +51,48 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsRequest extends OffAmazonPa
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the SellerId property.
|
63 |
-
*
|
64 |
* @return string SellerId
|
65 |
*/
|
66 |
-
public function getSellerId()
|
67 |
{
|
68 |
return $this->_fields['SellerId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the SellerId property.
|
73 |
-
*
|
74 |
* @param string SellerId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setSellerId($value)
|
78 |
{
|
79 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the SellerId and returns this instance
|
85 |
-
*
|
86 |
* @param string $value SellerId
|
87 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsRequest instance
|
88 |
*/
|
@@ -91,43 +101,43 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsRequest extends OffAmazonPa
|
|
91 |
$this->setSellerId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if SellerId is set
|
98 |
-
*
|
99 |
* @return bool true if SellerId is set
|
100 |
*/
|
101 |
public function isSetSellerId()
|
102 |
{
|
103 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the AmazonRefundId property.
|
108 |
-
*
|
109 |
* @return string AmazonRefundId
|
110 |
*/
|
111 |
-
public function getAmazonRefundId()
|
112 |
{
|
113 |
return $this->_fields['AmazonRefundId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the AmazonRefundId property.
|
118 |
-
*
|
119 |
* @param string AmazonRefundId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setAmazonRefundId($value)
|
123 |
{
|
124 |
$this->_fields['AmazonRefundId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the AmazonRefundId and returns this instance
|
130 |
-
*
|
131 |
* @param string $value AmazonRefundId
|
132 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsRequest instance
|
133 |
*/
|
@@ -136,19 +146,49 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsRequest extends OffAmazonPa
|
|
136 |
$this->setAmazonRefundId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if AmazonRefundId is set
|
143 |
-
*
|
144 |
* @return bool true if AmazonRefundId is set
|
145 |
*/
|
146 |
public function isSetAmazonRefundId()
|
147 |
{
|
148 |
return !is_null($this->_fields['AmazonRefundId']['FieldValue']);
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetRefundDetailsRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonRefundId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetRefundDetailsRequest extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetRefundDetailsRequest
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>SellerId: string</li>
|
48 |
* <li>AmazonRefundId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'SellerId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'AmazonRefundId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'MWSAuthToken' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
)
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
/**
|
72 |
* Gets the value of the SellerId property.
|
73 |
+
*
|
74 |
* @return string SellerId
|
75 |
*/
|
76 |
+
public function getSellerId()
|
77 |
{
|
78 |
return $this->_fields['SellerId']['FieldValue'];
|
79 |
}
|
80 |
+
|
81 |
/**
|
82 |
* Sets the value of the SellerId property.
|
83 |
+
*
|
84 |
* @param string SellerId
|
85 |
* @return this instance
|
86 |
*/
|
87 |
+
public function setSellerId($value)
|
88 |
{
|
89 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
90 |
return $this;
|
91 |
}
|
92 |
+
|
93 |
/**
|
94 |
* Sets the value of the SellerId and returns this instance
|
95 |
+
*
|
96 |
* @param string $value SellerId
|
97 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsRequest instance
|
98 |
*/
|
101 |
$this->setSellerId($value);
|
102 |
return $this;
|
103 |
}
|
104 |
+
|
105 |
+
|
106 |
/**
|
107 |
* Checks if SellerId is set
|
108 |
+
*
|
109 |
* @return bool true if SellerId is set
|
110 |
*/
|
111 |
public function isSetSellerId()
|
112 |
{
|
113 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Gets the value of the AmazonRefundId property.
|
118 |
+
*
|
119 |
* @return string AmazonRefundId
|
120 |
*/
|
121 |
+
public function getAmazonRefundId()
|
122 |
{
|
123 |
return $this->_fields['AmazonRefundId']['FieldValue'];
|
124 |
}
|
125 |
+
|
126 |
/**
|
127 |
* Sets the value of the AmazonRefundId property.
|
128 |
+
*
|
129 |
* @param string AmazonRefundId
|
130 |
* @return this instance
|
131 |
*/
|
132 |
+
public function setAmazonRefundId($value)
|
133 |
{
|
134 |
$this->_fields['AmazonRefundId']['FieldValue'] = $value;
|
135 |
return $this;
|
136 |
}
|
137 |
+
|
138 |
/**
|
139 |
* Sets the value of the AmazonRefundId and returns this instance
|
140 |
+
*
|
141 |
* @param string $value AmazonRefundId
|
142 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsRequest instance
|
143 |
*/
|
146 |
$this->setAmazonRefundId($value);
|
147 |
return $this;
|
148 |
}
|
149 |
+
|
150 |
+
|
151 |
/**
|
152 |
* Checks if AmazonRefundId is set
|
153 |
+
*
|
154 |
* @return bool true if AmazonRefundId is set
|
155 |
*/
|
156 |
public function isSetAmazonRefundId()
|
157 |
{
|
158 |
return !is_null($this->_fields['AmazonRefundId']['FieldValue']);
|
159 |
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Gets the value of the MWSAuthToken property.
|
163 |
+
*
|
164 |
+
* @return string MWSAuthToken
|
165 |
+
*/
|
166 |
+
public function getMWSAuthToken()
|
167 |
+
{
|
168 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
169 |
+
}
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
173 |
+
*
|
174 |
+
* @param string $value MWSAuthToken
|
175 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
176 |
+
*/
|
177 |
+
public function setMWSAuthToken($value)
|
178 |
+
{
|
179 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
180 |
+
return $this;
|
181 |
+
}
|
182 |
+
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Checks if MWSAuthToken is set
|
186 |
+
*
|
187 |
+
* @return bool true if MWSAuthToken is set
|
188 |
+
*/
|
189 |
+
public function isSetMWSAuthToken()
|
190 |
+
{
|
191 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
192 |
+
}
|
193 |
+
|
194 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetRefundDetailsResponse.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetRefundDetailsResponse
|
@@ -32,10 +32,10 @@
|
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetRefundDetailsResponse
|
41 |
*
|
@@ -51,18 +51,24 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_GetRefundDetailsResponse from XML string
|
68 |
*
|
@@ -74,43 +80,43 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
|
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:GetRefundDetailsResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_GetRefundDetailsResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that GetRefundDetailsResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the GetRefundDetailsResult.
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getGetRefundDetailsResult()
|
94 |
{
|
95 |
return $this->_fields['GetRefundDetailsResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the GetRefundDetailsResult.
|
100 |
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setGetRefundDetailsResult($value)
|
105 |
{
|
106 |
$this->_fields['GetRefundDetailsResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the GetRefundDetailsResult and returns this instance
|
112 |
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse instance
|
115 |
*/
|
116 |
public function withGetRefundDetailsResult($value)
|
@@ -118,8 +124,8 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
|
|
118 |
$this->setGetRefundDetailsResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if GetRefundDetailsResult is set
|
125 |
*
|
@@ -128,35 +134,35 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
|
|
128 |
public function isSetGetRefundDetailsResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['GetRefundDetailsResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,8 +170,8 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
*
|
@@ -174,17 +180,17 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
|
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<GetRefundDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonP
|
|
192 |
$xml .= "</GetRefundDetailsResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetRefundDetailsResponse
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_GetRefundDetailsResponse
|
41 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'GetRefundDetailsResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_GetRefundDetailsResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_GetRefundDetailsResponse from XML string
|
74 |
*
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:GetRefundDetailsResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_GetRefundDetailsResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_GetRefundDetailsResponse from provided XML.
|
89 |
Make sure that GetRefundDetailsResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the GetRefundDetailsResult.
|
96 |
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_GetRefundDetailsResult GetRefundDetailsResult
|
98 |
*/
|
99 |
+
public function getGetRefundDetailsResult()
|
100 |
{
|
101 |
return $this->_fields['GetRefundDetailsResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the GetRefundDetailsResult.
|
106 |
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_GetRefundDetailsResult GetRefundDetailsResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setGetRefundDetailsResult($value)
|
111 |
{
|
112 |
$this->_fields['GetRefundDetailsResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the GetRefundDetailsResult and returns this instance
|
118 |
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_GetRefundDetailsResult $value GetRefundDetailsResult
|
120 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse instance
|
121 |
*/
|
122 |
public function withGetRefundDetailsResult($value)
|
124 |
$this->setGetRefundDetailsResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if GetRefundDetailsResult is set
|
131 |
*
|
134 |
public function isSetGetRefundDetailsResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['GetRefundDetailsResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
*
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<GetRefundDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</GetRefundDetailsResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
+
}
|
lib/OffAmazonPaymentsService/Model/GetRefundDetailsResult.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetRefundDetailsResult
|
@@ -31,10 +31,10 @@
|
|
31 |
* <li>RefundDetails: OffAmazonPaymentsService_Model_RefundDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_GetRefundDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetRefundDetailsResult
|
40 |
*
|
@@ -49,40 +49,43 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResult extends OffAmazonPay
|
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the RefundDetails.
|
62 |
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getRefundDetails()
|
66 |
{
|
67 |
return $this->_fields['RefundDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the RefundDetails.
|
72 |
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setRefundDetails($value)
|
77 |
{
|
78 |
$this->_fields['RefundDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the RefundDetails and returns this instance
|
84 |
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsResult instance
|
87 |
*/
|
88 |
public function withRefundDetails($value)
|
@@ -90,8 +93,8 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResult extends OffAmazonPay
|
|
90 |
$this->setRefundDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if RefundDetails is set
|
97 |
*
|
@@ -100,10 +103,7 @@ class OffAmazonPaymentsService_Model_GetRefundDetailsResult extends OffAmazonPay
|
|
100 |
public function isSetRefundDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['RefundDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_GetRefundDetailsResult
|
31 |
* <li>RefundDetails: OffAmazonPaymentsService_Model_RefundDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_GetRefundDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_GetRefundDetailsResult
|
40 |
*
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'RefundDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_RefundDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the RefundDetails.
|
65 |
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_RefundDetails RefundDetails
|
67 |
*/
|
68 |
+
public function getRefundDetails()
|
69 |
{
|
70 |
return $this->_fields['RefundDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the RefundDetails.
|
75 |
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_RefundDetails RefundDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setRefundDetails($value)
|
80 |
{
|
81 |
$this->_fields['RefundDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the RefundDetails and returns this instance
|
87 |
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_RefundDetails $value RefundDetails
|
89 |
* @return OffAmazonPaymentsService_Model_GetRefundDetailsResult instance
|
90 |
*/
|
91 |
public function withRefundDetails($value)
|
93 |
$this->setRefundDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if RefundDetails is set
|
100 |
*
|
103 |
public function isSetRefundDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['RefundDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
109 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/IdList.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_IdList
|
@@ -31,10 +31,10 @@
|
|
31 |
* <li>member: string</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_IdList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_IdList
|
40 |
*
|
@@ -49,38 +49,45 @@ class OffAmazonPaymentsService_Model_IdList extends OffAmazonPaymentsService_Mod
|
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the member .
|
60 |
*
|
61 |
* @return array of string member
|
62 |
*/
|
63 |
-
public function getmember()
|
64 |
{
|
65 |
return $this->_fields['member']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the member.
|
70 |
*
|
71 |
* @param string or an array of string member
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setmember($member)
|
75 |
{
|
76 |
if (!$this->_isNumericArray($member)) {
|
77 |
-
$member =
|
|
|
|
|
78 |
}
|
79 |
$this->_fields['member']['FieldValue'] = $member;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
/**
|
85 |
* Sets single or multiple values of member list via variable number of arguments.
|
86 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
@@ -95,9 +102,9 @@ class OffAmazonPaymentsService_Model_IdList extends OffAmazonPaymentsService_Mod
|
|
95 |
$this->_fields['member']['FieldValue'][] = $member;
|
96 |
}
|
97 |
return $this;
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
/**
|
102 |
* Checks if member list is non-empty
|
103 |
*
|
@@ -105,10 +112,7 @@ class OffAmazonPaymentsService_Model_IdList extends OffAmazonPaymentsService_Mod
|
|
105 |
*/
|
106 |
public function isSetmember()
|
107 |
{
|
108 |
-
return count
|
109 |
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_IdList
|
31 |
* <li>member: string</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_IdList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_IdList
|
40 |
*
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'member' => array(
|
54 |
+
'FieldValue' => array(),
|
55 |
+
'FieldType' => array(
|
56 |
+
'string'
|
57 |
+
)
|
58 |
+
)
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the member .
|
65 |
*
|
66 |
* @return array of string member
|
67 |
*/
|
68 |
+
public function getmember()
|
69 |
{
|
70 |
return $this->_fields['member']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the member.
|
75 |
*
|
76 |
* @param string or an array of string member
|
77 |
* @return this instance
|
78 |
*/
|
79 |
+
public function setmember($member)
|
80 |
{
|
81 |
if (!$this->_isNumericArray($member)) {
|
82 |
+
$member = array(
|
83 |
+
$member
|
84 |
+
);
|
85 |
}
|
86 |
$this->_fields['member']['FieldValue'] = $member;
|
87 |
return $this;
|
88 |
}
|
89 |
+
|
90 |
+
|
91 |
/**
|
92 |
* Sets single or multiple values of member list via variable number of arguments.
|
93 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
102 |
$this->_fields['member']['FieldValue'][] = $member;
|
103 |
}
|
104 |
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
/**
|
109 |
* Checks if member list is non-empty
|
110 |
*
|
112 |
*/
|
113 |
public function isSetmember()
|
114 |
{
|
115 |
+
return count($this->_fields['member']['FieldValue']) > 0;
|
116 |
}
|
117 |
+
|
118 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/OrderItemCategories.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderItemCategories
|
@@ -31,10 +31,10 @@
|
|
31 |
* <li>OrderItemCategory: string</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_OrderItemCategories extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_OrderItemCategories
|
40 |
*
|
@@ -49,38 +49,45 @@ class OffAmazonPaymentsService_Model_OrderItemCategories extends OffAmazonPaymen
|
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the OrderItemCategory .
|
60 |
*
|
61 |
* @return array of string OrderItemCategory
|
62 |
*/
|
63 |
-
public function getOrderItemCategory()
|
64 |
{
|
65 |
return $this->_fields['OrderItemCategory']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the OrderItemCategory.
|
70 |
*
|
71 |
* @param string or an array of string OrderItemCategory
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setOrderItemCategory($orderItemCategory)
|
75 |
{
|
76 |
if (!$this->_isNumericArray($orderItemCategory)) {
|
77 |
-
$orderItemCategory =
|
|
|
|
|
78 |
}
|
79 |
$this->_fields['OrderItemCategory']['FieldValue'] = $orderItemCategory;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
/**
|
85 |
* Sets single or multiple values of OrderItemCategory list via variable number of arguments.
|
86 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
@@ -95,9 +102,9 @@ class OffAmazonPaymentsService_Model_OrderItemCategories extends OffAmazonPaymen
|
|
95 |
$this->_fields['OrderItemCategory']['FieldValue'][] = $orderItemCategory;
|
96 |
}
|
97 |
return $this;
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
/**
|
102 |
* Checks if OrderItemCategory list is non-empty
|
103 |
*
|
@@ -105,10 +112,7 @@ class OffAmazonPaymentsService_Model_OrderItemCategories extends OffAmazonPaymen
|
|
105 |
*/
|
106 |
public function isSetOrderItemCategory()
|
107 |
{
|
108 |
-
return count
|
109 |
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderItemCategories
|
31 |
* <li>OrderItemCategory: string</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_OrderItemCategories extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_OrderItemCategories
|
40 |
*
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'OrderItemCategory' => array(
|
54 |
+
'FieldValue' => array(),
|
55 |
+
'FieldType' => array(
|
56 |
+
'string'
|
57 |
+
)
|
58 |
+
)
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the OrderItemCategory .
|
65 |
*
|
66 |
* @return array of string OrderItemCategory
|
67 |
*/
|
68 |
+
public function getOrderItemCategory()
|
69 |
{
|
70 |
return $this->_fields['OrderItemCategory']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the OrderItemCategory.
|
75 |
*
|
76 |
* @param string or an array of string OrderItemCategory
|
77 |
* @return this instance
|
78 |
*/
|
79 |
+
public function setOrderItemCategory($orderItemCategory)
|
80 |
{
|
81 |
if (!$this->_isNumericArray($orderItemCategory)) {
|
82 |
+
$orderItemCategory = array(
|
83 |
+
$orderItemCategory
|
84 |
+
);
|
85 |
}
|
86 |
$this->_fields['OrderItemCategory']['FieldValue'] = $orderItemCategory;
|
87 |
return $this;
|
88 |
}
|
89 |
+
|
90 |
+
|
91 |
/**
|
92 |
* Sets single or multiple values of OrderItemCategory list via variable number of arguments.
|
93 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
102 |
$this->_fields['OrderItemCategory']['FieldValue'][] = $orderItemCategory;
|
103 |
}
|
104 |
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
/**
|
109 |
* Checks if OrderItemCategory list is non-empty
|
110 |
*
|
112 |
*/
|
113 |
public function isSetOrderItemCategory()
|
114 |
{
|
115 |
+
return count($this->_fields['OrderItemCategory']['FieldValue']) > 0;
|
116 |
}
|
117 |
+
|
118 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/OrderReferenceAttributes.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderReferenceAttributes
|
@@ -34,10 +34,10 @@
|
|
34 |
* <li>SellerOrderAttributes: OffAmazonPaymentsService_Model_SellerOrderAttributes</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
-
*/
|
38 |
class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
-
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_OrderReferenceAttributes
|
43 |
*
|
@@ -55,42 +55,54 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
-
$this->_fields = array
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
);
|
69 |
parent::__construct($data);
|
70 |
}
|
71 |
-
|
72 |
/**
|
73 |
* Gets the value of the OrderTotal.
|
74 |
*
|
75 |
* @return OrderTotal OrderTotal
|
76 |
*/
|
77 |
-
public function getOrderTotal()
|
78 |
{
|
79 |
return $this->_fields['OrderTotal']['FieldValue'];
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the OrderTotal.
|
84 |
*
|
85 |
* @param OrderTotal OrderTotal
|
86 |
* @return void
|
87 |
*/
|
88 |
-
public function setOrderTotal($value)
|
89 |
{
|
90 |
$this->_fields['OrderTotal']['FieldValue'] = $value;
|
91 |
return;
|
92 |
}
|
93 |
-
|
94 |
/**
|
95 |
* Sets the value of the OrderTotal and returns this instance
|
96 |
*
|
@@ -102,8 +114,8 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
102 |
$this->setOrderTotal($value);
|
103 |
return $this;
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
/**
|
108 |
* Checks if OrderTotal is set
|
109 |
*
|
@@ -112,31 +124,31 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
112 |
public function isSetOrderTotal()
|
113 |
{
|
114 |
return !is_null($this->_fields['OrderTotal']['FieldValue']);
|
115 |
-
|
116 |
}
|
117 |
-
|
118 |
/**
|
119 |
* Gets the value of the PlatformId property.
|
120 |
*
|
121 |
* @return string PlatformId
|
122 |
*/
|
123 |
-
public function getPlatformId()
|
124 |
{
|
125 |
return $this->_fields['PlatformId']['FieldValue'];
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the PlatformId property.
|
130 |
*
|
131 |
* @param string PlatformId
|
132 |
* @return this instance
|
133 |
*/
|
134 |
-
public function setPlatformId($value)
|
135 |
{
|
136 |
$this->_fields['PlatformId']['FieldValue'] = $value;
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
/**
|
141 |
* Sets the value of the PlatformId and returns this instance
|
142 |
*
|
@@ -156,31 +168,31 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
156 |
*/
|
157 |
public function isSetPlatformId()
|
158 |
{
|
159 |
-
|
160 |
}
|
161 |
-
|
162 |
/**
|
163 |
* Gets the value of the SellerNote property.
|
164 |
*
|
165 |
* @return string SellerNote
|
166 |
*/
|
167 |
-
public function getSellerNote()
|
168 |
{
|
169 |
return $this->_fields['SellerNote']['FieldValue'];
|
170 |
}
|
171 |
-
|
172 |
/**
|
173 |
* Sets the value of the SellerNote property.
|
174 |
*
|
175 |
* @param string SellerNote
|
176 |
* @return this instance
|
177 |
*/
|
178 |
-
public function setSellerNote($value)
|
179 |
{
|
180 |
$this->_fields['SellerNote']['FieldValue'] = $value;
|
181 |
return $this;
|
182 |
}
|
183 |
-
|
184 |
/**
|
185 |
* Sets the value of the SellerNote and returns this instance
|
186 |
*
|
@@ -192,8 +204,8 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
192 |
$this->setSellerNote($value);
|
193 |
return $this;
|
194 |
}
|
195 |
-
|
196 |
-
|
197 |
/**
|
198 |
* Checks if SellerNote is set
|
199 |
*
|
@@ -203,29 +215,29 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
203 |
{
|
204 |
return !is_null($this->_fields['SellerNote']['FieldValue']);
|
205 |
}
|
206 |
-
|
207 |
/**
|
208 |
* Gets the value of the SellerOrderAttributes.
|
209 |
*
|
210 |
* @return SellerOrderAttributes SellerOrderAttributes
|
211 |
*/
|
212 |
-
public function getSellerOrderAttributes()
|
213 |
{
|
214 |
return $this->_fields['SellerOrderAttributes']['FieldValue'];
|
215 |
}
|
216 |
-
|
217 |
/**
|
218 |
* Sets the value of the SellerOrderAttributes.
|
219 |
*
|
220 |
* @param SellerOrderAttributes SellerOrderAttributes
|
221 |
* @return void
|
222 |
*/
|
223 |
-
public function setSellerOrderAttributes($value)
|
224 |
{
|
225 |
$this->_fields['SellerOrderAttributes']['FieldValue'] = $value;
|
226 |
return;
|
227 |
}
|
228 |
-
|
229 |
/**
|
230 |
* Sets the value of the SellerOrderAttributes and returns this instance
|
231 |
*
|
@@ -237,8 +249,8 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
237 |
$this->setSellerOrderAttributes($value);
|
238 |
return $this;
|
239 |
}
|
240 |
-
|
241 |
-
|
242 |
/**
|
243 |
* Checks if SellerOrderAttributes is set
|
244 |
*
|
@@ -247,10 +259,7 @@ class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonP
|
|
247 |
public function isSetSellerOrderAttributes()
|
248 |
{
|
249 |
return !is_null($this->_fields['SellerOrderAttributes']['FieldValue']);
|
250 |
-
|
251 |
}
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderReferenceAttributes
|
34 |
* <li>SellerOrderAttributes: OffAmazonPaymentsService_Model_SellerOrderAttributes</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
+
*/
|
38 |
class OffAmazonPaymentsService_Model_OrderReferenceAttributes extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
+
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_OrderReferenceAttributes
|
43 |
*
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
+
$this->_fields = array(
|
59 |
+
|
60 |
+
'OrderTotal' => array(
|
61 |
+
'FieldValue' => null,
|
62 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderTotal'
|
63 |
+
),
|
64 |
+
|
65 |
+
'PlatformId' => array(
|
66 |
+
'FieldValue' => null,
|
67 |
+
'FieldType' => 'string'
|
68 |
+
),
|
69 |
+
|
70 |
+
'SellerNote' => array(
|
71 |
+
'FieldValue' => null,
|
72 |
+
'FieldType' => 'string'
|
73 |
+
),
|
74 |
+
|
75 |
+
'SellerOrderAttributes' => array(
|
76 |
+
'FieldValue' => null,
|
77 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_SellerOrderAttributes'
|
78 |
+
)
|
79 |
+
|
80 |
);
|
81 |
parent::__construct($data);
|
82 |
}
|
83 |
+
|
84 |
/**
|
85 |
* Gets the value of the OrderTotal.
|
86 |
*
|
87 |
* @return OrderTotal OrderTotal
|
88 |
*/
|
89 |
+
public function getOrderTotal()
|
90 |
{
|
91 |
return $this->_fields['OrderTotal']['FieldValue'];
|
92 |
}
|
93 |
+
|
94 |
/**
|
95 |
* Sets the value of the OrderTotal.
|
96 |
*
|
97 |
* @param OrderTotal OrderTotal
|
98 |
* @return void
|
99 |
*/
|
100 |
+
public function setOrderTotal($value)
|
101 |
{
|
102 |
$this->_fields['OrderTotal']['FieldValue'] = $value;
|
103 |
return;
|
104 |
}
|
105 |
+
|
106 |
/**
|
107 |
* Sets the value of the OrderTotal and returns this instance
|
108 |
*
|
114 |
$this->setOrderTotal($value);
|
115 |
return $this;
|
116 |
}
|
117 |
+
|
118 |
+
|
119 |
/**
|
120 |
* Checks if OrderTotal is set
|
121 |
*
|
124 |
public function isSetOrderTotal()
|
125 |
{
|
126 |
return !is_null($this->_fields['OrderTotal']['FieldValue']);
|
127 |
+
|
128 |
}
|
129 |
+
|
130 |
/**
|
131 |
* Gets the value of the PlatformId property.
|
132 |
*
|
133 |
* @return string PlatformId
|
134 |
*/
|
135 |
+
public function getPlatformId()
|
136 |
{
|
137 |
return $this->_fields['PlatformId']['FieldValue'];
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Sets the value of the PlatformId property.
|
142 |
*
|
143 |
* @param string PlatformId
|
144 |
* @return this instance
|
145 |
*/
|
146 |
+
public function setPlatformId($value)
|
147 |
{
|
148 |
$this->_fields['PlatformId']['FieldValue'] = $value;
|
149 |
return $this;
|
150 |
}
|
151 |
+
|
152 |
/**
|
153 |
* Sets the value of the PlatformId and returns this instance
|
154 |
*
|
168 |
*/
|
169 |
public function isSetPlatformId()
|
170 |
{
|
171 |
+
return !is_null($this->_fields['PlatformId']['FieldValue']);
|
172 |
}
|
173 |
+
|
174 |
/**
|
175 |
* Gets the value of the SellerNote property.
|
176 |
*
|
177 |
* @return string SellerNote
|
178 |
*/
|
179 |
+
public function getSellerNote()
|
180 |
{
|
181 |
return $this->_fields['SellerNote']['FieldValue'];
|
182 |
}
|
183 |
+
|
184 |
/**
|
185 |
* Sets the value of the SellerNote property.
|
186 |
*
|
187 |
* @param string SellerNote
|
188 |
* @return this instance
|
189 |
*/
|
190 |
+
public function setSellerNote($value)
|
191 |
{
|
192 |
$this->_fields['SellerNote']['FieldValue'] = $value;
|
193 |
return $this;
|
194 |
}
|
195 |
+
|
196 |
/**
|
197 |
* Sets the value of the SellerNote and returns this instance
|
198 |
*
|
204 |
$this->setSellerNote($value);
|
205 |
return $this;
|
206 |
}
|
207 |
+
|
208 |
+
|
209 |
/**
|
210 |
* Checks if SellerNote is set
|
211 |
*
|
215 |
{
|
216 |
return !is_null($this->_fields['SellerNote']['FieldValue']);
|
217 |
}
|
218 |
+
|
219 |
/**
|
220 |
* Gets the value of the SellerOrderAttributes.
|
221 |
*
|
222 |
* @return SellerOrderAttributes SellerOrderAttributes
|
223 |
*/
|
224 |
+
public function getSellerOrderAttributes()
|
225 |
{
|
226 |
return $this->_fields['SellerOrderAttributes']['FieldValue'];
|
227 |
}
|
228 |
+
|
229 |
/**
|
230 |
* Sets the value of the SellerOrderAttributes.
|
231 |
*
|
232 |
* @param SellerOrderAttributes SellerOrderAttributes
|
233 |
* @return void
|
234 |
*/
|
235 |
+
public function setSellerOrderAttributes($value)
|
236 |
{
|
237 |
$this->_fields['SellerOrderAttributes']['FieldValue'] = $value;
|
238 |
return;
|
239 |
}
|
240 |
+
|
241 |
/**
|
242 |
* Sets the value of the SellerOrderAttributes and returns this instance
|
243 |
*
|
249 |
$this->setSellerOrderAttributes($value);
|
250 |
return $this;
|
251 |
}
|
252 |
+
|
253 |
+
|
254 |
/**
|
255 |
* Checks if SellerOrderAttributes is set
|
256 |
*
|
259 |
public function isSetSellerOrderAttributes()
|
260 |
{
|
261 |
return !is_null($this->_fields['SellerOrderAttributes']['FieldValue']);
|
262 |
+
|
263 |
}
|
264 |
+
|
265 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/OrderReferenceDetails.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderReferenceDetails
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>AmazonOrderReferenceId: string</li>
|
32 |
* <li>Buyer: OffAmazonPaymentsService_Model_Buyer</li>
|
33 |
* <li>OrderTotal: OffAmazonPaymentsService_Model_OrderTotal</li>
|
@@ -43,26 +43,27 @@
|
|
43 |
* <li>ExpirationTimestamp: string</li>
|
44 |
* <li>IdList: OffAmazonPaymentsService_Model_IdList</li>
|
45 |
* <li>ParentDetails: OffAmazonPaymentsService_Model_ParentDetails</li>
|
|
|
46 |
* </ul>
|
47 |
-
*/
|
48 |
class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaymentsService_Model
|
49 |
{
|
50 |
-
|
51 |
/**
|
52 |
* Construct new OffAmazonPaymentsService_Model_OrderReferenceDetails
|
53 |
-
*
|
54 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
55 |
-
*
|
56 |
* Valid properties:
|
57 |
* <ul>
|
58 |
-
*
|
59 |
* <li>AmazonOrderReferenceId: string</li>
|
60 |
* <li>Buyer: OffAmazonPaymentsService_Model_Buyer</li>
|
61 |
* <li>OrderTotal: OffAmazonPaymentsService_Model_OrderTotal</li>
|
62 |
* <li>SellerNote: string</li>
|
63 |
* <li>PlatformId: string</li>
|
64 |
* <li>Destination: OffAmazonPaymentsService_Model_Destination</li>
|
65 |
-
* <li>BillingAddress: OffAmazonPaymentsService_Model_BillingAddress</li>
|
66 |
* <li>ReleaseEnvironment: string</li>
|
67 |
* <li>SellerOrderAttributes: OffAmazonPaymentsService_Model_SellerOrderAttributes</li>
|
68 |
* <li>OrderReferenceStatus: OffAmazonPaymentsService_Model_OrderReferenceStatus</li>
|
@@ -71,72 +72,122 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
71 |
* <li>ExpirationTimestamp: string</li>
|
72 |
* <li>IdList: OffAmazonPaymentsService_Model_IdList</li>
|
73 |
* <li>ParentDetails: OffAmazonPaymentsService_Model_ParentDetails</li>
|
74 |
-
*
|
|
|
75 |
* </ul>
|
76 |
*/
|
77 |
public function __construct($data = null)
|
78 |
{
|
79 |
-
$this->_fields = array
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
|
|
|
|
|
|
|
|
111 |
);
|
112 |
parent::__construct($data);
|
113 |
}
|
114 |
-
|
115 |
-
|
116 |
* Gets the value of the AmazonOrderReferenceId property.
|
117 |
-
*
|
118 |
* @return string AmazonOrderReferenceId
|
119 |
*/
|
120 |
-
public function getAmazonOrderReferenceId()
|
121 |
{
|
122 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
123 |
}
|
124 |
-
|
125 |
/**
|
126 |
* Sets the value of the AmazonOrderReferenceId property.
|
127 |
-
*
|
128 |
* @param string AmazonOrderReferenceId
|
129 |
* @return this instance
|
130 |
*/
|
131 |
-
public function setAmazonOrderReferenceId($value)
|
132 |
{
|
133 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
134 |
return $this;
|
135 |
}
|
136 |
-
|
137 |
/**
|
138 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
139 |
-
*
|
140 |
* @param string $value AmazonOrderReferenceId
|
141 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
142 |
*/
|
@@ -145,43 +196,43 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
145 |
$this->setAmazonOrderReferenceId($value);
|
146 |
return $this;
|
147 |
}
|
148 |
-
|
149 |
-
|
150 |
/**
|
151 |
* Checks if AmazonOrderReferenceId is set
|
152 |
-
*
|
153 |
* @return bool true if AmazonOrderReferenceId is set
|
154 |
*/
|
155 |
public function isSetAmazonOrderReferenceId()
|
156 |
{
|
157 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
158 |
}
|
159 |
-
|
160 |
/**
|
161 |
* Gets the value of the Buyer.
|
162 |
-
*
|
163 |
* @return Buyer Buyer
|
164 |
*/
|
165 |
-
public function getBuyer()
|
166 |
{
|
167 |
return $this->_fields['Buyer']['FieldValue'];
|
168 |
}
|
169 |
-
|
170 |
/**
|
171 |
* Sets the value of the Buyer.
|
172 |
-
*
|
173 |
* @param Buyer Buyer
|
174 |
* @return void
|
175 |
*/
|
176 |
-
public function setBuyer($value)
|
177 |
{
|
178 |
$this->_fields['Buyer']['FieldValue'] = $value;
|
179 |
return;
|
180 |
}
|
181 |
-
|
182 |
/**
|
183 |
* Sets the value of the Buyer and returns this instance
|
184 |
-
*
|
185 |
* @param Buyer $value Buyer
|
186 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
187 |
*/
|
@@ -190,44 +241,44 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
190 |
$this->setBuyer($value);
|
191 |
return $this;
|
192 |
}
|
193 |
-
|
194 |
-
|
195 |
/**
|
196 |
* Checks if Buyer is set
|
197 |
-
*
|
198 |
* @return bool true if Buyer property is set
|
199 |
*/
|
200 |
public function isSetBuyer()
|
201 |
{
|
202 |
return !is_null($this->_fields['Buyer']['FieldValue']);
|
203 |
-
|
204 |
}
|
205 |
-
|
206 |
/**
|
207 |
* Gets the value of the OrderTotal.
|
208 |
-
*
|
209 |
* @return OrderTotal OrderTotal
|
210 |
*/
|
211 |
-
public function getOrderTotal()
|
212 |
{
|
213 |
return $this->_fields['OrderTotal']['FieldValue'];
|
214 |
}
|
215 |
-
|
216 |
/**
|
217 |
* Sets the value of the OrderTotal.
|
218 |
-
*
|
219 |
* @param OrderTotal OrderTotal
|
220 |
* @return void
|
221 |
*/
|
222 |
-
public function setOrderTotal($value)
|
223 |
{
|
224 |
$this->_fields['OrderTotal']['FieldValue'] = $value;
|
225 |
return;
|
226 |
}
|
227 |
-
|
228 |
/**
|
229 |
* Sets the value of the OrderTotal and returns this instance
|
230 |
-
*
|
231 |
* @param OrderTotal $value OrderTotal
|
232 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
233 |
*/
|
@@ -236,44 +287,44 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
236 |
$this->setOrderTotal($value);
|
237 |
return $this;
|
238 |
}
|
239 |
-
|
240 |
-
|
241 |
/**
|
242 |
* Checks if OrderTotal is set
|
243 |
-
*
|
244 |
* @return bool true if OrderTotal property is set
|
245 |
*/
|
246 |
public function isSetOrderTotal()
|
247 |
{
|
248 |
return !is_null($this->_fields['OrderTotal']['FieldValue']);
|
249 |
-
|
250 |
}
|
251 |
-
|
252 |
/**
|
253 |
* Gets the value of the SellerNote property.
|
254 |
-
*
|
255 |
* @return string SellerNote
|
256 |
*/
|
257 |
-
public function getSellerNote()
|
258 |
{
|
259 |
return $this->_fields['SellerNote']['FieldValue'];
|
260 |
}
|
261 |
-
|
262 |
/**
|
263 |
* Sets the value of the SellerNote property.
|
264 |
-
*
|
265 |
* @param string SellerNote
|
266 |
* @return this instance
|
267 |
*/
|
268 |
-
public function setSellerNote($value)
|
269 |
{
|
270 |
$this->_fields['SellerNote']['FieldValue'] = $value;
|
271 |
return $this;
|
272 |
}
|
273 |
-
|
274 |
/**
|
275 |
* Sets the value of the SellerNote and returns this instance
|
276 |
-
*
|
277 |
* @param string $value SellerNote
|
278 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
279 |
*/
|
@@ -282,11 +333,11 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
282 |
$this->setSellerNote($value);
|
283 |
return $this;
|
284 |
}
|
285 |
-
|
286 |
-
|
287 |
/**
|
288 |
* Checks if SellerNote is set
|
289 |
-
*
|
290 |
* @return bool true if SellerNote is set
|
291 |
*/
|
292 |
public function isSetSellerNote()
|
@@ -338,32 +389,32 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
338 |
{
|
339 |
return !is_null($this->_fields['PlatformId']['FieldValue']);
|
340 |
}
|
341 |
-
|
342 |
/**
|
343 |
* Gets the value of the Destination.
|
344 |
-
*
|
345 |
* @return Destination Destination
|
346 |
*/
|
347 |
-
public function getDestination()
|
348 |
{
|
349 |
return $this->_fields['Destination']['FieldValue'];
|
350 |
}
|
351 |
-
|
352 |
/**
|
353 |
* Sets the value of the Destination.
|
354 |
-
*
|
355 |
* @param Destination Destination
|
356 |
* @return void
|
357 |
*/
|
358 |
-
public function setDestination($value)
|
359 |
{
|
360 |
$this->_fields['Destination']['FieldValue'] = $value;
|
361 |
return;
|
362 |
}
|
363 |
-
|
364 |
/**
|
365 |
* Sets the value of the Destination and returns this instance
|
366 |
-
*
|
367 |
* @param Destination $value Destination
|
368 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
369 |
*/
|
@@ -372,19 +423,19 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
372 |
$this->setDestination($value);
|
373 |
return $this;
|
374 |
}
|
375 |
-
|
376 |
-
|
377 |
/**
|
378 |
* Checks if Destination is set
|
379 |
-
*
|
380 |
* @return bool true if Destination property is set
|
381 |
*/
|
382 |
public function isSetDestination()
|
383 |
{
|
384 |
return !is_null($this->_fields['Destination']['FieldValue']);
|
385 |
-
|
386 |
}
|
387 |
-
|
388 |
/**
|
389 |
* Gets the value of the BillingAddress.
|
390 |
*
|
@@ -392,7 +443,7 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
392 |
*/
|
393 |
public function getBillingAddress()
|
394 |
{
|
395 |
-
|
396 |
}
|
397 |
|
398 |
/**
|
@@ -403,8 +454,8 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
403 |
*/
|
404 |
public function setBillingAddress($value)
|
405 |
{
|
406 |
-
|
407 |
-
|
408 |
}
|
409 |
|
410 |
/**
|
@@ -415,10 +466,10 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
415 |
*/
|
416 |
public function withBillingAddress($value)
|
417 |
{
|
418 |
-
|
419 |
-
|
420 |
}
|
421 |
-
|
422 |
/**
|
423 |
* Checks if BillingAddress is set
|
424 |
*
|
@@ -426,36 +477,36 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
426 |
*/
|
427 |
public function isSetBillingAddress()
|
428 |
{
|
429 |
-
|
430 |
-
|
431 |
}
|
432 |
|
433 |
|
434 |
/**
|
435 |
* Gets the value of the ReleaseEnvironment property.
|
436 |
-
*
|
437 |
* @return string ReleaseEnvironment
|
438 |
*/
|
439 |
-
public function getReleaseEnvironment()
|
440 |
{
|
441 |
return $this->_fields['ReleaseEnvironment']['FieldValue'];
|
442 |
}
|
443 |
-
|
444 |
/**
|
445 |
* Sets the value of the ReleaseEnvironment property.
|
446 |
-
*
|
447 |
* @param string ReleaseEnvironment
|
448 |
* @return this instance
|
449 |
*/
|
450 |
-
public function setReleaseEnvironment($value)
|
451 |
{
|
452 |
$this->_fields['ReleaseEnvironment']['FieldValue'] = $value;
|
453 |
return $this;
|
454 |
}
|
455 |
-
|
456 |
/**
|
457 |
* Sets the value of the ReleaseEnvironment and returns this instance
|
458 |
-
*
|
459 |
* @param string $value ReleaseEnvironment
|
460 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
461 |
*/
|
@@ -464,43 +515,43 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
464 |
$this->setReleaseEnvironment($value);
|
465 |
return $this;
|
466 |
}
|
467 |
-
|
468 |
-
|
469 |
/**
|
470 |
* Checks if ReleaseEnvironment is set
|
471 |
-
*
|
472 |
* @return bool true if ReleaseEnvironment is set
|
473 |
*/
|
474 |
public function isSetReleaseEnvironment()
|
475 |
{
|
476 |
return !is_null($this->_fields['ReleaseEnvironment']['FieldValue']);
|
477 |
}
|
478 |
-
|
479 |
/**
|
480 |
* Gets the value of the SellerOrderAttributes.
|
481 |
-
*
|
482 |
* @return SellerOrderAttributes SellerOrderAttributes
|
483 |
*/
|
484 |
-
public function getSellerOrderAttributes()
|
485 |
{
|
486 |
return $this->_fields['SellerOrderAttributes']['FieldValue'];
|
487 |
}
|
488 |
-
|
489 |
/**
|
490 |
* Sets the value of the SellerOrderAttributes.
|
491 |
-
*
|
492 |
* @param SellerOrderAttributes SellerOrderAttributes
|
493 |
* @return void
|
494 |
*/
|
495 |
-
public function setSellerOrderAttributes($value)
|
496 |
{
|
497 |
$this->_fields['SellerOrderAttributes']['FieldValue'] = $value;
|
498 |
return;
|
499 |
}
|
500 |
-
|
501 |
/**
|
502 |
* Sets the value of the SellerOrderAttributes and returns this instance
|
503 |
-
*
|
504 |
* @param SellerOrderAttributes $value SellerOrderAttributes
|
505 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
506 |
*/
|
@@ -509,44 +560,44 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
509 |
$this->setSellerOrderAttributes($value);
|
510 |
return $this;
|
511 |
}
|
512 |
-
|
513 |
-
|
514 |
/**
|
515 |
* Checks if SellerOrderAttributes is set
|
516 |
-
*
|
517 |
* @return bool true if SellerOrderAttributes property is set
|
518 |
*/
|
519 |
public function isSetSellerOrderAttributes()
|
520 |
{
|
521 |
return !is_null($this->_fields['SellerOrderAttributes']['FieldValue']);
|
522 |
-
|
523 |
}
|
524 |
|
525 |
/**
|
526 |
* Gets the value of the OrderReferenceStatus.
|
527 |
-
*
|
528 |
* @return OrderReferenceStatus OrderReferenceStatus
|
529 |
*/
|
530 |
-
public function getOrderReferenceStatus()
|
531 |
{
|
532 |
return $this->_fields['OrderReferenceStatus']['FieldValue'];
|
533 |
}
|
534 |
-
|
535 |
/**
|
536 |
* Sets the value of the OrderReferenceStatus.
|
537 |
-
*
|
538 |
* @param OrderReferenceStatus OrderReferenceStatus
|
539 |
* @return void
|
540 |
*/
|
541 |
-
public function setOrderReferenceStatus($value)
|
542 |
{
|
543 |
$this->_fields['OrderReferenceStatus']['FieldValue'] = $value;
|
544 |
return;
|
545 |
}
|
546 |
-
|
547 |
/**
|
548 |
* Sets the value of the OrderReferenceStatus and returns this instance
|
549 |
-
*
|
550 |
* @param OrderReferenceStatus $value OrderReferenceStatus
|
551 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
552 |
*/
|
@@ -555,44 +606,44 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
555 |
$this->setOrderReferenceStatus($value);
|
556 |
return $this;
|
557 |
}
|
558 |
-
|
559 |
-
|
560 |
/**
|
561 |
* Checks if OrderReferenceStatus is set
|
562 |
-
*
|
563 |
* @return bool true if OrderReferenceStatus property is set
|
564 |
*/
|
565 |
public function isSetOrderReferenceStatus()
|
566 |
{
|
567 |
return !is_null($this->_fields['OrderReferenceStatus']['FieldValue']);
|
568 |
-
|
569 |
}
|
570 |
-
|
571 |
/**
|
572 |
* Gets the value of the Constraints.
|
573 |
-
*
|
574 |
* @return Constraints Constraints
|
575 |
*/
|
576 |
-
public function getConstraints()
|
577 |
{
|
578 |
return $this->_fields['Constraints']['FieldValue'];
|
579 |
}
|
580 |
-
|
581 |
/**
|
582 |
* Sets the value of the Constraints.
|
583 |
-
*
|
584 |
* @param Constraints Constraints
|
585 |
* @return void
|
586 |
*/
|
587 |
-
public function setConstraints($value)
|
588 |
{
|
589 |
$this->_fields['Constraints']['FieldValue'] = $value;
|
590 |
return;
|
591 |
}
|
592 |
-
|
593 |
/**
|
594 |
* Sets the value of the Constraints and returns this instance
|
595 |
-
*
|
596 |
* @param Constraints $value Constraints
|
597 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
598 |
*/
|
@@ -601,44 +652,44 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
601 |
$this->setConstraints($value);
|
602 |
return $this;
|
603 |
}
|
604 |
-
|
605 |
-
|
606 |
/**
|
607 |
* Checks if Constraints is set
|
608 |
-
*
|
609 |
* @return bool true if Constraints property is set
|
610 |
*/
|
611 |
public function isSetConstraints()
|
612 |
{
|
613 |
return !is_null($this->_fields['Constraints']['FieldValue']);
|
614 |
-
|
615 |
}
|
616 |
-
|
617 |
/**
|
618 |
* Gets the value of the CreationTimestamp property.
|
619 |
-
*
|
620 |
* @return string CreationTimestamp
|
621 |
*/
|
622 |
-
public function getCreationTimestamp()
|
623 |
{
|
624 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
625 |
}
|
626 |
-
|
627 |
/**
|
628 |
* Sets the value of the CreationTimestamp property.
|
629 |
-
*
|
630 |
* @param string CreationTimestamp
|
631 |
* @return this instance
|
632 |
*/
|
633 |
-
public function setCreationTimestamp($value)
|
634 |
{
|
635 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
636 |
return $this;
|
637 |
}
|
638 |
-
|
639 |
/**
|
640 |
* Sets the value of the CreationTimestamp and returns this instance
|
641 |
-
*
|
642 |
* @param string $value CreationTimestamp
|
643 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
644 |
*/
|
@@ -647,43 +698,43 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
647 |
$this->setCreationTimestamp($value);
|
648 |
return $this;
|
649 |
}
|
650 |
-
|
651 |
-
|
652 |
/**
|
653 |
* Checks if CreationTimestamp is set
|
654 |
-
*
|
655 |
* @return bool true if CreationTimestamp is set
|
656 |
*/
|
657 |
public function isSetCreationTimestamp()
|
658 |
{
|
659 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
660 |
}
|
661 |
-
|
662 |
/**
|
663 |
* Gets the value of the ExpirationTimestamp property.
|
664 |
-
*
|
665 |
* @return string ExpirationTimestamp
|
666 |
*/
|
667 |
-
public function getExpirationTimestamp()
|
668 |
{
|
669 |
return $this->_fields['ExpirationTimestamp']['FieldValue'];
|
670 |
}
|
671 |
-
|
672 |
/**
|
673 |
* Sets the value of the ExpirationTimestamp property.
|
674 |
-
*
|
675 |
* @param string ExpirationTimestamp
|
676 |
* @return this instance
|
677 |
*/
|
678 |
-
public function setExpirationTimestamp($value)
|
679 |
{
|
680 |
$this->_fields['ExpirationTimestamp']['FieldValue'] = $value;
|
681 |
return $this;
|
682 |
}
|
683 |
-
|
684 |
/**
|
685 |
* Sets the value of the ExpirationTimestamp and returns this instance
|
686 |
-
*
|
687 |
* @param string $value ExpirationTimestamp
|
688 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
689 |
*/
|
@@ -692,19 +743,19 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
692 |
$this->setExpirationTimestamp($value);
|
693 |
return $this;
|
694 |
}
|
695 |
-
|
696 |
-
|
697 |
/**
|
698 |
* Checks if ExpirationTimestamp is set
|
699 |
-
*
|
700 |
* @return bool true if ExpirationTimestamp is set
|
701 |
*/
|
702 |
public function isSetExpirationTimestamp()
|
703 |
{
|
704 |
return !is_null($this->_fields['ExpirationTimestamp']['FieldValue']);
|
705 |
}
|
706 |
-
|
707 |
-
|
708 |
/**
|
709 |
* Gets the value of the IdList.
|
710 |
*
|
@@ -712,7 +763,7 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
712 |
*/
|
713 |
public function getIdList()
|
714 |
{
|
715 |
-
|
716 |
}
|
717 |
|
718 |
/**
|
@@ -723,8 +774,8 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
723 |
*/
|
724 |
public function setIdList($value)
|
725 |
{
|
726 |
-
|
727 |
-
|
728 |
}
|
729 |
|
730 |
/**
|
@@ -735,8 +786,8 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
735 |
*/
|
736 |
public function withIdList($value)
|
737 |
{
|
738 |
-
|
739 |
-
|
740 |
}
|
741 |
|
742 |
|
@@ -747,8 +798,8 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
747 |
*/
|
748 |
public function isSetIdList()
|
749 |
{
|
750 |
-
|
751 |
-
|
752 |
}
|
753 |
|
754 |
/**
|
@@ -794,7 +845,53 @@ class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaym
|
|
794 |
public function isSetParentDetails()
|
795 |
{
|
796 |
return !is_null($this->_fields['ParentDetails']['FieldValue']);
|
|
|
|
|
797 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
798 |
}
|
799 |
-
|
800 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderReferenceDetails
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>AmazonOrderReferenceId: string</li>
|
32 |
* <li>Buyer: OffAmazonPaymentsService_Model_Buyer</li>
|
33 |
* <li>OrderTotal: OffAmazonPaymentsService_Model_OrderTotal</li>
|
43 |
* <li>ExpirationTimestamp: string</li>
|
44 |
* <li>IdList: OffAmazonPaymentsService_Model_IdList</li>
|
45 |
* <li>ParentDetails: OffAmazonPaymentsService_Model_ParentDetails</li>
|
46 |
+
* <li>OrderLanguage: string</li>
|
47 |
* </ul>
|
48 |
+
*/
|
49 |
class OffAmazonPaymentsService_Model_OrderReferenceDetails extends OffAmazonPaymentsService_Model
|
50 |
{
|
51 |
+
|
52 |
/**
|
53 |
* Construct new OffAmazonPaymentsService_Model_OrderReferenceDetails
|
54 |
+
*
|
55 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
56 |
+
*
|
57 |
* Valid properties:
|
58 |
* <ul>
|
59 |
+
*
|
60 |
* <li>AmazonOrderReferenceId: string</li>
|
61 |
* <li>Buyer: OffAmazonPaymentsService_Model_Buyer</li>
|
62 |
* <li>OrderTotal: OffAmazonPaymentsService_Model_OrderTotal</li>
|
63 |
* <li>SellerNote: string</li>
|
64 |
* <li>PlatformId: string</li>
|
65 |
* <li>Destination: OffAmazonPaymentsService_Model_Destination</li>
|
66 |
+
* <li>BillingAddress: OffAmazonPaymentsService_Model_BillingAddress</li>
|
67 |
* <li>ReleaseEnvironment: string</li>
|
68 |
* <li>SellerOrderAttributes: OffAmazonPaymentsService_Model_SellerOrderAttributes</li>
|
69 |
* <li>OrderReferenceStatus: OffAmazonPaymentsService_Model_OrderReferenceStatus</li>
|
72 |
* <li>ExpirationTimestamp: string</li>
|
73 |
* <li>IdList: OffAmazonPaymentsService_Model_IdList</li>
|
74 |
* <li>ParentDetails: OffAmazonPaymentsService_Model_ParentDetails</li>
|
75 |
+
* <li>OrderLanguage: string</li>
|
76 |
+
*
|
77 |
* </ul>
|
78 |
*/
|
79 |
public function __construct($data = null)
|
80 |
{
|
81 |
+
$this->_fields = array(
|
82 |
+
'AmazonOrderReferenceId' => array(
|
83 |
+
'FieldValue' => null,
|
84 |
+
'FieldType' => 'string'
|
85 |
+
),
|
86 |
+
|
87 |
+
'Buyer' => array(
|
88 |
+
'FieldValue' => null,
|
89 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Buyer'
|
90 |
+
),
|
91 |
+
|
92 |
+
|
93 |
+
'OrderTotal' => array(
|
94 |
+
'FieldValue' => null,
|
95 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderTotal'
|
96 |
+
),
|
97 |
+
|
98 |
+
'SellerNote' => array(
|
99 |
+
'FieldValue' => null,
|
100 |
+
'FieldType' => 'string'
|
101 |
+
),
|
102 |
+
|
103 |
+
'PlatformId' => array(
|
104 |
+
'FieldValue' => null,
|
105 |
+
'FieldType' => 'string'
|
106 |
+
),
|
107 |
+
|
108 |
+
'Destination' => array(
|
109 |
+
'FieldValue' => null,
|
110 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Destination'
|
111 |
+
),
|
112 |
+
|
113 |
+
'BillingAddress' => array(
|
114 |
+
'FieldValue' => null,
|
115 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAddress'
|
116 |
+
),
|
117 |
+
|
118 |
+
'ReleaseEnvironment' => array(
|
119 |
+
'FieldValue' => null,
|
120 |
+
'FieldType' => 'string'
|
121 |
+
),
|
122 |
+
|
123 |
+
'SellerOrderAttributes' => array(
|
124 |
+
'FieldValue' => null,
|
125 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_SellerOrderAttributes'
|
126 |
+
),
|
127 |
+
|
128 |
+
'OrderReferenceStatus' => array(
|
129 |
+
'FieldValue' => null,
|
130 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceStatus'
|
131 |
+
),
|
132 |
+
|
133 |
+
|
134 |
+
'Constraints' => array(
|
135 |
+
'FieldValue' => null,
|
136 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Constraints'
|
137 |
+
),
|
138 |
+
|
139 |
+
'CreationTimestamp' => array(
|
140 |
+
'FieldValue' => null,
|
141 |
+
'FieldType' => 'string'
|
142 |
+
),
|
143 |
+
'ExpirationTimestamp' => array(
|
144 |
+
'FieldValue' => null,
|
145 |
+
'FieldType' => 'string'
|
146 |
+
),
|
147 |
+
|
148 |
+
'IdList' => array(
|
149 |
+
'FieldValue' => null,
|
150 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_IdList'
|
151 |
+
),
|
152 |
+
|
153 |
+
'ParentDetails' => array(
|
154 |
+
'FieldValue' => null,
|
155 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ParentDetails'
|
156 |
+
),
|
157 |
|
158 |
+
'OrderLanguage' => array(
|
159 |
+
'FieldValue' => null,
|
160 |
+
'FieldType' => 'string'
|
161 |
+
)
|
162 |
);
|
163 |
parent::__construct($data);
|
164 |
}
|
165 |
+
|
166 |
+
/**
|
167 |
* Gets the value of the AmazonOrderReferenceId property.
|
168 |
+
*
|
169 |
* @return string AmazonOrderReferenceId
|
170 |
*/
|
171 |
+
public function getAmazonOrderReferenceId()
|
172 |
{
|
173 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
174 |
}
|
175 |
+
|
176 |
/**
|
177 |
* Sets the value of the AmazonOrderReferenceId property.
|
178 |
+
*
|
179 |
* @param string AmazonOrderReferenceId
|
180 |
* @return this instance
|
181 |
*/
|
182 |
+
public function setAmazonOrderReferenceId($value)
|
183 |
{
|
184 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
185 |
return $this;
|
186 |
}
|
187 |
+
|
188 |
/**
|
189 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
190 |
+
*
|
191 |
* @param string $value AmazonOrderReferenceId
|
192 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
193 |
*/
|
196 |
$this->setAmazonOrderReferenceId($value);
|
197 |
return $this;
|
198 |
}
|
199 |
+
|
200 |
+
|
201 |
/**
|
202 |
* Checks if AmazonOrderReferenceId is set
|
203 |
+
*
|
204 |
* @return bool true if AmazonOrderReferenceId is set
|
205 |
*/
|
206 |
public function isSetAmazonOrderReferenceId()
|
207 |
{
|
208 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
209 |
}
|
210 |
+
|
211 |
/**
|
212 |
* Gets the value of the Buyer.
|
213 |
+
*
|
214 |
* @return Buyer Buyer
|
215 |
*/
|
216 |
+
public function getBuyer()
|
217 |
{
|
218 |
return $this->_fields['Buyer']['FieldValue'];
|
219 |
}
|
220 |
+
|
221 |
/**
|
222 |
* Sets the value of the Buyer.
|
223 |
+
*
|
224 |
* @param Buyer Buyer
|
225 |
* @return void
|
226 |
*/
|
227 |
+
public function setBuyer($value)
|
228 |
{
|
229 |
$this->_fields['Buyer']['FieldValue'] = $value;
|
230 |
return;
|
231 |
}
|
232 |
+
|
233 |
/**
|
234 |
* Sets the value of the Buyer and returns this instance
|
235 |
+
*
|
236 |
* @param Buyer $value Buyer
|
237 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
238 |
*/
|
241 |
$this->setBuyer($value);
|
242 |
return $this;
|
243 |
}
|
244 |
+
|
245 |
+
|
246 |
/**
|
247 |
* Checks if Buyer is set
|
248 |
+
*
|
249 |
* @return bool true if Buyer property is set
|
250 |
*/
|
251 |
public function isSetBuyer()
|
252 |
{
|
253 |
return !is_null($this->_fields['Buyer']['FieldValue']);
|
254 |
+
|
255 |
}
|
256 |
+
|
257 |
/**
|
258 |
* Gets the value of the OrderTotal.
|
259 |
+
*
|
260 |
* @return OrderTotal OrderTotal
|
261 |
*/
|
262 |
+
public function getOrderTotal()
|
263 |
{
|
264 |
return $this->_fields['OrderTotal']['FieldValue'];
|
265 |
}
|
266 |
+
|
267 |
/**
|
268 |
* Sets the value of the OrderTotal.
|
269 |
+
*
|
270 |
* @param OrderTotal OrderTotal
|
271 |
* @return void
|
272 |
*/
|
273 |
+
public function setOrderTotal($value)
|
274 |
{
|
275 |
$this->_fields['OrderTotal']['FieldValue'] = $value;
|
276 |
return;
|
277 |
}
|
278 |
+
|
279 |
/**
|
280 |
* Sets the value of the OrderTotal and returns this instance
|
281 |
+
*
|
282 |
* @param OrderTotal $value OrderTotal
|
283 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
284 |
*/
|
287 |
$this->setOrderTotal($value);
|
288 |
return $this;
|
289 |
}
|
290 |
+
|
291 |
+
|
292 |
/**
|
293 |
* Checks if OrderTotal is set
|
294 |
+
*
|
295 |
* @return bool true if OrderTotal property is set
|
296 |
*/
|
297 |
public function isSetOrderTotal()
|
298 |
{
|
299 |
return !is_null($this->_fields['OrderTotal']['FieldValue']);
|
300 |
+
|
301 |
}
|
302 |
+
|
303 |
/**
|
304 |
* Gets the value of the SellerNote property.
|
305 |
+
*
|
306 |
* @return string SellerNote
|
307 |
*/
|
308 |
+
public function getSellerNote()
|
309 |
{
|
310 |
return $this->_fields['SellerNote']['FieldValue'];
|
311 |
}
|
312 |
+
|
313 |
/**
|
314 |
* Sets the value of the SellerNote property.
|
315 |
+
*
|
316 |
* @param string SellerNote
|
317 |
* @return this instance
|
318 |
*/
|
319 |
+
public function setSellerNote($value)
|
320 |
{
|
321 |
$this->_fields['SellerNote']['FieldValue'] = $value;
|
322 |
return $this;
|
323 |
}
|
324 |
+
|
325 |
/**
|
326 |
* Sets the value of the SellerNote and returns this instance
|
327 |
+
*
|
328 |
* @param string $value SellerNote
|
329 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
330 |
*/
|
333 |
$this->setSellerNote($value);
|
334 |
return $this;
|
335 |
}
|
336 |
+
|
337 |
+
|
338 |
/**
|
339 |
* Checks if SellerNote is set
|
340 |
+
*
|
341 |
* @return bool true if SellerNote is set
|
342 |
*/
|
343 |
public function isSetSellerNote()
|
389 |
{
|
390 |
return !is_null($this->_fields['PlatformId']['FieldValue']);
|
391 |
}
|
392 |
+
|
393 |
/**
|
394 |
* Gets the value of the Destination.
|
395 |
+
*
|
396 |
* @return Destination Destination
|
397 |
*/
|
398 |
+
public function getDestination()
|
399 |
{
|
400 |
return $this->_fields['Destination']['FieldValue'];
|
401 |
}
|
402 |
+
|
403 |
/**
|
404 |
* Sets the value of the Destination.
|
405 |
+
*
|
406 |
* @param Destination Destination
|
407 |
* @return void
|
408 |
*/
|
409 |
+
public function setDestination($value)
|
410 |
{
|
411 |
$this->_fields['Destination']['FieldValue'] = $value;
|
412 |
return;
|
413 |
}
|
414 |
+
|
415 |
/**
|
416 |
* Sets the value of the Destination and returns this instance
|
417 |
+
*
|
418 |
* @param Destination $value Destination
|
419 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
420 |
*/
|
423 |
$this->setDestination($value);
|
424 |
return $this;
|
425 |
}
|
426 |
+
|
427 |
+
|
428 |
/**
|
429 |
* Checks if Destination is set
|
430 |
+
*
|
431 |
* @return bool true if Destination property is set
|
432 |
*/
|
433 |
public function isSetDestination()
|
434 |
{
|
435 |
return !is_null($this->_fields['Destination']['FieldValue']);
|
436 |
+
|
437 |
}
|
438 |
+
|
439 |
/**
|
440 |
* Gets the value of the BillingAddress.
|
441 |
*
|
443 |
*/
|
444 |
public function getBillingAddress()
|
445 |
{
|
446 |
+
return $this->_fields['BillingAddress']['FieldValue'];
|
447 |
}
|
448 |
|
449 |
/**
|
454 |
*/
|
455 |
public function setBillingAddress($value)
|
456 |
{
|
457 |
+
$this->_fields['BillingAddress']['FieldValue'] = $value;
|
458 |
+
return;
|
459 |
}
|
460 |
|
461 |
/**
|
466 |
*/
|
467 |
public function withBillingAddress($value)
|
468 |
{
|
469 |
+
$this->setBillingAddress($value);
|
470 |
+
return $this;
|
471 |
}
|
472 |
+
|
473 |
/**
|
474 |
* Checks if BillingAddress is set
|
475 |
*
|
477 |
*/
|
478 |
public function isSetBillingAddress()
|
479 |
{
|
480 |
+
return !is_null($this->_fields['BillingAddress']['FieldValue']);
|
481 |
+
|
482 |
}
|
483 |
|
484 |
|
485 |
/**
|
486 |
* Gets the value of the ReleaseEnvironment property.
|
487 |
+
*
|
488 |
* @return string ReleaseEnvironment
|
489 |
*/
|
490 |
+
public function getReleaseEnvironment()
|
491 |
{
|
492 |
return $this->_fields['ReleaseEnvironment']['FieldValue'];
|
493 |
}
|
494 |
+
|
495 |
/**
|
496 |
* Sets the value of the ReleaseEnvironment property.
|
497 |
+
*
|
498 |
* @param string ReleaseEnvironment
|
499 |
* @return this instance
|
500 |
*/
|
501 |
+
public function setReleaseEnvironment($value)
|
502 |
{
|
503 |
$this->_fields['ReleaseEnvironment']['FieldValue'] = $value;
|
504 |
return $this;
|
505 |
}
|
506 |
+
|
507 |
/**
|
508 |
* Sets the value of the ReleaseEnvironment and returns this instance
|
509 |
+
*
|
510 |
* @param string $value ReleaseEnvironment
|
511 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
512 |
*/
|
515 |
$this->setReleaseEnvironment($value);
|
516 |
return $this;
|
517 |
}
|
518 |
+
|
519 |
+
|
520 |
/**
|
521 |
* Checks if ReleaseEnvironment is set
|
522 |
+
*
|
523 |
* @return bool true if ReleaseEnvironment is set
|
524 |
*/
|
525 |
public function isSetReleaseEnvironment()
|
526 |
{
|
527 |
return !is_null($this->_fields['ReleaseEnvironment']['FieldValue']);
|
528 |
}
|
529 |
+
|
530 |
/**
|
531 |
* Gets the value of the SellerOrderAttributes.
|
532 |
+
*
|
533 |
* @return SellerOrderAttributes SellerOrderAttributes
|
534 |
*/
|
535 |
+
public function getSellerOrderAttributes()
|
536 |
{
|
537 |
return $this->_fields['SellerOrderAttributes']['FieldValue'];
|
538 |
}
|
539 |
+
|
540 |
/**
|
541 |
* Sets the value of the SellerOrderAttributes.
|
542 |
+
*
|
543 |
* @param SellerOrderAttributes SellerOrderAttributes
|
544 |
* @return void
|
545 |
*/
|
546 |
+
public function setSellerOrderAttributes($value)
|
547 |
{
|
548 |
$this->_fields['SellerOrderAttributes']['FieldValue'] = $value;
|
549 |
return;
|
550 |
}
|
551 |
+
|
552 |
/**
|
553 |
* Sets the value of the SellerOrderAttributes and returns this instance
|
554 |
+
*
|
555 |
* @param SellerOrderAttributes $value SellerOrderAttributes
|
556 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
557 |
*/
|
560 |
$this->setSellerOrderAttributes($value);
|
561 |
return $this;
|
562 |
}
|
563 |
+
|
564 |
+
|
565 |
/**
|
566 |
* Checks if SellerOrderAttributes is set
|
567 |
+
*
|
568 |
* @return bool true if SellerOrderAttributes property is set
|
569 |
*/
|
570 |
public function isSetSellerOrderAttributes()
|
571 |
{
|
572 |
return !is_null($this->_fields['SellerOrderAttributes']['FieldValue']);
|
573 |
+
|
574 |
}
|
575 |
|
576 |
/**
|
577 |
* Gets the value of the OrderReferenceStatus.
|
578 |
+
*
|
579 |
* @return OrderReferenceStatus OrderReferenceStatus
|
580 |
*/
|
581 |
+
public function getOrderReferenceStatus()
|
582 |
{
|
583 |
return $this->_fields['OrderReferenceStatus']['FieldValue'];
|
584 |
}
|
585 |
+
|
586 |
/**
|
587 |
* Sets the value of the OrderReferenceStatus.
|
588 |
+
*
|
589 |
* @param OrderReferenceStatus OrderReferenceStatus
|
590 |
* @return void
|
591 |
*/
|
592 |
+
public function setOrderReferenceStatus($value)
|
593 |
{
|
594 |
$this->_fields['OrderReferenceStatus']['FieldValue'] = $value;
|
595 |
return;
|
596 |
}
|
597 |
+
|
598 |
/**
|
599 |
* Sets the value of the OrderReferenceStatus and returns this instance
|
600 |
+
*
|
601 |
* @param OrderReferenceStatus $value OrderReferenceStatus
|
602 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
603 |
*/
|
606 |
$this->setOrderReferenceStatus($value);
|
607 |
return $this;
|
608 |
}
|
609 |
+
|
610 |
+
|
611 |
/**
|
612 |
* Checks if OrderReferenceStatus is set
|
613 |
+
*
|
614 |
* @return bool true if OrderReferenceStatus property is set
|
615 |
*/
|
616 |
public function isSetOrderReferenceStatus()
|
617 |
{
|
618 |
return !is_null($this->_fields['OrderReferenceStatus']['FieldValue']);
|
619 |
+
|
620 |
}
|
621 |
+
|
622 |
/**
|
623 |
* Gets the value of the Constraints.
|
624 |
+
*
|
625 |
* @return Constraints Constraints
|
626 |
*/
|
627 |
+
public function getConstraints()
|
628 |
{
|
629 |
return $this->_fields['Constraints']['FieldValue'];
|
630 |
}
|
631 |
+
|
632 |
/**
|
633 |
* Sets the value of the Constraints.
|
634 |
+
*
|
635 |
* @param Constraints Constraints
|
636 |
* @return void
|
637 |
*/
|
638 |
+
public function setConstraints($value)
|
639 |
{
|
640 |
$this->_fields['Constraints']['FieldValue'] = $value;
|
641 |
return;
|
642 |
}
|
643 |
+
|
644 |
/**
|
645 |
* Sets the value of the Constraints and returns this instance
|
646 |
+
*
|
647 |
* @param Constraints $value Constraints
|
648 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
649 |
*/
|
652 |
$this->setConstraints($value);
|
653 |
return $this;
|
654 |
}
|
655 |
+
|
656 |
+
|
657 |
/**
|
658 |
* Checks if Constraints is set
|
659 |
+
*
|
660 |
* @return bool true if Constraints property is set
|
661 |
*/
|
662 |
public function isSetConstraints()
|
663 |
{
|
664 |
return !is_null($this->_fields['Constraints']['FieldValue']);
|
665 |
+
|
666 |
}
|
667 |
+
|
668 |
/**
|
669 |
* Gets the value of the CreationTimestamp property.
|
670 |
+
*
|
671 |
* @return string CreationTimestamp
|
672 |
*/
|
673 |
+
public function getCreationTimestamp()
|
674 |
{
|
675 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
676 |
}
|
677 |
+
|
678 |
/**
|
679 |
* Sets the value of the CreationTimestamp property.
|
680 |
+
*
|
681 |
* @param string CreationTimestamp
|
682 |
* @return this instance
|
683 |
*/
|
684 |
+
public function setCreationTimestamp($value)
|
685 |
{
|
686 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
687 |
return $this;
|
688 |
}
|
689 |
+
|
690 |
/**
|
691 |
* Sets the value of the CreationTimestamp and returns this instance
|
692 |
+
*
|
693 |
* @param string $value CreationTimestamp
|
694 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
695 |
*/
|
698 |
$this->setCreationTimestamp($value);
|
699 |
return $this;
|
700 |
}
|
701 |
+
|
702 |
+
|
703 |
/**
|
704 |
* Checks if CreationTimestamp is set
|
705 |
+
*
|
706 |
* @return bool true if CreationTimestamp is set
|
707 |
*/
|
708 |
public function isSetCreationTimestamp()
|
709 |
{
|
710 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
711 |
}
|
712 |
+
|
713 |
/**
|
714 |
* Gets the value of the ExpirationTimestamp property.
|
715 |
+
*
|
716 |
* @return string ExpirationTimestamp
|
717 |
*/
|
718 |
+
public function getExpirationTimestamp()
|
719 |
{
|
720 |
return $this->_fields['ExpirationTimestamp']['FieldValue'];
|
721 |
}
|
722 |
+
|
723 |
/**
|
724 |
* Sets the value of the ExpirationTimestamp property.
|
725 |
+
*
|
726 |
* @param string ExpirationTimestamp
|
727 |
* @return this instance
|
728 |
*/
|
729 |
+
public function setExpirationTimestamp($value)
|
730 |
{
|
731 |
$this->_fields['ExpirationTimestamp']['FieldValue'] = $value;
|
732 |
return $this;
|
733 |
}
|
734 |
+
|
735 |
/**
|
736 |
* Sets the value of the ExpirationTimestamp and returns this instance
|
737 |
+
*
|
738 |
* @param string $value ExpirationTimestamp
|
739 |
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
740 |
*/
|
743 |
$this->setExpirationTimestamp($value);
|
744 |
return $this;
|
745 |
}
|
746 |
+
|
747 |
+
|
748 |
/**
|
749 |
* Checks if ExpirationTimestamp is set
|
750 |
+
*
|
751 |
* @return bool true if ExpirationTimestamp is set
|
752 |
*/
|
753 |
public function isSetExpirationTimestamp()
|
754 |
{
|
755 |
return !is_null($this->_fields['ExpirationTimestamp']['FieldValue']);
|
756 |
}
|
757 |
+
|
758 |
+
|
759 |
/**
|
760 |
* Gets the value of the IdList.
|
761 |
*
|
763 |
*/
|
764 |
public function getIdList()
|
765 |
{
|
766 |
+
return $this->_fields['IdList']['FieldValue'];
|
767 |
}
|
768 |
|
769 |
/**
|
774 |
*/
|
775 |
public function setIdList($value)
|
776 |
{
|
777 |
+
$this->_fields['IdList']['FieldValue'] = $value;
|
778 |
+
return;
|
779 |
}
|
780 |
|
781 |
/**
|
786 |
*/
|
787 |
public function withIdList($value)
|
788 |
{
|
789 |
+
$this->setIdList($value);
|
790 |
+
return $this;
|
791 |
}
|
792 |
|
793 |
|
798 |
*/
|
799 |
public function isSetIdList()
|
800 |
{
|
801 |
+
return !is_null($this->_fields['IdList']['FieldValue']);
|
802 |
+
|
803 |
}
|
804 |
|
805 |
/**
|
845 |
public function isSetParentDetails()
|
846 |
{
|
847 |
return !is_null($this->_fields['ParentDetails']['FieldValue']);
|
848 |
+
|
849 |
+
}
|
850 |
|
851 |
+
/**
|
852 |
+
* Gets the value of the OrderLanguage.
|
853 |
+
*
|
854 |
+
* @return string OrderLanguage
|
855 |
+
*/
|
856 |
+
public function getOrderLanguage()
|
857 |
+
{
|
858 |
+
return $this->_fields['OrderLanguage']['FieldValue'];
|
859 |
}
|
860 |
+
|
861 |
+
/**
|
862 |
+
* Sets the value of the OrderLanguage.
|
863 |
+
*
|
864 |
+
* @param string OrderLanguage
|
865 |
+
* @return this instance
|
866 |
+
*/
|
867 |
+
public function setOrderLanguage($value)
|
868 |
+
{
|
869 |
+
$this->_fields['OrderLanguage']['FieldValue'] = $value;
|
870 |
+
return $this;
|
871 |
+
}
|
872 |
+
|
873 |
+
/**
|
874 |
+
* Sets the value of the OrderLanguage and returns this instance
|
875 |
+
*
|
876 |
+
* @param ParentDetails $value OrderLanguage
|
877 |
+
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails instance
|
878 |
+
*/
|
879 |
+
public function withOrderLanguage($value)
|
880 |
+
{
|
881 |
+
$this->setOrderLanguage($value);
|
882 |
+
return $this;
|
883 |
+
}
|
884 |
+
|
885 |
+
|
886 |
+
/**
|
887 |
+
* Checks if OrderLanguage is set
|
888 |
+
*
|
889 |
+
* @return bool true if OrderLanguage property is set
|
890 |
+
*/
|
891 |
+
public function isSetOrderLanguage()
|
892 |
+
{
|
893 |
+
return !is_null($this->_fields['OrderLanguage']['FieldValue']);
|
894 |
+
|
895 |
+
}
|
896 |
+
|
897 |
+
}
|
lib/OffAmazonPaymentsService/Model/OrderReferenceStatus.php
CHANGED
@@ -20,32 +20,32 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderReferenceStatus
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>State: string</li>
|
32 |
* <li>LastUpdateTimestamp: string</li>
|
33 |
* <li>ReasonCode: string</li>
|
34 |
* <li>ReasonDescription: string</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
-
*/
|
38 |
class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
-
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_OrderReferenceStatus
|
43 |
-
*
|
44 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
-
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
-
*
|
49 |
* <li>State: string</li>
|
50 |
* <li>LastUpdateTimestamp: string</li>
|
51 |
* <li>ReasonCode: string</li>
|
@@ -55,40 +55,52 @@ class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPayme
|
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
-
$this->_fields = array
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
);
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
-
|
67 |
-
|
68 |
* Gets the value of the State property.
|
69 |
-
*
|
70 |
* @return string State
|
71 |
*/
|
72 |
-
public function getState()
|
73 |
{
|
74 |
return $this->_fields['State']['FieldValue'];
|
75 |
}
|
76 |
-
|
77 |
/**
|
78 |
* Sets the value of the State property.
|
79 |
-
*
|
80 |
* @param string State
|
81 |
* @return this instance
|
82 |
*/
|
83 |
-
public function setState($value)
|
84 |
{
|
85 |
$this->_fields['State']['FieldValue'] = $value;
|
86 |
return $this;
|
87 |
}
|
88 |
-
|
89 |
/**
|
90 |
* Sets the value of the State and returns this instance
|
91 |
-
*
|
92 |
* @param string $value State
|
93 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
94 |
*/
|
@@ -97,43 +109,43 @@ class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPayme
|
|
97 |
$this->setState($value);
|
98 |
return $this;
|
99 |
}
|
100 |
-
|
101 |
-
|
102 |
/**
|
103 |
* Checks if State is set
|
104 |
-
*
|
105 |
* @return bool true if State is set
|
106 |
*/
|
107 |
public function isSetState()
|
108 |
{
|
109 |
return !is_null($this->_fields['State']['FieldValue']);
|
110 |
}
|
111 |
-
|
112 |
/**
|
113 |
* Gets the value of the LastUpdateTimestamp property.
|
114 |
-
*
|
115 |
* @return string LastUpdateTimestamp
|
116 |
*/
|
117 |
-
public function getLastUpdateTimestamp()
|
118 |
{
|
119 |
return $this->_fields['LastUpdateTimestamp']['FieldValue'];
|
120 |
}
|
121 |
-
|
122 |
/**
|
123 |
* Sets the value of the LastUpdateTimestamp property.
|
124 |
-
*
|
125 |
* @param string LastUpdateTimestamp
|
126 |
* @return this instance
|
127 |
*/
|
128 |
-
public function setLastUpdateTimestamp($value)
|
129 |
{
|
130 |
$this->_fields['LastUpdateTimestamp']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Sets the value of the LastUpdateTimestamp and returns this instance
|
136 |
-
*
|
137 |
* @param string $value LastUpdateTimestamp
|
138 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
139 |
*/
|
@@ -142,43 +154,43 @@ class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPayme
|
|
142 |
$this->setLastUpdateTimestamp($value);
|
143 |
return $this;
|
144 |
}
|
145 |
-
|
146 |
-
|
147 |
/**
|
148 |
* Checks if LastUpdateTimestamp is set
|
149 |
-
*
|
150 |
* @return bool true if LastUpdateTimestamp is set
|
151 |
*/
|
152 |
public function isSetLastUpdateTimestamp()
|
153 |
{
|
154 |
return !is_null($this->_fields['LastUpdateTimestamp']['FieldValue']);
|
155 |
}
|
156 |
-
|
157 |
/**
|
158 |
* Gets the value of the ReasonCode property.
|
159 |
-
*
|
160 |
* @return string ReasonCode
|
161 |
*/
|
162 |
-
public function getReasonCode()
|
163 |
{
|
164 |
return $this->_fields['ReasonCode']['FieldValue'];
|
165 |
}
|
166 |
-
|
167 |
/**
|
168 |
* Sets the value of the ReasonCode property.
|
169 |
-
*
|
170 |
* @param string ReasonCode
|
171 |
* @return this instance
|
172 |
*/
|
173 |
-
public function setReasonCode($value)
|
174 |
{
|
175 |
$this->_fields['ReasonCode']['FieldValue'] = $value;
|
176 |
return $this;
|
177 |
}
|
178 |
-
|
179 |
/**
|
180 |
* Sets the value of the ReasonCode and returns this instance
|
181 |
-
*
|
182 |
* @param string $value ReasonCode
|
183 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
184 |
*/
|
@@ -187,43 +199,43 @@ class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPayme
|
|
187 |
$this->setReasonCode($value);
|
188 |
return $this;
|
189 |
}
|
190 |
-
|
191 |
-
|
192 |
/**
|
193 |
* Checks if ReasonCode is set
|
194 |
-
*
|
195 |
* @return bool true if ReasonCode is set
|
196 |
*/
|
197 |
public function isSetReasonCode()
|
198 |
{
|
199 |
return !is_null($this->_fields['ReasonCode']['FieldValue']);
|
200 |
}
|
201 |
-
|
202 |
/**
|
203 |
* Gets the value of the ReasonDescription property.
|
204 |
-
*
|
205 |
* @return string ReasonDescription
|
206 |
*/
|
207 |
-
public function getReasonDescription()
|
208 |
{
|
209 |
return $this->_fields['ReasonDescription']['FieldValue'];
|
210 |
}
|
211 |
-
|
212 |
/**
|
213 |
* Sets the value of the ReasonDescription property.
|
214 |
-
*
|
215 |
* @param string ReasonDescription
|
216 |
* @return this instance
|
217 |
*/
|
218 |
-
public function setReasonDescription($value)
|
219 |
{
|
220 |
$this->_fields['ReasonDescription']['FieldValue'] = $value;
|
221 |
return $this;
|
222 |
}
|
223 |
-
|
224 |
/**
|
225 |
* Sets the value of the ReasonDescription and returns this instance
|
226 |
-
*
|
227 |
* @param string $value ReasonDescription
|
228 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
229 |
*/
|
@@ -232,19 +244,16 @@ class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPayme
|
|
232 |
$this->setReasonDescription($value);
|
233 |
return $this;
|
234 |
}
|
235 |
-
|
236 |
-
|
237 |
/**
|
238 |
* Checks if ReasonDescription is set
|
239 |
-
*
|
240 |
* @return bool true if ReasonDescription is set
|
241 |
*/
|
242 |
public function isSetReasonDescription()
|
243 |
{
|
244 |
return !is_null($this->_fields['ReasonDescription']['FieldValue']);
|
245 |
}
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderReferenceStatus
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>State: string</li>
|
32 |
* <li>LastUpdateTimestamp: string</li>
|
33 |
* <li>ReasonCode: string</li>
|
34 |
* <li>ReasonDescription: string</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
+
*/
|
38 |
class OffAmazonPaymentsService_Model_OrderReferenceStatus extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
+
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_OrderReferenceStatus
|
43 |
+
*
|
44 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
+
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
+
*
|
49 |
* <li>State: string</li>
|
50 |
* <li>LastUpdateTimestamp: string</li>
|
51 |
* <li>ReasonCode: string</li>
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
+
$this->_fields = array(
|
59 |
+
'State' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'LastUpdateTimestamp' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
),
|
67 |
+
'ReasonCode' => array(
|
68 |
+
'FieldValue' => null,
|
69 |
+
'FieldType' => 'string'
|
70 |
+
),
|
71 |
+
'ReasonDescription' => array(
|
72 |
+
'FieldValue' => null,
|
73 |
+
'FieldType' => 'string'
|
74 |
+
)
|
75 |
);
|
76 |
parent::__construct($data);
|
77 |
}
|
78 |
+
|
79 |
+
/**
|
80 |
* Gets the value of the State property.
|
81 |
+
*
|
82 |
* @return string State
|
83 |
*/
|
84 |
+
public function getState()
|
85 |
{
|
86 |
return $this->_fields['State']['FieldValue'];
|
87 |
}
|
88 |
+
|
89 |
/**
|
90 |
* Sets the value of the State property.
|
91 |
+
*
|
92 |
* @param string State
|
93 |
* @return this instance
|
94 |
*/
|
95 |
+
public function setState($value)
|
96 |
{
|
97 |
$this->_fields['State']['FieldValue'] = $value;
|
98 |
return $this;
|
99 |
}
|
100 |
+
|
101 |
/**
|
102 |
* Sets the value of the State and returns this instance
|
103 |
+
*
|
104 |
* @param string $value State
|
105 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
106 |
*/
|
109 |
$this->setState($value);
|
110 |
return $this;
|
111 |
}
|
112 |
+
|
113 |
+
|
114 |
/**
|
115 |
* Checks if State is set
|
116 |
+
*
|
117 |
* @return bool true if State is set
|
118 |
*/
|
119 |
public function isSetState()
|
120 |
{
|
121 |
return !is_null($this->_fields['State']['FieldValue']);
|
122 |
}
|
123 |
+
|
124 |
/**
|
125 |
* Gets the value of the LastUpdateTimestamp property.
|
126 |
+
*
|
127 |
* @return string LastUpdateTimestamp
|
128 |
*/
|
129 |
+
public function getLastUpdateTimestamp()
|
130 |
{
|
131 |
return $this->_fields['LastUpdateTimestamp']['FieldValue'];
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Sets the value of the LastUpdateTimestamp property.
|
136 |
+
*
|
137 |
* @param string LastUpdateTimestamp
|
138 |
* @return this instance
|
139 |
*/
|
140 |
+
public function setLastUpdateTimestamp($value)
|
141 |
{
|
142 |
$this->_fields['LastUpdateTimestamp']['FieldValue'] = $value;
|
143 |
return $this;
|
144 |
}
|
145 |
+
|
146 |
/**
|
147 |
* Sets the value of the LastUpdateTimestamp and returns this instance
|
148 |
+
*
|
149 |
* @param string $value LastUpdateTimestamp
|
150 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
151 |
*/
|
154 |
$this->setLastUpdateTimestamp($value);
|
155 |
return $this;
|
156 |
}
|
157 |
+
|
158 |
+
|
159 |
/**
|
160 |
* Checks if LastUpdateTimestamp is set
|
161 |
+
*
|
162 |
* @return bool true if LastUpdateTimestamp is set
|
163 |
*/
|
164 |
public function isSetLastUpdateTimestamp()
|
165 |
{
|
166 |
return !is_null($this->_fields['LastUpdateTimestamp']['FieldValue']);
|
167 |
}
|
168 |
+
|
169 |
/**
|
170 |
* Gets the value of the ReasonCode property.
|
171 |
+
*
|
172 |
* @return string ReasonCode
|
173 |
*/
|
174 |
+
public function getReasonCode()
|
175 |
{
|
176 |
return $this->_fields['ReasonCode']['FieldValue'];
|
177 |
}
|
178 |
+
|
179 |
/**
|
180 |
* Sets the value of the ReasonCode property.
|
181 |
+
*
|
182 |
* @param string ReasonCode
|
183 |
* @return this instance
|
184 |
*/
|
185 |
+
public function setReasonCode($value)
|
186 |
{
|
187 |
$this->_fields['ReasonCode']['FieldValue'] = $value;
|
188 |
return $this;
|
189 |
}
|
190 |
+
|
191 |
/**
|
192 |
* Sets the value of the ReasonCode and returns this instance
|
193 |
+
*
|
194 |
* @param string $value ReasonCode
|
195 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
196 |
*/
|
199 |
$this->setReasonCode($value);
|
200 |
return $this;
|
201 |
}
|
202 |
+
|
203 |
+
|
204 |
/**
|
205 |
* Checks if ReasonCode is set
|
206 |
+
*
|
207 |
* @return bool true if ReasonCode is set
|
208 |
*/
|
209 |
public function isSetReasonCode()
|
210 |
{
|
211 |
return !is_null($this->_fields['ReasonCode']['FieldValue']);
|
212 |
}
|
213 |
+
|
214 |
/**
|
215 |
* Gets the value of the ReasonDescription property.
|
216 |
+
*
|
217 |
* @return string ReasonDescription
|
218 |
*/
|
219 |
+
public function getReasonDescription()
|
220 |
{
|
221 |
return $this->_fields['ReasonDescription']['FieldValue'];
|
222 |
}
|
223 |
+
|
224 |
/**
|
225 |
* Sets the value of the ReasonDescription property.
|
226 |
+
*
|
227 |
* @param string ReasonDescription
|
228 |
* @return this instance
|
229 |
*/
|
230 |
+
public function setReasonDescription($value)
|
231 |
{
|
232 |
$this->_fields['ReasonDescription']['FieldValue'] = $value;
|
233 |
return $this;
|
234 |
}
|
235 |
+
|
236 |
/**
|
237 |
* Sets the value of the ReasonDescription and returns this instance
|
238 |
+
*
|
239 |
* @param string $value ReasonDescription
|
240 |
* @return OffAmazonPaymentsService_Model_OrderReferenceStatus instance
|
241 |
*/
|
244 |
$this->setReasonDescription($value);
|
245 |
return $this;
|
246 |
}
|
247 |
+
|
248 |
+
|
249 |
/**
|
250 |
* Checks if ReasonDescription is set
|
251 |
+
*
|
252 |
* @return bool true if ReasonDescription is set
|
253 |
*/
|
254 |
public function isSetReasonDescription()
|
255 |
{
|
256 |
return !is_null($this->_fields['ReasonDescription']['FieldValue']);
|
257 |
}
|
258 |
+
|
259 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/OrderTotal.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderTotal
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>CurrencyCode: string</li>
|
32 |
* <li>Amount: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_OrderTotal extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_OrderTotal
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>CurrencyCode: string</li>
|
48 |
* <li>Amount: string</li>
|
49 |
*
|
@@ -51,38 +51,44 @@ class OffAmazonPaymentsService_Model_OrderTotal extends OffAmazonPaymentsService
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the CurrencyCode property.
|
63 |
-
*
|
64 |
* @return string CurrencyCode
|
65 |
*/
|
66 |
-
public function getCurrencyCode()
|
67 |
{
|
68 |
return $this->_fields['CurrencyCode']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the CurrencyCode property.
|
73 |
-
*
|
74 |
* @param string CurrencyCode
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setCurrencyCode($value)
|
78 |
{
|
79 |
$this->_fields['CurrencyCode']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the CurrencyCode and returns this instance
|
85 |
-
*
|
86 |
* @param string $value CurrencyCode
|
87 |
* @return OffAmazonPaymentsService_Model_OrderTotal instance
|
88 |
*/
|
@@ -91,43 +97,43 @@ class OffAmazonPaymentsService_Model_OrderTotal extends OffAmazonPaymentsService
|
|
91 |
$this->setCurrencyCode($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if CurrencyCode is set
|
98 |
-
*
|
99 |
* @return bool true if CurrencyCode is set
|
100 |
*/
|
101 |
public function isSetCurrencyCode()
|
102 |
{
|
103 |
return !is_null($this->_fields['CurrencyCode']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the Amount property.
|
108 |
-
*
|
109 |
* @return string Amount
|
110 |
*/
|
111 |
-
public function getAmount()
|
112 |
{
|
113 |
return $this->_fields['Amount']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the Amount property.
|
118 |
-
*
|
119 |
* @param string Amount
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setAmount($value)
|
123 |
{
|
124 |
$this->_fields['Amount']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the Amount and returns this instance
|
130 |
-
*
|
131 |
* @param string $value Amount
|
132 |
* @return OffAmazonPaymentsService_Model_OrderTotal instance
|
133 |
*/
|
@@ -136,19 +142,16 @@ class OffAmazonPaymentsService_Model_OrderTotal extends OffAmazonPaymentsService
|
|
136 |
$this->setAmount($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if Amount is set
|
143 |
-
*
|
144 |
* @return bool true if Amount is set
|
145 |
*/
|
146 |
public function isSetAmount()
|
147 |
{
|
148 |
return !is_null($this->_fields['Amount']['FieldValue']);
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_OrderTotal
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>CurrencyCode: string</li>
|
32 |
* <li>Amount: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_OrderTotal extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_OrderTotal
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>CurrencyCode: string</li>
|
48 |
* <li>Amount: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'CurrencyCode' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'Amount' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
)
|
63 |
);
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
+
|
67 |
+
/**
|
68 |
* Gets the value of the CurrencyCode property.
|
69 |
+
*
|
70 |
* @return string CurrencyCode
|
71 |
*/
|
72 |
+
public function getCurrencyCode()
|
73 |
{
|
74 |
return $this->_fields['CurrencyCode']['FieldValue'];
|
75 |
}
|
76 |
+
|
77 |
/**
|
78 |
* Sets the value of the CurrencyCode property.
|
79 |
+
*
|
80 |
* @param string CurrencyCode
|
81 |
* @return this instance
|
82 |
*/
|
83 |
+
public function setCurrencyCode($value)
|
84 |
{
|
85 |
$this->_fields['CurrencyCode']['FieldValue'] = $value;
|
86 |
return $this;
|
87 |
}
|
88 |
+
|
89 |
/**
|
90 |
* Sets the value of the CurrencyCode and returns this instance
|
91 |
+
*
|
92 |
* @param string $value CurrencyCode
|
93 |
* @return OffAmazonPaymentsService_Model_OrderTotal instance
|
94 |
*/
|
97 |
$this->setCurrencyCode($value);
|
98 |
return $this;
|
99 |
}
|
100 |
+
|
101 |
+
|
102 |
/**
|
103 |
* Checks if CurrencyCode is set
|
104 |
+
*
|
105 |
* @return bool true if CurrencyCode is set
|
106 |
*/
|
107 |
public function isSetCurrencyCode()
|
108 |
{
|
109 |
return !is_null($this->_fields['CurrencyCode']['FieldValue']);
|
110 |
}
|
111 |
+
|
112 |
/**
|
113 |
* Gets the value of the Amount property.
|
114 |
+
*
|
115 |
* @return string Amount
|
116 |
*/
|
117 |
+
public function getAmount()
|
118 |
{
|
119 |
return $this->_fields['Amount']['FieldValue'];
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Sets the value of the Amount property.
|
124 |
+
*
|
125 |
* @param string Amount
|
126 |
* @return this instance
|
127 |
*/
|
128 |
+
public function setAmount($value)
|
129 |
{
|
130 |
$this->_fields['Amount']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Sets the value of the Amount and returns this instance
|
136 |
+
*
|
137 |
* @param string $value Amount
|
138 |
* @return OffAmazonPaymentsService_Model_OrderTotal instance
|
139 |
*/
|
142 |
$this->setAmount($value);
|
143 |
return $this;
|
144 |
}
|
145 |
+
|
146 |
+
|
147 |
/**
|
148 |
* Checks if Amount is set
|
149 |
+
*
|
150 |
* @return bool true if Amount is set
|
151 |
*/
|
152 |
public function isSetAmount()
|
153 |
{
|
154 |
return !is_null($this->_fields['Amount']['FieldValue']);
|
155 |
}
|
156 |
+
|
157 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/ParentDetails.php
CHANGED
@@ -21,10 +21,10 @@
|
|
21 |
|
22 |
/**
|
23 |
* OffAmazonPaymentsService_Model_ParentDetails
|
24 |
-
*
|
25 |
* Properties:
|
26 |
* <ul>
|
27 |
-
*
|
28 |
* <li>Id: string</li>
|
29 |
* <li>Type: string</li>
|
30 |
*
|
@@ -32,21 +32,21 @@
|
|
32 |
*/
|
33 |
class OffAmazonPaymentsService_Model_ParentDetails extends OffAmazonPaymentsService_Model
|
34 |
{
|
35 |
-
|
36 |
/**
|
37 |
* Construct new OffAmazonPaymentsService_Model_ParentDetails
|
38 |
-
*
|
39 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
40 |
-
*
|
41 |
* Valid properties:
|
42 |
* <ul>
|
43 |
-
*
|
44 |
* <li>Id: string</li>
|
45 |
* <li>Type: string</li>
|
46 |
*
|
47 |
* </ul>
|
48 |
*/
|
49 |
-
public function __construct
|
50 |
{
|
51 |
$this->_fields = array(
|
52 |
'Id' => array(
|
@@ -60,92 +60,93 @@ class OffAmazonPaymentsService_Model_ParentDetails extends OffAmazonPaymentsServ
|
|
60 |
);
|
61 |
parent::__construct($data);
|
62 |
}
|
63 |
-
|
64 |
/**
|
65 |
* Gets the value of the Id property.
|
66 |
-
*
|
67 |
* @return string Id
|
68 |
*/
|
69 |
-
public function getId
|
70 |
{
|
71 |
return $this->_fields['Id']['FieldValue'];
|
72 |
}
|
73 |
-
|
74 |
/**
|
75 |
* Sets the value of the Id property.
|
76 |
-
*
|
77 |
* @param string Id
|
78 |
* @return this instance
|
79 |
*/
|
80 |
-
public function setId
|
81 |
{
|
82 |
$this->_fields['Id']['FieldValue'] = $value;
|
83 |
return $this;
|
84 |
}
|
85 |
-
|
86 |
/**
|
87 |
* Sets the value of the Id and returns this instance
|
88 |
-
*
|
89 |
* @param string $value Id
|
90 |
* @return OffAmazonPaymentsService_Model_ParentDetails instance
|
91 |
*/
|
92 |
-
public function withId
|
93 |
{
|
94 |
$this->setId($value);
|
95 |
return $this;
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Checks if Id is set
|
100 |
-
*
|
101 |
* @return bool true if Id is set
|
102 |
*/
|
103 |
-
public function isSetId
|
104 |
{
|
105 |
-
return !
|
106 |
}
|
107 |
-
|
108 |
/**
|
109 |
* Gets the value of the Type property.
|
110 |
-
*
|
111 |
* @return string Type
|
112 |
*/
|
113 |
-
public function getType
|
114 |
{
|
115 |
return $this->_fields['Type']['FieldValue'];
|
116 |
}
|
117 |
-
|
118 |
/**
|
119 |
* Sets the value of the Type property.
|
120 |
-
*
|
121 |
* @param string Type
|
122 |
* @return this instance
|
123 |
*/
|
124 |
-
public function setType
|
125 |
{
|
126 |
$this->_fields['Type']['FieldValue'] = $value;
|
127 |
return $this;
|
128 |
}
|
129 |
-
|
130 |
/**
|
131 |
* Sets the value of the Type and returns this instance
|
132 |
-
*
|
133 |
* @param string $value Type
|
134 |
* @return OffAmazonPaymentsService_Model_ParentDetails instance
|
135 |
*/
|
136 |
-
public function withType
|
137 |
{
|
138 |
$this->setType($value);
|
139 |
return $this;
|
140 |
}
|
141 |
-
|
142 |
/**
|
143 |
* Checks if Type is set
|
144 |
-
*
|
145 |
* @return bool true if Type is set
|
146 |
*/
|
147 |
-
public function isSetType
|
148 |
{
|
149 |
-
return !
|
150 |
}
|
151 |
-
|
|
21 |
|
22 |
/**
|
23 |
* OffAmazonPaymentsService_Model_ParentDetails
|
24 |
+
*
|
25 |
* Properties:
|
26 |
* <ul>
|
27 |
+
*
|
28 |
* <li>Id: string</li>
|
29 |
* <li>Type: string</li>
|
30 |
*
|
32 |
*/
|
33 |
class OffAmazonPaymentsService_Model_ParentDetails extends OffAmazonPaymentsService_Model
|
34 |
{
|
35 |
+
|
36 |
/**
|
37 |
* Construct new OffAmazonPaymentsService_Model_ParentDetails
|
38 |
+
*
|
39 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
40 |
+
*
|
41 |
* Valid properties:
|
42 |
* <ul>
|
43 |
+
*
|
44 |
* <li>Id: string</li>
|
45 |
* <li>Type: string</li>
|
46 |
*
|
47 |
* </ul>
|
48 |
*/
|
49 |
+
public function __construct($data = null)
|
50 |
{
|
51 |
$this->_fields = array(
|
52 |
'Id' => array(
|
60 |
);
|
61 |
parent::__construct($data);
|
62 |
}
|
63 |
+
|
64 |
/**
|
65 |
* Gets the value of the Id property.
|
66 |
+
*
|
67 |
* @return string Id
|
68 |
*/
|
69 |
+
public function getId()
|
70 |
{
|
71 |
return $this->_fields['Id']['FieldValue'];
|
72 |
}
|
73 |
+
|
74 |
/**
|
75 |
* Sets the value of the Id property.
|
76 |
+
*
|
77 |
* @param string Id
|
78 |
* @return this instance
|
79 |
*/
|
80 |
+
public function setId($value)
|
81 |
{
|
82 |
$this->_fields['Id']['FieldValue'] = $value;
|
83 |
return $this;
|
84 |
}
|
85 |
+
|
86 |
/**
|
87 |
* Sets the value of the Id and returns this instance
|
88 |
+
*
|
89 |
* @param string $value Id
|
90 |
* @return OffAmazonPaymentsService_Model_ParentDetails instance
|
91 |
*/
|
92 |
+
public function withId($value)
|
93 |
{
|
94 |
$this->setId($value);
|
95 |
return $this;
|
96 |
}
|
97 |
+
|
98 |
/**
|
99 |
* Checks if Id is set
|
100 |
+
*
|
101 |
* @return bool true if Id is set
|
102 |
*/
|
103 |
+
public function isSetId()
|
104 |
{
|
105 |
+
return !is_null($this->_fields['Id']['FieldValue']);
|
106 |
}
|
107 |
+
|
108 |
/**
|
109 |
* Gets the value of the Type property.
|
110 |
+
*
|
111 |
* @return string Type
|
112 |
*/
|
113 |
+
public function getType()
|
114 |
{
|
115 |
return $this->_fields['Type']['FieldValue'];
|
116 |
}
|
117 |
+
|
118 |
/**
|
119 |
* Sets the value of the Type property.
|
120 |
+
*
|
121 |
* @param string Type
|
122 |
* @return this instance
|
123 |
*/
|
124 |
+
public function setType($value)
|
125 |
{
|
126 |
$this->_fields['Type']['FieldValue'] = $value;
|
127 |
return $this;
|
128 |
}
|
129 |
+
|
130 |
/**
|
131 |
* Sets the value of the Type and returns this instance
|
132 |
+
*
|
133 |
* @param string $value Type
|
134 |
* @return OffAmazonPaymentsService_Model_ParentDetails instance
|
135 |
*/
|
136 |
+
public function withType($value)
|
137 |
{
|
138 |
$this->setType($value);
|
139 |
return $this;
|
140 |
}
|
141 |
+
|
142 |
/**
|
143 |
* Checks if Type is set
|
144 |
+
*
|
145 |
* @return bool true if Type is set
|
146 |
*/
|
147 |
+
public function isSetType()
|
148 |
{
|
149 |
+
return !is_null($this->_fields['Type']['FieldValue']);
|
150 |
}
|
151 |
+
|
152 |
+
}
|
lib/OffAmazonPaymentsService/Model/Price.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Price
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>Amount: string</li>
|
32 |
* <li>CurrencyCode: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_Price extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_Price
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>Amount: string</li>
|
48 |
* <li>CurrencyCode: string</li>
|
49 |
*
|
@@ -51,38 +51,44 @@ class OffAmazonPaymentsService_Model_Price extends OffAmazonPaymentsService_Mode
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the Amount property.
|
63 |
-
*
|
64 |
* @return string Amount
|
65 |
*/
|
66 |
-
public function getAmount()
|
67 |
{
|
68 |
return $this->_fields['Amount']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the Amount property.
|
73 |
-
*
|
74 |
* @param string Amount
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setAmount($value)
|
78 |
{
|
79 |
$this->_fields['Amount']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the Amount and returns this instance
|
85 |
-
*
|
86 |
* @param string $value Amount
|
87 |
* @return OffAmazonPaymentsService_Model_Price instance
|
88 |
*/
|
@@ -91,43 +97,43 @@ class OffAmazonPaymentsService_Model_Price extends OffAmazonPaymentsService_Mode
|
|
91 |
$this->setAmount($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if Amount is set
|
98 |
-
*
|
99 |
* @return bool true if Amount is set
|
100 |
*/
|
101 |
public function isSetAmount()
|
102 |
{
|
103 |
return !is_null($this->_fields['Amount']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the CurrencyCode property.
|
108 |
-
*
|
109 |
* @return string CurrencyCode
|
110 |
*/
|
111 |
-
public function getCurrencyCode()
|
112 |
{
|
113 |
return $this->_fields['CurrencyCode']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the CurrencyCode property.
|
118 |
-
*
|
119 |
* @param string CurrencyCode
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setCurrencyCode($value)
|
123 |
{
|
124 |
$this->_fields['CurrencyCode']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the CurrencyCode and returns this instance
|
130 |
-
*
|
131 |
* @param string $value CurrencyCode
|
132 |
* @return OffAmazonPaymentsService_Model_Price instance
|
133 |
*/
|
@@ -136,19 +142,16 @@ class OffAmazonPaymentsService_Model_Price extends OffAmazonPaymentsService_Mode
|
|
136 |
$this->setCurrencyCode($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if CurrencyCode is set
|
143 |
-
*
|
144 |
* @return bool true if CurrencyCode is set
|
145 |
*/
|
146 |
public function isSetCurrencyCode()
|
147 |
{
|
148 |
return !is_null($this->_fields['CurrencyCode']['FieldValue']);
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Price
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>Amount: string</li>
|
32 |
* <li>CurrencyCode: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_Price extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_Price
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>Amount: string</li>
|
48 |
* <li>CurrencyCode: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'Amount' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'CurrencyCode' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
)
|
63 |
);
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
+
|
67 |
+
/**
|
68 |
* Gets the value of the Amount property.
|
69 |
+
*
|
70 |
* @return string Amount
|
71 |
*/
|
72 |
+
public function getAmount()
|
73 |
{
|
74 |
return $this->_fields['Amount']['FieldValue'];
|
75 |
}
|
76 |
+
|
77 |
/**
|
78 |
* Sets the value of the Amount property.
|
79 |
+
*
|
80 |
* @param string Amount
|
81 |
* @return this instance
|
82 |
*/
|
83 |
+
public function setAmount($value)
|
84 |
{
|
85 |
$this->_fields['Amount']['FieldValue'] = $value;
|
86 |
return $this;
|
87 |
}
|
88 |
+
|
89 |
/**
|
90 |
* Sets the value of the Amount and returns this instance
|
91 |
+
*
|
92 |
* @param string $value Amount
|
93 |
* @return OffAmazonPaymentsService_Model_Price instance
|
94 |
*/
|
97 |
$this->setAmount($value);
|
98 |
return $this;
|
99 |
}
|
100 |
+
|
101 |
+
|
102 |
/**
|
103 |
* Checks if Amount is set
|
104 |
+
*
|
105 |
* @return bool true if Amount is set
|
106 |
*/
|
107 |
public function isSetAmount()
|
108 |
{
|
109 |
return !is_null($this->_fields['Amount']['FieldValue']);
|
110 |
}
|
111 |
+
|
112 |
/**
|
113 |
* Gets the value of the CurrencyCode property.
|
114 |
+
*
|
115 |
* @return string CurrencyCode
|
116 |
*/
|
117 |
+
public function getCurrencyCode()
|
118 |
{
|
119 |
return $this->_fields['CurrencyCode']['FieldValue'];
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Sets the value of the CurrencyCode property.
|
124 |
+
*
|
125 |
* @param string CurrencyCode
|
126 |
* @return this instance
|
127 |
*/
|
128 |
+
public function setCurrencyCode($value)
|
129 |
{
|
130 |
$this->_fields['CurrencyCode']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Sets the value of the CurrencyCode and returns this instance
|
136 |
+
*
|
137 |
* @param string $value CurrencyCode
|
138 |
* @return OffAmazonPaymentsService_Model_Price instance
|
139 |
*/
|
142 |
$this->setCurrencyCode($value);
|
143 |
return $this;
|
144 |
}
|
145 |
+
|
146 |
+
|
147 |
/**
|
148 |
* Checks if CurrencyCode is set
|
149 |
+
*
|
150 |
* @return bool true if CurrencyCode is set
|
151 |
*/
|
152 |
public function isSetCurrencyCode()
|
153 |
{
|
154 |
return !is_null($this->_fields['CurrencyCode']['FieldValue']);
|
155 |
}
|
156 |
+
|
157 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/ProviderCredit.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCredit
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>CreditAmount: OffAmazonPaymentsService_Model_Price</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCredit extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCredit
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>CreditAmount: OffAmazonPaymentsService_Model_Price</li>
|
49 |
*
|
@@ -51,40 +51,46 @@ class OffAmazonPaymentsService_Model_ProviderCredit extends OffAmazonPaymentsSer
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
-
|
63 |
-
|
64 |
* Gets the value of the ProviderId property.
|
65 |
-
*
|
66 |
* @return string ProviderId
|
67 |
*/
|
68 |
-
public function getProviderId()
|
69 |
{
|
70 |
return $this->_fields['ProviderId']['FieldValue'];
|
71 |
}
|
72 |
-
|
73 |
/**
|
74 |
* Sets the value of the ProviderId property.
|
75 |
-
*
|
76 |
* @param string ProviderId
|
77 |
* @return this instance
|
78 |
*/
|
79 |
-
public function setProviderId($value)
|
80 |
{
|
81 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
82 |
return $this;
|
83 |
}
|
84 |
-
|
85 |
/**
|
86 |
* Sets the value of the ProviderId and returns this instance
|
87 |
-
*
|
88 |
* @param string $value ProviderId
|
89 |
* @return OffAmazonPaymentsService_Model_ProviderCredit instance
|
90 |
*/
|
@@ -93,43 +99,43 @@ class OffAmazonPaymentsService_Model_ProviderCredit extends OffAmazonPaymentsSer
|
|
93 |
$this->setProviderId($value);
|
94 |
return $this;
|
95 |
}
|
96 |
-
|
97 |
-
|
98 |
/**
|
99 |
* Checks if ProviderId is set
|
100 |
-
*
|
101 |
* @return bool true if ProviderId is set
|
102 |
*/
|
103 |
public function isSetProviderId()
|
104 |
{
|
105 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
106 |
}
|
107 |
-
|
108 |
/**
|
109 |
* Gets the value of the CreditAmount.
|
110 |
-
*
|
111 |
* @return Price CreditAmount
|
112 |
*/
|
113 |
-
public function getCreditAmount()
|
114 |
{
|
115 |
return $this->_fields['CreditAmount']['FieldValue'];
|
116 |
}
|
117 |
-
|
118 |
/**
|
119 |
* Sets the value of the CreditAmount.
|
120 |
-
*
|
121 |
* @param Price CreditAmount
|
122 |
* @return void
|
123 |
*/
|
124 |
-
public function setCreditAmount($value)
|
125 |
{
|
126 |
$this->_fields['CreditAmount']['FieldValue'] = $value;
|
127 |
return;
|
128 |
}
|
129 |
-
|
130 |
/**
|
131 |
* Sets the value of the CreditAmount and returns this instance
|
132 |
-
*
|
133 |
* @param Price $value CreditAmount
|
134 |
* @return OffAmazonPaymentsService_Model_ProviderCredit instance
|
135 |
*/
|
@@ -138,20 +144,17 @@ class OffAmazonPaymentsService_Model_ProviderCredit extends OffAmazonPaymentsSer
|
|
138 |
$this->setCreditAmount($value);
|
139 |
return $this;
|
140 |
}
|
141 |
-
|
142 |
-
|
143 |
/**
|
144 |
* Checks if CreditAmount is set
|
145 |
-
*
|
146 |
* @return bool true if CreditAmount property is set
|
147 |
*/
|
148 |
public function isSetCreditAmount()
|
149 |
{
|
150 |
return !is_null($this->_fields['CreditAmount']['FieldValue']);
|
151 |
-
|
152 |
}
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCredit
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>CreditAmount: OffAmazonPaymentsService_Model_Price</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCredit extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCredit
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>CreditAmount: OffAmazonPaymentsService_Model_Price</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'ProviderId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
|
60 |
+
'CreditAmount' => array(
|
61 |
+
'FieldValue' => null,
|
62 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
63 |
+
)
|
64 |
+
|
65 |
);
|
66 |
parent::__construct($data);
|
67 |
}
|
68 |
+
|
69 |
+
/**
|
70 |
* Gets the value of the ProviderId property.
|
71 |
+
*
|
72 |
* @return string ProviderId
|
73 |
*/
|
74 |
+
public function getProviderId()
|
75 |
{
|
76 |
return $this->_fields['ProviderId']['FieldValue'];
|
77 |
}
|
78 |
+
|
79 |
/**
|
80 |
* Sets the value of the ProviderId property.
|
81 |
+
*
|
82 |
* @param string ProviderId
|
83 |
* @return this instance
|
84 |
*/
|
85 |
+
public function setProviderId($value)
|
86 |
{
|
87 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
88 |
return $this;
|
89 |
}
|
90 |
+
|
91 |
/**
|
92 |
* Sets the value of the ProviderId and returns this instance
|
93 |
+
*
|
94 |
* @param string $value ProviderId
|
95 |
* @return OffAmazonPaymentsService_Model_ProviderCredit instance
|
96 |
*/
|
99 |
$this->setProviderId($value);
|
100 |
return $this;
|
101 |
}
|
102 |
+
|
103 |
+
|
104 |
/**
|
105 |
* Checks if ProviderId is set
|
106 |
+
*
|
107 |
* @return bool true if ProviderId is set
|
108 |
*/
|
109 |
public function isSetProviderId()
|
110 |
{
|
111 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
112 |
}
|
113 |
+
|
114 |
/**
|
115 |
* Gets the value of the CreditAmount.
|
116 |
+
*
|
117 |
* @return Price CreditAmount
|
118 |
*/
|
119 |
+
public function getCreditAmount()
|
120 |
{
|
121 |
return $this->_fields['CreditAmount']['FieldValue'];
|
122 |
}
|
123 |
+
|
124 |
/**
|
125 |
* Sets the value of the CreditAmount.
|
126 |
+
*
|
127 |
* @param Price CreditAmount
|
128 |
* @return void
|
129 |
*/
|
130 |
+
public function setCreditAmount($value)
|
131 |
{
|
132 |
$this->_fields['CreditAmount']['FieldValue'] = $value;
|
133 |
return;
|
134 |
}
|
135 |
+
|
136 |
/**
|
137 |
* Sets the value of the CreditAmount and returns this instance
|
138 |
+
*
|
139 |
* @param Price $value CreditAmount
|
140 |
* @return OffAmazonPaymentsService_Model_ProviderCredit instance
|
141 |
*/
|
144 |
$this->setCreditAmount($value);
|
145 |
return $this;
|
146 |
}
|
147 |
+
|
148 |
+
|
149 |
/**
|
150 |
* Checks if CreditAmount is set
|
151 |
+
*
|
152 |
* @return bool true if CreditAmount property is set
|
153 |
*/
|
154 |
public function isSetCreditAmount()
|
155 |
{
|
156 |
return !is_null($this->_fields['CreditAmount']['FieldValue']);
|
157 |
+
|
158 |
}
|
159 |
+
|
|
|
|
|
|
|
160 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditDetails.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditDetails
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>AmazonProviderCreditId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
* <li>ProviderId: string</li>
|
@@ -39,18 +39,18 @@
|
|
39 |
* <li>CreditStatus: OffAmazonPaymentsService_Model_Status</li>
|
40 |
*
|
41 |
* </ul>
|
42 |
-
*/
|
43 |
class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaymentsService_Model
|
44 |
{
|
45 |
-
|
46 |
/**
|
47 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditDetails
|
48 |
-
*
|
49 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
50 |
-
*
|
51 |
* Valid properties:
|
52 |
* <ul>
|
53 |
-
*
|
54 |
* <li>AmazonProviderCreditId: string</li>
|
55 |
* <li>SellerId: string</li>
|
56 |
* <li>ProviderId: string</li>
|
@@ -65,53 +65,80 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
65 |
*/
|
66 |
public function __construct($data = null)
|
67 |
{
|
68 |
-
$this->_fields = array
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
);
|
87 |
parent::__construct($data);
|
88 |
}
|
89 |
-
|
90 |
-
|
91 |
* Gets the value of the AmazonProviderCreditId property.
|
92 |
-
*
|
93 |
* @return string AmazonProviderCreditId
|
94 |
*/
|
95 |
-
public function getAmazonProviderCreditId()
|
96 |
{
|
97 |
return $this->_fields['AmazonProviderCreditId']['FieldValue'];
|
98 |
}
|
99 |
-
|
100 |
/**
|
101 |
* Sets the value of the AmazonProviderCreditId property.
|
102 |
-
*
|
103 |
* @param string AmazonProviderCreditId
|
104 |
* @return this instance
|
105 |
*/
|
106 |
-
public function setAmazonProviderCreditId($value)
|
107 |
{
|
108 |
$this->_fields['AmazonProviderCreditId']['FieldValue'] = $value;
|
109 |
return $this;
|
110 |
}
|
111 |
-
|
112 |
/**
|
113 |
* Sets the value of the AmazonProviderCreditId and returns this instance
|
114 |
-
*
|
115 |
* @param string $value AmazonProviderCreditId
|
116 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
117 |
*/
|
@@ -120,43 +147,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
120 |
$this->setAmazonProviderCreditId($value);
|
121 |
return $this;
|
122 |
}
|
123 |
-
|
124 |
-
|
125 |
/**
|
126 |
* Checks if AmazonProviderCreditId is set
|
127 |
-
*
|
128 |
* @return bool true if AmazonProviderCreditId is set
|
129 |
*/
|
130 |
public function isSetAmazonProviderCreditId()
|
131 |
{
|
132 |
return !is_null($this->_fields['AmazonProviderCreditId']['FieldValue']);
|
133 |
}
|
134 |
-
|
135 |
/**
|
136 |
* Gets the value of the SellerId property.
|
137 |
-
*
|
138 |
* @return string SellerId
|
139 |
*/
|
140 |
-
public function getSellerId()
|
141 |
{
|
142 |
return $this->_fields['SellerId']['FieldValue'];
|
143 |
}
|
144 |
-
|
145 |
/**
|
146 |
* Sets the value of the SellerId property.
|
147 |
-
*
|
148 |
* @param string SellerId
|
149 |
* @return this instance
|
150 |
*/
|
151 |
-
public function setSellerId($value)
|
152 |
{
|
153 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
154 |
return $this;
|
155 |
}
|
156 |
-
|
157 |
/**
|
158 |
* Sets the value of the SellerId and returns this instance
|
159 |
-
*
|
160 |
* @param string $value SellerId
|
161 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
162 |
*/
|
@@ -165,43 +192,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
165 |
$this->setSellerId($value);
|
166 |
return $this;
|
167 |
}
|
168 |
-
|
169 |
-
|
170 |
/**
|
171 |
* Checks if SellerId is set
|
172 |
-
*
|
173 |
* @return bool true if SellerId is set
|
174 |
*/
|
175 |
public function isSetSellerId()
|
176 |
{
|
177 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
178 |
}
|
179 |
-
|
180 |
/**
|
181 |
* Gets the value of the ProviderId property.
|
182 |
-
*
|
183 |
* @return string ProviderId
|
184 |
*/
|
185 |
-
public function getProviderId()
|
186 |
{
|
187 |
return $this->_fields['ProviderId']['FieldValue'];
|
188 |
}
|
189 |
-
|
190 |
/**
|
191 |
* Sets the value of the ProviderId property.
|
192 |
-
*
|
193 |
* @param string ProviderId
|
194 |
* @return this instance
|
195 |
*/
|
196 |
-
public function setProviderId($value)
|
197 |
{
|
198 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
199 |
return $this;
|
200 |
}
|
201 |
-
|
202 |
/**
|
203 |
* Sets the value of the ProviderId and returns this instance
|
204 |
-
*
|
205 |
* @param string $value ProviderId
|
206 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
207 |
*/
|
@@ -210,43 +237,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
210 |
$this->setProviderId($value);
|
211 |
return $this;
|
212 |
}
|
213 |
-
|
214 |
-
|
215 |
/**
|
216 |
* Checks if ProviderId is set
|
217 |
-
*
|
218 |
* @return bool true if ProviderId is set
|
219 |
*/
|
220 |
public function isSetProviderId()
|
221 |
{
|
222 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
223 |
}
|
224 |
-
|
225 |
/**
|
226 |
* Gets the value of the CreditReferenceId property.
|
227 |
-
*
|
228 |
* @return string CreditReferenceId
|
229 |
*/
|
230 |
-
public function getCreditReferenceId()
|
231 |
{
|
232 |
return $this->_fields['CreditReferenceId']['FieldValue'];
|
233 |
}
|
234 |
-
|
235 |
/**
|
236 |
* Sets the value of the CreditReferenceId property.
|
237 |
-
*
|
238 |
* @param string CreditReferenceId
|
239 |
* @return this instance
|
240 |
*/
|
241 |
-
public function setCreditReferenceId($value)
|
242 |
{
|
243 |
$this->_fields['CreditReferenceId']['FieldValue'] = $value;
|
244 |
return $this;
|
245 |
}
|
246 |
-
|
247 |
/**
|
248 |
* Sets the value of the CreditReferenceId and returns this instance
|
249 |
-
*
|
250 |
* @param string $value CreditReferenceId
|
251 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
252 |
*/
|
@@ -255,43 +282,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
255 |
$this->setCreditReferenceId($value);
|
256 |
return $this;
|
257 |
}
|
258 |
-
|
259 |
-
|
260 |
/**
|
261 |
* Checks if CreditReferenceId is set
|
262 |
-
*
|
263 |
* @return bool true if CreditReferenceId is set
|
264 |
*/
|
265 |
public function isSetCreditReferenceId()
|
266 |
{
|
267 |
return !is_null($this->_fields['CreditReferenceId']['FieldValue']);
|
268 |
}
|
269 |
-
|
270 |
/**
|
271 |
* Gets the value of the CreditAmount.
|
272 |
-
*
|
273 |
* @return Price CreditAmount
|
274 |
*/
|
275 |
-
public function getCreditAmount()
|
276 |
{
|
277 |
return $this->_fields['CreditAmount']['FieldValue'];
|
278 |
}
|
279 |
-
|
280 |
/**
|
281 |
* Sets the value of the CreditAmount.
|
282 |
-
*
|
283 |
* @param Price CreditAmount
|
284 |
* @return void
|
285 |
*/
|
286 |
-
public function setCreditAmount($value)
|
287 |
{
|
288 |
$this->_fields['CreditAmount']['FieldValue'] = $value;
|
289 |
return;
|
290 |
}
|
291 |
-
|
292 |
/**
|
293 |
* Sets the value of the CreditAmount and returns this instance
|
294 |
-
*
|
295 |
* @param Price $value CreditAmount
|
296 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
297 |
*/
|
@@ -300,44 +327,44 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
300 |
$this->setCreditAmount($value);
|
301 |
return $this;
|
302 |
}
|
303 |
-
|
304 |
-
|
305 |
/**
|
306 |
* Checks if CreditAmount is set
|
307 |
-
*
|
308 |
* @return bool true if CreditAmount property is set
|
309 |
*/
|
310 |
public function isSetCreditAmount()
|
311 |
{
|
312 |
return !is_null($this->_fields['CreditAmount']['FieldValue']);
|
313 |
-
|
314 |
}
|
315 |
-
|
316 |
/**
|
317 |
* Gets the value of the CreditReversalAmount.
|
318 |
-
*
|
319 |
* @return Price CreditReversalAmount
|
320 |
*/
|
321 |
-
public function getCreditReversalAmount()
|
322 |
{
|
323 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
324 |
}
|
325 |
-
|
326 |
/**
|
327 |
* Sets the value of the CreditReversalAmount.
|
328 |
-
*
|
329 |
* @param Price CreditReversalAmount
|
330 |
* @return void
|
331 |
*/
|
332 |
-
public function setCreditReversalAmount($value)
|
333 |
{
|
334 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
335 |
return;
|
336 |
}
|
337 |
-
|
338 |
/**
|
339 |
* Sets the value of the CreditReversalAmount and returns this instance
|
340 |
-
*
|
341 |
* @param Price $value CreditReversalAmount
|
342 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
343 |
*/
|
@@ -346,44 +373,44 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
346 |
$this->setCreditReversalAmount($value);
|
347 |
return $this;
|
348 |
}
|
349 |
-
|
350 |
-
|
351 |
/**
|
352 |
* Checks if CreditReversalAmount is set
|
353 |
-
*
|
354 |
* @return bool true if CreditReversalAmount property is set
|
355 |
*/
|
356 |
public function isSetCreditReversalAmount()
|
357 |
{
|
358 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
359 |
-
|
360 |
}
|
361 |
-
|
362 |
/**
|
363 |
* Gets the value of the CreditReversalIdList.
|
364 |
-
*
|
365 |
* @return IdList CreditReversalIdList
|
366 |
*/
|
367 |
-
public function getCreditReversalIdList()
|
368 |
{
|
369 |
return $this->_fields['CreditReversalIdList']['FieldValue'];
|
370 |
}
|
371 |
-
|
372 |
/**
|
373 |
* Sets the value of the CreditReversalIdList.
|
374 |
-
*
|
375 |
* @param IdList CreditReversalIdList
|
376 |
* @return void
|
377 |
*/
|
378 |
-
public function setCreditReversalIdList($value)
|
379 |
{
|
380 |
$this->_fields['CreditReversalIdList']['FieldValue'] = $value;
|
381 |
return;
|
382 |
}
|
383 |
-
|
384 |
/**
|
385 |
* Sets the value of the CreditReversalIdList and returns this instance
|
386 |
-
*
|
387 |
* @param IdList $value CreditReversalIdList
|
388 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
389 |
*/
|
@@ -392,44 +419,44 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
392 |
$this->setCreditReversalIdList($value);
|
393 |
return $this;
|
394 |
}
|
395 |
-
|
396 |
-
|
397 |
/**
|
398 |
* Checks if CreditReversalIdList is set
|
399 |
-
*
|
400 |
* @return bool true if CreditReversalIdList property is set
|
401 |
*/
|
402 |
public function isSetCreditReversalIdList()
|
403 |
{
|
404 |
return !is_null($this->_fields['CreditReversalIdList']['FieldValue']);
|
405 |
-
|
406 |
}
|
407 |
-
|
408 |
/**
|
409 |
* Gets the value of the CreationTimestamp property.
|
410 |
-
*
|
411 |
* @return string CreationTimestamp
|
412 |
*/
|
413 |
-
public function getCreationTimestamp()
|
414 |
{
|
415 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
416 |
}
|
417 |
-
|
418 |
/**
|
419 |
* Sets the value of the CreationTimestamp property.
|
420 |
-
*
|
421 |
* @param string CreationTimestamp
|
422 |
* @return this instance
|
423 |
*/
|
424 |
-
public function setCreationTimestamp($value)
|
425 |
{
|
426 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
427 |
return $this;
|
428 |
}
|
429 |
-
|
430 |
/**
|
431 |
* Sets the value of the CreationTimestamp and returns this instance
|
432 |
-
*
|
433 |
* @param string $value CreationTimestamp
|
434 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
435 |
*/
|
@@ -438,43 +465,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
438 |
$this->setCreationTimestamp($value);
|
439 |
return $this;
|
440 |
}
|
441 |
-
|
442 |
-
|
443 |
/**
|
444 |
* Checks if CreationTimestamp is set
|
445 |
-
*
|
446 |
* @return bool true if CreationTimestamp is set
|
447 |
*/
|
448 |
public function isSetCreationTimestamp()
|
449 |
{
|
450 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
451 |
}
|
452 |
-
|
453 |
/**
|
454 |
* Gets the value of the CreditStatus.
|
455 |
-
*
|
456 |
* @return Status CreditStatus
|
457 |
*/
|
458 |
-
public function getCreditStatus()
|
459 |
{
|
460 |
return $this->_fields['CreditStatus']['FieldValue'];
|
461 |
}
|
462 |
-
|
463 |
/**
|
464 |
* Sets the value of the CreditStatus.
|
465 |
-
*
|
466 |
* @param Status CreditStatus
|
467 |
* @return void
|
468 |
*/
|
469 |
-
public function setCreditStatus($value)
|
470 |
{
|
471 |
$this->_fields['CreditStatus']['FieldValue'] = $value;
|
472 |
return;
|
473 |
}
|
474 |
-
|
475 |
/**
|
476 |
* Sets the value of the CreditStatus and returns this instance
|
477 |
-
*
|
478 |
* @param Status $value CreditStatus
|
479 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
480 |
*/
|
@@ -483,20 +510,17 @@ class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaym
|
|
483 |
$this->setCreditStatus($value);
|
484 |
return $this;
|
485 |
}
|
486 |
-
|
487 |
-
|
488 |
/**
|
489 |
* Checks if CreditStatus is set
|
490 |
-
*
|
491 |
* @return bool true if CreditStatus property is set
|
492 |
*/
|
493 |
public function isSetCreditStatus()
|
494 |
{
|
495 |
return !is_null($this->_fields['CreditStatus']['FieldValue']);
|
496 |
-
|
497 |
}
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditDetails
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>AmazonProviderCreditId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
* <li>ProviderId: string</li>
|
39 |
* <li>CreditStatus: OffAmazonPaymentsService_Model_Status</li>
|
40 |
*
|
41 |
* </ul>
|
42 |
+
*/
|
43 |
class OffAmazonPaymentsService_Model_ProviderCreditDetails extends OffAmazonPaymentsService_Model
|
44 |
{
|
45 |
+
|
46 |
/**
|
47 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditDetails
|
48 |
+
*
|
49 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
50 |
+
*
|
51 |
* Valid properties:
|
52 |
* <ul>
|
53 |
+
*
|
54 |
* <li>AmazonProviderCreditId: string</li>
|
55 |
* <li>SellerId: string</li>
|
56 |
* <li>ProviderId: string</li>
|
65 |
*/
|
66 |
public function __construct($data = null)
|
67 |
{
|
68 |
+
$this->_fields = array(
|
69 |
+
'AmazonProviderCreditId' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
),
|
73 |
+
'SellerId' => array(
|
74 |
+
'FieldValue' => null,
|
75 |
+
'FieldType' => 'string'
|
76 |
+
),
|
77 |
+
'ProviderId' => array(
|
78 |
+
'FieldValue' => null,
|
79 |
+
'FieldType' => 'string'
|
80 |
+
),
|
81 |
+
'CreditReferenceId' => array(
|
82 |
+
'FieldValue' => null,
|
83 |
+
'FieldType' => 'string'
|
84 |
+
),
|
85 |
+
|
86 |
+
'CreditAmount' => array(
|
87 |
+
'FieldValue' => null,
|
88 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
89 |
+
),
|
90 |
+
|
91 |
+
|
92 |
+
'CreditReversalAmount' => array(
|
93 |
+
'FieldValue' => null,
|
94 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
95 |
+
),
|
96 |
+
|
97 |
+
|
98 |
+
'CreditReversalIdList' => array(
|
99 |
+
'FieldValue' => null,
|
100 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_IdList'
|
101 |
+
),
|
102 |
+
|
103 |
+
'CreationTimestamp' => array(
|
104 |
+
'FieldValue' => null,
|
105 |
+
'FieldType' => 'string'
|
106 |
+
),
|
107 |
+
|
108 |
+
'CreditStatus' => array(
|
109 |
+
'FieldValue' => null,
|
110 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Status'
|
111 |
+
)
|
112 |
+
|
113 |
);
|
114 |
parent::__construct($data);
|
115 |
}
|
116 |
+
|
117 |
+
/**
|
118 |
* Gets the value of the AmazonProviderCreditId property.
|
119 |
+
*
|
120 |
* @return string AmazonProviderCreditId
|
121 |
*/
|
122 |
+
public function getAmazonProviderCreditId()
|
123 |
{
|
124 |
return $this->_fields['AmazonProviderCreditId']['FieldValue'];
|
125 |
}
|
126 |
+
|
127 |
/**
|
128 |
* Sets the value of the AmazonProviderCreditId property.
|
129 |
+
*
|
130 |
* @param string AmazonProviderCreditId
|
131 |
* @return this instance
|
132 |
*/
|
133 |
+
public function setAmazonProviderCreditId($value)
|
134 |
{
|
135 |
$this->_fields['AmazonProviderCreditId']['FieldValue'] = $value;
|
136 |
return $this;
|
137 |
}
|
138 |
+
|
139 |
/**
|
140 |
* Sets the value of the AmazonProviderCreditId and returns this instance
|
141 |
+
*
|
142 |
* @param string $value AmazonProviderCreditId
|
143 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
144 |
*/
|
147 |
$this->setAmazonProviderCreditId($value);
|
148 |
return $this;
|
149 |
}
|
150 |
+
|
151 |
+
|
152 |
/**
|
153 |
* Checks if AmazonProviderCreditId is set
|
154 |
+
*
|
155 |
* @return bool true if AmazonProviderCreditId is set
|
156 |
*/
|
157 |
public function isSetAmazonProviderCreditId()
|
158 |
{
|
159 |
return !is_null($this->_fields['AmazonProviderCreditId']['FieldValue']);
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Gets the value of the SellerId property.
|
164 |
+
*
|
165 |
* @return string SellerId
|
166 |
*/
|
167 |
+
public function getSellerId()
|
168 |
{
|
169 |
return $this->_fields['SellerId']['FieldValue'];
|
170 |
}
|
171 |
+
|
172 |
/**
|
173 |
* Sets the value of the SellerId property.
|
174 |
+
*
|
175 |
* @param string SellerId
|
176 |
* @return this instance
|
177 |
*/
|
178 |
+
public function setSellerId($value)
|
179 |
{
|
180 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
181 |
return $this;
|
182 |
}
|
183 |
+
|
184 |
/**
|
185 |
* Sets the value of the SellerId and returns this instance
|
186 |
+
*
|
187 |
* @param string $value SellerId
|
188 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
189 |
*/
|
192 |
$this->setSellerId($value);
|
193 |
return $this;
|
194 |
}
|
195 |
+
|
196 |
+
|
197 |
/**
|
198 |
* Checks if SellerId is set
|
199 |
+
*
|
200 |
* @return bool true if SellerId is set
|
201 |
*/
|
202 |
public function isSetSellerId()
|
203 |
{
|
204 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
205 |
}
|
206 |
+
|
207 |
/**
|
208 |
* Gets the value of the ProviderId property.
|
209 |
+
*
|
210 |
* @return string ProviderId
|
211 |
*/
|
212 |
+
public function getProviderId()
|
213 |
{
|
214 |
return $this->_fields['ProviderId']['FieldValue'];
|
215 |
}
|
216 |
+
|
217 |
/**
|
218 |
* Sets the value of the ProviderId property.
|
219 |
+
*
|
220 |
* @param string ProviderId
|
221 |
* @return this instance
|
222 |
*/
|
223 |
+
public function setProviderId($value)
|
224 |
{
|
225 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
226 |
return $this;
|
227 |
}
|
228 |
+
|
229 |
/**
|
230 |
* Sets the value of the ProviderId and returns this instance
|
231 |
+
*
|
232 |
* @param string $value ProviderId
|
233 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
234 |
*/
|
237 |
$this->setProviderId($value);
|
238 |
return $this;
|
239 |
}
|
240 |
+
|
241 |
+
|
242 |
/**
|
243 |
* Checks if ProviderId is set
|
244 |
+
*
|
245 |
* @return bool true if ProviderId is set
|
246 |
*/
|
247 |
public function isSetProviderId()
|
248 |
{
|
249 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
250 |
}
|
251 |
+
|
252 |
/**
|
253 |
* Gets the value of the CreditReferenceId property.
|
254 |
+
*
|
255 |
* @return string CreditReferenceId
|
256 |
*/
|
257 |
+
public function getCreditReferenceId()
|
258 |
{
|
259 |
return $this->_fields['CreditReferenceId']['FieldValue'];
|
260 |
}
|
261 |
+
|
262 |
/**
|
263 |
* Sets the value of the CreditReferenceId property.
|
264 |
+
*
|
265 |
* @param string CreditReferenceId
|
266 |
* @return this instance
|
267 |
*/
|
268 |
+
public function setCreditReferenceId($value)
|
269 |
{
|
270 |
$this->_fields['CreditReferenceId']['FieldValue'] = $value;
|
271 |
return $this;
|
272 |
}
|
273 |
+
|
274 |
/**
|
275 |
* Sets the value of the CreditReferenceId and returns this instance
|
276 |
+
*
|
277 |
* @param string $value CreditReferenceId
|
278 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
279 |
*/
|
282 |
$this->setCreditReferenceId($value);
|
283 |
return $this;
|
284 |
}
|
285 |
+
|
286 |
+
|
287 |
/**
|
288 |
* Checks if CreditReferenceId is set
|
289 |
+
*
|
290 |
* @return bool true if CreditReferenceId is set
|
291 |
*/
|
292 |
public function isSetCreditReferenceId()
|
293 |
{
|
294 |
return !is_null($this->_fields['CreditReferenceId']['FieldValue']);
|
295 |
}
|
296 |
+
|
297 |
/**
|
298 |
* Gets the value of the CreditAmount.
|
299 |
+
*
|
300 |
* @return Price CreditAmount
|
301 |
*/
|
302 |
+
public function getCreditAmount()
|
303 |
{
|
304 |
return $this->_fields['CreditAmount']['FieldValue'];
|
305 |
}
|
306 |
+
|
307 |
/**
|
308 |
* Sets the value of the CreditAmount.
|
309 |
+
*
|
310 |
* @param Price CreditAmount
|
311 |
* @return void
|
312 |
*/
|
313 |
+
public function setCreditAmount($value)
|
314 |
{
|
315 |
$this->_fields['CreditAmount']['FieldValue'] = $value;
|
316 |
return;
|
317 |
}
|
318 |
+
|
319 |
/**
|
320 |
* Sets the value of the CreditAmount and returns this instance
|
321 |
+
*
|
322 |
* @param Price $value CreditAmount
|
323 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
324 |
*/
|
327 |
$this->setCreditAmount($value);
|
328 |
return $this;
|
329 |
}
|
330 |
+
|
331 |
+
|
332 |
/**
|
333 |
* Checks if CreditAmount is set
|
334 |
+
*
|
335 |
* @return bool true if CreditAmount property is set
|
336 |
*/
|
337 |
public function isSetCreditAmount()
|
338 |
{
|
339 |
return !is_null($this->_fields['CreditAmount']['FieldValue']);
|
340 |
+
|
341 |
}
|
342 |
+
|
343 |
/**
|
344 |
* Gets the value of the CreditReversalAmount.
|
345 |
+
*
|
346 |
* @return Price CreditReversalAmount
|
347 |
*/
|
348 |
+
public function getCreditReversalAmount()
|
349 |
{
|
350 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
351 |
}
|
352 |
+
|
353 |
/**
|
354 |
* Sets the value of the CreditReversalAmount.
|
355 |
+
*
|
356 |
* @param Price CreditReversalAmount
|
357 |
* @return void
|
358 |
*/
|
359 |
+
public function setCreditReversalAmount($value)
|
360 |
{
|
361 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
362 |
return;
|
363 |
}
|
364 |
+
|
365 |
/**
|
366 |
* Sets the value of the CreditReversalAmount and returns this instance
|
367 |
+
*
|
368 |
* @param Price $value CreditReversalAmount
|
369 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
370 |
*/
|
373 |
$this->setCreditReversalAmount($value);
|
374 |
return $this;
|
375 |
}
|
376 |
+
|
377 |
+
|
378 |
/**
|
379 |
* Checks if CreditReversalAmount is set
|
380 |
+
*
|
381 |
* @return bool true if CreditReversalAmount property is set
|
382 |
*/
|
383 |
public function isSetCreditReversalAmount()
|
384 |
{
|
385 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
386 |
+
|
387 |
}
|
388 |
+
|
389 |
/**
|
390 |
* Gets the value of the CreditReversalIdList.
|
391 |
+
*
|
392 |
* @return IdList CreditReversalIdList
|
393 |
*/
|
394 |
+
public function getCreditReversalIdList()
|
395 |
{
|
396 |
return $this->_fields['CreditReversalIdList']['FieldValue'];
|
397 |
}
|
398 |
+
|
399 |
/**
|
400 |
* Sets the value of the CreditReversalIdList.
|
401 |
+
*
|
402 |
* @param IdList CreditReversalIdList
|
403 |
* @return void
|
404 |
*/
|
405 |
+
public function setCreditReversalIdList($value)
|
406 |
{
|
407 |
$this->_fields['CreditReversalIdList']['FieldValue'] = $value;
|
408 |
return;
|
409 |
}
|
410 |
+
|
411 |
/**
|
412 |
* Sets the value of the CreditReversalIdList and returns this instance
|
413 |
+
*
|
414 |
* @param IdList $value CreditReversalIdList
|
415 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
416 |
*/
|
419 |
$this->setCreditReversalIdList($value);
|
420 |
return $this;
|
421 |
}
|
422 |
+
|
423 |
+
|
424 |
/**
|
425 |
* Checks if CreditReversalIdList is set
|
426 |
+
*
|
427 |
* @return bool true if CreditReversalIdList property is set
|
428 |
*/
|
429 |
public function isSetCreditReversalIdList()
|
430 |
{
|
431 |
return !is_null($this->_fields['CreditReversalIdList']['FieldValue']);
|
432 |
+
|
433 |
}
|
434 |
+
|
435 |
/**
|
436 |
* Gets the value of the CreationTimestamp property.
|
437 |
+
*
|
438 |
* @return string CreationTimestamp
|
439 |
*/
|
440 |
+
public function getCreationTimestamp()
|
441 |
{
|
442 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
443 |
}
|
444 |
+
|
445 |
/**
|
446 |
* Sets the value of the CreationTimestamp property.
|
447 |
+
*
|
448 |
* @param string CreationTimestamp
|
449 |
* @return this instance
|
450 |
*/
|
451 |
+
public function setCreationTimestamp($value)
|
452 |
{
|
453 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
454 |
return $this;
|
455 |
}
|
456 |
+
|
457 |
/**
|
458 |
* Sets the value of the CreationTimestamp and returns this instance
|
459 |
+
*
|
460 |
* @param string $value CreationTimestamp
|
461 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
462 |
*/
|
465 |
$this->setCreationTimestamp($value);
|
466 |
return $this;
|
467 |
}
|
468 |
+
|
469 |
+
|
470 |
/**
|
471 |
* Checks if CreationTimestamp is set
|
472 |
+
*
|
473 |
* @return bool true if CreationTimestamp is set
|
474 |
*/
|
475 |
public function isSetCreationTimestamp()
|
476 |
{
|
477 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
478 |
}
|
479 |
+
|
480 |
/**
|
481 |
* Gets the value of the CreditStatus.
|
482 |
+
*
|
483 |
* @return Status CreditStatus
|
484 |
*/
|
485 |
+
public function getCreditStatus()
|
486 |
{
|
487 |
return $this->_fields['CreditStatus']['FieldValue'];
|
488 |
}
|
489 |
+
|
490 |
/**
|
491 |
* Sets the value of the CreditStatus.
|
492 |
+
*
|
493 |
* @param Status CreditStatus
|
494 |
* @return void
|
495 |
*/
|
496 |
+
public function setCreditStatus($value)
|
497 |
{
|
498 |
$this->_fields['CreditStatus']['FieldValue'] = $value;
|
499 |
return;
|
500 |
}
|
501 |
+
|
502 |
/**
|
503 |
* Sets the value of the CreditStatus and returns this instance
|
504 |
+
*
|
505 |
* @param Status $value CreditStatus
|
506 |
* @return OffAmazonPaymentsService_Model_ProviderCreditDetails instance
|
507 |
*/
|
510 |
$this->setCreditStatus($value);
|
511 |
return $this;
|
512 |
}
|
513 |
+
|
514 |
+
|
515 |
/**
|
516 |
* Checks if CreditStatus is set
|
517 |
+
*
|
518 |
* @return bool true if CreditStatus property is set
|
519 |
*/
|
520 |
public function isSetCreditStatus()
|
521 |
{
|
522 |
return !is_null($this->_fields['CreditStatus']['FieldValue']);
|
523 |
+
|
524 |
}
|
525 |
+
|
|
|
|
|
|
|
526 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditList.php
CHANGED
@@ -20,72 +20,79 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditList
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCredit</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditList
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCredit</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the member.
|
60 |
-
*
|
61 |
* @return array of ProviderCredit member
|
62 |
*/
|
63 |
-
public function getmember()
|
64 |
{
|
65 |
return $this->_fields['member']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the member.
|
70 |
-
*
|
71 |
* @param mixed ProviderCredit or an array of ProviderCredit member
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setmember($member)
|
75 |
{
|
76 |
if (!$this->_isNumericArray($member)) {
|
77 |
-
$member =
|
|
|
|
|
78 |
}
|
79 |
$this->_fields['member']['FieldValue'] = $member;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
/**
|
85 |
-
* Sets single or multiple values of member list via variable number of arguments.
|
86 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
87 |
* <code>withmember($member1, $member2)</code>
|
88 |
-
*
|
89 |
* @param ProviderCredit $providerCreditArgs one or more member
|
90 |
* @return OffAmazonPaymentsService_Model_ProviderCreditList instance
|
91 |
*/
|
@@ -95,21 +102,18 @@ class OffAmazonPaymentsService_Model_ProviderCreditList extends OffAmazonPayment
|
|
95 |
$this->_fields['member']['FieldValue'][] = $member;
|
96 |
}
|
97 |
return $this;
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
/**
|
103 |
* Checks if member list is non-empty
|
104 |
-
*
|
105 |
* @return bool true if member list is non-empty
|
106 |
*/
|
107 |
public function isSetmember()
|
108 |
{
|
109 |
-
return count
|
110 |
}
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditList
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCredit</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditList
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCredit</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'member' => array(
|
54 |
+
'FieldValue' => array(),
|
55 |
+
'FieldType' => array(
|
56 |
+
'OffAmazonPaymentsService_Model_ProviderCredit'
|
57 |
+
)
|
58 |
+
)
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the member.
|
65 |
+
*
|
66 |
* @return array of ProviderCredit member
|
67 |
*/
|
68 |
+
public function getmember()
|
69 |
{
|
70 |
return $this->_fields['member']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the member.
|
75 |
+
*
|
76 |
* @param mixed ProviderCredit or an array of ProviderCredit member
|
77 |
* @return this instance
|
78 |
*/
|
79 |
+
public function setmember($member)
|
80 |
{
|
81 |
if (!$this->_isNumericArray($member)) {
|
82 |
+
$member = array(
|
83 |
+
$member
|
84 |
+
);
|
85 |
}
|
86 |
$this->_fields['member']['FieldValue'] = $member;
|
87 |
return $this;
|
88 |
}
|
89 |
+
|
90 |
+
|
91 |
/**
|
92 |
+
* Sets single or multiple values of member list via variable number of arguments.
|
93 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
94 |
* <code>withmember($member1, $member2)</code>
|
95 |
+
*
|
96 |
* @param ProviderCredit $providerCreditArgs one or more member
|
97 |
* @return OffAmazonPaymentsService_Model_ProviderCreditList instance
|
98 |
*/
|
102 |
$this->_fields['member']['FieldValue'][] = $member;
|
103 |
}
|
104 |
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
/**
|
110 |
* Checks if member list is non-empty
|
111 |
+
*
|
112 |
* @return bool true if member list is non-empty
|
113 |
*/
|
114 |
public function isSetmember()
|
115 |
{
|
116 |
+
return count($this->_fields['member']['FieldValue']) > 0;
|
117 |
}
|
118 |
+
|
|
|
|
|
|
|
119 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditReversal.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversal
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>CreditReversalAmount: OffAmazonPaymentsService_Model_Price</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCreditReversal extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversal
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>CreditReversalAmount: OffAmazonPaymentsService_Model_Price</li>
|
49 |
*
|
@@ -51,40 +51,46 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversal extends OffAmazonPay
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
-
|
63 |
-
|
64 |
* Gets the value of the ProviderId property.
|
65 |
-
*
|
66 |
* @return string ProviderId
|
67 |
*/
|
68 |
-
public function getProviderId()
|
69 |
{
|
70 |
return $this->_fields['ProviderId']['FieldValue'];
|
71 |
}
|
72 |
-
|
73 |
/**
|
74 |
* Sets the value of the ProviderId property.
|
75 |
-
*
|
76 |
* @param string ProviderId
|
77 |
* @return this instance
|
78 |
*/
|
79 |
-
public function setProviderId($value)
|
80 |
{
|
81 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
82 |
return $this;
|
83 |
}
|
84 |
-
|
85 |
/**
|
86 |
* Sets the value of the ProviderId and returns this instance
|
87 |
-
*
|
88 |
* @param string $value ProviderId
|
89 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversal instance
|
90 |
*/
|
@@ -93,43 +99,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversal extends OffAmazonPay
|
|
93 |
$this->setProviderId($value);
|
94 |
return $this;
|
95 |
}
|
96 |
-
|
97 |
-
|
98 |
/**
|
99 |
* Checks if ProviderId is set
|
100 |
-
*
|
101 |
* @return bool true if ProviderId is set
|
102 |
*/
|
103 |
public function isSetProviderId()
|
104 |
{
|
105 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
106 |
}
|
107 |
-
|
108 |
/**
|
109 |
* Gets the value of the CreditReversalAmount.
|
110 |
-
*
|
111 |
* @return Price CreditReversalAmount
|
112 |
*/
|
113 |
-
public function getCreditReversalAmount()
|
114 |
{
|
115 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
116 |
}
|
117 |
-
|
118 |
/**
|
119 |
* Sets the value of the CreditReversalAmount.
|
120 |
-
*
|
121 |
* @param Price CreditReversalAmount
|
122 |
* @return void
|
123 |
*/
|
124 |
-
public function setCreditReversalAmount($value)
|
125 |
{
|
126 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
127 |
return;
|
128 |
}
|
129 |
-
|
130 |
/**
|
131 |
* Sets the value of the CreditReversalAmount and returns this instance
|
132 |
-
*
|
133 |
* @param Price $value CreditReversalAmount
|
134 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversal instance
|
135 |
*/
|
@@ -138,20 +144,17 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversal extends OffAmazonPay
|
|
138 |
$this->setCreditReversalAmount($value);
|
139 |
return $this;
|
140 |
}
|
141 |
-
|
142 |
-
|
143 |
/**
|
144 |
* Checks if CreditReversalAmount is set
|
145 |
-
*
|
146 |
* @return bool true if CreditReversalAmount property is set
|
147 |
*/
|
148 |
public function isSetCreditReversalAmount()
|
149 |
{
|
150 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
151 |
-
|
152 |
}
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversal
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>CreditReversalAmount: OffAmazonPaymentsService_Model_Price</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCreditReversal extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversal
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>CreditReversalAmount: OffAmazonPaymentsService_Model_Price</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'ProviderId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
|
60 |
+
'CreditReversalAmount' => array(
|
61 |
+
'FieldValue' => null,
|
62 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
63 |
+
)
|
64 |
+
|
65 |
);
|
66 |
parent::__construct($data);
|
67 |
}
|
68 |
+
|
69 |
+
/**
|
70 |
* Gets the value of the ProviderId property.
|
71 |
+
*
|
72 |
* @return string ProviderId
|
73 |
*/
|
74 |
+
public function getProviderId()
|
75 |
{
|
76 |
return $this->_fields['ProviderId']['FieldValue'];
|
77 |
}
|
78 |
+
|
79 |
/**
|
80 |
* Sets the value of the ProviderId property.
|
81 |
+
*
|
82 |
* @param string ProviderId
|
83 |
* @return this instance
|
84 |
*/
|
85 |
+
public function setProviderId($value)
|
86 |
{
|
87 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
88 |
return $this;
|
89 |
}
|
90 |
+
|
91 |
/**
|
92 |
* Sets the value of the ProviderId and returns this instance
|
93 |
+
*
|
94 |
* @param string $value ProviderId
|
95 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversal instance
|
96 |
*/
|
99 |
$this->setProviderId($value);
|
100 |
return $this;
|
101 |
}
|
102 |
+
|
103 |
+
|
104 |
/**
|
105 |
* Checks if ProviderId is set
|
106 |
+
*
|
107 |
* @return bool true if ProviderId is set
|
108 |
*/
|
109 |
public function isSetProviderId()
|
110 |
{
|
111 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
112 |
}
|
113 |
+
|
114 |
/**
|
115 |
* Gets the value of the CreditReversalAmount.
|
116 |
+
*
|
117 |
* @return Price CreditReversalAmount
|
118 |
*/
|
119 |
+
public function getCreditReversalAmount()
|
120 |
{
|
121 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
122 |
}
|
123 |
+
|
124 |
/**
|
125 |
* Sets the value of the CreditReversalAmount.
|
126 |
+
*
|
127 |
* @param Price CreditReversalAmount
|
128 |
* @return void
|
129 |
*/
|
130 |
+
public function setCreditReversalAmount($value)
|
131 |
{
|
132 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
133 |
return;
|
134 |
}
|
135 |
+
|
136 |
/**
|
137 |
* Sets the value of the CreditReversalAmount and returns this instance
|
138 |
+
*
|
139 |
* @param Price $value CreditReversalAmount
|
140 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversal instance
|
141 |
*/
|
144 |
$this->setCreditReversalAmount($value);
|
145 |
return $this;
|
146 |
}
|
147 |
+
|
148 |
+
|
149 |
/**
|
150 |
* Checks if CreditReversalAmount is set
|
151 |
+
*
|
152 |
* @return bool true if CreditReversalAmount property is set
|
153 |
*/
|
154 |
public function isSetCreditReversalAmount()
|
155 |
{
|
156 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
157 |
+
|
158 |
}
|
159 |
+
|
|
|
|
|
|
|
160 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditReversalDetails.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalDetails
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>AmazonProviderCreditReversalId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
* <li>ProviderId: string</li>
|
@@ -38,18 +38,18 @@
|
|
38 |
* <li>CreditReversalNote: string</li>
|
39 |
*
|
40 |
* </ul>
|
41 |
-
*/
|
42 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAmazonPaymentsService_Model
|
43 |
{
|
44 |
-
|
45 |
/**
|
46 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalDetails
|
47 |
-
*
|
48 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
49 |
-
*
|
50 |
* Valid properties:
|
51 |
* <ul>
|
52 |
-
*
|
53 |
* <li>AmazonProviderCreditReversalId: string</li>
|
54 |
* <li>SellerId: string</li>
|
55 |
* <li>ProviderId: string</li>
|
@@ -63,48 +63,72 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
63 |
*/
|
64 |
public function __construct($data = null)
|
65 |
{
|
66 |
-
$this->_fields = array
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
);
|
80 |
parent::__construct($data);
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
* Gets the value of the AmazonProviderCreditReversalId property.
|
85 |
-
*
|
86 |
* @return string AmazonProviderCreditReversalId
|
87 |
*/
|
88 |
-
public function getAmazonProviderCreditReversalId()
|
89 |
{
|
90 |
return $this->_fields['AmazonProviderCreditReversalId']['FieldValue'];
|
91 |
}
|
92 |
-
|
93 |
/**
|
94 |
* Sets the value of the AmazonProviderCreditReversalId property.
|
95 |
-
*
|
96 |
* @param string AmazonProviderCreditReversalId
|
97 |
* @return this instance
|
98 |
*/
|
99 |
-
public function setAmazonProviderCreditReversalId($value)
|
100 |
{
|
101 |
$this->_fields['AmazonProviderCreditReversalId']['FieldValue'] = $value;
|
102 |
return $this;
|
103 |
}
|
104 |
-
|
105 |
/**
|
106 |
* Sets the value of the AmazonProviderCreditReversalId and returns this instance
|
107 |
-
*
|
108 |
* @param string $value AmazonProviderCreditReversalId
|
109 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
110 |
*/
|
@@ -113,43 +137,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
113 |
$this->setAmazonProviderCreditReversalId($value);
|
114 |
return $this;
|
115 |
}
|
116 |
-
|
117 |
-
|
118 |
/**
|
119 |
* Checks if AmazonProviderCreditReversalId is set
|
120 |
-
*
|
121 |
* @return bool true if AmazonProviderCreditReversalId is set
|
122 |
*/
|
123 |
public function isSetAmazonProviderCreditReversalId()
|
124 |
{
|
125 |
return !is_null($this->_fields['AmazonProviderCreditReversalId']['FieldValue']);
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Gets the value of the SellerId property.
|
130 |
-
*
|
131 |
* @return string SellerId
|
132 |
*/
|
133 |
-
public function getSellerId()
|
134 |
{
|
135 |
return $this->_fields['SellerId']['FieldValue'];
|
136 |
}
|
137 |
-
|
138 |
/**
|
139 |
* Sets the value of the SellerId property.
|
140 |
-
*
|
141 |
* @param string SellerId
|
142 |
* @return this instance
|
143 |
*/
|
144 |
-
public function setSellerId($value)
|
145 |
{
|
146 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
147 |
return $this;
|
148 |
}
|
149 |
-
|
150 |
/**
|
151 |
* Sets the value of the SellerId and returns this instance
|
152 |
-
*
|
153 |
* @param string $value SellerId
|
154 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
155 |
*/
|
@@ -158,43 +182,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
158 |
$this->setSellerId($value);
|
159 |
return $this;
|
160 |
}
|
161 |
-
|
162 |
-
|
163 |
/**
|
164 |
* Checks if SellerId is set
|
165 |
-
*
|
166 |
* @return bool true if SellerId is set
|
167 |
*/
|
168 |
public function isSetSellerId()
|
169 |
{
|
170 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
171 |
}
|
172 |
-
|
173 |
/**
|
174 |
* Gets the value of the ProviderId property.
|
175 |
-
*
|
176 |
* @return string ProviderId
|
177 |
*/
|
178 |
-
public function getProviderId()
|
179 |
{
|
180 |
return $this->_fields['ProviderId']['FieldValue'];
|
181 |
}
|
182 |
-
|
183 |
/**
|
184 |
* Sets the value of the ProviderId property.
|
185 |
-
*
|
186 |
* @param string ProviderId
|
187 |
* @return this instance
|
188 |
*/
|
189 |
-
public function setProviderId($value)
|
190 |
{
|
191 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
192 |
return $this;
|
193 |
}
|
194 |
-
|
195 |
/**
|
196 |
* Sets the value of the ProviderId and returns this instance
|
197 |
-
*
|
198 |
* @param string $value ProviderId
|
199 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
200 |
*/
|
@@ -203,43 +227,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
203 |
$this->setProviderId($value);
|
204 |
return $this;
|
205 |
}
|
206 |
-
|
207 |
-
|
208 |
/**
|
209 |
* Checks if ProviderId is set
|
210 |
-
*
|
211 |
* @return bool true if ProviderId is set
|
212 |
*/
|
213 |
public function isSetProviderId()
|
214 |
{
|
215 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
216 |
}
|
217 |
-
|
218 |
/**
|
219 |
* Gets the value of the CreditReversalReferenceId property.
|
220 |
-
*
|
221 |
* @return string CreditReversalReferenceId
|
222 |
*/
|
223 |
-
public function getCreditReversalReferenceId()
|
224 |
{
|
225 |
return $this->_fields['CreditReversalReferenceId']['FieldValue'];
|
226 |
}
|
227 |
-
|
228 |
/**
|
229 |
* Sets the value of the CreditReversalReferenceId property.
|
230 |
-
*
|
231 |
* @param string CreditReversalReferenceId
|
232 |
* @return this instance
|
233 |
*/
|
234 |
-
public function setCreditReversalReferenceId($value)
|
235 |
{
|
236 |
$this->_fields['CreditReversalReferenceId']['FieldValue'] = $value;
|
237 |
return $this;
|
238 |
}
|
239 |
-
|
240 |
/**
|
241 |
* Sets the value of the CreditReversalReferenceId and returns this instance
|
242 |
-
*
|
243 |
* @param string $value CreditReversalReferenceId
|
244 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
245 |
*/
|
@@ -248,43 +272,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
248 |
$this->setCreditReversalReferenceId($value);
|
249 |
return $this;
|
250 |
}
|
251 |
-
|
252 |
-
|
253 |
/**
|
254 |
* Checks if CreditReversalReferenceId is set
|
255 |
-
*
|
256 |
* @return bool true if CreditReversalReferenceId is set
|
257 |
*/
|
258 |
public function isSetCreditReversalReferenceId()
|
259 |
{
|
260 |
return !is_null($this->_fields['CreditReversalReferenceId']['FieldValue']);
|
261 |
}
|
262 |
-
|
263 |
/**
|
264 |
* Gets the value of the CreditReversalAmount.
|
265 |
-
*
|
266 |
* @return Price CreditReversalAmount
|
267 |
*/
|
268 |
-
public function getCreditReversalAmount()
|
269 |
{
|
270 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
271 |
}
|
272 |
-
|
273 |
/**
|
274 |
* Sets the value of the CreditReversalAmount.
|
275 |
-
*
|
276 |
* @param Price CreditReversalAmount
|
277 |
* @return void
|
278 |
*/
|
279 |
-
public function setCreditReversalAmount($value)
|
280 |
{
|
281 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
282 |
return;
|
283 |
}
|
284 |
-
|
285 |
/**
|
286 |
* Sets the value of the CreditReversalAmount and returns this instance
|
287 |
-
*
|
288 |
* @param Price $value CreditReversalAmount
|
289 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
290 |
*/
|
@@ -293,44 +317,44 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
293 |
$this->setCreditReversalAmount($value);
|
294 |
return $this;
|
295 |
}
|
296 |
-
|
297 |
-
|
298 |
/**
|
299 |
* Checks if CreditReversalAmount is set
|
300 |
-
*
|
301 |
* @return bool true if CreditReversalAmount property is set
|
302 |
*/
|
303 |
public function isSetCreditReversalAmount()
|
304 |
{
|
305 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
306 |
-
|
307 |
}
|
308 |
-
|
309 |
/**
|
310 |
* Gets the value of the CreationTimestamp property.
|
311 |
-
*
|
312 |
* @return string CreationTimestamp
|
313 |
*/
|
314 |
-
public function getCreationTimestamp()
|
315 |
{
|
316 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
317 |
}
|
318 |
-
|
319 |
/**
|
320 |
* Sets the value of the CreationTimestamp property.
|
321 |
-
*
|
322 |
* @param string CreationTimestamp
|
323 |
* @return this instance
|
324 |
*/
|
325 |
-
public function setCreationTimestamp($value)
|
326 |
{
|
327 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
328 |
return $this;
|
329 |
}
|
330 |
-
|
331 |
/**
|
332 |
* Sets the value of the CreationTimestamp and returns this instance
|
333 |
-
*
|
334 |
* @param string $value CreationTimestamp
|
335 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
336 |
*/
|
@@ -339,43 +363,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
339 |
$this->setCreationTimestamp($value);
|
340 |
return $this;
|
341 |
}
|
342 |
-
|
343 |
-
|
344 |
/**
|
345 |
* Checks if CreationTimestamp is set
|
346 |
-
*
|
347 |
* @return bool true if CreationTimestamp is set
|
348 |
*/
|
349 |
public function isSetCreationTimestamp()
|
350 |
{
|
351 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
352 |
}
|
353 |
-
|
354 |
/**
|
355 |
* Gets the value of the CreditReversalStatus.
|
356 |
-
*
|
357 |
* @return Status CreditReversalStatus
|
358 |
*/
|
359 |
-
public function getCreditReversalStatus()
|
360 |
{
|
361 |
return $this->_fields['CreditReversalStatus']['FieldValue'];
|
362 |
}
|
363 |
-
|
364 |
/**
|
365 |
* Sets the value of the CreditReversalStatus.
|
366 |
-
*
|
367 |
* @param Status CreditReversalStatus
|
368 |
* @return void
|
369 |
*/
|
370 |
-
public function setCreditReversalStatus($value)
|
371 |
{
|
372 |
$this->_fields['CreditReversalStatus']['FieldValue'] = $value;
|
373 |
return;
|
374 |
}
|
375 |
-
|
376 |
/**
|
377 |
* Sets the value of the CreditReversalStatus and returns this instance
|
378 |
-
*
|
379 |
* @param Status $value CreditReversalStatus
|
380 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
381 |
*/
|
@@ -384,44 +408,44 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
384 |
$this->setCreditReversalStatus($value);
|
385 |
return $this;
|
386 |
}
|
387 |
-
|
388 |
-
|
389 |
/**
|
390 |
* Checks if CreditReversalStatus is set
|
391 |
-
*
|
392 |
* @return bool true if CreditReversalStatus property is set
|
393 |
*/
|
394 |
public function isSetCreditReversalStatus()
|
395 |
{
|
396 |
return !is_null($this->_fields['CreditReversalStatus']['FieldValue']);
|
397 |
-
|
398 |
}
|
399 |
-
|
400 |
/**
|
401 |
* Gets the value of the CreditReversalNote property.
|
402 |
-
*
|
403 |
* @return string CreditReversalNote
|
404 |
*/
|
405 |
-
public function getCreditReversalNote()
|
406 |
{
|
407 |
return $this->_fields['CreditReversalNote']['FieldValue'];
|
408 |
}
|
409 |
-
|
410 |
/**
|
411 |
* Sets the value of the CreditReversalNote property.
|
412 |
-
*
|
413 |
* @param string CreditReversalNote
|
414 |
* @return this instance
|
415 |
*/
|
416 |
-
public function setCreditReversalNote($value)
|
417 |
{
|
418 |
$this->_fields['CreditReversalNote']['FieldValue'] = $value;
|
419 |
return $this;
|
420 |
}
|
421 |
-
|
422 |
/**
|
423 |
* Sets the value of the CreditReversalNote and returns this instance
|
424 |
-
*
|
425 |
* @param string $value CreditReversalNote
|
426 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
427 |
*/
|
@@ -430,19 +454,16 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAm
|
|
430 |
$this->setCreditReversalNote($value);
|
431 |
return $this;
|
432 |
}
|
433 |
-
|
434 |
-
|
435 |
/**
|
436 |
* Checks if CreditReversalNote is set
|
437 |
-
*
|
438 |
* @return bool true if CreditReversalNote is set
|
439 |
*/
|
440 |
public function isSetCreditReversalNote()
|
441 |
{
|
442 |
return !is_null($this->_fields['CreditReversalNote']['FieldValue']);
|
443 |
}
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalDetails
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>AmazonProviderCreditReversalId: string</li>
|
32 |
* <li>SellerId: string</li>
|
33 |
* <li>ProviderId: string</li>
|
38 |
* <li>CreditReversalNote: string</li>
|
39 |
*
|
40 |
* </ul>
|
41 |
+
*/
|
42 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalDetails extends OffAmazonPaymentsService_Model
|
43 |
{
|
44 |
+
|
45 |
/**
|
46 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalDetails
|
47 |
+
*
|
48 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
49 |
+
*
|
50 |
* Valid properties:
|
51 |
* <ul>
|
52 |
+
*
|
53 |
* <li>AmazonProviderCreditReversalId: string</li>
|
54 |
* <li>SellerId: string</li>
|
55 |
* <li>ProviderId: string</li>
|
63 |
*/
|
64 |
public function __construct($data = null)
|
65 |
{
|
66 |
+
$this->_fields = array(
|
67 |
+
'AmazonProviderCreditReversalId' => array(
|
68 |
+
'FieldValue' => null,
|
69 |
+
'FieldType' => 'string'
|
70 |
+
),
|
71 |
+
'SellerId' => array(
|
72 |
+
'FieldValue' => null,
|
73 |
+
'FieldType' => 'string'
|
74 |
+
),
|
75 |
+
'ProviderId' => array(
|
76 |
+
'FieldValue' => null,
|
77 |
+
'FieldType' => 'string'
|
78 |
+
),
|
79 |
+
'CreditReversalReferenceId' => array(
|
80 |
+
'FieldValue' => null,
|
81 |
+
'FieldType' => 'string'
|
82 |
+
),
|
83 |
+
|
84 |
+
'CreditReversalAmount' => array(
|
85 |
+
'FieldValue' => null,
|
86 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
87 |
+
),
|
88 |
+
|
89 |
+
'CreationTimestamp' => array(
|
90 |
+
'FieldValue' => null,
|
91 |
+
'FieldType' => 'string'
|
92 |
+
),
|
93 |
+
|
94 |
+
'CreditReversalStatus' => array(
|
95 |
+
'FieldValue' => null,
|
96 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Status'
|
97 |
+
),
|
98 |
+
|
99 |
+
'CreditReversalNote' => array(
|
100 |
+
'FieldValue' => null,
|
101 |
+
'FieldType' => 'string'
|
102 |
+
)
|
103 |
);
|
104 |
parent::__construct($data);
|
105 |
}
|
106 |
+
|
107 |
+
/**
|
108 |
* Gets the value of the AmazonProviderCreditReversalId property.
|
109 |
+
*
|
110 |
* @return string AmazonProviderCreditReversalId
|
111 |
*/
|
112 |
+
public function getAmazonProviderCreditReversalId()
|
113 |
{
|
114 |
return $this->_fields['AmazonProviderCreditReversalId']['FieldValue'];
|
115 |
}
|
116 |
+
|
117 |
/**
|
118 |
* Sets the value of the AmazonProviderCreditReversalId property.
|
119 |
+
*
|
120 |
* @param string AmazonProviderCreditReversalId
|
121 |
* @return this instance
|
122 |
*/
|
123 |
+
public function setAmazonProviderCreditReversalId($value)
|
124 |
{
|
125 |
$this->_fields['AmazonProviderCreditReversalId']['FieldValue'] = $value;
|
126 |
return $this;
|
127 |
}
|
128 |
+
|
129 |
/**
|
130 |
* Sets the value of the AmazonProviderCreditReversalId and returns this instance
|
131 |
+
*
|
132 |
* @param string $value AmazonProviderCreditReversalId
|
133 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
134 |
*/
|
137 |
$this->setAmazonProviderCreditReversalId($value);
|
138 |
return $this;
|
139 |
}
|
140 |
+
|
141 |
+
|
142 |
/**
|
143 |
* Checks if AmazonProviderCreditReversalId is set
|
144 |
+
*
|
145 |
* @return bool true if AmazonProviderCreditReversalId is set
|
146 |
*/
|
147 |
public function isSetAmazonProviderCreditReversalId()
|
148 |
{
|
149 |
return !is_null($this->_fields['AmazonProviderCreditReversalId']['FieldValue']);
|
150 |
}
|
151 |
+
|
152 |
/**
|
153 |
* Gets the value of the SellerId property.
|
154 |
+
*
|
155 |
* @return string SellerId
|
156 |
*/
|
157 |
+
public function getSellerId()
|
158 |
{
|
159 |
return $this->_fields['SellerId']['FieldValue'];
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the SellerId property.
|
164 |
+
*
|
165 |
* @param string SellerId
|
166 |
* @return this instance
|
167 |
*/
|
168 |
+
public function setSellerId($value)
|
169 |
{
|
170 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
/**
|
175 |
* Sets the value of the SellerId and returns this instance
|
176 |
+
*
|
177 |
* @param string $value SellerId
|
178 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
179 |
*/
|
182 |
$this->setSellerId($value);
|
183 |
return $this;
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
/**
|
188 |
* Checks if SellerId is set
|
189 |
+
*
|
190 |
* @return bool true if SellerId is set
|
191 |
*/
|
192 |
public function isSetSellerId()
|
193 |
{
|
194 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
195 |
}
|
196 |
+
|
197 |
/**
|
198 |
* Gets the value of the ProviderId property.
|
199 |
+
*
|
200 |
* @return string ProviderId
|
201 |
*/
|
202 |
+
public function getProviderId()
|
203 |
{
|
204 |
return $this->_fields['ProviderId']['FieldValue'];
|
205 |
}
|
206 |
+
|
207 |
/**
|
208 |
* Sets the value of the ProviderId property.
|
209 |
+
*
|
210 |
* @param string ProviderId
|
211 |
* @return this instance
|
212 |
*/
|
213 |
+
public function setProviderId($value)
|
214 |
{
|
215 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
216 |
return $this;
|
217 |
}
|
218 |
+
|
219 |
/**
|
220 |
* Sets the value of the ProviderId and returns this instance
|
221 |
+
*
|
222 |
* @param string $value ProviderId
|
223 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
224 |
*/
|
227 |
$this->setProviderId($value);
|
228 |
return $this;
|
229 |
}
|
230 |
+
|
231 |
+
|
232 |
/**
|
233 |
* Checks if ProviderId is set
|
234 |
+
*
|
235 |
* @return bool true if ProviderId is set
|
236 |
*/
|
237 |
public function isSetProviderId()
|
238 |
{
|
239 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
240 |
}
|
241 |
+
|
242 |
/**
|
243 |
* Gets the value of the CreditReversalReferenceId property.
|
244 |
+
*
|
245 |
* @return string CreditReversalReferenceId
|
246 |
*/
|
247 |
+
public function getCreditReversalReferenceId()
|
248 |
{
|
249 |
return $this->_fields['CreditReversalReferenceId']['FieldValue'];
|
250 |
}
|
251 |
+
|
252 |
/**
|
253 |
* Sets the value of the CreditReversalReferenceId property.
|
254 |
+
*
|
255 |
* @param string CreditReversalReferenceId
|
256 |
* @return this instance
|
257 |
*/
|
258 |
+
public function setCreditReversalReferenceId($value)
|
259 |
{
|
260 |
$this->_fields['CreditReversalReferenceId']['FieldValue'] = $value;
|
261 |
return $this;
|
262 |
}
|
263 |
+
|
264 |
/**
|
265 |
* Sets the value of the CreditReversalReferenceId and returns this instance
|
266 |
+
*
|
267 |
* @param string $value CreditReversalReferenceId
|
268 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
269 |
*/
|
272 |
$this->setCreditReversalReferenceId($value);
|
273 |
return $this;
|
274 |
}
|
275 |
+
|
276 |
+
|
277 |
/**
|
278 |
* Checks if CreditReversalReferenceId is set
|
279 |
+
*
|
280 |
* @return bool true if CreditReversalReferenceId is set
|
281 |
*/
|
282 |
public function isSetCreditReversalReferenceId()
|
283 |
{
|
284 |
return !is_null($this->_fields['CreditReversalReferenceId']['FieldValue']);
|
285 |
}
|
286 |
+
|
287 |
/**
|
288 |
* Gets the value of the CreditReversalAmount.
|
289 |
+
*
|
290 |
* @return Price CreditReversalAmount
|
291 |
*/
|
292 |
+
public function getCreditReversalAmount()
|
293 |
{
|
294 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
295 |
}
|
296 |
+
|
297 |
/**
|
298 |
* Sets the value of the CreditReversalAmount.
|
299 |
+
*
|
300 |
* @param Price CreditReversalAmount
|
301 |
* @return void
|
302 |
*/
|
303 |
+
public function setCreditReversalAmount($value)
|
304 |
{
|
305 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
306 |
return;
|
307 |
}
|
308 |
+
|
309 |
/**
|
310 |
* Sets the value of the CreditReversalAmount and returns this instance
|
311 |
+
*
|
312 |
* @param Price $value CreditReversalAmount
|
313 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
314 |
*/
|
317 |
$this->setCreditReversalAmount($value);
|
318 |
return $this;
|
319 |
}
|
320 |
+
|
321 |
+
|
322 |
/**
|
323 |
* Checks if CreditReversalAmount is set
|
324 |
+
*
|
325 |
* @return bool true if CreditReversalAmount property is set
|
326 |
*/
|
327 |
public function isSetCreditReversalAmount()
|
328 |
{
|
329 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
330 |
+
|
331 |
}
|
332 |
+
|
333 |
/**
|
334 |
* Gets the value of the CreationTimestamp property.
|
335 |
+
*
|
336 |
* @return string CreationTimestamp
|
337 |
*/
|
338 |
+
public function getCreationTimestamp()
|
339 |
{
|
340 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
341 |
}
|
342 |
+
|
343 |
/**
|
344 |
* Sets the value of the CreationTimestamp property.
|
345 |
+
*
|
346 |
* @param string CreationTimestamp
|
347 |
* @return this instance
|
348 |
*/
|
349 |
+
public function setCreationTimestamp($value)
|
350 |
{
|
351 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
352 |
return $this;
|
353 |
}
|
354 |
+
|
355 |
/**
|
356 |
* Sets the value of the CreationTimestamp and returns this instance
|
357 |
+
*
|
358 |
* @param string $value CreationTimestamp
|
359 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
360 |
*/
|
363 |
$this->setCreationTimestamp($value);
|
364 |
return $this;
|
365 |
}
|
366 |
+
|
367 |
+
|
368 |
/**
|
369 |
* Checks if CreationTimestamp is set
|
370 |
+
*
|
371 |
* @return bool true if CreationTimestamp is set
|
372 |
*/
|
373 |
public function isSetCreationTimestamp()
|
374 |
{
|
375 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
376 |
}
|
377 |
+
|
378 |
/**
|
379 |
* Gets the value of the CreditReversalStatus.
|
380 |
+
*
|
381 |
* @return Status CreditReversalStatus
|
382 |
*/
|
383 |
+
public function getCreditReversalStatus()
|
384 |
{
|
385 |
return $this->_fields['CreditReversalStatus']['FieldValue'];
|
386 |
}
|
387 |
+
|
388 |
/**
|
389 |
* Sets the value of the CreditReversalStatus.
|
390 |
+
*
|
391 |
* @param Status CreditReversalStatus
|
392 |
* @return void
|
393 |
*/
|
394 |
+
public function setCreditReversalStatus($value)
|
395 |
{
|
396 |
$this->_fields['CreditReversalStatus']['FieldValue'] = $value;
|
397 |
return;
|
398 |
}
|
399 |
+
|
400 |
/**
|
401 |
* Sets the value of the CreditReversalStatus and returns this instance
|
402 |
+
*
|
403 |
* @param Status $value CreditReversalStatus
|
404 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
405 |
*/
|
408 |
$this->setCreditReversalStatus($value);
|
409 |
return $this;
|
410 |
}
|
411 |
+
|
412 |
+
|
413 |
/**
|
414 |
* Checks if CreditReversalStatus is set
|
415 |
+
*
|
416 |
* @return bool true if CreditReversalStatus property is set
|
417 |
*/
|
418 |
public function isSetCreditReversalStatus()
|
419 |
{
|
420 |
return !is_null($this->_fields['CreditReversalStatus']['FieldValue']);
|
421 |
+
|
422 |
}
|
423 |
+
|
424 |
/**
|
425 |
* Gets the value of the CreditReversalNote property.
|
426 |
+
*
|
427 |
* @return string CreditReversalNote
|
428 |
*/
|
429 |
+
public function getCreditReversalNote()
|
430 |
{
|
431 |
return $this->_fields['CreditReversalNote']['FieldValue'];
|
432 |
}
|
433 |
+
|
434 |
/**
|
435 |
* Sets the value of the CreditReversalNote property.
|
436 |
+
*
|
437 |
* @param string CreditReversalNote
|
438 |
* @return this instance
|
439 |
*/
|
440 |
+
public function setCreditReversalNote($value)
|
441 |
{
|
442 |
$this->_fields['CreditReversalNote']['FieldValue'] = $value;
|
443 |
return $this;
|
444 |
}
|
445 |
+
|
446 |
/**
|
447 |
* Sets the value of the CreditReversalNote and returns this instance
|
448 |
+
*
|
449 |
* @param string $value CreditReversalNote
|
450 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails instance
|
451 |
*/
|
454 |
$this->setCreditReversalNote($value);
|
455 |
return $this;
|
456 |
}
|
457 |
+
|
458 |
+
|
459 |
/**
|
460 |
* Checks if CreditReversalNote is set
|
461 |
+
*
|
462 |
* @return bool true if CreditReversalNote is set
|
463 |
*/
|
464 |
public function isSetCreditReversalNote()
|
465 |
{
|
466 |
return !is_null($this->_fields['CreditReversalNote']['FieldValue']);
|
467 |
}
|
468 |
+
|
|
|
|
|
|
|
469 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditReversalList.php
CHANGED
@@ -20,72 +20,79 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalList
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversal</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalList
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversal</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the member.
|
60 |
-
*
|
61 |
* @return array of ProviderCreditReversal member
|
62 |
*/
|
63 |
-
public function getmember()
|
64 |
{
|
65 |
return $this->_fields['member']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the member.
|
70 |
-
*
|
71 |
* @param mixed ProviderCreditReversal or an array of ProviderCreditReversal member
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setmember($member)
|
75 |
{
|
76 |
if (!$this->_isNumericArray($member)) {
|
77 |
-
$member =
|
|
|
|
|
78 |
}
|
79 |
$this->_fields['member']['FieldValue'] = $member;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
/**
|
85 |
-
* Sets single or multiple values of member list via variable number of arguments.
|
86 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
87 |
* <code>withmember($member1, $member2)</code>
|
88 |
-
*
|
89 |
* @param ProviderCreditReversal $providerCreditReversalArgs one or more member
|
90 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalList instance
|
91 |
*/
|
@@ -95,21 +102,18 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalList extends OffAmazo
|
|
95 |
$this->_fields['member']['FieldValue'][] = $member;
|
96 |
}
|
97 |
return $this;
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
/**
|
103 |
* Checks if member list is non-empty
|
104 |
-
*
|
105 |
* @return bool true if member list is non-empty
|
106 |
*/
|
107 |
public function isSetmember()
|
108 |
{
|
109 |
-
return count
|
110 |
}
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalList
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversal</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalList
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversal</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'member' => array(
|
54 |
+
'FieldValue' => array(),
|
55 |
+
'FieldType' => array(
|
56 |
+
'OffAmazonPaymentsService_Model_ProviderCreditReversal'
|
57 |
+
)
|
58 |
+
)
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the member.
|
65 |
+
*
|
66 |
* @return array of ProviderCreditReversal member
|
67 |
*/
|
68 |
+
public function getmember()
|
69 |
{
|
70 |
return $this->_fields['member']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the member.
|
75 |
+
*
|
76 |
* @param mixed ProviderCreditReversal or an array of ProviderCreditReversal member
|
77 |
* @return this instance
|
78 |
*/
|
79 |
+
public function setmember($member)
|
80 |
{
|
81 |
if (!$this->_isNumericArray($member)) {
|
82 |
+
$member = array(
|
83 |
+
$member
|
84 |
+
);
|
85 |
}
|
86 |
$this->_fields['member']['FieldValue'] = $member;
|
87 |
return $this;
|
88 |
}
|
89 |
+
|
90 |
+
|
91 |
/**
|
92 |
+
* Sets single or multiple values of member list via variable number of arguments.
|
93 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
94 |
* <code>withmember($member1, $member2)</code>
|
95 |
+
*
|
96 |
* @param ProviderCreditReversal $providerCreditReversalArgs one or more member
|
97 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalList instance
|
98 |
*/
|
102 |
$this->_fields['member']['FieldValue'][] = $member;
|
103 |
}
|
104 |
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
/**
|
110 |
* Checks if member list is non-empty
|
111 |
+
*
|
112 |
* @return bool true if member list is non-empty
|
113 |
*/
|
114 |
public function isSetmember()
|
115 |
{
|
116 |
+
return count($this->_fields['member']['FieldValue']) > 0;
|
117 |
}
|
118 |
+
|
|
|
|
|
|
|
119 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditReversalSummary.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalSummary
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>ProviderCreditReversalId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalSummary extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalSummary
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>ProviderCreditReversalId: string</li>
|
49 |
*
|
@@ -51,38 +51,44 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalSummary extends OffAm
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the ProviderId property.
|
63 |
-
*
|
64 |
* @return string ProviderId
|
65 |
*/
|
66 |
-
public function getProviderId()
|
67 |
{
|
68 |
return $this->_fields['ProviderId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the ProviderId property.
|
73 |
-
*
|
74 |
* @param string ProviderId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setProviderId($value)
|
78 |
{
|
79 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the ProviderId and returns this instance
|
85 |
-
*
|
86 |
* @param string $value ProviderId
|
87 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalSummary instance
|
88 |
*/
|
@@ -91,43 +97,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalSummary extends OffAm
|
|
91 |
$this->setProviderId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if ProviderId is set
|
98 |
-
*
|
99 |
* @return bool true if ProviderId is set
|
100 |
*/
|
101 |
public function isSetProviderId()
|
102 |
{
|
103 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the ProviderCreditReversalId property.
|
108 |
-
*
|
109 |
* @return string ProviderCreditReversalId
|
110 |
*/
|
111 |
-
public function getProviderCreditReversalId()
|
112 |
{
|
113 |
return $this->_fields['ProviderCreditReversalId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the ProviderCreditReversalId property.
|
118 |
-
*
|
119 |
* @param string ProviderCreditReversalId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setProviderCreditReversalId($value)
|
123 |
{
|
124 |
$this->_fields['ProviderCreditReversalId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the ProviderCreditReversalId and returns this instance
|
130 |
-
*
|
131 |
* @param string $value ProviderCreditReversalId
|
132 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalSummary instance
|
133 |
*/
|
@@ -136,19 +142,16 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalSummary extends OffAm
|
|
136 |
$this->setProviderCreditReversalId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if ProviderCreditReversalId is set
|
143 |
-
*
|
144 |
* @return bool true if ProviderCreditReversalId is set
|
145 |
*/
|
146 |
public function isSetProviderCreditReversalId()
|
147 |
{
|
148 |
return !is_null($this->_fields['ProviderCreditReversalId']['FieldValue']);
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalSummary
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>ProviderCreditReversalId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalSummary extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalSummary
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>ProviderCreditReversalId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'ProviderId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'ProviderCreditReversalId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
)
|
63 |
);
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
+
|
67 |
+
/**
|
68 |
* Gets the value of the ProviderId property.
|
69 |
+
*
|
70 |
* @return string ProviderId
|
71 |
*/
|
72 |
+
public function getProviderId()
|
73 |
{
|
74 |
return $this->_fields['ProviderId']['FieldValue'];
|
75 |
}
|
76 |
+
|
77 |
/**
|
78 |
* Sets the value of the ProviderId property.
|
79 |
+
*
|
80 |
* @param string ProviderId
|
81 |
* @return this instance
|
82 |
*/
|
83 |
+
public function setProviderId($value)
|
84 |
{
|
85 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
86 |
return $this;
|
87 |
}
|
88 |
+
|
89 |
/**
|
90 |
* Sets the value of the ProviderId and returns this instance
|
91 |
+
*
|
92 |
* @param string $value ProviderId
|
93 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalSummary instance
|
94 |
*/
|
97 |
$this->setProviderId($value);
|
98 |
return $this;
|
99 |
}
|
100 |
+
|
101 |
+
|
102 |
/**
|
103 |
* Checks if ProviderId is set
|
104 |
+
*
|
105 |
* @return bool true if ProviderId is set
|
106 |
*/
|
107 |
public function isSetProviderId()
|
108 |
{
|
109 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
110 |
}
|
111 |
+
|
112 |
/**
|
113 |
* Gets the value of the ProviderCreditReversalId property.
|
114 |
+
*
|
115 |
* @return string ProviderCreditReversalId
|
116 |
*/
|
117 |
+
public function getProviderCreditReversalId()
|
118 |
{
|
119 |
return $this->_fields['ProviderCreditReversalId']['FieldValue'];
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Sets the value of the ProviderCreditReversalId property.
|
124 |
+
*
|
125 |
* @param string ProviderCreditReversalId
|
126 |
* @return this instance
|
127 |
*/
|
128 |
+
public function setProviderCreditReversalId($value)
|
129 |
{
|
130 |
$this->_fields['ProviderCreditReversalId']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Sets the value of the ProviderCreditReversalId and returns this instance
|
136 |
+
*
|
137 |
* @param string $value ProviderCreditReversalId
|
138 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalSummary instance
|
139 |
*/
|
142 |
$this->setProviderCreditReversalId($value);
|
143 |
return $this;
|
144 |
}
|
145 |
+
|
146 |
+
|
147 |
/**
|
148 |
* Checks if ProviderCreditReversalId is set
|
149 |
+
*
|
150 |
* @return bool true if ProviderCreditReversalId is set
|
151 |
*/
|
152 |
public function isSetProviderCreditReversalId()
|
153 |
{
|
154 |
return !is_null($this->_fields['ProviderCreditReversalId']['FieldValue']);
|
155 |
}
|
156 |
+
|
|
|
|
|
|
|
157 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditReversalSummaryList.php
CHANGED
@@ -20,72 +20,79 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversalSummary</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversalSummary</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the member.
|
60 |
-
*
|
61 |
* @return array of ProviderCreditReversalSummary member
|
62 |
*/
|
63 |
-
public function getmember()
|
64 |
{
|
65 |
return $this->_fields['member']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the member.
|
70 |
-
*
|
71 |
* @param mixed ProviderCreditReversalSummary or an array of ProviderCreditReversalSummary member
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setmember($member)
|
75 |
{
|
76 |
if (!$this->_isNumericArray($member)) {
|
77 |
-
$member =
|
|
|
|
|
78 |
}
|
79 |
$this->_fields['member']['FieldValue'] = $member;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
/**
|
85 |
-
* Sets single or multiple values of member list via variable number of arguments.
|
86 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
87 |
* <code>withmember($member1, $member2)</code>
|
88 |
-
*
|
89 |
* @param ProviderCreditReversalSummary $providerCreditReversalSummaryArgs one or more member
|
90 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList instance
|
91 |
*/
|
@@ -95,21 +102,18 @@ class OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList extends O
|
|
95 |
$this->_fields['member']['FieldValue'][] = $member;
|
96 |
}
|
97 |
return $this;
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
/**
|
103 |
* Checks if member list is non-empty
|
104 |
-
*
|
105 |
* @return bool true if member list is non-empty
|
106 |
*/
|
107 |
public function isSetmember()
|
108 |
{
|
109 |
-
return count
|
110 |
}
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversalSummary</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditReversalSummary</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'member' => array(
|
54 |
+
'FieldValue' => array(),
|
55 |
+
'FieldType' => array(
|
56 |
+
'OffAmazonPaymentsService_Model_ProviderCreditReversalSummary'
|
57 |
+
)
|
58 |
+
)
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the member.
|
65 |
+
*
|
66 |
* @return array of ProviderCreditReversalSummary member
|
67 |
*/
|
68 |
+
public function getmember()
|
69 |
{
|
70 |
return $this->_fields['member']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the member.
|
75 |
+
*
|
76 |
* @param mixed ProviderCreditReversalSummary or an array of ProviderCreditReversalSummary member
|
77 |
* @return this instance
|
78 |
*/
|
79 |
+
public function setmember($member)
|
80 |
{
|
81 |
if (!$this->_isNumericArray($member)) {
|
82 |
+
$member = array(
|
83 |
+
$member
|
84 |
+
);
|
85 |
}
|
86 |
$this->_fields['member']['FieldValue'] = $member;
|
87 |
return $this;
|
88 |
}
|
89 |
+
|
90 |
+
|
91 |
/**
|
92 |
+
* Sets single or multiple values of member list via variable number of arguments.
|
93 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
94 |
* <code>withmember($member1, $member2)</code>
|
95 |
+
*
|
96 |
* @param ProviderCreditReversalSummary $providerCreditReversalSummaryArgs one or more member
|
97 |
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList instance
|
98 |
*/
|
102 |
$this->_fields['member']['FieldValue'][] = $member;
|
103 |
}
|
104 |
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
/**
|
110 |
* Checks if member list is non-empty
|
111 |
+
*
|
112 |
* @return bool true if member list is non-empty
|
113 |
*/
|
114 |
public function isSetmember()
|
115 |
{
|
116 |
+
return count($this->_fields['member']['FieldValue']) > 0;
|
117 |
}
|
118 |
+
|
|
|
|
|
|
|
119 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditSummary.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditSummary
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>ProviderCreditId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCreditSummary extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditSummary
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>ProviderCreditId: string</li>
|
49 |
*
|
@@ -51,38 +51,44 @@ class OffAmazonPaymentsService_Model_ProviderCreditSummary extends OffAmazonPaym
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
-
|
61 |
-
|
62 |
* Gets the value of the ProviderId property.
|
63 |
-
*
|
64 |
* @return string ProviderId
|
65 |
*/
|
66 |
-
public function getProviderId()
|
67 |
{
|
68 |
return $this->_fields['ProviderId']['FieldValue'];
|
69 |
}
|
70 |
-
|
71 |
/**
|
72 |
* Sets the value of the ProviderId property.
|
73 |
-
*
|
74 |
* @param string ProviderId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
-
public function setProviderId($value)
|
78 |
{
|
79 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
/**
|
84 |
* Sets the value of the ProviderId and returns this instance
|
85 |
-
*
|
86 |
* @param string $value ProviderId
|
87 |
* @return OffAmazonPaymentsService_Model_ProviderCreditSummary instance
|
88 |
*/
|
@@ -91,43 +97,43 @@ class OffAmazonPaymentsService_Model_ProviderCreditSummary extends OffAmazonPaym
|
|
91 |
$this->setProviderId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
-
|
95 |
-
|
96 |
/**
|
97 |
* Checks if ProviderId is set
|
98 |
-
*
|
99 |
* @return bool true if ProviderId is set
|
100 |
*/
|
101 |
public function isSetProviderId()
|
102 |
{
|
103 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
104 |
}
|
105 |
-
|
106 |
/**
|
107 |
* Gets the value of the ProviderCreditId property.
|
108 |
-
*
|
109 |
* @return string ProviderCreditId
|
110 |
*/
|
111 |
-
public function getProviderCreditId()
|
112 |
{
|
113 |
return $this->_fields['ProviderCreditId']['FieldValue'];
|
114 |
}
|
115 |
-
|
116 |
/**
|
117 |
* Sets the value of the ProviderCreditId property.
|
118 |
-
*
|
119 |
* @param string ProviderCreditId
|
120 |
* @return this instance
|
121 |
*/
|
122 |
-
public function setProviderCreditId($value)
|
123 |
{
|
124 |
$this->_fields['ProviderCreditId']['FieldValue'] = $value;
|
125 |
return $this;
|
126 |
}
|
127 |
-
|
128 |
/**
|
129 |
* Sets the value of the ProviderCreditId and returns this instance
|
130 |
-
*
|
131 |
* @param string $value ProviderCreditId
|
132 |
* @return OffAmazonPaymentsService_Model_ProviderCreditSummary instance
|
133 |
*/
|
@@ -136,19 +142,16 @@ class OffAmazonPaymentsService_Model_ProviderCreditSummary extends OffAmazonPaym
|
|
136 |
$this->setProviderCreditId($value);
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
-
|
141 |
/**
|
142 |
* Checks if ProviderCreditId is set
|
143 |
-
*
|
144 |
* @return bool true if ProviderCreditId is set
|
145 |
*/
|
146 |
public function isSetProviderCreditId()
|
147 |
{
|
148 |
return !is_null($this->_fields['ProviderCreditId']['FieldValue']);
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditSummary
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ProviderId: string</li>
|
32 |
* <li>ProviderCreditId: string</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_ProviderCreditSummary extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditSummary
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>ProviderId: string</li>
|
48 |
* <li>ProviderCreditId: string</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
'ProviderId' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
+
),
|
59 |
+
'ProviderCreditId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
)
|
63 |
);
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
+
|
67 |
+
/**
|
68 |
* Gets the value of the ProviderId property.
|
69 |
+
*
|
70 |
* @return string ProviderId
|
71 |
*/
|
72 |
+
public function getProviderId()
|
73 |
{
|
74 |
return $this->_fields['ProviderId']['FieldValue'];
|
75 |
}
|
76 |
+
|
77 |
/**
|
78 |
* Sets the value of the ProviderId property.
|
79 |
+
*
|
80 |
* @param string ProviderId
|
81 |
* @return this instance
|
82 |
*/
|
83 |
+
public function setProviderId($value)
|
84 |
{
|
85 |
$this->_fields['ProviderId']['FieldValue'] = $value;
|
86 |
return $this;
|
87 |
}
|
88 |
+
|
89 |
/**
|
90 |
* Sets the value of the ProviderId and returns this instance
|
91 |
+
*
|
92 |
* @param string $value ProviderId
|
93 |
* @return OffAmazonPaymentsService_Model_ProviderCreditSummary instance
|
94 |
*/
|
97 |
$this->setProviderId($value);
|
98 |
return $this;
|
99 |
}
|
100 |
+
|
101 |
+
|
102 |
/**
|
103 |
* Checks if ProviderId is set
|
104 |
+
*
|
105 |
* @return bool true if ProviderId is set
|
106 |
*/
|
107 |
public function isSetProviderId()
|
108 |
{
|
109 |
return !is_null($this->_fields['ProviderId']['FieldValue']);
|
110 |
}
|
111 |
+
|
112 |
/**
|
113 |
* Gets the value of the ProviderCreditId property.
|
114 |
+
*
|
115 |
* @return string ProviderCreditId
|
116 |
*/
|
117 |
+
public function getProviderCreditId()
|
118 |
{
|
119 |
return $this->_fields['ProviderCreditId']['FieldValue'];
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Sets the value of the ProviderCreditId property.
|
124 |
+
*
|
125 |
* @param string ProviderCreditId
|
126 |
* @return this instance
|
127 |
*/
|
128 |
+
public function setProviderCreditId($value)
|
129 |
{
|
130 |
$this->_fields['ProviderCreditId']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Sets the value of the ProviderCreditId and returns this instance
|
136 |
+
*
|
137 |
* @param string $value ProviderCreditId
|
138 |
* @return OffAmazonPaymentsService_Model_ProviderCreditSummary instance
|
139 |
*/
|
142 |
$this->setProviderCreditId($value);
|
143 |
return $this;
|
144 |
}
|
145 |
+
|
146 |
+
|
147 |
/**
|
148 |
* Checks if ProviderCreditId is set
|
149 |
+
*
|
150 |
* @return bool true if ProviderCreditId is set
|
151 |
*/
|
152 |
public function isSetProviderCreditId()
|
153 |
{
|
154 |
return !is_null($this->_fields['ProviderCreditId']['FieldValue']);
|
155 |
}
|
156 |
+
|
|
|
|
|
|
|
157 |
}
|
lib/OffAmazonPaymentsService/Model/ProviderCreditSummaryList.php
CHANGED
@@ -20,72 +20,79 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditSummaryList
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditSummary</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditSummaryList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditSummaryList
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditSummary</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the member.
|
60 |
-
*
|
61 |
* @return array of ProviderCreditSummary member
|
62 |
*/
|
63 |
-
public function getmember()
|
64 |
{
|
65 |
return $this->_fields['member']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the member.
|
70 |
-
*
|
71 |
* @param mixed ProviderCreditSummary or an array of ProviderCreditSummary member
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setmember($member)
|
75 |
{
|
76 |
if (!$this->_isNumericArray($member)) {
|
77 |
-
$member =
|
|
|
|
|
78 |
}
|
79 |
$this->_fields['member']['FieldValue'] = $member;
|
80 |
return $this;
|
81 |
}
|
82 |
-
|
83 |
-
|
84 |
/**
|
85 |
-
* Sets single or multiple values of member list via variable number of arguments.
|
86 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
87 |
* <code>withmember($member1, $member2)</code>
|
88 |
-
*
|
89 |
* @param ProviderCreditSummary $providerCreditSummaryArgs one or more member
|
90 |
* @return OffAmazonPaymentsService_Model_ProviderCreditSummaryList instance
|
91 |
*/
|
@@ -95,21 +102,18 @@ class OffAmazonPaymentsService_Model_ProviderCreditSummaryList extends OffAmazon
|
|
95 |
$this->_fields['member']['FieldValue'][] = $member;
|
96 |
}
|
97 |
return $this;
|
98 |
-
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
/**
|
103 |
* Checks if member list is non-empty
|
104 |
-
*
|
105 |
* @return bool true if member list is non-empty
|
106 |
*/
|
107 |
public function isSetmember()
|
108 |
{
|
109 |
-
return count
|
110 |
}
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ProviderCreditSummaryList
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditSummary</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_ProviderCreditSummaryList extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ProviderCreditSummaryList
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>member: OffAmazonPaymentsService_Model_ProviderCreditSummary</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'member' => array(
|
54 |
+
'FieldValue' => array(),
|
55 |
+
'FieldType' => array(
|
56 |
+
'OffAmazonPaymentsService_Model_ProviderCreditSummary'
|
57 |
+
)
|
58 |
+
)
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the member.
|
65 |
+
*
|
66 |
* @return array of ProviderCreditSummary member
|
67 |
*/
|
68 |
+
public function getmember()
|
69 |
{
|
70 |
return $this->_fields['member']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the member.
|
75 |
+
*
|
76 |
* @param mixed ProviderCreditSummary or an array of ProviderCreditSummary member
|
77 |
* @return this instance
|
78 |
*/
|
79 |
+
public function setmember($member)
|
80 |
{
|
81 |
if (!$this->_isNumericArray($member)) {
|
82 |
+
$member = array(
|
83 |
+
$member
|
84 |
+
);
|
85 |
}
|
86 |
$this->_fields['member']['FieldValue'] = $member;
|
87 |
return $this;
|
88 |
}
|
89 |
+
|
90 |
+
|
91 |
/**
|
92 |
+
* Sets single or multiple values of member list via variable number of arguments.
|
93 |
* For example, to set the list with two elements, simply pass two values as arguments to this function
|
94 |
* <code>withmember($member1, $member2)</code>
|
95 |
+
*
|
96 |
* @param ProviderCreditSummary $providerCreditSummaryArgs one or more member
|
97 |
* @return OffAmazonPaymentsService_Model_ProviderCreditSummaryList instance
|
98 |
*/
|
102 |
$this->_fields['member']['FieldValue'][] = $member;
|
103 |
}
|
104 |
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
/**
|
110 |
* Checks if member list is non-empty
|
111 |
+
*
|
112 |
* @return bool true if member list is non-empty
|
113 |
*/
|
114 |
public function isSetmember()
|
115 |
{
|
116 |
+
return count($this->_fields['member']['FieldValue']) > 0;
|
117 |
}
|
118 |
+
|
|
|
|
|
|
|
119 |
}
|
lib/OffAmazonPaymentsService/Model/RefundDetails.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundDetails
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>AmazonRefundId: string</li>
|
32 |
* <li>RefundReferenceId: string</li>
|
33 |
* <li>SellerRefundNote: string</li>
|
@@ -39,18 +39,18 @@
|
|
39 |
* <li>SoftDescriptor: string</li>
|
40 |
*
|
41 |
* </ul>
|
42 |
-
*/
|
43 |
class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsService_Model
|
44 |
{
|
45 |
-
|
46 |
/**
|
47 |
* Construct new OffAmazonPaymentsService_Model_RefundDetails
|
48 |
-
*
|
49 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
50 |
-
*
|
51 |
* Valid properties:
|
52 |
* <ul>
|
53 |
-
*
|
54 |
* <li>AmazonRefundId: string</li>
|
55 |
* <li>RefundReferenceId: string</li>
|
56 |
* <li>SellerRefundNote: string</li>
|
@@ -65,53 +65,83 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
65 |
*/
|
66 |
public function __construct($data = null)
|
67 |
{
|
68 |
-
$this->_fields = array
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
);
|
87 |
parent::__construct($data);
|
88 |
}
|
89 |
-
|
90 |
-
|
91 |
* Gets the value of the AmazonRefundId property.
|
92 |
-
*
|
93 |
* @return string AmazonRefundId
|
94 |
*/
|
95 |
-
public function getAmazonRefundId()
|
96 |
{
|
97 |
return $this->_fields['AmazonRefundId']['FieldValue'];
|
98 |
}
|
99 |
-
|
100 |
/**
|
101 |
* Sets the value of the AmazonRefundId property.
|
102 |
-
*
|
103 |
* @param string AmazonRefundId
|
104 |
* @return this instance
|
105 |
*/
|
106 |
-
public function setAmazonRefundId($value)
|
107 |
{
|
108 |
$this->_fields['AmazonRefundId']['FieldValue'] = $value;
|
109 |
return $this;
|
110 |
}
|
111 |
-
|
112 |
/**
|
113 |
* Sets the value of the AmazonRefundId and returns this instance
|
114 |
-
*
|
115 |
* @param string $value AmazonRefundId
|
116 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
117 |
*/
|
@@ -120,43 +150,43 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
120 |
$this->setAmazonRefundId($value);
|
121 |
return $this;
|
122 |
}
|
123 |
-
|
124 |
-
|
125 |
/**
|
126 |
* Checks if AmazonRefundId is set
|
127 |
-
*
|
128 |
* @return bool true if AmazonRefundId is set
|
129 |
*/
|
130 |
public function isSetAmazonRefundId()
|
131 |
{
|
132 |
return !is_null($this->_fields['AmazonRefundId']['FieldValue']);
|
133 |
}
|
134 |
-
|
135 |
/**
|
136 |
* Gets the value of the RefundReferenceId property.
|
137 |
-
*
|
138 |
* @return string RefundReferenceId
|
139 |
*/
|
140 |
-
public function getRefundReferenceId()
|
141 |
{
|
142 |
return $this->_fields['RefundReferenceId']['FieldValue'];
|
143 |
}
|
144 |
-
|
145 |
/**
|
146 |
* Sets the value of the RefundReferenceId property.
|
147 |
-
*
|
148 |
* @param string RefundReferenceId
|
149 |
* @return this instance
|
150 |
*/
|
151 |
-
public function setRefundReferenceId($value)
|
152 |
{
|
153 |
$this->_fields['RefundReferenceId']['FieldValue'] = $value;
|
154 |
return $this;
|
155 |
}
|
156 |
-
|
157 |
/**
|
158 |
* Sets the value of the RefundReferenceId and returns this instance
|
159 |
-
*
|
160 |
* @param string $value RefundReferenceId
|
161 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
162 |
*/
|
@@ -165,43 +195,43 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
165 |
$this->setRefundReferenceId($value);
|
166 |
return $this;
|
167 |
}
|
168 |
-
|
169 |
-
|
170 |
/**
|
171 |
* Checks if RefundReferenceId is set
|
172 |
-
*
|
173 |
* @return bool true if RefundReferenceId is set
|
174 |
*/
|
175 |
public function isSetRefundReferenceId()
|
176 |
{
|
177 |
return !is_null($this->_fields['RefundReferenceId']['FieldValue']);
|
178 |
}
|
179 |
-
|
180 |
/**
|
181 |
* Gets the value of the SellerRefundNote property.
|
182 |
-
*
|
183 |
* @return string SellerRefundNote
|
184 |
*/
|
185 |
-
public function getSellerRefundNote()
|
186 |
{
|
187 |
return $this->_fields['SellerRefundNote']['FieldValue'];
|
188 |
}
|
189 |
-
|
190 |
/**
|
191 |
* Sets the value of the SellerRefundNote property.
|
192 |
-
*
|
193 |
* @param string SellerRefundNote
|
194 |
* @return this instance
|
195 |
*/
|
196 |
-
public function setSellerRefundNote($value)
|
197 |
{
|
198 |
$this->_fields['SellerRefundNote']['FieldValue'] = $value;
|
199 |
return $this;
|
200 |
}
|
201 |
-
|
202 |
/**
|
203 |
* Sets the value of the SellerRefundNote and returns this instance
|
204 |
-
*
|
205 |
* @param string $value SellerRefundNote
|
206 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
207 |
*/
|
@@ -210,43 +240,43 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
210 |
$this->setSellerRefundNote($value);
|
211 |
return $this;
|
212 |
}
|
213 |
-
|
214 |
-
|
215 |
/**
|
216 |
* Checks if SellerRefundNote is set
|
217 |
-
*
|
218 |
* @return bool true if SellerRefundNote is set
|
219 |
*/
|
220 |
public function isSetSellerRefundNote()
|
221 |
{
|
222 |
return !is_null($this->_fields['SellerRefundNote']['FieldValue']);
|
223 |
}
|
224 |
-
|
225 |
/**
|
226 |
* Gets the value of the RefundType property.
|
227 |
-
*
|
228 |
* @return string RefundType
|
229 |
*/
|
230 |
-
public function getRefundType()
|
231 |
{
|
232 |
return $this->_fields['RefundType']['FieldValue'];
|
233 |
}
|
234 |
-
|
235 |
/**
|
236 |
* Sets the value of the RefundType property.
|
237 |
-
*
|
238 |
* @param string RefundType
|
239 |
* @return this instance
|
240 |
*/
|
241 |
-
public function setRefundType($value)
|
242 |
{
|
243 |
$this->_fields['RefundType']['FieldValue'] = $value;
|
244 |
return $this;
|
245 |
}
|
246 |
-
|
247 |
/**
|
248 |
* Sets the value of the RefundType and returns this instance
|
249 |
-
*
|
250 |
* @param string $value RefundType
|
251 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
252 |
*/
|
@@ -255,43 +285,43 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
255 |
$this->setRefundType($value);
|
256 |
return $this;
|
257 |
}
|
258 |
-
|
259 |
-
|
260 |
/**
|
261 |
* Checks if RefundType is set
|
262 |
-
*
|
263 |
* @return bool true if RefundType is set
|
264 |
*/
|
265 |
public function isSetRefundType()
|
266 |
{
|
267 |
return !is_null($this->_fields['RefundType']['FieldValue']);
|
268 |
}
|
269 |
-
|
270 |
/**
|
271 |
* Gets the value of the RefundAmount.
|
272 |
-
*
|
273 |
* @return Price RefundAmount
|
274 |
*/
|
275 |
-
public function getRefundAmount()
|
276 |
{
|
277 |
return $this->_fields['RefundAmount']['FieldValue'];
|
278 |
}
|
279 |
-
|
280 |
/**
|
281 |
* Sets the value of the RefundAmount.
|
282 |
-
*
|
283 |
* @param Price RefundAmount
|
284 |
* @return void
|
285 |
*/
|
286 |
-
public function setRefundAmount($value)
|
287 |
{
|
288 |
$this->_fields['RefundAmount']['FieldValue'] = $value;
|
289 |
return;
|
290 |
}
|
291 |
-
|
292 |
/**
|
293 |
* Sets the value of the RefundAmount and returns this instance
|
294 |
-
*
|
295 |
* @param Price $value RefundAmount
|
296 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
297 |
*/
|
@@ -300,44 +330,44 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
300 |
$this->setRefundAmount($value);
|
301 |
return $this;
|
302 |
}
|
303 |
-
|
304 |
-
|
305 |
/**
|
306 |
* Checks if RefundAmount is set
|
307 |
-
*
|
308 |
* @return bool true if RefundAmount property is set
|
309 |
*/
|
310 |
public function isSetRefundAmount()
|
311 |
{
|
312 |
return !is_null($this->_fields['RefundAmount']['FieldValue']);
|
313 |
-
|
314 |
}
|
315 |
-
|
316 |
/**
|
317 |
* Gets the value of the FeeRefunded.
|
318 |
-
*
|
319 |
* @return Price FeeRefunded
|
320 |
*/
|
321 |
-
public function getFeeRefunded()
|
322 |
{
|
323 |
return $this->_fields['FeeRefunded']['FieldValue'];
|
324 |
}
|
325 |
-
|
326 |
/**
|
327 |
* Sets the value of the FeeRefunded.
|
328 |
-
*
|
329 |
* @param Price FeeRefunded
|
330 |
* @return void
|
331 |
*/
|
332 |
-
public function setFeeRefunded($value)
|
333 |
{
|
334 |
$this->_fields['FeeRefunded']['FieldValue'] = $value;
|
335 |
return;
|
336 |
}
|
337 |
-
|
338 |
/**
|
339 |
* Sets the value of the FeeRefunded and returns this instance
|
340 |
-
*
|
341 |
* @param Price $value FeeRefunded
|
342 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
343 |
*/
|
@@ -346,44 +376,44 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
346 |
$this->setFeeRefunded($value);
|
347 |
return $this;
|
348 |
}
|
349 |
-
|
350 |
-
|
351 |
/**
|
352 |
* Checks if FeeRefunded is set
|
353 |
-
*
|
354 |
* @return bool true if FeeRefunded property is set
|
355 |
*/
|
356 |
public function isSetFeeRefunded()
|
357 |
{
|
358 |
return !is_null($this->_fields['FeeRefunded']['FieldValue']);
|
359 |
-
|
360 |
}
|
361 |
-
|
362 |
/**
|
363 |
* Gets the value of the CreationTimestamp property.
|
364 |
-
*
|
365 |
* @return string CreationTimestamp
|
366 |
*/
|
367 |
-
public function getCreationTimestamp()
|
368 |
{
|
369 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
370 |
}
|
371 |
-
|
372 |
/**
|
373 |
* Sets the value of the CreationTimestamp property.
|
374 |
-
*
|
375 |
* @param string CreationTimestamp
|
376 |
* @return this instance
|
377 |
*/
|
378 |
-
public function setCreationTimestamp($value)
|
379 |
{
|
380 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
381 |
return $this;
|
382 |
}
|
383 |
-
|
384 |
/**
|
385 |
* Sets the value of the CreationTimestamp and returns this instance
|
386 |
-
*
|
387 |
* @param string $value CreationTimestamp
|
388 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
389 |
*/
|
@@ -392,43 +422,43 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
392 |
$this->setCreationTimestamp($value);
|
393 |
return $this;
|
394 |
}
|
395 |
-
|
396 |
-
|
397 |
/**
|
398 |
* Checks if CreationTimestamp is set
|
399 |
-
*
|
400 |
* @return bool true if CreationTimestamp is set
|
401 |
*/
|
402 |
public function isSetCreationTimestamp()
|
403 |
{
|
404 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
405 |
}
|
406 |
-
|
407 |
/**
|
408 |
* Gets the value of the RefundStatus.
|
409 |
-
*
|
410 |
* @return Status RefundStatus
|
411 |
*/
|
412 |
-
public function getRefundStatus()
|
413 |
{
|
414 |
return $this->_fields['RefundStatus']['FieldValue'];
|
415 |
}
|
416 |
-
|
417 |
/**
|
418 |
* Sets the value of the RefundStatus.
|
419 |
-
*
|
420 |
* @param Status RefundStatus
|
421 |
* @return void
|
422 |
*/
|
423 |
-
public function setRefundStatus($value)
|
424 |
{
|
425 |
$this->_fields['RefundStatus']['FieldValue'] = $value;
|
426 |
return;
|
427 |
}
|
428 |
-
|
429 |
/**
|
430 |
* Sets the value of the RefundStatus and returns this instance
|
431 |
-
*
|
432 |
* @param Status $value RefundStatus
|
433 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
434 |
*/
|
@@ -437,44 +467,44 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
437 |
$this->setRefundStatus($value);
|
438 |
return $this;
|
439 |
}
|
440 |
-
|
441 |
-
|
442 |
/**
|
443 |
* Checks if RefundStatus is set
|
444 |
-
*
|
445 |
* @return bool true if RefundStatus property is set
|
446 |
*/
|
447 |
public function isSetRefundStatus()
|
448 |
{
|
449 |
return !is_null($this->_fields['RefundStatus']['FieldValue']);
|
450 |
-
|
451 |
}
|
452 |
-
|
453 |
/**
|
454 |
* Gets the value of the SoftDescriptor property.
|
455 |
-
*
|
456 |
* @return string SoftDescriptor
|
457 |
*/
|
458 |
-
public function getSoftDescriptor()
|
459 |
{
|
460 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
461 |
}
|
462 |
-
|
463 |
/**
|
464 |
* Sets the value of the SoftDescriptor property.
|
465 |
-
*
|
466 |
* @param string SoftDescriptor
|
467 |
* @return this instance
|
468 |
*/
|
469 |
-
public function setSoftDescriptor($value)
|
470 |
{
|
471 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
472 |
return $this;
|
473 |
}
|
474 |
-
|
475 |
/**
|
476 |
* Sets the value of the SoftDescriptor and returns this instance
|
477 |
-
*
|
478 |
* @param string $value SoftDescriptor
|
479 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
480 |
*/
|
@@ -483,18 +513,18 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
483 |
$this->setSoftDescriptor($value);
|
484 |
return $this;
|
485 |
}
|
486 |
-
|
487 |
-
|
488 |
/**
|
489 |
* Checks if SoftDescriptor is set
|
490 |
-
*
|
491 |
* @return bool true if SoftDescriptor is set
|
492 |
*/
|
493 |
public function isSetSoftDescriptor()
|
494 |
{
|
495 |
return !is_null($this->_fields['SoftDescriptor']['FieldValue']);
|
496 |
}
|
497 |
-
|
498 |
/**
|
499 |
* Gets the value of the ProviderCreditReversalSummaryList.
|
500 |
*
|
@@ -502,7 +532,7 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
502 |
*/
|
503 |
public function getProviderCreditReversalSummaryList()
|
504 |
{
|
505 |
-
|
506 |
}
|
507 |
|
508 |
/**
|
@@ -513,8 +543,8 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
513 |
*/
|
514 |
public function setProviderCreditReversalSummaryList($value)
|
515 |
{
|
516 |
-
|
517 |
-
|
518 |
}
|
519 |
|
520 |
/**
|
@@ -525,8 +555,8 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
525 |
*/
|
526 |
public function withProviderCreditReversalSummaryList($value)
|
527 |
{
|
528 |
-
|
529 |
-
|
530 |
}
|
531 |
|
532 |
|
@@ -537,8 +567,8 @@ class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsServ
|
|
537 |
*/
|
538 |
public function isSetProviderCreditReversalSummaryList()
|
539 |
{
|
540 |
-
|
541 |
-
|
542 |
}
|
543 |
-
|
544 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundDetails
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>AmazonRefundId: string</li>
|
32 |
* <li>RefundReferenceId: string</li>
|
33 |
* <li>SellerRefundNote: string</li>
|
39 |
* <li>SoftDescriptor: string</li>
|
40 |
*
|
41 |
* </ul>
|
42 |
+
*/
|
43 |
class OffAmazonPaymentsService_Model_RefundDetails extends OffAmazonPaymentsService_Model
|
44 |
{
|
45 |
+
|
46 |
/**
|
47 |
* Construct new OffAmazonPaymentsService_Model_RefundDetails
|
48 |
+
*
|
49 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
50 |
+
*
|
51 |
* Valid properties:
|
52 |
* <ul>
|
53 |
+
*
|
54 |
* <li>AmazonRefundId: string</li>
|
55 |
* <li>RefundReferenceId: string</li>
|
56 |
* <li>SellerRefundNote: string</li>
|
65 |
*/
|
66 |
public function __construct($data = null)
|
67 |
{
|
68 |
+
$this->_fields = array(
|
69 |
+
'AmazonRefundId' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
),
|
73 |
+
'RefundReferenceId' => array(
|
74 |
+
'FieldValue' => null,
|
75 |
+
'FieldType' => 'string'
|
76 |
+
),
|
77 |
+
'SellerRefundNote' => array(
|
78 |
+
'FieldValue' => null,
|
79 |
+
'FieldType' => 'string'
|
80 |
+
),
|
81 |
+
'RefundType' => array(
|
82 |
+
'FieldValue' => null,
|
83 |
+
'FieldType' => 'string'
|
84 |
+
),
|
85 |
+
|
86 |
+
'RefundAmount' => array(
|
87 |
+
'FieldValue' => null,
|
88 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
89 |
+
),
|
90 |
+
|
91 |
+
|
92 |
+
'FeeRefunded' => array(
|
93 |
+
'FieldValue' => null,
|
94 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
95 |
+
),
|
96 |
+
|
97 |
+
'CreationTimestamp' => array(
|
98 |
+
'FieldValue' => null,
|
99 |
+
'FieldType' => 'string'
|
100 |
+
),
|
101 |
+
|
102 |
+
'RefundStatus' => array(
|
103 |
+
'FieldValue' => null,
|
104 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Status'
|
105 |
+
),
|
106 |
+
|
107 |
+
'SoftDescriptor' => array(
|
108 |
+
'FieldValue' => null,
|
109 |
+
'FieldType' => 'string'
|
110 |
+
),
|
111 |
+
|
112 |
+
'ProviderCreditReversalSummaryList' => array(
|
113 |
+
'FieldValue' => null,
|
114 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditReversalSummaryList'
|
115 |
+
)
|
116 |
);
|
117 |
parent::__construct($data);
|
118 |
}
|
119 |
+
|
120 |
+
/**
|
121 |
* Gets the value of the AmazonRefundId property.
|
122 |
+
*
|
123 |
* @return string AmazonRefundId
|
124 |
*/
|
125 |
+
public function getAmazonRefundId()
|
126 |
{
|
127 |
return $this->_fields['AmazonRefundId']['FieldValue'];
|
128 |
}
|
129 |
+
|
130 |
/**
|
131 |
* Sets the value of the AmazonRefundId property.
|
132 |
+
*
|
133 |
* @param string AmazonRefundId
|
134 |
* @return this instance
|
135 |
*/
|
136 |
+
public function setAmazonRefundId($value)
|
137 |
{
|
138 |
$this->_fields['AmazonRefundId']['FieldValue'] = $value;
|
139 |
return $this;
|
140 |
}
|
141 |
+
|
142 |
/**
|
143 |
* Sets the value of the AmazonRefundId and returns this instance
|
144 |
+
*
|
145 |
* @param string $value AmazonRefundId
|
146 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
147 |
*/
|
150 |
$this->setAmazonRefundId($value);
|
151 |
return $this;
|
152 |
}
|
153 |
+
|
154 |
+
|
155 |
/**
|
156 |
* Checks if AmazonRefundId is set
|
157 |
+
*
|
158 |
* @return bool true if AmazonRefundId is set
|
159 |
*/
|
160 |
public function isSetAmazonRefundId()
|
161 |
{
|
162 |
return !is_null($this->_fields['AmazonRefundId']['FieldValue']);
|
163 |
}
|
164 |
+
|
165 |
/**
|
166 |
* Gets the value of the RefundReferenceId property.
|
167 |
+
*
|
168 |
* @return string RefundReferenceId
|
169 |
*/
|
170 |
+
public function getRefundReferenceId()
|
171 |
{
|
172 |
return $this->_fields['RefundReferenceId']['FieldValue'];
|
173 |
}
|
174 |
+
|
175 |
/**
|
176 |
* Sets the value of the RefundReferenceId property.
|
177 |
+
*
|
178 |
* @param string RefundReferenceId
|
179 |
* @return this instance
|
180 |
*/
|
181 |
+
public function setRefundReferenceId($value)
|
182 |
{
|
183 |
$this->_fields['RefundReferenceId']['FieldValue'] = $value;
|
184 |
return $this;
|
185 |
}
|
186 |
+
|
187 |
/**
|
188 |
* Sets the value of the RefundReferenceId and returns this instance
|
189 |
+
*
|
190 |
* @param string $value RefundReferenceId
|
191 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
192 |
*/
|
195 |
$this->setRefundReferenceId($value);
|
196 |
return $this;
|
197 |
}
|
198 |
+
|
199 |
+
|
200 |
/**
|
201 |
* Checks if RefundReferenceId is set
|
202 |
+
*
|
203 |
* @return bool true if RefundReferenceId is set
|
204 |
*/
|
205 |
public function isSetRefundReferenceId()
|
206 |
{
|
207 |
return !is_null($this->_fields['RefundReferenceId']['FieldValue']);
|
208 |
}
|
209 |
+
|
210 |
/**
|
211 |
* Gets the value of the SellerRefundNote property.
|
212 |
+
*
|
213 |
* @return string SellerRefundNote
|
214 |
*/
|
215 |
+
public function getSellerRefundNote()
|
216 |
{
|
217 |
return $this->_fields['SellerRefundNote']['FieldValue'];
|
218 |
}
|
219 |
+
|
220 |
/**
|
221 |
* Sets the value of the SellerRefundNote property.
|
222 |
+
*
|
223 |
* @param string SellerRefundNote
|
224 |
* @return this instance
|
225 |
*/
|
226 |
+
public function setSellerRefundNote($value)
|
227 |
{
|
228 |
$this->_fields['SellerRefundNote']['FieldValue'] = $value;
|
229 |
return $this;
|
230 |
}
|
231 |
+
|
232 |
/**
|
233 |
* Sets the value of the SellerRefundNote and returns this instance
|
234 |
+
*
|
235 |
* @param string $value SellerRefundNote
|
236 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
237 |
*/
|
240 |
$this->setSellerRefundNote($value);
|
241 |
return $this;
|
242 |
}
|
243 |
+
|
244 |
+
|
245 |
/**
|
246 |
* Checks if SellerRefundNote is set
|
247 |
+
*
|
248 |
* @return bool true if SellerRefundNote is set
|
249 |
*/
|
250 |
public function isSetSellerRefundNote()
|
251 |
{
|
252 |
return !is_null($this->_fields['SellerRefundNote']['FieldValue']);
|
253 |
}
|
254 |
+
|
255 |
/**
|
256 |
* Gets the value of the RefundType property.
|
257 |
+
*
|
258 |
* @return string RefundType
|
259 |
*/
|
260 |
+
public function getRefundType()
|
261 |
{
|
262 |
return $this->_fields['RefundType']['FieldValue'];
|
263 |
}
|
264 |
+
|
265 |
/**
|
266 |
* Sets the value of the RefundType property.
|
267 |
+
*
|
268 |
* @param string RefundType
|
269 |
* @return this instance
|
270 |
*/
|
271 |
+
public function setRefundType($value)
|
272 |
{
|
273 |
$this->_fields['RefundType']['FieldValue'] = $value;
|
274 |
return $this;
|
275 |
}
|
276 |
+
|
277 |
/**
|
278 |
* Sets the value of the RefundType and returns this instance
|
279 |
+
*
|
280 |
* @param string $value RefundType
|
281 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
282 |
*/
|
285 |
$this->setRefundType($value);
|
286 |
return $this;
|
287 |
}
|
288 |
+
|
289 |
+
|
290 |
/**
|
291 |
* Checks if RefundType is set
|
292 |
+
*
|
293 |
* @return bool true if RefundType is set
|
294 |
*/
|
295 |
public function isSetRefundType()
|
296 |
{
|
297 |
return !is_null($this->_fields['RefundType']['FieldValue']);
|
298 |
}
|
299 |
+
|
300 |
/**
|
301 |
* Gets the value of the RefundAmount.
|
302 |
+
*
|
303 |
* @return Price RefundAmount
|
304 |
*/
|
305 |
+
public function getRefundAmount()
|
306 |
{
|
307 |
return $this->_fields['RefundAmount']['FieldValue'];
|
308 |
}
|
309 |
+
|
310 |
/**
|
311 |
* Sets the value of the RefundAmount.
|
312 |
+
*
|
313 |
* @param Price RefundAmount
|
314 |
* @return void
|
315 |
*/
|
316 |
+
public function setRefundAmount($value)
|
317 |
{
|
318 |
$this->_fields['RefundAmount']['FieldValue'] = $value;
|
319 |
return;
|
320 |
}
|
321 |
+
|
322 |
/**
|
323 |
* Sets the value of the RefundAmount and returns this instance
|
324 |
+
*
|
325 |
* @param Price $value RefundAmount
|
326 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
327 |
*/
|
330 |
$this->setRefundAmount($value);
|
331 |
return $this;
|
332 |
}
|
333 |
+
|
334 |
+
|
335 |
/**
|
336 |
* Checks if RefundAmount is set
|
337 |
+
*
|
338 |
* @return bool true if RefundAmount property is set
|
339 |
*/
|
340 |
public function isSetRefundAmount()
|
341 |
{
|
342 |
return !is_null($this->_fields['RefundAmount']['FieldValue']);
|
343 |
+
|
344 |
}
|
345 |
+
|
346 |
/**
|
347 |
* Gets the value of the FeeRefunded.
|
348 |
+
*
|
349 |
* @return Price FeeRefunded
|
350 |
*/
|
351 |
+
public function getFeeRefunded()
|
352 |
{
|
353 |
return $this->_fields['FeeRefunded']['FieldValue'];
|
354 |
}
|
355 |
+
|
356 |
/**
|
357 |
* Sets the value of the FeeRefunded.
|
358 |
+
*
|
359 |
* @param Price FeeRefunded
|
360 |
* @return void
|
361 |
*/
|
362 |
+
public function setFeeRefunded($value)
|
363 |
{
|
364 |
$this->_fields['FeeRefunded']['FieldValue'] = $value;
|
365 |
return;
|
366 |
}
|
367 |
+
|
368 |
/**
|
369 |
* Sets the value of the FeeRefunded and returns this instance
|
370 |
+
*
|
371 |
* @param Price $value FeeRefunded
|
372 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
373 |
*/
|
376 |
$this->setFeeRefunded($value);
|
377 |
return $this;
|
378 |
}
|
379 |
+
|
380 |
+
|
381 |
/**
|
382 |
* Checks if FeeRefunded is set
|
383 |
+
*
|
384 |
* @return bool true if FeeRefunded property is set
|
385 |
*/
|
386 |
public function isSetFeeRefunded()
|
387 |
{
|
388 |
return !is_null($this->_fields['FeeRefunded']['FieldValue']);
|
389 |
+
|
390 |
}
|
391 |
+
|
392 |
/**
|
393 |
* Gets the value of the CreationTimestamp property.
|
394 |
+
*
|
395 |
* @return string CreationTimestamp
|
396 |
*/
|
397 |
+
public function getCreationTimestamp()
|
398 |
{
|
399 |
return $this->_fields['CreationTimestamp']['FieldValue'];
|
400 |
}
|
401 |
+
|
402 |
/**
|
403 |
* Sets the value of the CreationTimestamp property.
|
404 |
+
*
|
405 |
* @param string CreationTimestamp
|
406 |
* @return this instance
|
407 |
*/
|
408 |
+
public function setCreationTimestamp($value)
|
409 |
{
|
410 |
$this->_fields['CreationTimestamp']['FieldValue'] = $value;
|
411 |
return $this;
|
412 |
}
|
413 |
+
|
414 |
/**
|
415 |
* Sets the value of the CreationTimestamp and returns this instance
|
416 |
+
*
|
417 |
* @param string $value CreationTimestamp
|
418 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
419 |
*/
|
422 |
$this->setCreationTimestamp($value);
|
423 |
return $this;
|
424 |
}
|
425 |
+
|
426 |
+
|
427 |
/**
|
428 |
* Checks if CreationTimestamp is set
|
429 |
+
*
|
430 |
* @return bool true if CreationTimestamp is set
|
431 |
*/
|
432 |
public function isSetCreationTimestamp()
|
433 |
{
|
434 |
return !is_null($this->_fields['CreationTimestamp']['FieldValue']);
|
435 |
}
|
436 |
+
|
437 |
/**
|
438 |
* Gets the value of the RefundStatus.
|
439 |
+
*
|
440 |
* @return Status RefundStatus
|
441 |
*/
|
442 |
+
public function getRefundStatus()
|
443 |
{
|
444 |
return $this->_fields['RefundStatus']['FieldValue'];
|
445 |
}
|
446 |
+
|
447 |
/**
|
448 |
* Sets the value of the RefundStatus.
|
449 |
+
*
|
450 |
* @param Status RefundStatus
|
451 |
* @return void
|
452 |
*/
|
453 |
+
public function setRefundStatus($value)
|
454 |
{
|
455 |
$this->_fields['RefundStatus']['FieldValue'] = $value;
|
456 |
return;
|
457 |
}
|
458 |
+
|
459 |
/**
|
460 |
* Sets the value of the RefundStatus and returns this instance
|
461 |
+
*
|
462 |
* @param Status $value RefundStatus
|
463 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
464 |
*/
|
467 |
$this->setRefundStatus($value);
|
468 |
return $this;
|
469 |
}
|
470 |
+
|
471 |
+
|
472 |
/**
|
473 |
* Checks if RefundStatus is set
|
474 |
+
*
|
475 |
* @return bool true if RefundStatus property is set
|
476 |
*/
|
477 |
public function isSetRefundStatus()
|
478 |
{
|
479 |
return !is_null($this->_fields['RefundStatus']['FieldValue']);
|
480 |
+
|
481 |
}
|
482 |
+
|
483 |
/**
|
484 |
* Gets the value of the SoftDescriptor property.
|
485 |
+
*
|
486 |
* @return string SoftDescriptor
|
487 |
*/
|
488 |
+
public function getSoftDescriptor()
|
489 |
{
|
490 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
491 |
}
|
492 |
+
|
493 |
/**
|
494 |
* Sets the value of the SoftDescriptor property.
|
495 |
+
*
|
496 |
* @param string SoftDescriptor
|
497 |
* @return this instance
|
498 |
*/
|
499 |
+
public function setSoftDescriptor($value)
|
500 |
{
|
501 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
502 |
return $this;
|
503 |
}
|
504 |
+
|
505 |
/**
|
506 |
* Sets the value of the SoftDescriptor and returns this instance
|
507 |
+
*
|
508 |
* @param string $value SoftDescriptor
|
509 |
* @return OffAmazonPaymentsService_Model_RefundDetails instance
|
510 |
*/
|
513 |
$this->setSoftDescriptor($value);
|
514 |
return $this;
|
515 |
}
|
516 |
+
|
517 |
+
|
518 |
/**
|
519 |
* Checks if SoftDescriptor is set
|
520 |
+
*
|
521 |
* @return bool true if SoftDescriptor is set
|
522 |
*/
|
523 |
public function isSetSoftDescriptor()
|
524 |
{
|
525 |
return !is_null($this->_fields['SoftDescriptor']['FieldValue']);
|
526 |
}
|
527 |
+
|
528 |
/**
|
529 |
* Gets the value of the ProviderCreditReversalSummaryList.
|
530 |
*
|
532 |
*/
|
533 |
public function getProviderCreditReversalSummaryList()
|
534 |
{
|
535 |
+
return $this->_fields['ProviderCreditReversalSummaryList']['FieldValue'];
|
536 |
}
|
537 |
|
538 |
/**
|
543 |
*/
|
544 |
public function setProviderCreditReversalSummaryList($value)
|
545 |
{
|
546 |
+
$this->_fields['ProviderCreditReversalSummaryList']['FieldValue'] = $value;
|
547 |
+
return;
|
548 |
}
|
549 |
|
550 |
/**
|
555 |
*/
|
556 |
public function withProviderCreditReversalSummaryList($value)
|
557 |
{
|
558 |
+
$this->setProviderCreditReversalSummaryList($value);
|
559 |
+
return $this;
|
560 |
}
|
561 |
|
562 |
|
567 |
*/
|
568 |
public function isSetProviderCreditReversalSummaryList()
|
569 |
{
|
570 |
+
return !is_null($this->_fields['ProviderCreditReversalSummaryList']['FieldValue']);
|
571 |
+
|
572 |
}
|
573 |
+
|
574 |
+
}
|
lib/OffAmazonPaymentsService/Model/RefundRequest.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonCaptureId: string</li>
|
33 |
* <li>RefundReferenceId: string</li>
|
@@ -36,18 +36,18 @@
|
|
36 |
* <li>SoftDescriptor: string</li>
|
37 |
*
|
38 |
* </ul>
|
39 |
-
*/
|
40 |
class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsService_Model
|
41 |
{
|
42 |
-
|
43 |
/**
|
44 |
* Construct new OffAmazonPaymentsService_Model_RefundRequest
|
45 |
-
*
|
46 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
47 |
-
*
|
48 |
* Valid properties:
|
49 |
* <ul>
|
50 |
-
*
|
51 |
* <li>SellerId: string</li>
|
52 |
* <li>AmazonCaptureId: string</li>
|
53 |
* <li>RefundReferenceId: string</li>
|
@@ -59,45 +59,70 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
59 |
*/
|
60 |
public function __construct($data = null)
|
61 |
{
|
62 |
-
$this->_fields = array
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
);
|
73 |
parent::__construct($data);
|
74 |
}
|
75 |
-
|
76 |
-
|
77 |
* Gets the value of the SellerId property.
|
78 |
-
*
|
79 |
* @return string SellerId
|
80 |
*/
|
81 |
-
public function getSellerId()
|
82 |
{
|
83 |
return $this->_fields['SellerId']['FieldValue'];
|
84 |
}
|
85 |
-
|
86 |
/**
|
87 |
* Sets the value of the SellerId property.
|
88 |
-
*
|
89 |
* @param string SellerId
|
90 |
* @return this instance
|
91 |
*/
|
92 |
-
public function setSellerId($value)
|
93 |
{
|
94 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
95 |
return $this;
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the SellerId and returns this instance
|
100 |
-
*
|
101 |
* @param string $value SellerId
|
102 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
103 |
*/
|
@@ -106,43 +131,43 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
106 |
$this->setSellerId($value);
|
107 |
return $this;
|
108 |
}
|
109 |
-
|
110 |
-
|
111 |
/**
|
112 |
* Checks if SellerId is set
|
113 |
-
*
|
114 |
* @return bool true if SellerId is set
|
115 |
*/
|
116 |
public function isSetSellerId()
|
117 |
{
|
118 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
119 |
}
|
120 |
-
|
121 |
/**
|
122 |
* Gets the value of the AmazonCaptureId property.
|
123 |
-
*
|
124 |
* @return string AmazonCaptureId
|
125 |
*/
|
126 |
-
public function getAmazonCaptureId()
|
127 |
{
|
128 |
return $this->_fields['AmazonCaptureId']['FieldValue'];
|
129 |
}
|
130 |
-
|
131 |
/**
|
132 |
* Sets the value of the AmazonCaptureId property.
|
133 |
-
*
|
134 |
* @param string AmazonCaptureId
|
135 |
* @return this instance
|
136 |
*/
|
137 |
-
public function setAmazonCaptureId($value)
|
138 |
{
|
139 |
$this->_fields['AmazonCaptureId']['FieldValue'] = $value;
|
140 |
return $this;
|
141 |
}
|
142 |
-
|
143 |
/**
|
144 |
* Sets the value of the AmazonCaptureId and returns this instance
|
145 |
-
*
|
146 |
* @param string $value AmazonCaptureId
|
147 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
148 |
*/
|
@@ -151,43 +176,43 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
151 |
$this->setAmazonCaptureId($value);
|
152 |
return $this;
|
153 |
}
|
154 |
-
|
155 |
-
|
156 |
/**
|
157 |
* Checks if AmazonCaptureId is set
|
158 |
-
*
|
159 |
* @return bool true if AmazonCaptureId is set
|
160 |
*/
|
161 |
public function isSetAmazonCaptureId()
|
162 |
{
|
163 |
return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
|
164 |
}
|
165 |
-
|
166 |
/**
|
167 |
* Gets the value of the RefundReferenceId property.
|
168 |
-
*
|
169 |
* @return string RefundReferenceId
|
170 |
*/
|
171 |
-
public function getRefundReferenceId()
|
172 |
{
|
173 |
return $this->_fields['RefundReferenceId']['FieldValue'];
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* Sets the value of the RefundReferenceId property.
|
178 |
-
*
|
179 |
* @param string RefundReferenceId
|
180 |
* @return this instance
|
181 |
*/
|
182 |
-
public function setRefundReferenceId($value)
|
183 |
{
|
184 |
$this->_fields['RefundReferenceId']['FieldValue'] = $value;
|
185 |
return $this;
|
186 |
}
|
187 |
-
|
188 |
/**
|
189 |
* Sets the value of the RefundReferenceId and returns this instance
|
190 |
-
*
|
191 |
* @param string $value RefundReferenceId
|
192 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
193 |
*/
|
@@ -196,43 +221,43 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
196 |
$this->setRefundReferenceId($value);
|
197 |
return $this;
|
198 |
}
|
199 |
-
|
200 |
-
|
201 |
/**
|
202 |
* Checks if RefundReferenceId is set
|
203 |
-
*
|
204 |
* @return bool true if RefundReferenceId is set
|
205 |
*/
|
206 |
public function isSetRefundReferenceId()
|
207 |
{
|
208 |
return !is_null($this->_fields['RefundReferenceId']['FieldValue']);
|
209 |
}
|
210 |
-
|
211 |
/**
|
212 |
* Gets the value of the RefundAmount.
|
213 |
-
*
|
214 |
* @return Price RefundAmount
|
215 |
*/
|
216 |
-
public function getRefundAmount()
|
217 |
{
|
218 |
return $this->_fields['RefundAmount']['FieldValue'];
|
219 |
}
|
220 |
-
|
221 |
/**
|
222 |
* Sets the value of the RefundAmount.
|
223 |
-
*
|
224 |
* @param Price RefundAmount
|
225 |
* @return void
|
226 |
*/
|
227 |
-
public function setRefundAmount($value)
|
228 |
{
|
229 |
$this->_fields['RefundAmount']['FieldValue'] = $value;
|
230 |
return;
|
231 |
}
|
232 |
-
|
233 |
/**
|
234 |
* Sets the value of the RefundAmount and returns this instance
|
235 |
-
*
|
236 |
* @param Price $value RefundAmount
|
237 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
238 |
*/
|
@@ -241,44 +266,44 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
241 |
$this->setRefundAmount($value);
|
242 |
return $this;
|
243 |
}
|
244 |
-
|
245 |
-
|
246 |
/**
|
247 |
* Checks if RefundAmount is set
|
248 |
-
*
|
249 |
* @return bool true if RefundAmount property is set
|
250 |
*/
|
251 |
public function isSetRefundAmount()
|
252 |
{
|
253 |
return !is_null($this->_fields['RefundAmount']['FieldValue']);
|
254 |
-
|
255 |
}
|
256 |
-
|
257 |
/**
|
258 |
* Gets the value of the SellerRefundNote property.
|
259 |
-
*
|
260 |
* @return string SellerRefundNote
|
261 |
*/
|
262 |
-
public function getSellerRefundNote()
|
263 |
{
|
264 |
return $this->_fields['SellerRefundNote']['FieldValue'];
|
265 |
}
|
266 |
-
|
267 |
/**
|
268 |
* Sets the value of the SellerRefundNote property.
|
269 |
-
*
|
270 |
* @param string SellerRefundNote
|
271 |
* @return this instance
|
272 |
*/
|
273 |
-
public function setSellerRefundNote($value)
|
274 |
{
|
275 |
$this->_fields['SellerRefundNote']['FieldValue'] = $value;
|
276 |
return $this;
|
277 |
}
|
278 |
-
|
279 |
/**
|
280 |
* Sets the value of the SellerRefundNote and returns this instance
|
281 |
-
*
|
282 |
* @param string $value SellerRefundNote
|
283 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
284 |
*/
|
@@ -287,43 +312,43 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
287 |
$this->setSellerRefundNote($value);
|
288 |
return $this;
|
289 |
}
|
290 |
-
|
291 |
-
|
292 |
/**
|
293 |
* Checks if SellerRefundNote is set
|
294 |
-
*
|
295 |
* @return bool true if SellerRefundNote is set
|
296 |
*/
|
297 |
public function isSetSellerRefundNote()
|
298 |
{
|
299 |
return !is_null($this->_fields['SellerRefundNote']['FieldValue']);
|
300 |
}
|
301 |
-
|
302 |
/**
|
303 |
* Gets the value of the SoftDescriptor property.
|
304 |
-
*
|
305 |
* @return string SoftDescriptor
|
306 |
*/
|
307 |
-
public function getSoftDescriptor()
|
308 |
{
|
309 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
310 |
}
|
311 |
-
|
312 |
/**
|
313 |
* Sets the value of the SoftDescriptor property.
|
314 |
-
*
|
315 |
* @param string SoftDescriptor
|
316 |
* @return this instance
|
317 |
*/
|
318 |
-
public function setSoftDescriptor($value)
|
319 |
{
|
320 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
321 |
return $this;
|
322 |
}
|
323 |
-
|
324 |
/**
|
325 |
* Sets the value of the SoftDescriptor and returns this instance
|
326 |
-
*
|
327 |
* @param string $value SoftDescriptor
|
328 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
329 |
*/
|
@@ -332,20 +357,20 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
332 |
$this->setSoftDescriptor($value);
|
333 |
return $this;
|
334 |
}
|
335 |
-
|
336 |
-
|
337 |
/**
|
338 |
* Checks if SoftDescriptor is set
|
339 |
-
*
|
340 |
* @return bool true if SoftDescriptor is set
|
341 |
*/
|
342 |
public function isSetSoftDescriptor()
|
343 |
{
|
344 |
return !is_null($this->_fields['SoftDescriptor']['FieldValue']);
|
345 |
}
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
/**
|
350 |
* Gets the value of the ProviderCreditReversalList.
|
351 |
*
|
@@ -353,7 +378,7 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
353 |
*/
|
354 |
public function getProviderCreditReversalList()
|
355 |
{
|
356 |
-
|
357 |
}
|
358 |
|
359 |
/**
|
@@ -364,8 +389,8 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
364 |
*/
|
365 |
public function setProviderCreditReversalList($value)
|
366 |
{
|
367 |
-
|
368 |
-
|
369 |
}
|
370 |
|
371 |
/**
|
@@ -376,8 +401,8 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
376 |
*/
|
377 |
public function withProviderCreditReversalList($value)
|
378 |
{
|
379 |
-
|
380 |
-
|
381 |
}
|
382 |
|
383 |
|
@@ -388,8 +413,41 @@ class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsServ
|
|
388 |
*/
|
389 |
public function isSetProviderCreditReversalList()
|
390 |
{
|
391 |
-
|
|
|
|
|
392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
}
|
394 |
-
|
395 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonCaptureId: string</li>
|
33 |
* <li>RefundReferenceId: string</li>
|
36 |
* <li>SoftDescriptor: string</li>
|
37 |
*
|
38 |
* </ul>
|
39 |
+
*/
|
40 |
class OffAmazonPaymentsService_Model_RefundRequest extends OffAmazonPaymentsService_Model
|
41 |
{
|
42 |
+
|
43 |
/**
|
44 |
* Construct new OffAmazonPaymentsService_Model_RefundRequest
|
45 |
+
*
|
46 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
47 |
+
*
|
48 |
* Valid properties:
|
49 |
* <ul>
|
50 |
+
*
|
51 |
* <li>SellerId: string</li>
|
52 |
* <li>AmazonCaptureId: string</li>
|
53 |
* <li>RefundReferenceId: string</li>
|
59 |
*/
|
60 |
public function __construct($data = null)
|
61 |
{
|
62 |
+
$this->_fields = array(
|
63 |
+
'SellerId' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
),
|
67 |
+
'AmazonCaptureId' => array(
|
68 |
+
'FieldValue' => null,
|
69 |
+
'FieldType' => 'string'
|
70 |
+
),
|
71 |
+
'RefundReferenceId' => array(
|
72 |
+
'FieldValue' => null,
|
73 |
+
'FieldType' => 'string'
|
74 |
+
),
|
75 |
+
|
76 |
+
'RefundAmount' => array(
|
77 |
+
'FieldValue' => null,
|
78 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
79 |
+
),
|
80 |
+
|
81 |
+
'SellerRefundNote' => array(
|
82 |
+
'FieldValue' => null,
|
83 |
+
'FieldType' => 'string'
|
84 |
+
),
|
85 |
+
'SoftDescriptor' => array(
|
86 |
+
'FieldValue' => null,
|
87 |
+
'FieldType' => 'string'
|
88 |
+
),
|
89 |
+
'ProviderCreditReversalList' => array(
|
90 |
+
'FieldValue' => null,
|
91 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditReversalList'
|
92 |
+
),
|
93 |
+
'MWSAuthToken' => array(
|
94 |
+
'FieldValue' => null,
|
95 |
+
'FieldType' => 'string'
|
96 |
+
)
|
97 |
);
|
98 |
parent::__construct($data);
|
99 |
}
|
100 |
+
|
101 |
+
/**
|
102 |
* Gets the value of the SellerId property.
|
103 |
+
*
|
104 |
* @return string SellerId
|
105 |
*/
|
106 |
+
public function getSellerId()
|
107 |
{
|
108 |
return $this->_fields['SellerId']['FieldValue'];
|
109 |
}
|
110 |
+
|
111 |
/**
|
112 |
* Sets the value of the SellerId property.
|
113 |
+
*
|
114 |
* @param string SellerId
|
115 |
* @return this instance
|
116 |
*/
|
117 |
+
public function setSellerId($value)
|
118 |
{
|
119 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
120 |
return $this;
|
121 |
}
|
122 |
+
|
123 |
/**
|
124 |
* Sets the value of the SellerId and returns this instance
|
125 |
+
*
|
126 |
* @param string $value SellerId
|
127 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
128 |
*/
|
131 |
$this->setSellerId($value);
|
132 |
return $this;
|
133 |
}
|
134 |
+
|
135 |
+
|
136 |
/**
|
137 |
* Checks if SellerId is set
|
138 |
+
*
|
139 |
* @return bool true if SellerId is set
|
140 |
*/
|
141 |
public function isSetSellerId()
|
142 |
{
|
143 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
144 |
}
|
145 |
+
|
146 |
/**
|
147 |
* Gets the value of the AmazonCaptureId property.
|
148 |
+
*
|
149 |
* @return string AmazonCaptureId
|
150 |
*/
|
151 |
+
public function getAmazonCaptureId()
|
152 |
{
|
153 |
return $this->_fields['AmazonCaptureId']['FieldValue'];
|
154 |
}
|
155 |
+
|
156 |
/**
|
157 |
* Sets the value of the AmazonCaptureId property.
|
158 |
+
*
|
159 |
* @param string AmazonCaptureId
|
160 |
* @return this instance
|
161 |
*/
|
162 |
+
public function setAmazonCaptureId($value)
|
163 |
{
|
164 |
$this->_fields['AmazonCaptureId']['FieldValue'] = $value;
|
165 |
return $this;
|
166 |
}
|
167 |
+
|
168 |
/**
|
169 |
* Sets the value of the AmazonCaptureId and returns this instance
|
170 |
+
*
|
171 |
* @param string $value AmazonCaptureId
|
172 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
173 |
*/
|
176 |
$this->setAmazonCaptureId($value);
|
177 |
return $this;
|
178 |
}
|
179 |
+
|
180 |
+
|
181 |
/**
|
182 |
* Checks if AmazonCaptureId is set
|
183 |
+
*
|
184 |
* @return bool true if AmazonCaptureId is set
|
185 |
*/
|
186 |
public function isSetAmazonCaptureId()
|
187 |
{
|
188 |
return !is_null($this->_fields['AmazonCaptureId']['FieldValue']);
|
189 |
}
|
190 |
+
|
191 |
/**
|
192 |
* Gets the value of the RefundReferenceId property.
|
193 |
+
*
|
194 |
* @return string RefundReferenceId
|
195 |
*/
|
196 |
+
public function getRefundReferenceId()
|
197 |
{
|
198 |
return $this->_fields['RefundReferenceId']['FieldValue'];
|
199 |
}
|
200 |
+
|
201 |
/**
|
202 |
* Sets the value of the RefundReferenceId property.
|
203 |
+
*
|
204 |
* @param string RefundReferenceId
|
205 |
* @return this instance
|
206 |
*/
|
207 |
+
public function setRefundReferenceId($value)
|
208 |
{
|
209 |
$this->_fields['RefundReferenceId']['FieldValue'] = $value;
|
210 |
return $this;
|
211 |
}
|
212 |
+
|
213 |
/**
|
214 |
* Sets the value of the RefundReferenceId and returns this instance
|
215 |
+
*
|
216 |
* @param string $value RefundReferenceId
|
217 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
218 |
*/
|
221 |
$this->setRefundReferenceId($value);
|
222 |
return $this;
|
223 |
}
|
224 |
+
|
225 |
+
|
226 |
/**
|
227 |
* Checks if RefundReferenceId is set
|
228 |
+
*
|
229 |
* @return bool true if RefundReferenceId is set
|
230 |
*/
|
231 |
public function isSetRefundReferenceId()
|
232 |
{
|
233 |
return !is_null($this->_fields['RefundReferenceId']['FieldValue']);
|
234 |
}
|
235 |
+
|
236 |
/**
|
237 |
* Gets the value of the RefundAmount.
|
238 |
+
*
|
239 |
* @return Price RefundAmount
|
240 |
*/
|
241 |
+
public function getRefundAmount()
|
242 |
{
|
243 |
return $this->_fields['RefundAmount']['FieldValue'];
|
244 |
}
|
245 |
+
|
246 |
/**
|
247 |
* Sets the value of the RefundAmount.
|
248 |
+
*
|
249 |
* @param Price RefundAmount
|
250 |
* @return void
|
251 |
*/
|
252 |
+
public function setRefundAmount($value)
|
253 |
{
|
254 |
$this->_fields['RefundAmount']['FieldValue'] = $value;
|
255 |
return;
|
256 |
}
|
257 |
+
|
258 |
/**
|
259 |
* Sets the value of the RefundAmount and returns this instance
|
260 |
+
*
|
261 |
* @param Price $value RefundAmount
|
262 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
263 |
*/
|
266 |
$this->setRefundAmount($value);
|
267 |
return $this;
|
268 |
}
|
269 |
+
|
270 |
+
|
271 |
/**
|
272 |
* Checks if RefundAmount is set
|
273 |
+
*
|
274 |
* @return bool true if RefundAmount property is set
|
275 |
*/
|
276 |
public function isSetRefundAmount()
|
277 |
{
|
278 |
return !is_null($this->_fields['RefundAmount']['FieldValue']);
|
279 |
+
|
280 |
}
|
281 |
+
|
282 |
/**
|
283 |
* Gets the value of the SellerRefundNote property.
|
284 |
+
*
|
285 |
* @return string SellerRefundNote
|
286 |
*/
|
287 |
+
public function getSellerRefundNote()
|
288 |
{
|
289 |
return $this->_fields['SellerRefundNote']['FieldValue'];
|
290 |
}
|
291 |
+
|
292 |
/**
|
293 |
* Sets the value of the SellerRefundNote property.
|
294 |
+
*
|
295 |
* @param string SellerRefundNote
|
296 |
* @return this instance
|
297 |
*/
|
298 |
+
public function setSellerRefundNote($value)
|
299 |
{
|
300 |
$this->_fields['SellerRefundNote']['FieldValue'] = $value;
|
301 |
return $this;
|
302 |
}
|
303 |
+
|
304 |
/**
|
305 |
* Sets the value of the SellerRefundNote and returns this instance
|
306 |
+
*
|
307 |
* @param string $value SellerRefundNote
|
308 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
309 |
*/
|
312 |
$this->setSellerRefundNote($value);
|
313 |
return $this;
|
314 |
}
|
315 |
+
|
316 |
+
|
317 |
/**
|
318 |
* Checks if SellerRefundNote is set
|
319 |
+
*
|
320 |
* @return bool true if SellerRefundNote is set
|
321 |
*/
|
322 |
public function isSetSellerRefundNote()
|
323 |
{
|
324 |
return !is_null($this->_fields['SellerRefundNote']['FieldValue']);
|
325 |
}
|
326 |
+
|
327 |
/**
|
328 |
* Gets the value of the SoftDescriptor property.
|
329 |
+
*
|
330 |
* @return string SoftDescriptor
|
331 |
*/
|
332 |
+
public function getSoftDescriptor()
|
333 |
{
|
334 |
return $this->_fields['SoftDescriptor']['FieldValue'];
|
335 |
}
|
336 |
+
|
337 |
/**
|
338 |
* Sets the value of the SoftDescriptor property.
|
339 |
+
*
|
340 |
* @param string SoftDescriptor
|
341 |
* @return this instance
|
342 |
*/
|
343 |
+
public function setSoftDescriptor($value)
|
344 |
{
|
345 |
$this->_fields['SoftDescriptor']['FieldValue'] = $value;
|
346 |
return $this;
|
347 |
}
|
348 |
+
|
349 |
/**
|
350 |
* Sets the value of the SoftDescriptor and returns this instance
|
351 |
+
*
|
352 |
* @param string $value SoftDescriptor
|
353 |
* @return OffAmazonPaymentsService_Model_RefundRequest instance
|
354 |
*/
|
357 |
$this->setSoftDescriptor($value);
|
358 |
return $this;
|
359 |
}
|
360 |
+
|
361 |
+
|
362 |
/**
|
363 |
* Checks if SoftDescriptor is set
|
364 |
+
*
|
365 |
* @return bool true if SoftDescriptor is set
|
366 |
*/
|
367 |
public function isSetSoftDescriptor()
|
368 |
{
|
369 |
return !is_null($this->_fields['SoftDescriptor']['FieldValue']);
|
370 |
}
|
371 |
+
|
372 |
+
|
373 |
+
|
374 |
/**
|
375 |
* Gets the value of the ProviderCreditReversalList.
|
376 |
*
|
378 |
*/
|
379 |
public function getProviderCreditReversalList()
|
380 |
{
|
381 |
+
return $this->_fields['ProviderCreditReversalList']['FieldValue'];
|
382 |
}
|
383 |
|
384 |
/**
|
389 |
*/
|
390 |
public function setProviderCreditReversalList($value)
|
391 |
{
|
392 |
+
$this->_fields['ProviderCreditReversalList']['FieldValue'] = $value;
|
393 |
+
return;
|
394 |
}
|
395 |
|
396 |
/**
|
401 |
*/
|
402 |
public function withProviderCreditReversalList($value)
|
403 |
{
|
404 |
+
$this->setProviderCreditReversalList($value);
|
405 |
+
return $this;
|
406 |
}
|
407 |
|
408 |
|
413 |
*/
|
414 |
public function isSetProviderCreditReversalList()
|
415 |
{
|
416 |
+
return !is_null($this->_fields['ProviderCreditReversalList']['FieldValue']);
|
417 |
+
|
418 |
+
}
|
419 |
|
420 |
+
/**
|
421 |
+
* Gets the value of the MWSAuthToken property.
|
422 |
+
*
|
423 |
+
* @return string MWSAuthToken
|
424 |
+
*/
|
425 |
+
public function getMWSAuthToken()
|
426 |
+
{
|
427 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
428 |
}
|
429 |
+
|
430 |
+
/**
|
431 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
432 |
+
*
|
433 |
+
* @param string $value MWSAuthToken
|
434 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
435 |
+
*/
|
436 |
+
public function setMWSAuthToken($value)
|
437 |
+
{
|
438 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
439 |
+
return $this;
|
440 |
+
}
|
441 |
+
|
442 |
+
|
443 |
+
/**
|
444 |
+
* Checks if MWSAuthToken is set
|
445 |
+
*
|
446 |
+
* @return bool true if MWSAuthToken is set
|
447 |
+
*/
|
448 |
+
public function isSetMWSAuthToken()
|
449 |
+
{
|
450 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
451 |
+
}
|
452 |
+
|
453 |
+
}
|
lib/OffAmazonPaymentsService/Model/RefundResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>RefundResult: OffAmazonPaymentsService_Model_RefundResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_RefundResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_RefundResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>RefundResult: OffAmazonPaymentsService_Model_RefundResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
@@ -51,66 +51,72 @@ class OffAmazonPaymentsService_Model_RefundResponse extends OffAmazonPaymentsSer
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_RefundResponse from XML string
|
68 |
-
*
|
69 |
* @param string $xml XML string to construct from
|
70 |
-
* @return OffAmazonPaymentsService_Model_RefundResponse
|
71 |
*/
|
72 |
public static function fromXML($xml)
|
73 |
{
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:RefundResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_RefundResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that RefundResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the RefundResult.
|
90 |
-
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getRefundResult()
|
94 |
{
|
95 |
return $this->_fields['RefundResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the RefundResult.
|
100 |
-
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setRefundResult($value)
|
105 |
{
|
106 |
$this->_fields['RefundResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the RefundResult and returns this instance
|
112 |
-
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_RefundResponse instance
|
115 |
*/
|
116 |
public function withRefundResult($value)
|
@@ -118,45 +124,45 @@ class OffAmazonPaymentsService_Model_RefundResponse extends OffAmazonPaymentsSer
|
|
118 |
$this->setRefundResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if RefundResult is set
|
125 |
-
*
|
126 |
* @return bool true if RefundResult property is set
|
127 |
*/
|
128 |
public function isSetRefundResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['RefundResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
-
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
-
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
-
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_RefundResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,27 +170,27 @@ class OffAmazonPaymentsService_Model_RefundResponse extends OffAmazonPaymentsSer
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
-
*
|
172 |
* @return bool true if ResponseMetadata property is set
|
173 |
*/
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
-
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<RefundResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_RefundResponse extends OffAmazonPaymentsSer
|
|
192 |
$xml .= "</RefundResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>RefundResult: OffAmazonPaymentsService_Model_RefundResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_RefundResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_RefundResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>RefundResult: OffAmazonPaymentsService_Model_RefundResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'RefundResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_RefundResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_RefundResponse from XML string
|
74 |
+
*
|
75 |
* @param string $xml XML string to construct from
|
76 |
+
* @return OffAmazonPaymentsService_Model_RefundResponse
|
77 |
*/
|
78 |
public static function fromXML($xml)
|
79 |
{
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:RefundResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_RefundResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_RefundResponse from provided XML.
|
89 |
Make sure that RefundResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the RefundResult.
|
96 |
+
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_RefundResult RefundResult
|
98 |
*/
|
99 |
+
public function getRefundResult()
|
100 |
{
|
101 |
return $this->_fields['RefundResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the RefundResult.
|
106 |
+
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_RefundResult RefundResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setRefundResult($value)
|
111 |
{
|
112 |
$this->_fields['RefundResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the RefundResult and returns this instance
|
118 |
+
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_RefundResult $value RefundResult
|
120 |
* @return OffAmazonPaymentsService_Model_RefundResponse instance
|
121 |
*/
|
122 |
public function withRefundResult($value)
|
124 |
$this->setRefundResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if RefundResult is set
|
131 |
+
*
|
132 |
* @return bool true if RefundResult property is set
|
133 |
*/
|
134 |
public function isSetRefundResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['RefundResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
+
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
+
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_RefundResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
+
*
|
178 |
* @return bool true if ResponseMetadata property is set
|
179 |
*/
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
+
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<RefundResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</RefundResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
+
}
|
lib/OffAmazonPaymentsService/Model/RefundResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>RefundDetails: OffAmazonPaymentsService_Model_RefundDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_RefundResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_RefundResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>RefundDetails: OffAmazonPaymentsService_Model_RefundDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the RefundDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getRefundDetails()
|
66 |
{
|
67 |
return $this->_fields['RefundDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the RefundDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setRefundDetails($value)
|
77 |
{
|
78 |
$this->_fields['RefundDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the RefundDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_RefundResult instance
|
87 |
*/
|
88 |
public function withRefundDetails($value)
|
@@ -90,20 +93,17 @@ class OffAmazonPaymentsService_Model_RefundResult extends OffAmazonPaymentsServi
|
|
90 |
$this->setRefundDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if RefundDetails is set
|
97 |
-
*
|
98 |
* @return bool true if RefundDetails property is set
|
99 |
*/
|
100 |
public function isSetRefundDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['RefundDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_RefundResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>RefundDetails: OffAmazonPaymentsService_Model_RefundDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_RefundResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_RefundResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>RefundDetails: OffAmazonPaymentsService_Model_RefundDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'RefundDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_RefundDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the RefundDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_RefundDetails RefundDetails
|
67 |
*/
|
68 |
+
public function getRefundDetails()
|
69 |
{
|
70 |
return $this->_fields['RefundDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the RefundDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_RefundDetails RefundDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setRefundDetails($value)
|
80 |
{
|
81 |
$this->_fields['RefundDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the RefundDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_RefundDetails $value RefundDetails
|
89 |
* @return OffAmazonPaymentsService_Model_RefundResult instance
|
90 |
*/
|
91 |
public function withRefundDetails($value)
|
93 |
$this->setRefundDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if RefundDetails is set
|
100 |
+
*
|
101 |
* @return bool true if RefundDetails property is set
|
102 |
*/
|
103 |
public function isSetRefundDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['RefundDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
109 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/ResponseHeaderMetadata.php
CHANGED
@@ -16,36 +16,40 @@
|
|
16 |
*/
|
17 |
|
18 |
|
19 |
-
class OffAmazonPaymentsService_Model_ResponseHeaderMetadata
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
$
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
16 |
*/
|
17 |
|
18 |
|
19 |
+
class OffAmazonPaymentsService_Model_ResponseHeaderMetadata
|
20 |
+
{
|
21 |
+
|
22 |
+
const REQUEST_ID = 'x-mws-request-id';
|
23 |
+
const RESPONSE_CONTEXT = 'x-mws-response-context';
|
24 |
+
const TIMESTAMP = 'x-mws-timestamp';
|
25 |
+
|
26 |
+
private $metadata = array();
|
27 |
+
|
28 |
+
public function __construct($requestId = null, $responseContext = null, $timestamp = null)
|
29 |
+
{
|
30 |
+
$this->metadata[self::REQUEST_ID] = $requestId;
|
31 |
+
$this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
|
32 |
+
$this->metadata[self::TIMESTAMP] = $timestamp;
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
+
public function getRequestId()
|
37 |
+
{
|
38 |
+
return $this->metadata[self::REQUEST_ID];
|
39 |
+
}
|
40 |
+
|
41 |
+
public function getResponseContext()
|
42 |
+
{
|
43 |
+
return $this->metadata[self::RESPONSE_CONTEXT];
|
44 |
+
}
|
45 |
+
|
46 |
+
public function getTimestamp()
|
47 |
+
{
|
48 |
+
return $this->metadata[self::TIMESTAMP];
|
49 |
+
}
|
50 |
+
|
51 |
+
public function __toString()
|
52 |
+
{
|
53 |
+
return "RequestId: " . $this->getRequestId() . ", ResponseContext: " . $this->getResponseContext() . ", Timestamp: " . $this->getTimestamp();
|
54 |
+
}
|
55 |
+
}
|
lib/OffAmazonPaymentsService/Model/ResponseMetadata.php
CHANGED
@@ -20,66 +20,69 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ResponseMetadata
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>RequestId: string</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_ResponseMetadata extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ResponseMetadata
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>RequestId: string</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
|
|
|
|
|
|
54 |
);
|
55 |
parent::__construct($data);
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
* Gets the value of the RequestId property.
|
60 |
-
*
|
61 |
* @return string RequestId
|
62 |
*/
|
63 |
-
public function getRequestId()
|
64 |
{
|
65 |
return $this->_fields['RequestId']['FieldValue'];
|
66 |
}
|
67 |
-
|
68 |
/**
|
69 |
* Sets the value of the RequestId property.
|
70 |
-
*
|
71 |
* @param string RequestId
|
72 |
* @return this instance
|
73 |
*/
|
74 |
-
public function setRequestId($value)
|
75 |
{
|
76 |
$this->_fields['RequestId']['FieldValue'] = $value;
|
77 |
return $this;
|
78 |
}
|
79 |
-
|
80 |
/**
|
81 |
* Sets the value of the RequestId and returns this instance
|
82 |
-
*
|
83 |
* @param string $value RequestId
|
84 |
* @return OffAmazonPaymentsService_Model_ResponseMetadata instance
|
85 |
*/
|
@@ -88,19 +91,16 @@ class OffAmazonPaymentsService_Model_ResponseMetadata extends OffAmazonPaymentsS
|
|
88 |
$this->setRequestId($value);
|
89 |
return $this;
|
90 |
}
|
91 |
-
|
92 |
-
|
93 |
/**
|
94 |
* Checks if RequestId is set
|
95 |
-
*
|
96 |
* @return bool true if RequestId is set
|
97 |
*/
|
98 |
public function isSetRequestId()
|
99 |
{
|
100 |
return !is_null($this->_fields['RequestId']['FieldValue']);
|
101 |
}
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ResponseMetadata
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>RequestId: string</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_ResponseMetadata extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ResponseMetadata
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>RequestId: string</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
'RequestId' => array(
|
54 |
+
'FieldValue' => null,
|
55 |
+
'FieldType' => 'string'
|
56 |
+
)
|
57 |
);
|
58 |
parent::__construct($data);
|
59 |
}
|
60 |
+
|
61 |
+
/**
|
62 |
* Gets the value of the RequestId property.
|
63 |
+
*
|
64 |
* @return string RequestId
|
65 |
*/
|
66 |
+
public function getRequestId()
|
67 |
{
|
68 |
return $this->_fields['RequestId']['FieldValue'];
|
69 |
}
|
70 |
+
|
71 |
/**
|
72 |
* Sets the value of the RequestId property.
|
73 |
+
*
|
74 |
* @param string RequestId
|
75 |
* @return this instance
|
76 |
*/
|
77 |
+
public function setRequestId($value)
|
78 |
{
|
79 |
$this->_fields['RequestId']['FieldValue'] = $value;
|
80 |
return $this;
|
81 |
}
|
82 |
+
|
83 |
/**
|
84 |
* Sets the value of the RequestId and returns this instance
|
85 |
+
*
|
86 |
* @param string $value RequestId
|
87 |
* @return OffAmazonPaymentsService_Model_ResponseMetadata instance
|
88 |
*/
|
91 |
$this->setRequestId($value);
|
92 |
return $this;
|
93 |
}
|
94 |
+
|
95 |
+
|
96 |
/**
|
97 |
* Checks if RequestId is set
|
98 |
+
*
|
99 |
* @return bool true if RequestId is set
|
100 |
*/
|
101 |
public function isSetRequestId()
|
102 |
{
|
103 |
return !is_null($this->_fields['RequestId']['FieldValue']);
|
104 |
}
|
105 |
+
|
106 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/ReverseProviderCreditRequest.php
CHANGED
@@ -20,14 +20,14 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ReverseProviderCreditRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonProviderCreditId: string</li>
|
33 |
* <li>CreditReversalReferenceId: string</li>
|
@@ -35,18 +35,18 @@
|
|
35 |
* <li>CreditReversalNote: string</li>
|
36 |
*
|
37 |
* </ul>
|
38 |
-
*/
|
39 |
class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAmazonPaymentsService_Model
|
40 |
{
|
41 |
-
|
42 |
/**
|
43 |
* Construct new OffAmazonPaymentsService_Model_ReverseProviderCreditRequest
|
44 |
-
*
|
45 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
46 |
-
*
|
47 |
* Valid properties:
|
48 |
* <ul>
|
49 |
-
*
|
50 |
* <li>SellerId: string</li>
|
51 |
* <li>AmazonProviderCreditId: string</li>
|
52 |
* <li>CreditReversalReferenceId: string</li>
|
@@ -57,43 +57,62 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAma
|
|
57 |
*/
|
58 |
public function __construct($data = null)
|
59 |
{
|
60 |
-
$this->_fields = array
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
);
|
69 |
parent::__construct($data);
|
70 |
}
|
71 |
-
|
72 |
-
|
73 |
* Gets the value of the SellerId property.
|
74 |
-
*
|
75 |
* @return string SellerId
|
76 |
*/
|
77 |
-
public function getSellerId()
|
78 |
{
|
79 |
return $this->_fields['SellerId']['FieldValue'];
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the SellerId property.
|
84 |
-
*
|
85 |
* @param string SellerId
|
86 |
* @return this instance
|
87 |
*/
|
88 |
-
public function setSellerId($value)
|
89 |
{
|
90 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
/**
|
95 |
* Sets the value of the SellerId and returns this instance
|
96 |
-
*
|
97 |
* @param string $value SellerId
|
98 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
99 |
*/
|
@@ -102,43 +121,43 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAma
|
|
102 |
$this->setSellerId($value);
|
103 |
return $this;
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
/**
|
108 |
* Checks if SellerId is set
|
109 |
-
*
|
110 |
* @return bool true if SellerId is set
|
111 |
*/
|
112 |
public function isSetSellerId()
|
113 |
{
|
114 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
115 |
}
|
116 |
-
|
117 |
/**
|
118 |
* Gets the value of the AmazonProviderCreditId property.
|
119 |
-
*
|
120 |
* @return string AmazonProviderCreditId
|
121 |
*/
|
122 |
-
public function getAmazonProviderCreditId()
|
123 |
{
|
124 |
return $this->_fields['AmazonProviderCreditId']['FieldValue'];
|
125 |
}
|
126 |
-
|
127 |
/**
|
128 |
* Sets the value of the AmazonProviderCreditId property.
|
129 |
-
*
|
130 |
* @param string AmazonProviderCreditId
|
131 |
* @return this instance
|
132 |
*/
|
133 |
-
public function setAmazonProviderCreditId($value)
|
134 |
{
|
135 |
$this->_fields['AmazonProviderCreditId']['FieldValue'] = $value;
|
136 |
return $this;
|
137 |
}
|
138 |
-
|
139 |
/**
|
140 |
* Sets the value of the AmazonProviderCreditId and returns this instance
|
141 |
-
*
|
142 |
* @param string $value AmazonProviderCreditId
|
143 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
144 |
*/
|
@@ -147,43 +166,43 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAma
|
|
147 |
$this->setAmazonProviderCreditId($value);
|
148 |
return $this;
|
149 |
}
|
150 |
-
|
151 |
-
|
152 |
/**
|
153 |
* Checks if AmazonProviderCreditId is set
|
154 |
-
*
|
155 |
* @return bool true if AmazonProviderCreditId is set
|
156 |
*/
|
157 |
public function isSetAmazonProviderCreditId()
|
158 |
{
|
159 |
return !is_null($this->_fields['AmazonProviderCreditId']['FieldValue']);
|
160 |
}
|
161 |
-
|
162 |
/**
|
163 |
* Gets the value of the CreditReversalReferenceId property.
|
164 |
-
*
|
165 |
* @return string CreditReversalReferenceId
|
166 |
*/
|
167 |
-
public function getCreditReversalReferenceId()
|
168 |
{
|
169 |
return $this->_fields['CreditReversalReferenceId']['FieldValue'];
|
170 |
}
|
171 |
-
|
172 |
/**
|
173 |
* Sets the value of the CreditReversalReferenceId property.
|
174 |
-
*
|
175 |
* @param string CreditReversalReferenceId
|
176 |
* @return this instance
|
177 |
*/
|
178 |
-
public function setCreditReversalReferenceId($value)
|
179 |
{
|
180 |
$this->_fields['CreditReversalReferenceId']['FieldValue'] = $value;
|
181 |
return $this;
|
182 |
}
|
183 |
-
|
184 |
/**
|
185 |
* Sets the value of the CreditReversalReferenceId and returns this instance
|
186 |
-
*
|
187 |
* @param string $value CreditReversalReferenceId
|
188 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
189 |
*/
|
@@ -192,43 +211,43 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAma
|
|
192 |
$this->setCreditReversalReferenceId($value);
|
193 |
return $this;
|
194 |
}
|
195 |
-
|
196 |
-
|
197 |
/**
|
198 |
* Checks if CreditReversalReferenceId is set
|
199 |
-
*
|
200 |
* @return bool true if CreditReversalReferenceId is set
|
201 |
*/
|
202 |
public function isSetCreditReversalReferenceId()
|
203 |
{
|
204 |
return !is_null($this->_fields['CreditReversalReferenceId']['FieldValue']);
|
205 |
}
|
206 |
-
|
207 |
/**
|
208 |
* Gets the value of the CreditReversalAmount.
|
209 |
-
*
|
210 |
* @return Price CreditReversalAmount
|
211 |
*/
|
212 |
-
public function getCreditReversalAmount()
|
213 |
{
|
214 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
215 |
}
|
216 |
-
|
217 |
/**
|
218 |
* Sets the value of the CreditReversalAmount.
|
219 |
-
*
|
220 |
* @param Price CreditReversalAmount
|
221 |
* @return void
|
222 |
*/
|
223 |
-
public function setCreditReversalAmount($value)
|
224 |
{
|
225 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
226 |
return;
|
227 |
}
|
228 |
-
|
229 |
/**
|
230 |
* Sets the value of the CreditReversalAmount and returns this instance
|
231 |
-
*
|
232 |
* @param Price $value CreditReversalAmount
|
233 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
234 |
*/
|
@@ -237,44 +256,44 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAma
|
|
237 |
$this->setCreditReversalAmount($value);
|
238 |
return $this;
|
239 |
}
|
240 |
-
|
241 |
-
|
242 |
/**
|
243 |
* Checks if CreditReversalAmount is set
|
244 |
-
*
|
245 |
* @return bool true if CreditReversalAmount property is set
|
246 |
*/
|
247 |
public function isSetCreditReversalAmount()
|
248 |
{
|
249 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
250 |
-
|
251 |
}
|
252 |
-
|
253 |
/**
|
254 |
* Gets the value of the CreditReversalNote property.
|
255 |
-
*
|
256 |
* @return string CreditReversalNote
|
257 |
*/
|
258 |
-
public function getCreditReversalNote()
|
259 |
{
|
260 |
return $this->_fields['CreditReversalNote']['FieldValue'];
|
261 |
}
|
262 |
-
|
263 |
/**
|
264 |
* Sets the value of the CreditReversalNote property.
|
265 |
-
*
|
266 |
* @param string CreditReversalNote
|
267 |
* @return this instance
|
268 |
*/
|
269 |
-
public function setCreditReversalNote($value)
|
270 |
{
|
271 |
$this->_fields['CreditReversalNote']['FieldValue'] = $value;
|
272 |
return $this;
|
273 |
}
|
274 |
-
|
275 |
/**
|
276 |
* Sets the value of the CreditReversalNote and returns this instance
|
277 |
-
*
|
278 |
* @param string $value CreditReversalNote
|
279 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
280 |
*/
|
@@ -283,19 +302,49 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAma
|
|
283 |
$this->setCreditReversalNote($value);
|
284 |
return $this;
|
285 |
}
|
286 |
-
|
287 |
-
|
288 |
/**
|
289 |
* Checks if CreditReversalNote is set
|
290 |
-
*
|
291 |
* @return bool true if CreditReversalNote is set
|
292 |
*/
|
293 |
public function isSetCreditReversalNote()
|
294 |
{
|
295 |
return !is_null($this->_fields['CreditReversalNote']['FieldValue']);
|
296 |
}
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ReverseProviderCreditRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonProviderCreditId: string</li>
|
33 |
* <li>CreditReversalReferenceId: string</li>
|
35 |
* <li>CreditReversalNote: string</li>
|
36 |
*
|
37 |
* </ul>
|
38 |
+
*/
|
39 |
class OffAmazonPaymentsService_Model_ReverseProviderCreditRequest extends OffAmazonPaymentsService_Model
|
40 |
{
|
41 |
+
|
42 |
/**
|
43 |
* Construct new OffAmazonPaymentsService_Model_ReverseProviderCreditRequest
|
44 |
+
*
|
45 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
46 |
+
*
|
47 |
* Valid properties:
|
48 |
* <ul>
|
49 |
+
*
|
50 |
* <li>SellerId: string</li>
|
51 |
* <li>AmazonProviderCreditId: string</li>
|
52 |
* <li>CreditReversalReferenceId: string</li>
|
57 |
*/
|
58 |
public function __construct($data = null)
|
59 |
{
|
60 |
+
$this->_fields = array(
|
61 |
+
'SellerId' => array(
|
62 |
+
'FieldValue' => null,
|
63 |
+
'FieldType' => 'string'
|
64 |
+
),
|
65 |
+
'AmazonProviderCreditId' => array(
|
66 |
+
'FieldValue' => null,
|
67 |
+
'FieldType' => 'string'
|
68 |
+
),
|
69 |
+
'CreditReversalReferenceId' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
),
|
73 |
+
|
74 |
+
'CreditReversalAmount' => array(
|
75 |
+
'FieldValue' => null,
|
76 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_Price'
|
77 |
+
),
|
78 |
+
|
79 |
+
'CreditReversalNote' => array(
|
80 |
+
'FieldValue' => null,
|
81 |
+
'FieldType' => 'string'
|
82 |
+
),
|
83 |
+
'MWSAuthToken' => array(
|
84 |
+
'FieldValue' => null,
|
85 |
+
'FieldType' => 'string'
|
86 |
+
)
|
87 |
);
|
88 |
parent::__construct($data);
|
89 |
}
|
90 |
+
|
91 |
+
/**
|
92 |
* Gets the value of the SellerId property.
|
93 |
+
*
|
94 |
* @return string SellerId
|
95 |
*/
|
96 |
+
public function getSellerId()
|
97 |
{
|
98 |
return $this->_fields['SellerId']['FieldValue'];
|
99 |
}
|
100 |
+
|
101 |
/**
|
102 |
* Sets the value of the SellerId property.
|
103 |
+
*
|
104 |
* @param string SellerId
|
105 |
* @return this instance
|
106 |
*/
|
107 |
+
public function setSellerId($value)
|
108 |
{
|
109 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
110 |
return $this;
|
111 |
}
|
112 |
+
|
113 |
/**
|
114 |
* Sets the value of the SellerId and returns this instance
|
115 |
+
*
|
116 |
* @param string $value SellerId
|
117 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
118 |
*/
|
121 |
$this->setSellerId($value);
|
122 |
return $this;
|
123 |
}
|
124 |
+
|
125 |
+
|
126 |
/**
|
127 |
* Checks if SellerId is set
|
128 |
+
*
|
129 |
* @return bool true if SellerId is set
|
130 |
*/
|
131 |
public function isSetSellerId()
|
132 |
{
|
133 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
134 |
}
|
135 |
+
|
136 |
/**
|
137 |
* Gets the value of the AmazonProviderCreditId property.
|
138 |
+
*
|
139 |
* @return string AmazonProviderCreditId
|
140 |
*/
|
141 |
+
public function getAmazonProviderCreditId()
|
142 |
{
|
143 |
return $this->_fields['AmazonProviderCreditId']['FieldValue'];
|
144 |
}
|
145 |
+
|
146 |
/**
|
147 |
* Sets the value of the AmazonProviderCreditId property.
|
148 |
+
*
|
149 |
* @param string AmazonProviderCreditId
|
150 |
* @return this instance
|
151 |
*/
|
152 |
+
public function setAmazonProviderCreditId($value)
|
153 |
{
|
154 |
$this->_fields['AmazonProviderCreditId']['FieldValue'] = $value;
|
155 |
return $this;
|
156 |
}
|
157 |
+
|
158 |
/**
|
159 |
* Sets the value of the AmazonProviderCreditId and returns this instance
|
160 |
+
*
|
161 |
* @param string $value AmazonProviderCreditId
|
162 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
163 |
*/
|
166 |
$this->setAmazonProviderCreditId($value);
|
167 |
return $this;
|
168 |
}
|
169 |
+
|
170 |
+
|
171 |
/**
|
172 |
* Checks if AmazonProviderCreditId is set
|
173 |
+
*
|
174 |
* @return bool true if AmazonProviderCreditId is set
|
175 |
*/
|
176 |
public function isSetAmazonProviderCreditId()
|
177 |
{
|
178 |
return !is_null($this->_fields['AmazonProviderCreditId']['FieldValue']);
|
179 |
}
|
180 |
+
|
181 |
/**
|
182 |
* Gets the value of the CreditReversalReferenceId property.
|
183 |
+
*
|
184 |
* @return string CreditReversalReferenceId
|
185 |
*/
|
186 |
+
public function getCreditReversalReferenceId()
|
187 |
{
|
188 |
return $this->_fields['CreditReversalReferenceId']['FieldValue'];
|
189 |
}
|
190 |
+
|
191 |
/**
|
192 |
* Sets the value of the CreditReversalReferenceId property.
|
193 |
+
*
|
194 |
* @param string CreditReversalReferenceId
|
195 |
* @return this instance
|
196 |
*/
|
197 |
+
public function setCreditReversalReferenceId($value)
|
198 |
{
|
199 |
$this->_fields['CreditReversalReferenceId']['FieldValue'] = $value;
|
200 |
return $this;
|
201 |
}
|
202 |
+
|
203 |
/**
|
204 |
* Sets the value of the CreditReversalReferenceId and returns this instance
|
205 |
+
*
|
206 |
* @param string $value CreditReversalReferenceId
|
207 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
208 |
*/
|
211 |
$this->setCreditReversalReferenceId($value);
|
212 |
return $this;
|
213 |
}
|
214 |
+
|
215 |
+
|
216 |
/**
|
217 |
* Checks if CreditReversalReferenceId is set
|
218 |
+
*
|
219 |
* @return bool true if CreditReversalReferenceId is set
|
220 |
*/
|
221 |
public function isSetCreditReversalReferenceId()
|
222 |
{
|
223 |
return !is_null($this->_fields['CreditReversalReferenceId']['FieldValue']);
|
224 |
}
|
225 |
+
|
226 |
/**
|
227 |
* Gets the value of the CreditReversalAmount.
|
228 |
+
*
|
229 |
* @return Price CreditReversalAmount
|
230 |
*/
|
231 |
+
public function getCreditReversalAmount()
|
232 |
{
|
233 |
return $this->_fields['CreditReversalAmount']['FieldValue'];
|
234 |
}
|
235 |
+
|
236 |
/**
|
237 |
* Sets the value of the CreditReversalAmount.
|
238 |
+
*
|
239 |
* @param Price CreditReversalAmount
|
240 |
* @return void
|
241 |
*/
|
242 |
+
public function setCreditReversalAmount($value)
|
243 |
{
|
244 |
$this->_fields['CreditReversalAmount']['FieldValue'] = $value;
|
245 |
return;
|
246 |
}
|
247 |
+
|
248 |
/**
|
249 |
* Sets the value of the CreditReversalAmount and returns this instance
|
250 |
+
*
|
251 |
* @param Price $value CreditReversalAmount
|
252 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
253 |
*/
|
256 |
$this->setCreditReversalAmount($value);
|
257 |
return $this;
|
258 |
}
|
259 |
+
|
260 |
+
|
261 |
/**
|
262 |
* Checks if CreditReversalAmount is set
|
263 |
+
*
|
264 |
* @return bool true if CreditReversalAmount property is set
|
265 |
*/
|
266 |
public function isSetCreditReversalAmount()
|
267 |
{
|
268 |
return !is_null($this->_fields['CreditReversalAmount']['FieldValue']);
|
269 |
+
|
270 |
}
|
271 |
+
|
272 |
/**
|
273 |
* Gets the value of the CreditReversalNote property.
|
274 |
+
*
|
275 |
* @return string CreditReversalNote
|
276 |
*/
|
277 |
+
public function getCreditReversalNote()
|
278 |
{
|
279 |
return $this->_fields['CreditReversalNote']['FieldValue'];
|
280 |
}
|
281 |
+
|
282 |
/**
|
283 |
* Sets the value of the CreditReversalNote property.
|
284 |
+
*
|
285 |
* @param string CreditReversalNote
|
286 |
* @return this instance
|
287 |
*/
|
288 |
+
public function setCreditReversalNote($value)
|
289 |
{
|
290 |
$this->_fields['CreditReversalNote']['FieldValue'] = $value;
|
291 |
return $this;
|
292 |
}
|
293 |
+
|
294 |
/**
|
295 |
* Sets the value of the CreditReversalNote and returns this instance
|
296 |
+
*
|
297 |
* @param string $value CreditReversalNote
|
298 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditRequest instance
|
299 |
*/
|
302 |
$this->setCreditReversalNote($value);
|
303 |
return $this;
|
304 |
}
|
305 |
+
|
306 |
+
|
307 |
/**
|
308 |
* Checks if CreditReversalNote is set
|
309 |
+
*
|
310 |
* @return bool true if CreditReversalNote is set
|
311 |
*/
|
312 |
public function isSetCreditReversalNote()
|
313 |
{
|
314 |
return !is_null($this->_fields['CreditReversalNote']['FieldValue']);
|
315 |
}
|
316 |
+
|
317 |
+
/**
|
318 |
+
* Gets the value of the MWSAuthToken property.
|
319 |
+
*
|
320 |
+
* @return string MWSAuthToken
|
321 |
+
*/
|
322 |
+
public function getMWSAuthToken()
|
323 |
+
{
|
324 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
325 |
+
}
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
329 |
+
*
|
330 |
+
* @param string $value MWSAuthToken
|
331 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
332 |
+
*/
|
333 |
+
public function setMWSAuthToken($value)
|
334 |
+
{
|
335 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
336 |
+
return $this;
|
337 |
+
}
|
338 |
+
|
339 |
+
|
340 |
+
/**
|
341 |
+
* Checks if MWSAuthToken is set
|
342 |
+
*
|
343 |
+
* @return bool true if MWSAuthToken is set
|
344 |
+
*/
|
345 |
+
public function isSetMWSAuthToken()
|
346 |
+
{
|
347 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
348 |
+
}
|
349 |
+
|
350 |
}
|
lib/OffAmazonPaymentsService/Model/ReverseProviderCreditResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ReverseProviderCreditResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ReverseProviderCreditResult: OffAmazonPaymentsService_Model_ReverseProviderCreditResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_ReverseProviderCreditResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ReverseProviderCreditResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>ReverseProviderCreditResult: OffAmazonPaymentsService_Model_ReverseProviderCreditResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
@@ -51,66 +51,72 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditResponse extends OffAm
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_ReverseProviderCreditResponse from XML string
|
68 |
-
*
|
69 |
* @param string $xml XML string to construct from
|
70 |
-
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResponse
|
71 |
*/
|
72 |
public static function fromXML($xml)
|
73 |
{
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:ReverseProviderCreditResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_ReverseProviderCreditResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that ReverseProviderCreditResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the ReverseProviderCreditResult.
|
90 |
-
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getReverseProviderCreditResult()
|
94 |
{
|
95 |
return $this->_fields['ReverseProviderCreditResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the ReverseProviderCreditResult.
|
100 |
-
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setReverseProviderCreditResult($value)
|
105 |
{
|
106 |
$this->_fields['ReverseProviderCreditResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the ReverseProviderCreditResult and returns this instance
|
112 |
-
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResponse instance
|
115 |
*/
|
116 |
public function withReverseProviderCreditResult($value)
|
@@ -118,45 +124,45 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditResponse extends OffAm
|
|
118 |
$this->setReverseProviderCreditResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if ReverseProviderCreditResult is set
|
125 |
-
*
|
126 |
* @return bool true if ReverseProviderCreditResult property is set
|
127 |
*/
|
128 |
public function isSetReverseProviderCreditResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['ReverseProviderCreditResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
-
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
-
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
-
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,27 +170,27 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditResponse extends OffAm
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
-
*
|
172 |
* @return bool true if ResponseMetadata property is set
|
173 |
*/
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
-
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<ReverseProviderCreditResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditResponse extends OffAm
|
|
192 |
$xml .= "</ReverseProviderCreditResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ReverseProviderCreditResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ReverseProviderCreditResult: OffAmazonPaymentsService_Model_ReverseProviderCreditResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_ReverseProviderCreditResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_ReverseProviderCreditResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>ReverseProviderCreditResult: OffAmazonPaymentsService_Model_ReverseProviderCreditResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'ReverseProviderCreditResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ReverseProviderCreditResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_ReverseProviderCreditResponse from XML string
|
74 |
+
*
|
75 |
* @param string $xml XML string to construct from
|
76 |
+
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResponse
|
77 |
*/
|
78 |
public static function fromXML($xml)
|
79 |
{
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:ReverseProviderCreditResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_ReverseProviderCreditResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_ReverseProviderCreditResponse from provided XML.
|
89 |
Make sure that ReverseProviderCreditResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the ReverseProviderCreditResult.
|
96 |
+
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResult ReverseProviderCreditResult
|
98 |
*/
|
99 |
+
public function getReverseProviderCreditResult()
|
100 |
{
|
101 |
return $this->_fields['ReverseProviderCreditResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the ReverseProviderCreditResult.
|
106 |
+
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_ReverseProviderCreditResult ReverseProviderCreditResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setReverseProviderCreditResult($value)
|
111 |
{
|
112 |
$this->_fields['ReverseProviderCreditResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the ReverseProviderCreditResult and returns this instance
|
118 |
+
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_ReverseProviderCreditResult $value ReverseProviderCreditResult
|
120 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResponse instance
|
121 |
*/
|
122 |
public function withReverseProviderCreditResult($value)
|
124 |
$this->setReverseProviderCreditResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if ReverseProviderCreditResult is set
|
131 |
+
*
|
132 |
* @return bool true if ReverseProviderCreditResult property is set
|
133 |
*/
|
134 |
public function isSetReverseProviderCreditResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['ReverseProviderCreditResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
+
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
+
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
+
*
|
178 |
* @return bool true if ResponseMetadata property is set
|
179 |
*/
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
+
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<ReverseProviderCreditResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</ReverseProviderCreditResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
}
|
lib/OffAmazonPaymentsService/Model/ReverseProviderCreditResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ReverseProviderCreditResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_ReverseProviderCreditResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ReverseProviderCreditResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the ProviderCreditReversalDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getProviderCreditReversalDetails()
|
66 |
{
|
67 |
return $this->_fields['ProviderCreditReversalDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the ProviderCreditReversalDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setProviderCreditReversalDetails($value)
|
77 |
{
|
78 |
$this->_fields['ProviderCreditReversalDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the ProviderCreditReversalDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResult instance
|
87 |
*/
|
88 |
public function withProviderCreditReversalDetails($value)
|
@@ -90,20 +93,17 @@ class OffAmazonPaymentsService_Model_ReverseProviderCreditResult extends OffAmaz
|
|
90 |
$this->setProviderCreditReversalDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if ProviderCreditReversalDetails is set
|
97 |
-
*
|
98 |
* @return bool true if ProviderCreditReversalDetails property is set
|
99 |
*/
|
100 |
public function isSetProviderCreditReversalDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['ProviderCreditReversalDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_ReverseProviderCreditResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_ReverseProviderCreditResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_ReverseProviderCreditResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>ProviderCreditReversalDetails: OffAmazonPaymentsService_Model_ProviderCreditReversalDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'ProviderCreditReversalDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ProviderCreditReversalDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the ProviderCreditReversalDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_ProviderCreditReversalDetails ProviderCreditReversalDetails
|
67 |
*/
|
68 |
+
public function getProviderCreditReversalDetails()
|
69 |
{
|
70 |
return $this->_fields['ProviderCreditReversalDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the ProviderCreditReversalDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_ProviderCreditReversalDetails ProviderCreditReversalDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setProviderCreditReversalDetails($value)
|
80 |
{
|
81 |
$this->_fields['ProviderCreditReversalDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the ProviderCreditReversalDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_ProviderCreditReversalDetails $value ProviderCreditReversalDetails
|
89 |
* @return OffAmazonPaymentsService_Model_ReverseProviderCreditResult instance
|
90 |
*/
|
91 |
public function withProviderCreditReversalDetails($value)
|
93 |
$this->setProviderCreditReversalDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if ProviderCreditReversalDetails is set
|
100 |
+
*
|
101 |
* @return bool true if ProviderCreditReversalDetails property is set
|
102 |
*/
|
103 |
public function isSetProviderCreditReversalDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['ProviderCreditReversalDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
|
|
|
|
|
|
109 |
}
|
lib/OffAmazonPaymentsService/Model/SellerBillingAgreementAttributes.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>SellerBillingAgreementId: string</li>
|
25 |
* <li>StoreName: string</li>
|
26 |
* <li>CustomInformation: string</li>
|
@@ -29,22 +29,22 @@
|
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes extends OffAmazonPaymentsService_Model
|
31 |
{
|
32 |
-
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes
|
35 |
-
*
|
36 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
37 |
-
*
|
38 |
* Valid properties:
|
39 |
* <ul>
|
40 |
-
*
|
41 |
* <li>SellerBillingAgreementId: string</li>
|
42 |
* <li>StoreName: string</li>
|
43 |
* <li>CustomInformation: string</li>
|
44 |
*
|
45 |
* </ul>
|
46 |
*/
|
47 |
-
public function __construct
|
48 |
{
|
49 |
$this->_fields = array(
|
50 |
'SellerBillingAgreementId' => array(
|
@@ -62,136 +62,136 @@ class OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes extends Of
|
|
62 |
);
|
63 |
parent::__construct($data);
|
64 |
}
|
65 |
-
|
66 |
/**
|
67 |
* Gets the value of the SellerBillingAgreementId property.
|
68 |
-
*
|
69 |
* @return string SellerBillingAgreementId
|
70 |
*/
|
71 |
-
public function getSellerBillingAgreementId
|
72 |
{
|
73 |
return $this->_fields['SellerBillingAgreementId']['FieldValue'];
|
74 |
}
|
75 |
-
|
76 |
/**
|
77 |
* Sets the value of the SellerBillingAgreementId property.
|
78 |
-
*
|
79 |
* @param string SellerBillingAgreementId
|
80 |
* @return this instance
|
81 |
*/
|
82 |
-
public function setSellerBillingAgreementId
|
83 |
{
|
84 |
$this->_fields['SellerBillingAgreementId']['FieldValue'] = $value;
|
85 |
return $this;
|
86 |
}
|
87 |
-
|
88 |
/**
|
89 |
* Sets the value of the SellerBillingAgreementId and returns this instance
|
90 |
-
*
|
91 |
* @param string $value SellerBillingAgreementId
|
92 |
* @return OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes instance
|
93 |
*/
|
94 |
-
public function withSellerBillingAgreementId
|
95 |
{
|
96 |
$this->setSellerBillingAgreementId($value);
|
97 |
return $this;
|
98 |
}
|
99 |
-
|
100 |
/**
|
101 |
* Checks if SellerBillingAgreementId is set
|
102 |
-
*
|
103 |
* @return bool true if SellerBillingAgreementId is set
|
104 |
*/
|
105 |
-
public function isSetSellerBillingAgreementId
|
106 |
{
|
107 |
-
return !
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Gets the value of the StoreName property.
|
112 |
-
*
|
113 |
* @return string StoreName
|
114 |
*/
|
115 |
-
public function getStoreName
|
116 |
{
|
117 |
return $this->_fields['StoreName']['FieldValue'];
|
118 |
}
|
119 |
-
|
120 |
/**
|
121 |
* Sets the value of the StoreName property.
|
122 |
-
*
|
123 |
* @param string StoreName
|
124 |
* @return this instance
|
125 |
*/
|
126 |
-
public function setStoreName
|
127 |
{
|
128 |
$this->_fields['StoreName']['FieldValue'] = $value;
|
129 |
return $this;
|
130 |
}
|
131 |
-
|
132 |
/**
|
133 |
* Sets the value of the StoreName and returns this instance
|
134 |
-
*
|
135 |
* @param string $value StoreName
|
136 |
* @return OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes instance
|
137 |
*/
|
138 |
-
public function withStoreName
|
139 |
{
|
140 |
$this->setStoreName($value);
|
141 |
return $this;
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Checks if StoreName is set
|
146 |
-
*
|
147 |
* @return bool true if StoreName is set
|
148 |
*/
|
149 |
-
public function isSetStoreName
|
150 |
{
|
151 |
-
return !
|
152 |
}
|
153 |
-
|
154 |
/**
|
155 |
* Gets the value of the CustomInformation property.
|
156 |
-
*
|
157 |
* @return string CustomInformation
|
158 |
*/
|
159 |
-
public function getCustomInformation
|
160 |
{
|
161 |
return $this->_fields['CustomInformation']['FieldValue'];
|
162 |
}
|
163 |
-
|
164 |
/**
|
165 |
* Sets the value of the CustomInformation property.
|
166 |
-
*
|
167 |
* @param string CustomInformation
|
168 |
* @return this instance
|
169 |
*/
|
170 |
-
public function setCustomInformation
|
171 |
{
|
172 |
$this->_fields['CustomInformation']['FieldValue'] = $value;
|
173 |
return $this;
|
174 |
}
|
175 |
-
|
176 |
/**
|
177 |
* Sets the value of the CustomInformation and returns this instance
|
178 |
-
*
|
179 |
* @param string $value CustomInformation
|
180 |
* @return OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes instance
|
181 |
*/
|
182 |
-
public function withCustomInformation
|
183 |
{
|
184 |
$this->setCustomInformation($value);
|
185 |
return $this;
|
186 |
}
|
187 |
-
|
188 |
/**
|
189 |
* Checks if CustomInformation is set
|
190 |
-
*
|
191 |
* @return bool true if CustomInformation is set
|
192 |
*/
|
193 |
-
public function isSetCustomInformation
|
194 |
{
|
195 |
-
return !
|
196 |
}
|
197 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>SellerBillingAgreementId: string</li>
|
25 |
* <li>StoreName: string</li>
|
26 |
* <li>CustomInformation: string</li>
|
29 |
*/
|
30 |
class OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes extends OffAmazonPaymentsService_Model
|
31 |
{
|
32 |
+
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes
|
35 |
+
*
|
36 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
37 |
+
*
|
38 |
* Valid properties:
|
39 |
* <ul>
|
40 |
+
*
|
41 |
* <li>SellerBillingAgreementId: string</li>
|
42 |
* <li>StoreName: string</li>
|
43 |
* <li>CustomInformation: string</li>
|
44 |
*
|
45 |
* </ul>
|
46 |
*/
|
47 |
+
public function __construct($data = null)
|
48 |
{
|
49 |
$this->_fields = array(
|
50 |
'SellerBillingAgreementId' => array(
|
62 |
);
|
63 |
parent::__construct($data);
|
64 |
}
|
65 |
+
|
66 |
/**
|
67 |
* Gets the value of the SellerBillingAgreementId property.
|
68 |
+
*
|
69 |
* @return string SellerBillingAgreementId
|
70 |
*/
|
71 |
+
public function getSellerBillingAgreementId()
|
72 |
{
|
73 |
return $this->_fields['SellerBillingAgreementId']['FieldValue'];
|
74 |
}
|
75 |
+
|
76 |
/**
|
77 |
* Sets the value of the SellerBillingAgreementId property.
|
78 |
+
*
|
79 |
* @param string SellerBillingAgreementId
|
80 |
* @return this instance
|
81 |
*/
|
82 |
+
public function setSellerBillingAgreementId($value)
|
83 |
{
|
84 |
$this->_fields['SellerBillingAgreementId']['FieldValue'] = $value;
|
85 |
return $this;
|
86 |
}
|
87 |
+
|
88 |
/**
|
89 |
* Sets the value of the SellerBillingAgreementId and returns this instance
|
90 |
+
*
|
91 |
* @param string $value SellerBillingAgreementId
|
92 |
* @return OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes instance
|
93 |
*/
|
94 |
+
public function withSellerBillingAgreementId($value)
|
95 |
{
|
96 |
$this->setSellerBillingAgreementId($value);
|
97 |
return $this;
|
98 |
}
|
99 |
+
|
100 |
/**
|
101 |
* Checks if SellerBillingAgreementId is set
|
102 |
+
*
|
103 |
* @return bool true if SellerBillingAgreementId is set
|
104 |
*/
|
105 |
+
public function isSetSellerBillingAgreementId()
|
106 |
{
|
107 |
+
return !is_null($this->_fields['SellerBillingAgreementId']['FieldValue']);
|
108 |
}
|
109 |
+
|
110 |
/**
|
111 |
* Gets the value of the StoreName property.
|
112 |
+
*
|
113 |
* @return string StoreName
|
114 |
*/
|
115 |
+
public function getStoreName()
|
116 |
{
|
117 |
return $this->_fields['StoreName']['FieldValue'];
|
118 |
}
|
119 |
+
|
120 |
/**
|
121 |
* Sets the value of the StoreName property.
|
122 |
+
*
|
123 |
* @param string StoreName
|
124 |
* @return this instance
|
125 |
*/
|
126 |
+
public function setStoreName($value)
|
127 |
{
|
128 |
$this->_fields['StoreName']['FieldValue'] = $value;
|
129 |
return $this;
|
130 |
}
|
131 |
+
|
132 |
/**
|
133 |
* Sets the value of the StoreName and returns this instance
|
134 |
+
*
|
135 |
* @param string $value StoreName
|
136 |
* @return OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes instance
|
137 |
*/
|
138 |
+
public function withStoreName($value)
|
139 |
{
|
140 |
$this->setStoreName($value);
|
141 |
return $this;
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Checks if StoreName is set
|
146 |
+
*
|
147 |
* @return bool true if StoreName is set
|
148 |
*/
|
149 |
+
public function isSetStoreName()
|
150 |
{
|
151 |
+
return !is_null($this->_fields['StoreName']['FieldValue']);
|
152 |
}
|
153 |
+
|
154 |
/**
|
155 |
* Gets the value of the CustomInformation property.
|
156 |
+
*
|
157 |
* @return string CustomInformation
|
158 |
*/
|
159 |
+
public function getCustomInformation()
|
160 |
{
|
161 |
return $this->_fields['CustomInformation']['FieldValue'];
|
162 |
}
|
163 |
+
|
164 |
/**
|
165 |
* Sets the value of the CustomInformation property.
|
166 |
+
*
|
167 |
* @param string CustomInformation
|
168 |
* @return this instance
|
169 |
*/
|
170 |
+
public function setCustomInformation($value)
|
171 |
{
|
172 |
$this->_fields['CustomInformation']['FieldValue'] = $value;
|
173 |
return $this;
|
174 |
}
|
175 |
+
|
176 |
/**
|
177 |
* Sets the value of the CustomInformation and returns this instance
|
178 |
+
*
|
179 |
* @param string $value CustomInformation
|
180 |
* @return OffAmazonPaymentsService_Model_SellerBillingAgreementAttributes instance
|
181 |
*/
|
182 |
+
public function withCustomInformation($value)
|
183 |
{
|
184 |
$this->setCustomInformation($value);
|
185 |
return $this;
|
186 |
}
|
187 |
+
|
188 |
/**
|
189 |
* Checks if CustomInformation is set
|
190 |
+
*
|
191 |
* @return bool true if CustomInformation is set
|
192 |
*/
|
193 |
+
public function isSetCustomInformation()
|
194 |
{
|
195 |
+
return !is_null($this->_fields['CustomInformation']['FieldValue']);
|
196 |
}
|
197 |
+
}
|
lib/OffAmazonPaymentsService/Model/SellerOrderAttributes.php
CHANGED
@@ -20,32 +20,32 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SellerOrderAttributes
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerOrderId: string</li>
|
32 |
* <li>StoreName: string</li>
|
33 |
* <li>OrderItemCategories: OffAmazonPaymentsService_Model_OrderItemCategories</li>
|
34 |
* <li>CustomInformation: string</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
-
*/
|
38 |
class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
-
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_SellerOrderAttributes
|
43 |
-
*
|
44 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
-
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
-
*
|
49 |
* <li>SellerOrderId: string</li>
|
50 |
* <li>StoreName: string</li>
|
51 |
* <li>OrderItemCategories: OffAmazonPaymentsService_Model_OrderItemCategories</li>
|
@@ -55,42 +55,54 @@ class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaym
|
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
-
$this->_fields = array
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
);
|
66 |
parent::__construct($data);
|
67 |
}
|
68 |
-
|
69 |
-
|
70 |
* Gets the value of the SellerOrderId property.
|
71 |
-
*
|
72 |
* @return string SellerOrderId
|
73 |
*/
|
74 |
-
public function getSellerOrderId()
|
75 |
{
|
76 |
return $this->_fields['SellerOrderId']['FieldValue'];
|
77 |
}
|
78 |
-
|
79 |
/**
|
80 |
* Sets the value of the SellerOrderId property.
|
81 |
-
*
|
82 |
* @param string SellerOrderId
|
83 |
* @return this instance
|
84 |
*/
|
85 |
-
public function setSellerOrderId($value)
|
86 |
{
|
87 |
$this->_fields['SellerOrderId']['FieldValue'] = $value;
|
88 |
return $this;
|
89 |
}
|
90 |
-
|
91 |
/**
|
92 |
* Sets the value of the SellerOrderId and returns this instance
|
93 |
-
*
|
94 |
* @param string $value SellerOrderId
|
95 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
96 |
*/
|
@@ -99,43 +111,43 @@ class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaym
|
|
99 |
$this->setSellerOrderId($value);
|
100 |
return $this;
|
101 |
}
|
102 |
-
|
103 |
-
|
104 |
/**
|
105 |
* Checks if SellerOrderId is set
|
106 |
-
*
|
107 |
* @return bool true if SellerOrderId is set
|
108 |
*/
|
109 |
public function isSetSellerOrderId()
|
110 |
{
|
111 |
return !is_null($this->_fields['SellerOrderId']['FieldValue']);
|
112 |
}
|
113 |
-
|
114 |
/**
|
115 |
* Gets the value of the StoreName property.
|
116 |
-
*
|
117 |
* @return string StoreName
|
118 |
*/
|
119 |
-
public function getStoreName()
|
120 |
{
|
121 |
return $this->_fields['StoreName']['FieldValue'];
|
122 |
}
|
123 |
-
|
124 |
/**
|
125 |
* Sets the value of the StoreName property.
|
126 |
-
*
|
127 |
* @param string StoreName
|
128 |
* @return this instance
|
129 |
*/
|
130 |
-
public function setStoreName($value)
|
131 |
{
|
132 |
$this->_fields['StoreName']['FieldValue'] = $value;
|
133 |
return $this;
|
134 |
}
|
135 |
-
|
136 |
/**
|
137 |
* Sets the value of the StoreName and returns this instance
|
138 |
-
*
|
139 |
* @param string $value StoreName
|
140 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
141 |
*/
|
@@ -144,43 +156,43 @@ class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaym
|
|
144 |
$this->setStoreName($value);
|
145 |
return $this;
|
146 |
}
|
147 |
-
|
148 |
-
|
149 |
/**
|
150 |
* Checks if StoreName is set
|
151 |
-
*
|
152 |
* @return bool true if StoreName is set
|
153 |
*/
|
154 |
public function isSetStoreName()
|
155 |
{
|
156 |
return !is_null($this->_fields['StoreName']['FieldValue']);
|
157 |
}
|
158 |
-
|
159 |
/**
|
160 |
* Gets the value of the OrderItemCategories.
|
161 |
-
*
|
162 |
* @return OrderItemCategories OrderItemCategories
|
163 |
*/
|
164 |
-
public function getOrderItemCategories()
|
165 |
{
|
166 |
return $this->_fields['OrderItemCategories']['FieldValue'];
|
167 |
}
|
168 |
-
|
169 |
/**
|
170 |
* Sets the value of the OrderItemCategories.
|
171 |
-
*
|
172 |
* @param OrderItemCategories OrderItemCategories
|
173 |
* @return void
|
174 |
*/
|
175 |
-
public function setOrderItemCategories($value)
|
176 |
{
|
177 |
$this->_fields['OrderItemCategories']['FieldValue'] = $value;
|
178 |
return;
|
179 |
}
|
180 |
-
|
181 |
/**
|
182 |
* Sets the value of the OrderItemCategories and returns this instance
|
183 |
-
*
|
184 |
* @param OrderItemCategories $value OrderItemCategories
|
185 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
186 |
*/
|
@@ -189,44 +201,44 @@ class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaym
|
|
189 |
$this->setOrderItemCategories($value);
|
190 |
return $this;
|
191 |
}
|
192 |
-
|
193 |
-
|
194 |
/**
|
195 |
* Checks if OrderItemCategories is set
|
196 |
-
*
|
197 |
* @return bool true if OrderItemCategories property is set
|
198 |
*/
|
199 |
public function isSetOrderItemCategories()
|
200 |
{
|
201 |
return !is_null($this->_fields['OrderItemCategories']['FieldValue']);
|
202 |
-
|
203 |
}
|
204 |
-
|
205 |
/**
|
206 |
* Gets the value of the CustomInformation property.
|
207 |
-
*
|
208 |
* @return string CustomInformation
|
209 |
*/
|
210 |
-
public function getCustomInformation()
|
211 |
{
|
212 |
return $this->_fields['CustomInformation']['FieldValue'];
|
213 |
}
|
214 |
-
|
215 |
/**
|
216 |
* Sets the value of the CustomInformation property.
|
217 |
-
*
|
218 |
* @param string CustomInformation
|
219 |
* @return this instance
|
220 |
*/
|
221 |
-
public function setCustomInformation($value)
|
222 |
{
|
223 |
$this->_fields['CustomInformation']['FieldValue'] = $value;
|
224 |
return $this;
|
225 |
}
|
226 |
-
|
227 |
/**
|
228 |
* Sets the value of the CustomInformation and returns this instance
|
229 |
-
*
|
230 |
* @param string $value CustomInformation
|
231 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
232 |
*/
|
@@ -235,19 +247,16 @@ class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaym
|
|
235 |
$this->setCustomInformation($value);
|
236 |
return $this;
|
237 |
}
|
238 |
-
|
239 |
-
|
240 |
/**
|
241 |
* Checks if CustomInformation is set
|
242 |
-
*
|
243 |
* @return bool true if CustomInformation is set
|
244 |
*/
|
245 |
public function isSetCustomInformation()
|
246 |
{
|
247 |
return !is_null($this->_fields['CustomInformation']['FieldValue']);
|
248 |
}
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SellerOrderAttributes
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerOrderId: string</li>
|
32 |
* <li>StoreName: string</li>
|
33 |
* <li>OrderItemCategories: OffAmazonPaymentsService_Model_OrderItemCategories</li>
|
34 |
* <li>CustomInformation: string</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
+
*/
|
38 |
class OffAmazonPaymentsService_Model_SellerOrderAttributes extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
+
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_SellerOrderAttributes
|
43 |
+
*
|
44 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
+
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
+
*
|
49 |
* <li>SellerOrderId: string</li>
|
50 |
* <li>StoreName: string</li>
|
51 |
* <li>OrderItemCategories: OffAmazonPaymentsService_Model_OrderItemCategories</li>
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
+
$this->_fields = array(
|
59 |
+
'SellerOrderId' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'StoreName' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
),
|
67 |
+
|
68 |
+
'OrderItemCategories' => array(
|
69 |
+
'FieldValue' => null,
|
70 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderItemCategories'
|
71 |
+
),
|
72 |
+
|
73 |
+
'CustomInformation' => array(
|
74 |
+
'FieldValue' => null,
|
75 |
+
'FieldType' => 'string'
|
76 |
+
)
|
77 |
);
|
78 |
parent::__construct($data);
|
79 |
}
|
80 |
+
|
81 |
+
/**
|
82 |
* Gets the value of the SellerOrderId property.
|
83 |
+
*
|
84 |
* @return string SellerOrderId
|
85 |
*/
|
86 |
+
public function getSellerOrderId()
|
87 |
{
|
88 |
return $this->_fields['SellerOrderId']['FieldValue'];
|
89 |
}
|
90 |
+
|
91 |
/**
|
92 |
* Sets the value of the SellerOrderId property.
|
93 |
+
*
|
94 |
* @param string SellerOrderId
|
95 |
* @return this instance
|
96 |
*/
|
97 |
+
public function setSellerOrderId($value)
|
98 |
{
|
99 |
$this->_fields['SellerOrderId']['FieldValue'] = $value;
|
100 |
return $this;
|
101 |
}
|
102 |
+
|
103 |
/**
|
104 |
* Sets the value of the SellerOrderId and returns this instance
|
105 |
+
*
|
106 |
* @param string $value SellerOrderId
|
107 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
108 |
*/
|
111 |
$this->setSellerOrderId($value);
|
112 |
return $this;
|
113 |
}
|
114 |
+
|
115 |
+
|
116 |
/**
|
117 |
* Checks if SellerOrderId is set
|
118 |
+
*
|
119 |
* @return bool true if SellerOrderId is set
|
120 |
*/
|
121 |
public function isSetSellerOrderId()
|
122 |
{
|
123 |
return !is_null($this->_fields['SellerOrderId']['FieldValue']);
|
124 |
}
|
125 |
+
|
126 |
/**
|
127 |
* Gets the value of the StoreName property.
|
128 |
+
*
|
129 |
* @return string StoreName
|
130 |
*/
|
131 |
+
public function getStoreName()
|
132 |
{
|
133 |
return $this->_fields['StoreName']['FieldValue'];
|
134 |
}
|
135 |
+
|
136 |
/**
|
137 |
* Sets the value of the StoreName property.
|
138 |
+
*
|
139 |
* @param string StoreName
|
140 |
* @return this instance
|
141 |
*/
|
142 |
+
public function setStoreName($value)
|
143 |
{
|
144 |
$this->_fields['StoreName']['FieldValue'] = $value;
|
145 |
return $this;
|
146 |
}
|
147 |
+
|
148 |
/**
|
149 |
* Sets the value of the StoreName and returns this instance
|
150 |
+
*
|
151 |
* @param string $value StoreName
|
152 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
153 |
*/
|
156 |
$this->setStoreName($value);
|
157 |
return $this;
|
158 |
}
|
159 |
+
|
160 |
+
|
161 |
/**
|
162 |
* Checks if StoreName is set
|
163 |
+
*
|
164 |
* @return bool true if StoreName is set
|
165 |
*/
|
166 |
public function isSetStoreName()
|
167 |
{
|
168 |
return !is_null($this->_fields['StoreName']['FieldValue']);
|
169 |
}
|
170 |
+
|
171 |
/**
|
172 |
* Gets the value of the OrderItemCategories.
|
173 |
+
*
|
174 |
* @return OrderItemCategories OrderItemCategories
|
175 |
*/
|
176 |
+
public function getOrderItemCategories()
|
177 |
{
|
178 |
return $this->_fields['OrderItemCategories']['FieldValue'];
|
179 |
}
|
180 |
+
|
181 |
/**
|
182 |
* Sets the value of the OrderItemCategories.
|
183 |
+
*
|
184 |
* @param OrderItemCategories OrderItemCategories
|
185 |
* @return void
|
186 |
*/
|
187 |
+
public function setOrderItemCategories($value)
|
188 |
{
|
189 |
$this->_fields['OrderItemCategories']['FieldValue'] = $value;
|
190 |
return;
|
191 |
}
|
192 |
+
|
193 |
/**
|
194 |
* Sets the value of the OrderItemCategories and returns this instance
|
195 |
+
*
|
196 |
* @param OrderItemCategories $value OrderItemCategories
|
197 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
198 |
*/
|
201 |
$this->setOrderItemCategories($value);
|
202 |
return $this;
|
203 |
}
|
204 |
+
|
205 |
+
|
206 |
/**
|
207 |
* Checks if OrderItemCategories is set
|
208 |
+
*
|
209 |
* @return bool true if OrderItemCategories property is set
|
210 |
*/
|
211 |
public function isSetOrderItemCategories()
|
212 |
{
|
213 |
return !is_null($this->_fields['OrderItemCategories']['FieldValue']);
|
214 |
+
|
215 |
}
|
216 |
+
|
217 |
/**
|
218 |
* Gets the value of the CustomInformation property.
|
219 |
+
*
|
220 |
* @return string CustomInformation
|
221 |
*/
|
222 |
+
public function getCustomInformation()
|
223 |
{
|
224 |
return $this->_fields['CustomInformation']['FieldValue'];
|
225 |
}
|
226 |
+
|
227 |
/**
|
228 |
* Sets the value of the CustomInformation property.
|
229 |
+
*
|
230 |
* @param string CustomInformation
|
231 |
* @return this instance
|
232 |
*/
|
233 |
+
public function setCustomInformation($value)
|
234 |
{
|
235 |
$this->_fields['CustomInformation']['FieldValue'] = $value;
|
236 |
return $this;
|
237 |
}
|
238 |
+
|
239 |
/**
|
240 |
* Sets the value of the CustomInformation and returns this instance
|
241 |
+
*
|
242 |
* @param string $value CustomInformation
|
243 |
* @return OffAmazonPaymentsService_Model_SellerOrderAttributes instance
|
244 |
*/
|
247 |
$this->setCustomInformation($value);
|
248 |
return $this;
|
249 |
}
|
250 |
+
|
251 |
+
|
252 |
/**
|
253 |
* Checks if CustomInformation is set
|
254 |
+
*
|
255 |
* @return bool true if CustomInformation is set
|
256 |
*/
|
257 |
public function isSetCustomInformation()
|
258 |
{
|
259 |
return !is_null($this->_fields['CustomInformation']['FieldValue']);
|
260 |
}
|
261 |
+
|
262 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsRequest.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>SellerId: string</li>
|
25 |
* <li>AmazonBillingAgreementId: string</li>
|
26 |
* <li>BillingAgreementAttributes: OffAmazonPaymentsService_Model_BillingAgreementAttributes</li>
|
@@ -32,12 +32,12 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
32 |
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest
|
35 |
-
*
|
36 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
37 |
-
*
|
38 |
* Valid properties:
|
39 |
* <ul>
|
40 |
-
*
|
41 |
* <li>SellerId: string</li>
|
42 |
* <li>AmazonBillingAgreementId: string</li>
|
43 |
* <li>BillingAgreementAttributes: OffAmazonPaymentsService_Model_BillingAgreementAttributes</li>
|
@@ -55,19 +55,24 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'string'
|
57 |
),
|
58 |
-
|
59 |
'BillingAgreementAttributes' => array(
|
60 |
'FieldValue' => null,
|
61 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementAttributes'
|
|
|
|
|
|
|
|
|
|
|
62 |
)
|
63 |
-
|
64 |
-
;
|
65 |
parent::__construct($data);
|
66 |
}
|
67 |
|
68 |
/**
|
69 |
* Gets the value of the SellerId property.
|
70 |
-
*
|
71 |
* @return string SellerId
|
72 |
*/
|
73 |
public function getSellerId ()
|
@@ -77,7 +82,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
77 |
|
78 |
/**
|
79 |
* Sets the value of the SellerId property.
|
80 |
-
*
|
81 |
* @param string SellerId
|
82 |
* @return this instance
|
83 |
*/
|
@@ -89,7 +94,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
89 |
|
90 |
/**
|
91 |
* Sets the value of the SellerId and returns this instance
|
92 |
-
*
|
93 |
* @param string $value SellerId
|
94 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest instance
|
95 |
*/
|
@@ -101,7 +106,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
101 |
|
102 |
/**
|
103 |
* Checks if SellerId is set
|
104 |
-
*
|
105 |
* @return bool true if SellerId is set
|
106 |
*/
|
107 |
public function isSetSellerId ()
|
@@ -111,7 +116,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
111 |
|
112 |
/**
|
113 |
* Gets the value of the AmazonBillingAgreementId property.
|
114 |
-
*
|
115 |
* @return string AmazonBillingAgreementId
|
116 |
*/
|
117 |
public function getAmazonBillingAgreementId ()
|
@@ -121,7 +126,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
121 |
|
122 |
/**
|
123 |
* Sets the value of the AmazonBillingAgreementId property.
|
124 |
-
*
|
125 |
* @param string AmazonBillingAgreementId
|
126 |
* @return this instance
|
127 |
*/
|
@@ -133,7 +138,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
133 |
|
134 |
/**
|
135 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
136 |
-
*
|
137 |
* @param string $value AmazonBillingAgreementId
|
138 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest instance
|
139 |
*/
|
@@ -145,7 +150,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
145 |
|
146 |
/**
|
147 |
* Checks if AmazonBillingAgreementId is set
|
148 |
-
*
|
149 |
* @return bool true if AmazonBillingAgreementId is set
|
150 |
*/
|
151 |
public function isSetAmazonBillingAgreementId ()
|
@@ -155,7 +160,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
155 |
|
156 |
/**
|
157 |
* Gets the value of the BillingAgreementAttributes.
|
158 |
-
*
|
159 |
* @return BillingAgreementAttributes BillingAgreementAttributes
|
160 |
*/
|
161 |
public function getBillingAgreementAttributes ()
|
@@ -165,7 +170,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
165 |
|
166 |
/**
|
167 |
* Sets the value of the BillingAgreementAttributes.
|
168 |
-
*
|
169 |
* @param BillingAgreementAttributes BillingAgreementAttributes
|
170 |
* @return void
|
171 |
*/
|
@@ -177,7 +182,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
177 |
|
178 |
/**
|
179 |
* Sets the value of the BillingAgreementAttributes and returns this instance
|
180 |
-
*
|
181 |
* @param BillingAgreementAttributes $value BillingAgreementAttributes
|
182 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest instance
|
183 |
*/
|
@@ -189,11 +194,44 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest extends O
|
|
189 |
|
190 |
/**
|
191 |
* Checks if BillingAgreementAttributes is set
|
192 |
-
*
|
193 |
* @return bool true if BillingAgreementAttributes property is set
|
194 |
*/
|
195 |
public function isSetBillingAgreementAttributes ()
|
196 |
{
|
197 |
return ! is_null($this->_fields['BillingAgreementAttributes']['FieldValue']);
|
198 |
}
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>SellerId: string</li>
|
25 |
* <li>AmazonBillingAgreementId: string</li>
|
26 |
* <li>BillingAgreementAttributes: OffAmazonPaymentsService_Model_BillingAgreementAttributes</li>
|
32 |
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest
|
35 |
+
*
|
36 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
37 |
+
*
|
38 |
* Valid properties:
|
39 |
* <ul>
|
40 |
+
*
|
41 |
* <li>SellerId: string</li>
|
42 |
* <li>AmazonBillingAgreementId: string</li>
|
43 |
* <li>BillingAgreementAttributes: OffAmazonPaymentsService_Model_BillingAgreementAttributes</li>
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'string'
|
57 |
),
|
58 |
+
|
59 |
'BillingAgreementAttributes' => array(
|
60 |
'FieldValue' => null,
|
61 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementAttributes'
|
62 |
+
),
|
63 |
+
|
64 |
+
'MWSAuthToken' => array(
|
65 |
+
'FieldValue' => null,
|
66 |
+
'FieldType' => 'string'
|
67 |
)
|
68 |
+
|
69 |
+
);
|
70 |
parent::__construct($data);
|
71 |
}
|
72 |
|
73 |
/**
|
74 |
* Gets the value of the SellerId property.
|
75 |
+
*
|
76 |
* @return string SellerId
|
77 |
*/
|
78 |
public function getSellerId ()
|
82 |
|
83 |
/**
|
84 |
* Sets the value of the SellerId property.
|
85 |
+
*
|
86 |
* @param string SellerId
|
87 |
* @return this instance
|
88 |
*/
|
94 |
|
95 |
/**
|
96 |
* Sets the value of the SellerId and returns this instance
|
97 |
+
*
|
98 |
* @param string $value SellerId
|
99 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest instance
|
100 |
*/
|
106 |
|
107 |
/**
|
108 |
* Checks if SellerId is set
|
109 |
+
*
|
110 |
* @return bool true if SellerId is set
|
111 |
*/
|
112 |
public function isSetSellerId ()
|
116 |
|
117 |
/**
|
118 |
* Gets the value of the AmazonBillingAgreementId property.
|
119 |
+
*
|
120 |
* @return string AmazonBillingAgreementId
|
121 |
*/
|
122 |
public function getAmazonBillingAgreementId ()
|
126 |
|
127 |
/**
|
128 |
* Sets the value of the AmazonBillingAgreementId property.
|
129 |
+
*
|
130 |
* @param string AmazonBillingAgreementId
|
131 |
* @return this instance
|
132 |
*/
|
138 |
|
139 |
/**
|
140 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
141 |
+
*
|
142 |
* @param string $value AmazonBillingAgreementId
|
143 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest instance
|
144 |
*/
|
150 |
|
151 |
/**
|
152 |
* Checks if AmazonBillingAgreementId is set
|
153 |
+
*
|
154 |
* @return bool true if AmazonBillingAgreementId is set
|
155 |
*/
|
156 |
public function isSetAmazonBillingAgreementId ()
|
160 |
|
161 |
/**
|
162 |
* Gets the value of the BillingAgreementAttributes.
|
163 |
+
*
|
164 |
* @return BillingAgreementAttributes BillingAgreementAttributes
|
165 |
*/
|
166 |
public function getBillingAgreementAttributes ()
|
170 |
|
171 |
/**
|
172 |
* Sets the value of the BillingAgreementAttributes.
|
173 |
+
*
|
174 |
* @param BillingAgreementAttributes BillingAgreementAttributes
|
175 |
* @return void
|
176 |
*/
|
182 |
|
183 |
/**
|
184 |
* Sets the value of the BillingAgreementAttributes and returns this instance
|
185 |
+
*
|
186 |
* @param BillingAgreementAttributes $value BillingAgreementAttributes
|
187 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsRequest instance
|
188 |
*/
|
194 |
|
195 |
/**
|
196 |
* Checks if BillingAgreementAttributes is set
|
197 |
+
*
|
198 |
* @return bool true if BillingAgreementAttributes property is set
|
199 |
*/
|
200 |
public function isSetBillingAgreementAttributes ()
|
201 |
{
|
202 |
return ! is_null($this->_fields['BillingAgreementAttributes']['FieldValue']);
|
203 |
}
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Gets the value of the MWSAuthToken property.
|
207 |
+
*
|
208 |
+
* @return string MWSAuthToken
|
209 |
+
*/
|
210 |
+
public function getMWSAuthToken()
|
211 |
+
{
|
212 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
213 |
+
}
|
214 |
+
|
215 |
+
/**
|
216 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
217 |
+
*
|
218 |
+
* @param string $value MWSAuthToken
|
219 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
220 |
+
*/
|
221 |
+
public function setMWSAuthToken($value)
|
222 |
+
{
|
223 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
224 |
+
return $this;
|
225 |
+
}
|
226 |
+
|
227 |
+
|
228 |
+
/**
|
229 |
+
* Checks if MWSAuthToken is set
|
230 |
+
*
|
231 |
+
* @return bool true if MWSAuthToken is set
|
232 |
+
*/
|
233 |
+
public function isSetMWSAuthToken()
|
234 |
+
{
|
235 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
236 |
+
}
|
237 |
+
}
|
lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResponse.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>SetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
@@ -31,12 +31,12 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse
|
34 |
-
*
|
35 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
-
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
-
*
|
40 |
* <li>SetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
@@ -45,33 +45,32 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
-
|
49 |
'SetBillingAgreementDetailsResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult'
|
52 |
),
|
53 |
-
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
-
)
|
59 |
-
;
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
|
63 |
/**
|
64 |
* Construct OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse from XML string
|
65 |
-
*
|
66 |
* @param string $xml XML string to construct from
|
67 |
-
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse
|
68 |
*/
|
69 |
public static function fromXML ($xml)
|
70 |
{
|
71 |
$dom = new DOMDocument();
|
72 |
$dom->loadXML($xml);
|
73 |
$xpath = new DOMXPath($dom);
|
74 |
-
$xpath->registerNamespace('a',
|
75 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
76 |
$response = $xpath->query('//a:SetBillingAgreementDetailsResponse');
|
77 |
if ($response->length == 1) {
|
@@ -79,15 +78,15 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
79 |
($response->item(0)));
|
80 |
} else {
|
81 |
throw new Exception(
|
82 |
-
"Unable to construct OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse from provided XML.
|
83 |
Make sure that SetBillingAgreementDetailsResponse is a root element");
|
84 |
}
|
85 |
}
|
86 |
|
87 |
/**
|
88 |
* Gets the value of the SetBillingAgreementDetailsResult.
|
89 |
-
*
|
90 |
-
* @return
|
91 |
*/
|
92 |
public function getSetBillingAgreementDetailsResult ()
|
93 |
{
|
@@ -96,8 +95,8 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
96 |
|
97 |
/**
|
98 |
* Sets the value of the SetBillingAgreementDetailsResult.
|
99 |
-
*
|
100 |
-
* @param
|
101 |
* @return void
|
102 |
*/
|
103 |
public function setSetBillingAgreementDetailsResult ($value)
|
@@ -108,8 +107,8 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
108 |
|
109 |
/**
|
110 |
* Sets the value of the SetBillingAgreementDetailsResult and returns this instance
|
111 |
-
*
|
112 |
-
* @param
|
113 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse instance
|
114 |
*/
|
115 |
public function withSetBillingAgreementDetailsResult ($value)
|
@@ -120,7 +119,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
120 |
|
121 |
/**
|
122 |
* Checks if SetBillingAgreementDetailsResult is set
|
123 |
-
*
|
124 |
* @return bool true if SetBillingAgreementDetailsResult property is set
|
125 |
*/
|
126 |
public function isSetSetBillingAgreementDetailsResult ()
|
@@ -130,8 +129,8 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
130 |
|
131 |
/**
|
132 |
* Gets the value of the ResponseMetadata.
|
133 |
-
*
|
134 |
-
* @return
|
135 |
*/
|
136 |
public function getResponseMetadata ()
|
137 |
{
|
@@ -140,8 +139,8 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
140 |
|
141 |
/**
|
142 |
* Sets the value of the ResponseMetadata.
|
143 |
-
*
|
144 |
-
* @param
|
145 |
* @return void
|
146 |
*/
|
147 |
public function setResponseMetadata ($value)
|
@@ -152,8 +151,8 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
152 |
|
153 |
/**
|
154 |
* Sets the value of the ResponseMetadata and returns this instance
|
155 |
-
*
|
156 |
-
* @param
|
157 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse instance
|
158 |
*/
|
159 |
public function withResponseMetadata ($value)
|
@@ -164,7 +163,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
164 |
|
165 |
/**
|
166 |
* Checks if ResponseMetadata is set
|
167 |
-
*
|
168 |
* @return bool true if ResponseMetadata property is set
|
169 |
*/
|
170 |
public function isSetResponseMetadata ()
|
@@ -174,7 +173,7 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
174 |
|
175 |
/**
|
176 |
* XML Representation for this object
|
177 |
-
*
|
178 |
* @return string XML for this object
|
179 |
*/
|
180 |
public function toXML ()
|
@@ -197,4 +196,4 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse extends
|
|
197 |
{
|
198 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
199 |
}
|
200 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>SetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse
|
34 |
+
*
|
35 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
+
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
+
*
|
40 |
* <li>SetBillingAgreementDetailsResult: OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
+
|
49 |
'SetBillingAgreementDetailsResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult'
|
52 |
),
|
53 |
+
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
+
);
|
|
|
59 |
parent::__construct($data);
|
60 |
}
|
61 |
|
62 |
/**
|
63 |
* Construct OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse from XML string
|
64 |
+
*
|
65 |
* @param string $xml XML string to construct from
|
66 |
+
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse
|
67 |
*/
|
68 |
public static function fromXML ($xml)
|
69 |
{
|
70 |
$dom = new DOMDocument();
|
71 |
$dom->loadXML($xml);
|
72 |
$xpath = new DOMXPath($dom);
|
73 |
+
$xpath->registerNamespace('a',
|
74 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
75 |
$response = $xpath->query('//a:SetBillingAgreementDetailsResponse');
|
76 |
if ($response->length == 1) {
|
78 |
($response->item(0)));
|
79 |
} else {
|
80 |
throw new Exception(
|
81 |
+
"Unable to construct OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse from provided XML.
|
82 |
Make sure that SetBillingAgreementDetailsResponse is a root element");
|
83 |
}
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
* Gets the value of the SetBillingAgreementDetailsResult.
|
88 |
+
*
|
89 |
+
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult SetBillingAgreementDetailsResult
|
90 |
*/
|
91 |
public function getSetBillingAgreementDetailsResult ()
|
92 |
{
|
95 |
|
96 |
/**
|
97 |
* Sets the value of the SetBillingAgreementDetailsResult.
|
98 |
+
*
|
99 |
+
* @param OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult SetBillingAgreementDetailsResult
|
100 |
* @return void
|
101 |
*/
|
102 |
public function setSetBillingAgreementDetailsResult ($value)
|
107 |
|
108 |
/**
|
109 |
* Sets the value of the SetBillingAgreementDetailsResult and returns this instance
|
110 |
+
*
|
111 |
+
* @param OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult $value SetBillingAgreementDetailsResult
|
112 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse instance
|
113 |
*/
|
114 |
public function withSetBillingAgreementDetailsResult ($value)
|
119 |
|
120 |
/**
|
121 |
* Checks if SetBillingAgreementDetailsResult is set
|
122 |
+
*
|
123 |
* @return bool true if SetBillingAgreementDetailsResult property is set
|
124 |
*/
|
125 |
public function isSetSetBillingAgreementDetailsResult ()
|
129 |
|
130 |
/**
|
131 |
* Gets the value of the ResponseMetadata.
|
132 |
+
*
|
133 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
134 |
*/
|
135 |
public function getResponseMetadata ()
|
136 |
{
|
139 |
|
140 |
/**
|
141 |
* Sets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
* @return void
|
145 |
*/
|
146 |
public function setResponseMetadata ($value)
|
151 |
|
152 |
/**
|
153 |
* Sets the value of the ResponseMetadata and returns this instance
|
154 |
+
*
|
155 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
156 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResponse instance
|
157 |
*/
|
158 |
public function withResponseMetadata ($value)
|
163 |
|
164 |
/**
|
165 |
* Checks if ResponseMetadata is set
|
166 |
+
*
|
167 |
* @return bool true if ResponseMetadata property is set
|
168 |
*/
|
169 |
public function isSetResponseMetadata ()
|
173 |
|
174 |
/**
|
175 |
* XML Representation for this object
|
176 |
+
*
|
177 |
* @return string XML for this object
|
178 |
*/
|
179 |
public function toXML ()
|
196 |
{
|
197 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
198 |
}
|
199 |
+
}
|
lib/OffAmazonPaymentsService/Model/SetBillingAgreementDetailsResult.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
25 |
*
|
26 |
* </ul>
|
@@ -30,12 +30,12 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult extends Of
|
|
30 |
|
31 |
/**
|
32 |
* Construct new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult
|
33 |
-
*
|
34 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
35 |
-
*
|
36 |
* Valid properties:
|
37 |
* <ul>
|
38 |
-
*
|
39 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
40 |
*
|
41 |
* </ul>
|
@@ -43,20 +43,19 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult extends Of
|
|
43 |
public function __construct ($data = null)
|
44 |
{
|
45 |
$this->_fields = array(
|
46 |
-
|
47 |
'BillingAgreementDetails' => array(
|
48 |
'FieldValue' => null,
|
49 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementDetails'
|
50 |
)
|
51 |
-
)
|
52 |
-
;
|
53 |
parent::__construct($data);
|
54 |
}
|
55 |
|
56 |
/**
|
57 |
* Gets the value of the BillingAgreementDetails.
|
58 |
-
*
|
59 |
-
* @return
|
60 |
*/
|
61 |
public function getBillingAgreementDetails ()
|
62 |
{
|
@@ -65,8 +64,8 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult extends Of
|
|
65 |
|
66 |
/**
|
67 |
* Sets the value of the BillingAgreementDetails.
|
68 |
-
*
|
69 |
-
* @param
|
70 |
* @return void
|
71 |
*/
|
72 |
public function setBillingAgreementDetails ($value)
|
@@ -77,8 +76,8 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult extends Of
|
|
77 |
|
78 |
/**
|
79 |
* Sets the value of the BillingAgreementDetails and returns this instance
|
80 |
-
*
|
81 |
-
* @param
|
82 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult instance
|
83 |
*/
|
84 |
public function withBillingAgreementDetails ($value)
|
@@ -89,11 +88,11 @@ class OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult extends Of
|
|
89 |
|
90 |
/**
|
91 |
* Checks if BillingAgreementDetails is set
|
92 |
-
*
|
93 |
* @return bool true if BillingAgreementDetails property is set
|
94 |
*/
|
95 |
public function isSetBillingAgreementDetails ()
|
96 |
{
|
97 |
return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
|
98 |
}
|
99 |
-
}
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
25 |
*
|
26 |
* </ul>
|
30 |
|
31 |
/**
|
32 |
* Construct new OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult
|
33 |
+
*
|
34 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
35 |
+
*
|
36 |
* Valid properties:
|
37 |
* <ul>
|
38 |
+
*
|
39 |
* <li>BillingAgreementDetails: OffAmazonPaymentsService_Model_BillingAgreementDetails</li>
|
40 |
*
|
41 |
* </ul>
|
43 |
public function __construct ($data = null)
|
44 |
{
|
45 |
$this->_fields = array(
|
46 |
+
|
47 |
'BillingAgreementDetails' => array(
|
48 |
'FieldValue' => null,
|
49 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementDetails'
|
50 |
)
|
51 |
+
);
|
|
|
52 |
parent::__construct($data);
|
53 |
}
|
54 |
|
55 |
/**
|
56 |
* Gets the value of the BillingAgreementDetails.
|
57 |
+
*
|
58 |
+
* @return OffAmazonPaymentsService_Model_BillingAgreementDetails BillingAgreementDetails
|
59 |
*/
|
60 |
public function getBillingAgreementDetails ()
|
61 |
{
|
64 |
|
65 |
/**
|
66 |
* Sets the value of the BillingAgreementDetails.
|
67 |
+
*
|
68 |
+
* @param OffAmazonPaymentsService_Model_BillingAgreementDetails BillingAgreementDetails
|
69 |
* @return void
|
70 |
*/
|
71 |
public function setBillingAgreementDetails ($value)
|
76 |
|
77 |
/**
|
78 |
* Sets the value of the BillingAgreementDetails and returns this instance
|
79 |
+
*
|
80 |
+
* @param OffAmazonPaymentsService_Model_BillingAgreementDetails $value BillingAgreementDetails
|
81 |
* @return OffAmazonPaymentsService_Model_SetBillingAgreementDetailsResult instance
|
82 |
*/
|
83 |
public function withBillingAgreementDetails ($value)
|
88 |
|
89 |
/**
|
90 |
* Checks if BillingAgreementDetails is set
|
91 |
+
*
|
92 |
* @return bool true if BillingAgreementDetails property is set
|
93 |
*/
|
94 |
public function isSetBillingAgreementDetails ()
|
95 |
{
|
96 |
return ! is_null($this->_fields['BillingAgreementDetails']['FieldValue']);
|
97 |
}
|
98 |
+
}
|
lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsRequest.php
CHANGED
@@ -20,31 +20,31 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonOrderReferenceId: string</li>
|
33 |
* <li>OrderReferenceAttributes: OffAmazonPaymentsService_Model_OrderReferenceAttributes</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
-
*/
|
37 |
class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
-
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest
|
42 |
-
*
|
43 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
44 |
-
*
|
45 |
* Valid properties:
|
46 |
* <ul>
|
47 |
-
*
|
48 |
* <li>SellerId: string</li>
|
49 |
* <li>AmazonOrderReferenceId: string</li>
|
50 |
* <li>OrderReferenceAttributes: OffAmazonPaymentsService_Model_OrderReferenceAttributes</li>
|
@@ -53,41 +53,52 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest extends Off
|
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
-
$this->_fields = array
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
);
|
63 |
parent::__construct($data);
|
64 |
}
|
65 |
-
|
66 |
-
|
67 |
* Gets the value of the SellerId property.
|
68 |
-
*
|
69 |
* @return string SellerId
|
70 |
*/
|
71 |
-
public function getSellerId()
|
72 |
{
|
73 |
return $this->_fields['SellerId']['FieldValue'];
|
74 |
}
|
75 |
-
|
76 |
/**
|
77 |
* Sets the value of the SellerId property.
|
78 |
-
*
|
79 |
* @param string SellerId
|
80 |
* @return this instance
|
81 |
*/
|
82 |
-
public function setSellerId($value)
|
83 |
{
|
84 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
85 |
return $this;
|
86 |
}
|
87 |
-
|
88 |
/**
|
89 |
* Sets the value of the SellerId and returns this instance
|
90 |
-
*
|
91 |
* @param string $value SellerId
|
92 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest instance
|
93 |
*/
|
@@ -96,43 +107,43 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest extends Off
|
|
96 |
$this->setSellerId($value);
|
97 |
return $this;
|
98 |
}
|
99 |
-
|
100 |
-
|
101 |
/**
|
102 |
* Checks if SellerId is set
|
103 |
-
*
|
104 |
* @return bool true if SellerId is set
|
105 |
*/
|
106 |
public function isSetSellerId()
|
107 |
{
|
108 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
109 |
}
|
110 |
-
|
111 |
/**
|
112 |
* Gets the value of the AmazonOrderReferenceId property.
|
113 |
-
*
|
114 |
* @return string AmazonOrderReferenceId
|
115 |
*/
|
116 |
-
public function getAmazonOrderReferenceId()
|
117 |
{
|
118 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
119 |
}
|
120 |
-
|
121 |
/**
|
122 |
* Sets the value of the AmazonOrderReferenceId property.
|
123 |
-
*
|
124 |
* @param string AmazonOrderReferenceId
|
125 |
* @return this instance
|
126 |
*/
|
127 |
-
public function setAmazonOrderReferenceId($value)
|
128 |
{
|
129 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
130 |
return $this;
|
131 |
}
|
132 |
-
|
133 |
/**
|
134 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
135 |
-
*
|
136 |
* @param string $value AmazonOrderReferenceId
|
137 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest instance
|
138 |
*/
|
@@ -141,43 +152,43 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest extends Off
|
|
141 |
$this->setAmazonOrderReferenceId($value);
|
142 |
return $this;
|
143 |
}
|
144 |
-
|
145 |
-
|
146 |
/**
|
147 |
* Checks if AmazonOrderReferenceId is set
|
148 |
-
*
|
149 |
* @return bool true if AmazonOrderReferenceId is set
|
150 |
*/
|
151 |
public function isSetAmazonOrderReferenceId()
|
152 |
{
|
153 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Gets the value of the OrderReferenceAttributes.
|
158 |
-
*
|
159 |
* @return OrderReferenceAttributes OrderReferenceAttributes
|
160 |
*/
|
161 |
-
public function getOrderReferenceAttributes()
|
162 |
{
|
163 |
return $this->_fields['OrderReferenceAttributes']['FieldValue'];
|
164 |
}
|
165 |
-
|
166 |
/**
|
167 |
* Sets the value of the OrderReferenceAttributes.
|
168 |
-
*
|
169 |
* @param OrderReferenceAttributes OrderReferenceAttributes
|
170 |
* @return void
|
171 |
*/
|
172 |
-
public function setOrderReferenceAttributes($value)
|
173 |
{
|
174 |
$this->_fields['OrderReferenceAttributes']['FieldValue'] = $value;
|
175 |
return;
|
176 |
}
|
177 |
-
|
178 |
/**
|
179 |
* Sets the value of the OrderReferenceAttributes and returns this instance
|
180 |
-
*
|
181 |
* @param OrderReferenceAttributes $value OrderReferenceAttributes
|
182 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest instance
|
183 |
*/
|
@@ -186,20 +197,50 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest extends Off
|
|
186 |
$this->setOrderReferenceAttributes($value);
|
187 |
return $this;
|
188 |
}
|
189 |
-
|
190 |
-
|
191 |
/**
|
192 |
* Checks if OrderReferenceAttributes is set
|
193 |
-
*
|
194 |
* @return bool true if OrderReferenceAttributes property is set
|
195 |
*/
|
196 |
public function isSetOrderReferenceAttributes()
|
197 |
{
|
198 |
return !is_null($this->_fields['OrderReferenceAttributes']['FieldValue']);
|
199 |
-
|
200 |
}
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SellerId: string</li>
|
32 |
* <li>AmazonOrderReferenceId: string</li>
|
33 |
* <li>OrderReferenceAttributes: OffAmazonPaymentsService_Model_OrderReferenceAttributes</li>
|
34 |
*
|
35 |
* </ul>
|
36 |
+
*/
|
37 |
class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest extends OffAmazonPaymentsService_Model
|
38 |
{
|
39 |
+
|
40 |
/**
|
41 |
* Construct new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest
|
42 |
+
*
|
43 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
44 |
+
*
|
45 |
* Valid properties:
|
46 |
* <ul>
|
47 |
+
*
|
48 |
* <li>SellerId: string</li>
|
49 |
* <li>AmazonOrderReferenceId: string</li>
|
50 |
* <li>OrderReferenceAttributes: OffAmazonPaymentsService_Model_OrderReferenceAttributes</li>
|
53 |
*/
|
54 |
public function __construct($data = null)
|
55 |
{
|
56 |
+
$this->_fields = array(
|
57 |
+
'SellerId' => array(
|
58 |
+
'FieldValue' => null,
|
59 |
+
'FieldType' => 'string'
|
60 |
+
),
|
61 |
+
'AmazonOrderReferenceId' => array(
|
62 |
+
'FieldValue' => null,
|
63 |
+
'FieldType' => 'string'
|
64 |
+
),
|
65 |
+
'OrderReferenceAttributes' => array(
|
66 |
+
'FieldValue' => null,
|
67 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceAttributes'
|
68 |
+
),
|
69 |
+
'MWSAuthToken' => array(
|
70 |
+
'FieldValue' => null,
|
71 |
+
'FieldType' => 'string'
|
72 |
+
)
|
73 |
);
|
74 |
parent::__construct($data);
|
75 |
}
|
76 |
+
|
77 |
+
/**
|
78 |
* Gets the value of the SellerId property.
|
79 |
+
*
|
80 |
* @return string SellerId
|
81 |
*/
|
82 |
+
public function getSellerId()
|
83 |
{
|
84 |
return $this->_fields['SellerId']['FieldValue'];
|
85 |
}
|
86 |
+
|
87 |
/**
|
88 |
* Sets the value of the SellerId property.
|
89 |
+
*
|
90 |
* @param string SellerId
|
91 |
* @return this instance
|
92 |
*/
|
93 |
+
public function setSellerId($value)
|
94 |
{
|
95 |
$this->_fields['SellerId']['FieldValue'] = $value;
|
96 |
return $this;
|
97 |
}
|
98 |
+
|
99 |
/**
|
100 |
* Sets the value of the SellerId and returns this instance
|
101 |
+
*
|
102 |
* @param string $value SellerId
|
103 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest instance
|
104 |
*/
|
107 |
$this->setSellerId($value);
|
108 |
return $this;
|
109 |
}
|
110 |
+
|
111 |
+
|
112 |
/**
|
113 |
* Checks if SellerId is set
|
114 |
+
*
|
115 |
* @return bool true if SellerId is set
|
116 |
*/
|
117 |
public function isSetSellerId()
|
118 |
{
|
119 |
return !is_null($this->_fields['SellerId']['FieldValue']);
|
120 |
}
|
121 |
+
|
122 |
/**
|
123 |
* Gets the value of the AmazonOrderReferenceId property.
|
124 |
+
*
|
125 |
* @return string AmazonOrderReferenceId
|
126 |
*/
|
127 |
+
public function getAmazonOrderReferenceId()
|
128 |
{
|
129 |
return $this->_fields['AmazonOrderReferenceId']['FieldValue'];
|
130 |
}
|
131 |
+
|
132 |
/**
|
133 |
* Sets the value of the AmazonOrderReferenceId property.
|
134 |
+
*
|
135 |
* @param string AmazonOrderReferenceId
|
136 |
* @return this instance
|
137 |
*/
|
138 |
+
public function setAmazonOrderReferenceId($value)
|
139 |
{
|
140 |
$this->_fields['AmazonOrderReferenceId']['FieldValue'] = $value;
|
141 |
return $this;
|
142 |
}
|
143 |
+
|
144 |
/**
|
145 |
* Sets the value of the AmazonOrderReferenceId and returns this instance
|
146 |
+
*
|
147 |
* @param string $value AmazonOrderReferenceId
|
148 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest instance
|
149 |
*/
|
152 |
$this->setAmazonOrderReferenceId($value);
|
153 |
return $this;
|
154 |
}
|
155 |
+
|
156 |
+
|
157 |
/**
|
158 |
* Checks if AmazonOrderReferenceId is set
|
159 |
+
*
|
160 |
* @return bool true if AmazonOrderReferenceId is set
|
161 |
*/
|
162 |
public function isSetAmazonOrderReferenceId()
|
163 |
{
|
164 |
return !is_null($this->_fields['AmazonOrderReferenceId']['FieldValue']);
|
165 |
}
|
166 |
+
|
167 |
/**
|
168 |
* Gets the value of the OrderReferenceAttributes.
|
169 |
+
*
|
170 |
* @return OrderReferenceAttributes OrderReferenceAttributes
|
171 |
*/
|
172 |
+
public function getOrderReferenceAttributes()
|
173 |
{
|
174 |
return $this->_fields['OrderReferenceAttributes']['FieldValue'];
|
175 |
}
|
176 |
+
|
177 |
/**
|
178 |
* Sets the value of the OrderReferenceAttributes.
|
179 |
+
*
|
180 |
* @param OrderReferenceAttributes OrderReferenceAttributes
|
181 |
* @return void
|
182 |
*/
|
183 |
+
public function setOrderReferenceAttributes($value)
|
184 |
{
|
185 |
$this->_fields['OrderReferenceAttributes']['FieldValue'] = $value;
|
186 |
return;
|
187 |
}
|
188 |
+
|
189 |
/**
|
190 |
* Sets the value of the OrderReferenceAttributes and returns this instance
|
191 |
+
*
|
192 |
* @param OrderReferenceAttributes $value OrderReferenceAttributes
|
193 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest instance
|
194 |
*/
|
197 |
$this->setOrderReferenceAttributes($value);
|
198 |
return $this;
|
199 |
}
|
200 |
+
|
201 |
+
|
202 |
/**
|
203 |
* Checks if OrderReferenceAttributes is set
|
204 |
+
*
|
205 |
* @return bool true if OrderReferenceAttributes property is set
|
206 |
*/
|
207 |
public function isSetOrderReferenceAttributes()
|
208 |
{
|
209 |
return !is_null($this->_fields['OrderReferenceAttributes']['FieldValue']);
|
210 |
+
|
211 |
}
|
212 |
+
|
213 |
+
/**
|
214 |
+
* Gets the value of the MWSAuthToken property.
|
215 |
+
*
|
216 |
+
* @return string MWSAuthToken
|
217 |
+
*/
|
218 |
+
public function getMWSAuthToken()
|
219 |
+
{
|
220 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
221 |
+
}
|
222 |
+
|
223 |
+
/**
|
224 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
225 |
+
*
|
226 |
+
* @param string $value MWSAuthToken
|
227 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
228 |
+
*/
|
229 |
+
public function setMWSAuthToken($value)
|
230 |
+
{
|
231 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
232 |
+
return $this;
|
233 |
+
}
|
234 |
+
|
235 |
+
|
236 |
+
/**
|
237 |
+
* Checks if MWSAuthToken is set
|
238 |
+
*
|
239 |
+
* @return bool true if MWSAuthToken is set
|
240 |
+
*/
|
241 |
+
public function isSetMWSAuthToken()
|
242 |
+
{
|
243 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
244 |
+
}
|
245 |
+
|
246 |
+
}
|
lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResponse.php
CHANGED
@@ -20,30 +20,30 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>SetOrderReferenceDetailsResult: OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
-
*/
|
36 |
class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
-
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse
|
41 |
-
*
|
42 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
-
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
-
*
|
47 |
* <li>SetOrderReferenceDetailsResult: OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
@@ -51,66 +51,72 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse extends Of
|
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
-
$this->_fields = array
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
);
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
-
|
65 |
-
|
66 |
/**
|
67 |
* Construct OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse from XML string
|
68 |
-
*
|
69 |
* @param string $xml XML string to construct from
|
70 |
-
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse
|
71 |
*/
|
72 |
public static function fromXML($xml)
|
73 |
{
|
74 |
$dom = new DOMDocument();
|
75 |
$dom->loadXML($xml);
|
76 |
$xpath = new DOMXPath($dom);
|
77 |
-
|
78 |
$response = $xpath->query('//a:SetOrderReferenceDetailsResponse');
|
79 |
if ($response->length == 1) {
|
80 |
-
return new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse(($response->item(0)));
|
81 |
} else {
|
82 |
-
throw new Exception
|
83 |
Make sure that SetOrderReferenceDetailsResponse is a root element");
|
84 |
}
|
85 |
-
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
* Gets the value of the SetOrderReferenceDetailsResult.
|
90 |
-
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
-
public function getSetOrderReferenceDetailsResult()
|
94 |
{
|
95 |
return $this->_fields['SetOrderReferenceDetailsResult']['FieldValue'];
|
96 |
}
|
97 |
-
|
98 |
/**
|
99 |
* Sets the value of the SetOrderReferenceDetailsResult.
|
100 |
-
*
|
101 |
-
* @param
|
102 |
* @return void
|
103 |
*/
|
104 |
-
public function setSetOrderReferenceDetailsResult($value)
|
105 |
{
|
106 |
$this->_fields['SetOrderReferenceDetailsResult']['FieldValue'] = $value;
|
107 |
return;
|
108 |
}
|
109 |
-
|
110 |
/**
|
111 |
* Sets the value of the SetOrderReferenceDetailsResult and returns this instance
|
112 |
-
*
|
113 |
-
* @param
|
114 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse instance
|
115 |
*/
|
116 |
public function withSetOrderReferenceDetailsResult($value)
|
@@ -118,45 +124,45 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse extends Of
|
|
118 |
$this->setSetOrderReferenceDetailsResult($value);
|
119 |
return $this;
|
120 |
}
|
121 |
-
|
122 |
-
|
123 |
/**
|
124 |
* Checks if SetOrderReferenceDetailsResult is set
|
125 |
-
*
|
126 |
* @return bool true if SetOrderReferenceDetailsResult property is set
|
127 |
*/
|
128 |
public function isSetSetOrderReferenceDetailsResult()
|
129 |
{
|
130 |
return !is_null($this->_fields['SetOrderReferenceDetailsResult']['FieldValue']);
|
131 |
-
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Gets the value of the ResponseMetadata.
|
136 |
-
*
|
137 |
-
* @return
|
138 |
*/
|
139 |
-
public function getResponseMetadata()
|
140 |
{
|
141 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
142 |
}
|
143 |
-
|
144 |
/**
|
145 |
* Sets the value of the ResponseMetadata.
|
146 |
-
*
|
147 |
-
* @param
|
148 |
* @return void
|
149 |
*/
|
150 |
-
public function setResponseMetadata($value)
|
151 |
{
|
152 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
153 |
return;
|
154 |
}
|
155 |
-
|
156 |
/**
|
157 |
* Sets the value of the ResponseMetadata and returns this instance
|
158 |
-
*
|
159 |
-
* @param
|
160 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse instance
|
161 |
*/
|
162 |
public function withResponseMetadata($value)
|
@@ -164,27 +170,27 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse extends Of
|
|
164 |
$this->setResponseMetadata($value);
|
165 |
return $this;
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
/**
|
170 |
* Checks if ResponseMetadata is set
|
171 |
-
*
|
172 |
* @return bool true if ResponseMetadata property is set
|
173 |
*/
|
174 |
public function isSetResponseMetadata()
|
175 |
{
|
176 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
177 |
-
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* XML Representation for this object
|
184 |
-
*
|
185 |
* @return string XML for this object
|
186 |
*/
|
187 |
-
public function toXML()
|
188 |
{
|
189 |
$xml = "";
|
190 |
$xml .= "<SetOrderReferenceDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
@@ -192,15 +198,17 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse extends Of
|
|
192 |
$xml .= "</SetOrderReferenceDetailsResponse>";
|
193 |
return $xml;
|
194 |
}
|
195 |
-
|
196 |
private $_responseHeaderMetadata = null;
|
197 |
-
|
198 |
-
public function getResponseHeaderMetadata()
|
|
|
199 |
return $this->_responseHeaderMetadata;
|
200 |
}
|
201 |
-
|
202 |
-
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
|
|
203 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
204 |
}
|
205 |
-
|
206 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>SetOrderReferenceDetailsResult: OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult</li>
|
32 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
33 |
*
|
34 |
* </ul>
|
35 |
+
*/
|
36 |
class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse extends OffAmazonPaymentsService_Model
|
37 |
{
|
38 |
+
|
39 |
/**
|
40 |
* Construct new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse
|
41 |
+
*
|
42 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
43 |
+
*
|
44 |
* Valid properties:
|
45 |
* <ul>
|
46 |
+
*
|
47 |
* <li>SetOrderReferenceDetailsResult: OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult</li>
|
48 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
49 |
*
|
51 |
*/
|
52 |
public function __construct($data = null)
|
53 |
{
|
54 |
+
$this->_fields = array(
|
55 |
+
|
56 |
+
'SetOrderReferenceDetailsResult' => array(
|
57 |
+
'FieldValue' => null,
|
58 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult'
|
59 |
+
),
|
60 |
+
|
61 |
+
|
62 |
+
'ResponseMetadata' => array(
|
63 |
+
'FieldValue' => null,
|
64 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
65 |
+
)
|
66 |
+
|
67 |
);
|
68 |
parent::__construct($data);
|
69 |
}
|
70 |
+
|
71 |
+
|
72 |
/**
|
73 |
* Construct OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse from XML string
|
74 |
+
*
|
75 |
* @param string $xml XML string to construct from
|
76 |
+
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse
|
77 |
*/
|
78 |
public static function fromXML($xml)
|
79 |
{
|
80 |
$dom = new DOMDocument();
|
81 |
$dom->loadXML($xml);
|
82 |
$xpath = new DOMXPath($dom);
|
83 |
+
$xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
84 |
$response = $xpath->query('//a:SetOrderReferenceDetailsResponse');
|
85 |
if ($response->length == 1) {
|
86 |
+
return new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse(($response->item(0)));
|
87 |
} else {
|
88 |
+
throw new Exception("Unable to construct OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse from provided XML.
|
89 |
Make sure that SetOrderReferenceDetailsResponse is a root element");
|
90 |
}
|
91 |
+
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Gets the value of the SetOrderReferenceDetailsResult.
|
96 |
+
*
|
97 |
+
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult SetOrderReferenceDetailsResult
|
98 |
*/
|
99 |
+
public function getSetOrderReferenceDetailsResult()
|
100 |
{
|
101 |
return $this->_fields['SetOrderReferenceDetailsResult']['FieldValue'];
|
102 |
}
|
103 |
+
|
104 |
/**
|
105 |
* Sets the value of the SetOrderReferenceDetailsResult.
|
106 |
+
*
|
107 |
+
* @param OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult SetOrderReferenceDetailsResult
|
108 |
* @return void
|
109 |
*/
|
110 |
+
public function setSetOrderReferenceDetailsResult($value)
|
111 |
{
|
112 |
$this->_fields['SetOrderReferenceDetailsResult']['FieldValue'] = $value;
|
113 |
return;
|
114 |
}
|
115 |
+
|
116 |
/**
|
117 |
* Sets the value of the SetOrderReferenceDetailsResult and returns this instance
|
118 |
+
*
|
119 |
+
* @param OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult $value SetOrderReferenceDetailsResult
|
120 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse instance
|
121 |
*/
|
122 |
public function withSetOrderReferenceDetailsResult($value)
|
124 |
$this->setSetOrderReferenceDetailsResult($value);
|
125 |
return $this;
|
126 |
}
|
127 |
+
|
128 |
+
|
129 |
/**
|
130 |
* Checks if SetOrderReferenceDetailsResult is set
|
131 |
+
*
|
132 |
* @return bool true if SetOrderReferenceDetailsResult property is set
|
133 |
*/
|
134 |
public function isSetSetOrderReferenceDetailsResult()
|
135 |
{
|
136 |
return !is_null($this->_fields['SetOrderReferenceDetailsResult']['FieldValue']);
|
137 |
+
|
138 |
}
|
139 |
+
|
140 |
/**
|
141 |
* Gets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
*/
|
145 |
+
public function getResponseMetadata()
|
146 |
{
|
147 |
return $this->_fields['ResponseMetadata']['FieldValue'];
|
148 |
}
|
149 |
+
|
150 |
/**
|
151 |
* Sets the value of the ResponseMetadata.
|
152 |
+
*
|
153 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
154 |
* @return void
|
155 |
*/
|
156 |
+
public function setResponseMetadata($value)
|
157 |
{
|
158 |
$this->_fields['ResponseMetadata']['FieldValue'] = $value;
|
159 |
return;
|
160 |
}
|
161 |
+
|
162 |
/**
|
163 |
* Sets the value of the ResponseMetadata and returns this instance
|
164 |
+
*
|
165 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
166 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse instance
|
167 |
*/
|
168 |
public function withResponseMetadata($value)
|
170 |
$this->setResponseMetadata($value);
|
171 |
return $this;
|
172 |
}
|
173 |
+
|
174 |
+
|
175 |
/**
|
176 |
* Checks if ResponseMetadata is set
|
177 |
+
*
|
178 |
* @return bool true if ResponseMetadata property is set
|
179 |
*/
|
180 |
public function isSetResponseMetadata()
|
181 |
{
|
182 |
return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
|
183 |
+
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
/**
|
189 |
* XML Representation for this object
|
190 |
+
*
|
191 |
* @return string XML for this object
|
192 |
*/
|
193 |
+
public function toXML()
|
194 |
{
|
195 |
$xml = "";
|
196 |
$xml .= "<SetOrderReferenceDetailsResponse xmlns=\"http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01\">";
|
198 |
$xml .= "</SetOrderReferenceDetailsResponse>";
|
199 |
return $xml;
|
200 |
}
|
201 |
+
|
202 |
private $_responseHeaderMetadata = null;
|
203 |
+
|
204 |
+
public function getResponseHeaderMetadata()
|
205 |
+
{
|
206 |
return $this->_responseHeaderMetadata;
|
207 |
}
|
208 |
+
|
209 |
+
public function setResponseHeaderMetadata($responseHeaderMetadata)
|
210 |
+
{
|
211 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
212 |
}
|
213 |
+
|
214 |
+
}
|
lib/OffAmazonPaymentsService/Model/SetOrderReferenceDetailsResult.php
CHANGED
@@ -20,69 +20,72 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
-
*/
|
35 |
class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
-
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult
|
40 |
-
*
|
41 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
-
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
-
*
|
46 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
-
$this->_fields = array
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
56 |
);
|
57 |
parent::__construct($data);
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
* Gets the value of the OrderReferenceDetails.
|
62 |
-
*
|
63 |
-
* @return
|
64 |
*/
|
65 |
-
public function getOrderReferenceDetails()
|
66 |
{
|
67 |
return $this->_fields['OrderReferenceDetails']['FieldValue'];
|
68 |
}
|
69 |
-
|
70 |
/**
|
71 |
* Sets the value of the OrderReferenceDetails.
|
72 |
-
*
|
73 |
-
* @param
|
74 |
* @return void
|
75 |
*/
|
76 |
-
public function setOrderReferenceDetails($value)
|
77 |
{
|
78 |
$this->_fields['OrderReferenceDetails']['FieldValue'] = $value;
|
79 |
return;
|
80 |
}
|
81 |
-
|
82 |
/**
|
83 |
* Sets the value of the OrderReferenceDetails and returns this instance
|
84 |
-
*
|
85 |
-
* @param
|
86 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult instance
|
87 |
*/
|
88 |
public function withOrderReferenceDetails($value)
|
@@ -90,20 +93,17 @@ class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult extends OffA
|
|
90 |
$this->setOrderReferenceDetails($value);
|
91 |
return $this;
|
92 |
}
|
93 |
-
|
94 |
-
|
95 |
/**
|
96 |
* Checks if OrderReferenceDetails is set
|
97 |
-
*
|
98 |
* @return bool true if OrderReferenceDetails property is set
|
99 |
*/
|
100 |
public function isSetOrderReferenceDetails()
|
101 |
{
|
102 |
return !is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
|
103 |
-
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
32 |
*
|
33 |
* </ul>
|
34 |
+
*/
|
35 |
class OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult extends OffAmazonPaymentsService_Model
|
36 |
{
|
37 |
+
|
38 |
/**
|
39 |
* Construct new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult
|
40 |
+
*
|
41 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
42 |
+
*
|
43 |
* Valid properties:
|
44 |
* <ul>
|
45 |
+
*
|
46 |
* <li>OrderReferenceDetails: OffAmazonPaymentsService_Model_OrderReferenceDetails</li>
|
47 |
*
|
48 |
* </ul>
|
49 |
*/
|
50 |
public function __construct($data = null)
|
51 |
{
|
52 |
+
$this->_fields = array(
|
53 |
+
|
54 |
+
'OrderReferenceDetails' => array(
|
55 |
+
'FieldValue' => null,
|
56 |
+
'FieldType' => 'OffAmazonPaymentsService_Model_OrderReferenceDetails'
|
57 |
+
)
|
58 |
+
|
59 |
);
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
+
|
63 |
+
/**
|
64 |
* Gets the value of the OrderReferenceDetails.
|
65 |
+
*
|
66 |
+
* @return OffAmazonPaymentsService_Model_OrderReferenceDetails OrderReferenceDetails
|
67 |
*/
|
68 |
+
public function getOrderReferenceDetails()
|
69 |
{
|
70 |
return $this->_fields['OrderReferenceDetails']['FieldValue'];
|
71 |
}
|
72 |
+
|
73 |
/**
|
74 |
* Sets the value of the OrderReferenceDetails.
|
75 |
+
*
|
76 |
+
* @param OffAmazonPaymentsService_Model_OrderReferenceDetails OrderReferenceDetails
|
77 |
* @return void
|
78 |
*/
|
79 |
+
public function setOrderReferenceDetails($value)
|
80 |
{
|
81 |
$this->_fields['OrderReferenceDetails']['FieldValue'] = $value;
|
82 |
return;
|
83 |
}
|
84 |
+
|
85 |
/**
|
86 |
* Sets the value of the OrderReferenceDetails and returns this instance
|
87 |
+
*
|
88 |
+
* @param OffAmazonPaymentsService_Model_OrderReferenceDetails $value OrderReferenceDetails
|
89 |
* @return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResult instance
|
90 |
*/
|
91 |
public function withOrderReferenceDetails($value)
|
93 |
$this->setOrderReferenceDetails($value);
|
94 |
return $this;
|
95 |
}
|
96 |
+
|
97 |
+
|
98 |
/**
|
99 |
* Checks if OrderReferenceDetails is set
|
100 |
+
*
|
101 |
* @return bool true if OrderReferenceDetails property is set
|
102 |
*/
|
103 |
public function isSetOrderReferenceDetails()
|
104 |
{
|
105 |
return !is_null($this->_fields['OrderReferenceDetails']['FieldValue']);
|
106 |
+
|
107 |
}
|
108 |
+
|
109 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/Status.php
CHANGED
@@ -20,32 +20,32 @@
|
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Status
|
27 |
-
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
-
*
|
31 |
* <li>State: string</li>
|
32 |
* <li>LastUpdateTimestamp: string</li>
|
33 |
* <li>ReasonCode: string</li>
|
34 |
* <li>ReasonDescription: string</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
-
*/
|
38 |
class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
-
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_Status
|
43 |
-
*
|
44 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
-
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
-
*
|
49 |
* <li>State: string</li>
|
50 |
* <li>LastUpdateTimestamp: string</li>
|
51 |
* <li>ReasonCode: string</li>
|
@@ -55,40 +55,52 @@ class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Mod
|
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
-
$this->_fields = array
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
);
|
64 |
parent::__construct($data);
|
65 |
}
|
66 |
-
|
67 |
-
|
68 |
* Gets the value of the State property.
|
69 |
-
*
|
70 |
* @return string State
|
71 |
*/
|
72 |
-
public function getState()
|
73 |
{
|
74 |
return $this->_fields['State']['FieldValue'];
|
75 |
}
|
76 |
-
|
77 |
/**
|
78 |
* Sets the value of the State property.
|
79 |
-
*
|
80 |
* @param string State
|
81 |
* @return this instance
|
82 |
*/
|
83 |
-
public function setState($value)
|
84 |
{
|
85 |
$this->_fields['State']['FieldValue'] = $value;
|
86 |
return $this;
|
87 |
}
|
88 |
-
|
89 |
/**
|
90 |
* Sets the value of the State and returns this instance
|
91 |
-
*
|
92 |
* @param string $value State
|
93 |
* @return OffAmazonPaymentsService_Model_Status instance
|
94 |
*/
|
@@ -97,43 +109,43 @@ class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Mod
|
|
97 |
$this->setState($value);
|
98 |
return $this;
|
99 |
}
|
100 |
-
|
101 |
-
|
102 |
/**
|
103 |
* Checks if State is set
|
104 |
-
*
|
105 |
* @return bool true if State is set
|
106 |
*/
|
107 |
public function isSetState()
|
108 |
{
|
109 |
return !is_null($this->_fields['State']['FieldValue']);
|
110 |
}
|
111 |
-
|
112 |
/**
|
113 |
* Gets the value of the LastUpdateTimestamp property.
|
114 |
-
*
|
115 |
* @return string LastUpdateTimestamp
|
116 |
*/
|
117 |
-
public function getLastUpdateTimestamp()
|
118 |
{
|
119 |
return $this->_fields['LastUpdateTimestamp']['FieldValue'];
|
120 |
}
|
121 |
-
|
122 |
/**
|
123 |
* Sets the value of the LastUpdateTimestamp property.
|
124 |
-
*
|
125 |
* @param string LastUpdateTimestamp
|
126 |
* @return this instance
|
127 |
*/
|
128 |
-
public function setLastUpdateTimestamp($value)
|
129 |
{
|
130 |
$this->_fields['LastUpdateTimestamp']['FieldValue'] = $value;
|
131 |
return $this;
|
132 |
}
|
133 |
-
|
134 |
/**
|
135 |
* Sets the value of the LastUpdateTimestamp and returns this instance
|
136 |
-
*
|
137 |
* @param string $value LastUpdateTimestamp
|
138 |
* @return OffAmazonPaymentsService_Model_Status instance
|
139 |
*/
|
@@ -142,43 +154,43 @@ class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Mod
|
|
142 |
$this->setLastUpdateTimestamp($value);
|
143 |
return $this;
|
144 |
}
|
145 |
-
|
146 |
-
|
147 |
/**
|
148 |
* Checks if LastUpdateTimestamp is set
|
149 |
-
*
|
150 |
* @return bool true if LastUpdateTimestamp is set
|
151 |
*/
|
152 |
public function isSetLastUpdateTimestamp()
|
153 |
{
|
154 |
return !is_null($this->_fields['LastUpdateTimestamp']['FieldValue']);
|
155 |
}
|
156 |
-
|
157 |
/**
|
158 |
* Gets the value of the ReasonCode property.
|
159 |
-
*
|
160 |
* @return string ReasonCode
|
161 |
*/
|
162 |
-
public function getReasonCode()
|
163 |
{
|
164 |
return $this->_fields['ReasonCode']['FieldValue'];
|
165 |
}
|
166 |
-
|
167 |
/**
|
168 |
* Sets the value of the ReasonCode property.
|
169 |
-
*
|
170 |
* @param string ReasonCode
|
171 |
* @return this instance
|
172 |
*/
|
173 |
-
public function setReasonCode($value)
|
174 |
{
|
175 |
$this->_fields['ReasonCode']['FieldValue'] = $value;
|
176 |
return $this;
|
177 |
}
|
178 |
-
|
179 |
/**
|
180 |
* Sets the value of the ReasonCode and returns this instance
|
181 |
-
*
|
182 |
* @param string $value ReasonCode
|
183 |
* @return OffAmazonPaymentsService_Model_Status instance
|
184 |
*/
|
@@ -187,43 +199,43 @@ class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Mod
|
|
187 |
$this->setReasonCode($value);
|
188 |
return $this;
|
189 |
}
|
190 |
-
|
191 |
-
|
192 |
/**
|
193 |
* Checks if ReasonCode is set
|
194 |
-
*
|
195 |
* @return bool true if ReasonCode is set
|
196 |
*/
|
197 |
public function isSetReasonCode()
|
198 |
{
|
199 |
return !is_null($this->_fields['ReasonCode']['FieldValue']);
|
200 |
}
|
201 |
-
|
202 |
/**
|
203 |
* Gets the value of the ReasonDescription property.
|
204 |
-
*
|
205 |
* @return string ReasonDescription
|
206 |
*/
|
207 |
-
public function getReasonDescription()
|
208 |
{
|
209 |
return $this->_fields['ReasonDescription']['FieldValue'];
|
210 |
}
|
211 |
-
|
212 |
/**
|
213 |
* Sets the value of the ReasonDescription property.
|
214 |
-
*
|
215 |
* @param string ReasonDescription
|
216 |
* @return this instance
|
217 |
*/
|
218 |
-
public function setReasonDescription($value)
|
219 |
{
|
220 |
$this->_fields['ReasonDescription']['FieldValue'] = $value;
|
221 |
return $this;
|
222 |
}
|
223 |
-
|
224 |
/**
|
225 |
* Sets the value of the ReasonDescription and returns this instance
|
226 |
-
*
|
227 |
* @param string $value ReasonDescription
|
228 |
* @return OffAmazonPaymentsService_Model_Status instance
|
229 |
*/
|
@@ -232,19 +244,16 @@ class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Mod
|
|
232 |
$this->setReasonDescription($value);
|
233 |
return $this;
|
234 |
}
|
235 |
-
|
236 |
-
|
237 |
/**
|
238 |
* Checks if ReasonDescription is set
|
239 |
-
*
|
240 |
* @return bool true if ReasonDescription is set
|
241 |
*/
|
242 |
public function isSetReasonDescription()
|
243 |
{
|
244 |
return !is_null($this->_fields['ReasonDescription']['FieldValue']);
|
245 |
}
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
}
|
20 |
* @see OffAmazonPaymentsService_Model
|
21 |
*/
|
22 |
|
23 |
+
|
24 |
|
25 |
/**
|
26 |
* OffAmazonPaymentsService_Model_Status
|
27 |
+
*
|
28 |
* Properties:
|
29 |
* <ul>
|
30 |
+
*
|
31 |
* <li>State: string</li>
|
32 |
* <li>LastUpdateTimestamp: string</li>
|
33 |
* <li>ReasonCode: string</li>
|
34 |
* <li>ReasonDescription: string</li>
|
35 |
*
|
36 |
* </ul>
|
37 |
+
*/
|
38 |
class OffAmazonPaymentsService_Model_Status extends OffAmazonPaymentsService_Model
|
39 |
{
|
40 |
+
|
41 |
/**
|
42 |
* Construct new OffAmazonPaymentsService_Model_Status
|
43 |
+
*
|
44 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
45 |
+
*
|
46 |
* Valid properties:
|
47 |
* <ul>
|
48 |
+
*
|
49 |
* <li>State: string</li>
|
50 |
* <li>LastUpdateTimestamp: string</li>
|
51 |
* <li>ReasonCode: string</li>
|
55 |
*/
|
56 |
public function __construct($data = null)
|
57 |
{
|
58 |
+
$this->_fields = array(
|
59 |
+
'State' => array(
|
60 |
+
'FieldValue' => null,
|
61 |
+
'FieldType' => 'string'
|
62 |
+
),
|
63 |
+
'LastUpdateTimestamp' => array(
|
64 |
+
'FieldValue' => null,
|
65 |
+
'FieldType' => 'string'
|
66 |
+
),
|
67 |
+
'ReasonCode' => array(
|
68 |
+
'FieldValue' => null,
|
69 |
+
'FieldType' => 'string'
|
70 |
+
),
|
71 |
+
'ReasonDescription' => array(
|
72 |
+
'FieldValue' => null,
|
73 |
+
'FieldType' => 'string'
|
74 |
+
)
|
75 |
);
|
76 |
parent::__construct($data);
|
77 |
}
|
78 |
+
|
79 |
+
/**
|
80 |
* Gets the value of the State property.
|
81 |
+
*
|
82 |
* @return string State
|
83 |
*/
|
84 |
+
public function getState()
|
85 |
{
|
86 |
return $this->_fields['State']['FieldValue'];
|
87 |
}
|
88 |
+
|
89 |
/**
|
90 |
* Sets the value of the State property.
|
91 |
+
*
|
92 |
* @param string State
|
93 |
* @return this instance
|
94 |
*/
|
95 |
+
public function setState($value)
|
96 |
{
|
97 |
$this->_fields['State']['FieldValue'] = $value;
|
98 |
return $this;
|
99 |
}
|
100 |
+
|
101 |
/**
|
102 |
* Sets the value of the State and returns this instance
|
103 |
+
*
|
104 |
* @param string $value State
|
105 |
* @return OffAmazonPaymentsService_Model_Status instance
|
106 |
*/
|
109 |
$this->setState($value);
|
110 |
return $this;
|
111 |
}
|
112 |
+
|
113 |
+
|
114 |
/**
|
115 |
* Checks if State is set
|
116 |
+
*
|
117 |
* @return bool true if State is set
|
118 |
*/
|
119 |
public function isSetState()
|
120 |
{
|
121 |
return !is_null($this->_fields['State']['FieldValue']);
|
122 |
}
|
123 |
+
|
124 |
/**
|
125 |
* Gets the value of the LastUpdateTimestamp property.
|
126 |
+
*
|
127 |
* @return string LastUpdateTimestamp
|
128 |
*/
|
129 |
+
public function getLastUpdateTimestamp()
|
130 |
{
|
131 |
return $this->_fields['LastUpdateTimestamp']['FieldValue'];
|
132 |
}
|
133 |
+
|
134 |
/**
|
135 |
* Sets the value of the LastUpdateTimestamp property.
|
136 |
+
*
|
137 |
* @param string LastUpdateTimestamp
|
138 |
* @return this instance
|
139 |
*/
|
140 |
+
public function setLastUpdateTimestamp($value)
|
141 |
{
|
142 |
$this->_fields['LastUpdateTimestamp']['FieldValue'] = $value;
|
143 |
return $this;
|
144 |
}
|
145 |
+
|
146 |
/**
|
147 |
* Sets the value of the LastUpdateTimestamp and returns this instance
|
148 |
+
*
|
149 |
* @param string $value LastUpdateTimestamp
|
150 |
* @return OffAmazonPaymentsService_Model_Status instance
|
151 |
*/
|
154 |
$this->setLastUpdateTimestamp($value);
|
155 |
return $this;
|
156 |
}
|
157 |
+
|
158 |
+
|
159 |
/**
|
160 |
* Checks if LastUpdateTimestamp is set
|
161 |
+
*
|
162 |
* @return bool true if LastUpdateTimestamp is set
|
163 |
*/
|
164 |
public function isSetLastUpdateTimestamp()
|
165 |
{
|
166 |
return !is_null($this->_fields['LastUpdateTimestamp']['FieldValue']);
|
167 |
}
|
168 |
+
|
169 |
/**
|
170 |
* Gets the value of the ReasonCode property.
|
171 |
+
*
|
172 |
* @return string ReasonCode
|
173 |
*/
|
174 |
+
public function getReasonCode()
|
175 |
{
|
176 |
return $this->_fields['ReasonCode']['FieldValue'];
|
177 |
}
|
178 |
+
|
179 |
/**
|
180 |
* Sets the value of the ReasonCode property.
|
181 |
+
*
|
182 |
* @param string ReasonCode
|
183 |
* @return this instance
|
184 |
*/
|
185 |
+
public function setReasonCode($value)
|
186 |
{
|
187 |
$this->_fields['ReasonCode']['FieldValue'] = $value;
|
188 |
return $this;
|
189 |
}
|
190 |
+
|
191 |
/**
|
192 |
* Sets the value of the ReasonCode and returns this instance
|
193 |
+
*
|
194 |
* @param string $value ReasonCode
|
195 |
* @return OffAmazonPaymentsService_Model_Status instance
|
196 |
*/
|
199 |
$this->setReasonCode($value);
|
200 |
return $this;
|
201 |
}
|
202 |
+
|
203 |
+
|
204 |
/**
|
205 |
* Checks if ReasonCode is set
|
206 |
+
*
|
207 |
* @return bool true if ReasonCode is set
|
208 |
*/
|
209 |
public function isSetReasonCode()
|
210 |
{
|
211 |
return !is_null($this->_fields['ReasonCode']['FieldValue']);
|
212 |
}
|
213 |
+
|
214 |
/**
|
215 |
* Gets the value of the ReasonDescription property.
|
216 |
+
*
|
217 |
* @return string ReasonDescription
|
218 |
*/
|
219 |
+
public function getReasonDescription()
|
220 |
{
|
221 |
return $this->_fields['ReasonDescription']['FieldValue'];
|
222 |
}
|
223 |
+
|
224 |
/**
|
225 |
* Sets the value of the ReasonDescription property.
|
226 |
+
*
|
227 |
* @param string ReasonDescription
|
228 |
* @return this instance
|
229 |
*/
|
230 |
+
public function setReasonDescription($value)
|
231 |
{
|
232 |
$this->_fields['ReasonDescription']['FieldValue'] = $value;
|
233 |
return $this;
|
234 |
}
|
235 |
+
|
236 |
/**
|
237 |
* Sets the value of the ReasonDescription and returns this instance
|
238 |
+
*
|
239 |
* @param string $value ReasonDescription
|
240 |
* @return OffAmazonPaymentsService_Model_Status instance
|
241 |
*/
|
244 |
$this->setReasonDescription($value);
|
245 |
return $this;
|
246 |
}
|
247 |
+
|
248 |
+
|
249 |
/**
|
250 |
* Checks if ReasonDescription is set
|
251 |
+
*
|
252 |
* @return bool true if ReasonDescription is set
|
253 |
*/
|
254 |
public function isSetReasonDescription()
|
255 |
{
|
256 |
return !is_null($this->_fields['ReasonDescription']['FieldValue']);
|
257 |
}
|
258 |
+
|
259 |
+
}
|
|
|
|
|
|
lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementRequest.php
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*******************************************************************************
|
4 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
*
|
@@ -17,10 +15,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>AmazonBillingAgreementId: string</li>
|
25 |
* <li>SellerId: string</li>
|
26 |
*
|
@@ -31,12 +29,12 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest
|
34 |
-
*
|
35 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
-
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
-
*
|
40 |
* <li>AmazonBillingAgreementId: string</li>
|
41 |
* <li>SellerId: string</li>
|
42 |
*
|
@@ -52,6 +50,11 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
52 |
'SellerId' => array(
|
53 |
'FieldValue' => null,
|
54 |
'FieldType' => 'string'
|
|
|
|
|
|
|
|
|
|
|
55 |
)
|
56 |
);
|
57 |
parent::__construct($data);
|
@@ -59,7 +62,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
59 |
|
60 |
/**
|
61 |
* Gets the value of the AmazonBillingAgreementId property.
|
62 |
-
*
|
63 |
* @return string AmazonBillingAgreementId
|
64 |
*/
|
65 |
public function getAmazonBillingAgreementId ()
|
@@ -69,7 +72,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
69 |
|
70 |
/**
|
71 |
* Sets the value of the AmazonBillingAgreementId property.
|
72 |
-
*
|
73 |
* @param string AmazonBillingAgreementId
|
74 |
* @return this instance
|
75 |
*/
|
@@ -81,7 +84,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
81 |
|
82 |
/**
|
83 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
84 |
-
*
|
85 |
* @param string $value AmazonBillingAgreementId
|
86 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest instance
|
87 |
*/
|
@@ -93,7 +96,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
93 |
|
94 |
/**
|
95 |
* Checks if AmazonBillingAgreementId is set
|
96 |
-
*
|
97 |
* @return bool true if AmazonBillingAgreementId is set
|
98 |
*/
|
99 |
public function isSetAmazonBillingAgreementId ()
|
@@ -103,7 +106,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
103 |
|
104 |
/**
|
105 |
* Gets the value of the SellerId property.
|
106 |
-
*
|
107 |
* @return string SellerId
|
108 |
*/
|
109 |
public function getSellerId ()
|
@@ -113,7 +116,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
113 |
|
114 |
/**
|
115 |
* Sets the value of the SellerId property.
|
116 |
-
*
|
117 |
* @param string SellerId
|
118 |
* @return this instance
|
119 |
*/
|
@@ -125,7 +128,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
125 |
|
126 |
/**
|
127 |
* Sets the value of the SellerId and returns this instance
|
128 |
-
*
|
129 |
* @param string $value SellerId
|
130 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest instance
|
131 |
*/
|
@@ -137,11 +140,44 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest extends Off
|
|
137 |
|
138 |
/**
|
139 |
* Checks if SellerId is set
|
140 |
-
*
|
141 |
* @return bool true if SellerId is set
|
142 |
*/
|
143 |
public function isSetSellerId ()
|
144 |
{
|
145 |
return ! is_null($this->_fields['SellerId']['FieldValue']);
|
146 |
}
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php /*******************************************************************************
|
|
|
|
|
2 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
*
|
15 |
|
16 |
/**
|
17 |
* OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest
|
18 |
+
*
|
19 |
* Properties:
|
20 |
* <ul>
|
21 |
+
*
|
22 |
* <li>AmazonBillingAgreementId: string</li>
|
23 |
* <li>SellerId: string</li>
|
24 |
*
|
29 |
|
30 |
/**
|
31 |
* Construct new OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest
|
32 |
+
*
|
33 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
34 |
+
*
|
35 |
* Valid properties:
|
36 |
* <ul>
|
37 |
+
*
|
38 |
* <li>AmazonBillingAgreementId: string</li>
|
39 |
* <li>SellerId: string</li>
|
40 |
*
|
50 |
'SellerId' => array(
|
51 |
'FieldValue' => null,
|
52 |
'FieldType' => 'string'
|
53 |
+
),
|
54 |
+
|
55 |
+
'MWSAuthToken' => array(
|
56 |
+
'FieldValue' => null,
|
57 |
+
'FieldType' => 'string'
|
58 |
)
|
59 |
);
|
60 |
parent::__construct($data);
|
62 |
|
63 |
/**
|
64 |
* Gets the value of the AmazonBillingAgreementId property.
|
65 |
+
*
|
66 |
* @return string AmazonBillingAgreementId
|
67 |
*/
|
68 |
public function getAmazonBillingAgreementId ()
|
72 |
|
73 |
/**
|
74 |
* Sets the value of the AmazonBillingAgreementId property.
|
75 |
+
*
|
76 |
* @param string AmazonBillingAgreementId
|
77 |
* @return this instance
|
78 |
*/
|
84 |
|
85 |
/**
|
86 |
* Sets the value of the AmazonBillingAgreementId and returns this instance
|
87 |
+
*
|
88 |
* @param string $value AmazonBillingAgreementId
|
89 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest instance
|
90 |
*/
|
96 |
|
97 |
/**
|
98 |
* Checks if AmazonBillingAgreementId is set
|
99 |
+
*
|
100 |
* @return bool true if AmazonBillingAgreementId is set
|
101 |
*/
|
102 |
public function isSetAmazonBillingAgreementId ()
|
106 |
|
107 |
/**
|
108 |
* Gets the value of the SellerId property.
|
109 |
+
*
|
110 |
* @return string SellerId
|
111 |
*/
|
112 |
public function getSellerId ()
|
116 |
|
117 |
/**
|
118 |
* Sets the value of the SellerId property.
|
119 |
+
*
|
120 |
* @param string SellerId
|
121 |
* @return this instance
|
122 |
*/
|
128 |
|
129 |
/**
|
130 |
* Sets the value of the SellerId and returns this instance
|
131 |
+
*
|
132 |
* @param string $value SellerId
|
133 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementRequest instance
|
134 |
*/
|
140 |
|
141 |
/**
|
142 |
* Checks if SellerId is set
|
143 |
+
*
|
144 |
* @return bool true if SellerId is set
|
145 |
*/
|
146 |
public function isSetSellerId ()
|
147 |
{
|
148 |
return ! is_null($this->_fields['SellerId']['FieldValue']);
|
149 |
}
|
150 |
+
|
151 |
+
/**
|
152 |
+
* Gets the value of the MWSAuthToken property.
|
153 |
+
*
|
154 |
+
* @return string MWSAuthToken
|
155 |
+
*/
|
156 |
+
public function getMWSAuthToken()
|
157 |
+
{
|
158 |
+
return $this->_fields['MWSAuthToken']['FieldValue'];
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Sets the value of the MWSAuthToken and returns this instance
|
163 |
+
*
|
164 |
+
* @param string $value MWSAuthToken
|
165 |
+
* @return OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest instance
|
166 |
+
*/
|
167 |
+
public function setMWSAuthToken($value)
|
168 |
+
{
|
169 |
+
$this->_fields['MWSAuthToken']['FieldValue'] = $value;
|
170 |
+
return $this;
|
171 |
+
}
|
172 |
+
|
173 |
+
/**
|
174 |
+
* Checks if MWSAuthToken is set
|
175 |
+
*
|
176 |
+
* @return bool true if MWSAuthToken is set
|
177 |
+
*/
|
178 |
+
public function isSetMWSAuthToken()
|
179 |
+
{
|
180 |
+
return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
|
181 |
+
}
|
182 |
+
|
183 |
+
}
|
lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResponse.php
CHANGED
@@ -17,10 +17,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>ValidateBillingAgreementResult: OffAmazonPaymentsService_Model_ValidateBillingAgreementResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
@@ -31,12 +31,12 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse
|
34 |
-
*
|
35 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
-
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
-
*
|
40 |
* <li>ValidateBillingAgreementResult: OffAmazonPaymentsService_Model_ValidateBillingAgreementResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
@@ -45,33 +45,32 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
-
|
49 |
'ValidateBillingAgreementResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_ValidateBillingAgreementResult'
|
52 |
),
|
53 |
-
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
-
)
|
59 |
-
;
|
60 |
parent::__construct($data);
|
61 |
}
|
62 |
|
63 |
/**
|
64 |
* Construct OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse from XML string
|
65 |
-
*
|
66 |
* @param string $xml XML string to construct from
|
67 |
-
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse
|
68 |
*/
|
69 |
public static function fromXML ($xml)
|
70 |
{
|
71 |
$dom = new DOMDocument();
|
72 |
$dom->loadXML($xml);
|
73 |
$xpath = new DOMXPath($dom);
|
74 |
-
$xpath->registerNamespace('a',
|
75 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
76 |
$response = $xpath->query('//a:ValidateBillingAgreementResponse');
|
77 |
if ($response->length == 1) {
|
@@ -79,15 +78,15 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
79 |
($response->item(0)));
|
80 |
} else {
|
81 |
throw new Exception(
|
82 |
-
"Unable to construct OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse from provided XML.
|
83 |
Make sure that ValidateBillingAgreementResponse is a root element");
|
84 |
}
|
85 |
}
|
86 |
|
87 |
/**
|
88 |
* Gets the value of the ValidateBillingAgreementResult.
|
89 |
-
*
|
90 |
-
* @return
|
91 |
*/
|
92 |
public function getValidateBillingAgreementResult ()
|
93 |
{
|
@@ -96,8 +95,8 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
96 |
|
97 |
/**
|
98 |
* Sets the value of the ValidateBillingAgreementResult.
|
99 |
-
*
|
100 |
-
* @param
|
101 |
* @return void
|
102 |
*/
|
103 |
public function setValidateBillingAgreementResult ($value)
|
@@ -108,8 +107,8 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
108 |
|
109 |
/**
|
110 |
* Sets the value of the ValidateBillingAgreementResult and returns this instance
|
111 |
-
*
|
112 |
-
* @param
|
113 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse instance
|
114 |
*/
|
115 |
public function withValidateBillingAgreementResult ($value)
|
@@ -120,7 +119,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
120 |
|
121 |
/**
|
122 |
* Checks if ValidateBillingAgreementResult is set
|
123 |
-
*
|
124 |
* @return bool true if ValidateBillingAgreementResult property is set
|
125 |
*/
|
126 |
public function isSetValidateBillingAgreementResult ()
|
@@ -130,8 +129,8 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
130 |
|
131 |
/**
|
132 |
* Gets the value of the ResponseMetadata.
|
133 |
-
*
|
134 |
-
* @return
|
135 |
*/
|
136 |
public function getResponseMetadata ()
|
137 |
{
|
@@ -140,8 +139,8 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
140 |
|
141 |
/**
|
142 |
* Sets the value of the ResponseMetadata.
|
143 |
-
*
|
144 |
-
* @param
|
145 |
* @return void
|
146 |
*/
|
147 |
public function setResponseMetadata ($value)
|
@@ -152,8 +151,8 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
152 |
|
153 |
/**
|
154 |
* Sets the value of the ResponseMetadata and returns this instance
|
155 |
-
*
|
156 |
-
* @param
|
157 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse instance
|
158 |
*/
|
159 |
public function withResponseMetadata ($value)
|
@@ -164,7 +163,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
164 |
|
165 |
/**
|
166 |
* Checks if ResponseMetadata is set
|
167 |
-
*
|
168 |
* @return bool true if ResponseMetadata property is set
|
169 |
*/
|
170 |
public function isSetResponseMetadata ()
|
@@ -174,7 +173,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
174 |
|
175 |
/**
|
176 |
* XML Representation for this object
|
177 |
-
*
|
178 |
* @return string XML for this object
|
179 |
*/
|
180 |
public function toXML ()
|
@@ -197,4 +196,5 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse extends Of
|
|
197 |
{
|
198 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
199 |
}
|
200 |
-
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse
|
20 |
+
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
+
*
|
24 |
* <li>ValidateBillingAgreementResult: OffAmazonPaymentsService_Model_ValidateBillingAgreementResult</li>
|
25 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
26 |
*
|
31 |
|
32 |
/**
|
33 |
* Construct new OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse
|
34 |
+
*
|
35 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
36 |
+
*
|
37 |
* Valid properties:
|
38 |
* <ul>
|
39 |
+
*
|
40 |
* <li>ValidateBillingAgreementResult: OffAmazonPaymentsService_Model_ValidateBillingAgreementResult</li>
|
41 |
* <li>ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata</li>
|
42 |
*
|
45 |
public function __construct ($data = null)
|
46 |
{
|
47 |
$this->_fields = array(
|
48 |
+
|
49 |
'ValidateBillingAgreementResult' => array(
|
50 |
'FieldValue' => null,
|
51 |
'FieldType' => 'OffAmazonPaymentsService_Model_ValidateBillingAgreementResult'
|
52 |
),
|
53 |
+
|
54 |
'ResponseMetadata' => array(
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata'
|
57 |
)
|
58 |
+
);
|
|
|
59 |
parent::__construct($data);
|
60 |
}
|
61 |
|
62 |
/**
|
63 |
* Construct OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse from XML string
|
64 |
+
*
|
65 |
* @param string $xml XML string to construct from
|
66 |
+
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse
|
67 |
*/
|
68 |
public static function fromXML ($xml)
|
69 |
{
|
70 |
$dom = new DOMDocument();
|
71 |
$dom->loadXML($xml);
|
72 |
$xpath = new DOMXPath($dom);
|
73 |
+
$xpath->registerNamespace('a',
|
74 |
'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01');
|
75 |
$response = $xpath->query('//a:ValidateBillingAgreementResponse');
|
76 |
if ($response->length == 1) {
|
78 |
($response->item(0)));
|
79 |
} else {
|
80 |
throw new Exception(
|
81 |
+
"Unable to construct OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse from provided XML.
|
82 |
Make sure that ValidateBillingAgreementResponse is a root element");
|
83 |
}
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
* Gets the value of the ValidateBillingAgreementResult.
|
88 |
+
*
|
89 |
+
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResult ValidateBillingAgreementResult
|
90 |
*/
|
91 |
public function getValidateBillingAgreementResult ()
|
92 |
{
|
95 |
|
96 |
/**
|
97 |
* Sets the value of the ValidateBillingAgreementResult.
|
98 |
+
*
|
99 |
+
* @param OffAmazonPaymentsService_Model_ValidateBillingAgreementResult ValidateBillingAgreementResult
|
100 |
* @return void
|
101 |
*/
|
102 |
public function setValidateBillingAgreementResult ($value)
|
107 |
|
108 |
/**
|
109 |
* Sets the value of the ValidateBillingAgreementResult and returns this instance
|
110 |
+
*
|
111 |
+
* @param OffAmazonPaymentsService_Model_ValidateBillingAgreementResult $value ValidateBillingAgreementResult
|
112 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse instance
|
113 |
*/
|
114 |
public function withValidateBillingAgreementResult ($value)
|
119 |
|
120 |
/**
|
121 |
* Checks if ValidateBillingAgreementResult is set
|
122 |
+
*
|
123 |
* @return bool true if ValidateBillingAgreementResult property is set
|
124 |
*/
|
125 |
public function isSetValidateBillingAgreementResult ()
|
129 |
|
130 |
/**
|
131 |
* Gets the value of the ResponseMetadata.
|
132 |
+
*
|
133 |
+
* @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
134 |
*/
|
135 |
public function getResponseMetadata ()
|
136 |
{
|
139 |
|
140 |
/**
|
141 |
* Sets the value of the ResponseMetadata.
|
142 |
+
*
|
143 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata
|
144 |
* @return void
|
145 |
*/
|
146 |
public function setResponseMetadata ($value)
|
151 |
|
152 |
/**
|
153 |
* Sets the value of the ResponseMetadata and returns this instance
|
154 |
+
*
|
155 |
+
* @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata
|
156 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResponse instance
|
157 |
*/
|
158 |
public function withResponseMetadata ($value)
|
163 |
|
164 |
/**
|
165 |
* Checks if ResponseMetadata is set
|
166 |
+
*
|
167 |
* @return bool true if ResponseMetadata property is set
|
168 |
*/
|
169 |
public function isSetResponseMetadata ()
|
173 |
|
174 |
/**
|
175 |
* XML Representation for this object
|
176 |
+
*
|
177 |
* @return string XML for this object
|
178 |
*/
|
179 |
public function toXML ()
|
196 |
{
|
197 |
return $this->_responseHeaderMetadata = $responseHeaderMetadata;
|
198 |
}
|
199 |
+
|
200 |
+
}
|
lib/OffAmazonPaymentsService/Model/ValidateBillingAgreementResult.php
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*******************************************************************************
|
4 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
*
|
@@ -17,10 +15,10 @@
|
|
17 |
|
18 |
/**
|
19 |
* OffAmazonPaymentsService_Model_ValidateBillingAgreementResult
|
20 |
-
*
|
21 |
* Properties:
|
22 |
* <ul>
|
23 |
-
*
|
24 |
* <li>ValidationResult: string</li>
|
25 |
* <li>FailureReasonCode: string</li>
|
26 |
* <li>BillingAgreementStatus: OffAmazonPaymentsService_Model_BillingAgreementStatus</li>
|
@@ -32,12 +30,12 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
32 |
|
33 |
/**
|
34 |
* Construct new OffAmazonPaymentsService_Model_ValidateBillingAgreementResult
|
35 |
-
*
|
36 |
-
* @param mixed $data DOMElement or Associative Array to construct from.
|
37 |
-
*
|
38 |
* Valid properties:
|
39 |
* <ul>
|
40 |
-
*
|
41 |
* <li>ValidationResult: string</li>
|
42 |
* <li>FailureReasonCode: string</li>
|
43 |
* <li>BillingAgreementStatus: OffAmazonPaymentsService_Model_BillingAgreementStatus</li>
|
@@ -55,19 +53,18 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
55 |
'FieldValue' => null,
|
56 |
'FieldType' => 'string'
|
57 |
),
|
58 |
-
|
59 |
'BillingAgreementStatus' => array(
|
60 |
'FieldValue' => null,
|
61 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementStatus'
|
62 |
)
|
63 |
-
)
|
64 |
-
;
|
65 |
parent::__construct($data);
|
66 |
}
|
67 |
|
68 |
/**
|
69 |
* Gets the value of the ValidationResult property.
|
70 |
-
*
|
71 |
* @return string ValidationResult
|
72 |
*/
|
73 |
public function getValidationResult ()
|
@@ -77,7 +74,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
77 |
|
78 |
/**
|
79 |
* Sets the value of the ValidationResult property.
|
80 |
-
*
|
81 |
* @param string ValidationResult
|
82 |
* @return this instance
|
83 |
*/
|
@@ -89,7 +86,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
89 |
|
90 |
/**
|
91 |
* Sets the value of the ValidationResult and returns this instance
|
92 |
-
*
|
93 |
* @param string $value ValidationResult
|
94 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResult instance
|
95 |
*/
|
@@ -101,7 +98,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
101 |
|
102 |
/**
|
103 |
* Checks if ValidationResult is set
|
104 |
-
*
|
105 |
* @return bool true if ValidationResult is set
|
106 |
*/
|
107 |
public function isSetValidationResult ()
|
@@ -111,7 +108,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
111 |
|
112 |
/**
|
113 |
* Gets the value of the FailureReasonCode property.
|
114 |
-
*
|
115 |
* @return string FailureReasonCode
|
116 |
*/
|
117 |
public function getFailureReasonCode ()
|
@@ -121,7 +118,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
121 |
|
122 |
/**
|
123 |
* Sets the value of the FailureReasonCode property.
|
124 |
-
*
|
125 |
* @param string FailureReasonCode
|
126 |
* @return this instance
|
127 |
*/
|
@@ -133,7 +130,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
133 |
|
134 |
/**
|
135 |
* Sets the value of the FailureReasonCode and returns this instance
|
136 |
-
*
|
137 |
* @param string $value FailureReasonCode
|
138 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResult instance
|
139 |
*/
|
@@ -145,7 +142,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
145 |
|
146 |
/**
|
147 |
* Checks if FailureReasonCode is set
|
148 |
-
*
|
149 |
* @return bool true if FailureReasonCode is set
|
150 |
*/
|
151 |
public function isSetFailureReasonCode ()
|
@@ -155,7 +152,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
155 |
|
156 |
/**
|
157 |
* Gets the value of the BillingAgreementStatus.
|
158 |
-
*
|
159 |
* @return BillingAgreementStatus BillingAgreementStatus
|
160 |
*/
|
161 |
public function getBillingAgreementStatus ()
|
@@ -165,7 +162,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
165 |
|
166 |
/**
|
167 |
* Sets the value of the BillingAgreementStatus.
|
168 |
-
*
|
169 |
* @param BillingAgreementStatus BillingAgreementStatus
|
170 |
* @return void
|
171 |
*/
|
@@ -177,7 +174,7 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
177 |
|
178 |
/**
|
179 |
* Sets the value of the BillingAgreementStatus and returns this instance
|
180 |
-
*
|
181 |
* @param BillingAgreementStatus $value BillingAgreementStatus
|
182 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResult instance
|
183 |
*/
|
@@ -189,11 +186,12 @@ class OffAmazonPaymentsService_Model_ValidateBillingAgreementResult extends OffA
|
|
189 |
|
190 |
/**
|
191 |
* Checks if BillingAgreementStatus is set
|
192 |
-
*
|
193 |
* @return bool true if BillingAgreementStatus property is set
|
194 |
*/
|
195 |
public function isSetBillingAgreementStatus ()
|
196 |
{
|
197 |
return ! is_null($this->_fields['BillingAgreementStatus']['FieldValue']);
|
198 |
}
|
199 |
-
|
|
1 |
+
<?php /*******************************************************************************
|
|
|
|
|
2 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
*
|
15 |
|
16 |
/**
|
17 |
* OffAmazonPaymentsService_Model_ValidateBillingAgreementResult
|
18 |
+
*
|
19 |
* Properties:
|
20 |
* <ul>
|
21 |
+
*
|
22 |
* <li>ValidationResult: string</li>
|
23 |
* <li>FailureReasonCode: string</li>
|
24 |
* <li>BillingAgreementStatus: OffAmazonPaymentsService_Model_BillingAgreementStatus</li>
|
30 |
|
31 |
/**
|
32 |
* Construct new OffAmazonPaymentsService_Model_ValidateBillingAgreementResult
|
33 |
+
*
|
34 |
+
* @param mixed $data DOMElement or Associative Array to construct from.
|
35 |
+
*
|
36 |
* Valid properties:
|
37 |
* <ul>
|
38 |
+
*
|
39 |
* <li>ValidationResult: string</li>
|
40 |
* <li>FailureReasonCode: string</li>
|
41 |
* <li>BillingAgreementStatus: OffAmazonPaymentsService_Model_BillingAgreementStatus</li>
|
53 |
'FieldValue' => null,
|
54 |
'FieldType' => 'string'
|
55 |
),
|
56 |
+
|
57 |
'BillingAgreementStatus' => array(
|
58 |
'FieldValue' => null,
|
59 |
'FieldType' => 'OffAmazonPaymentsService_Model_BillingAgreementStatus'
|
60 |
)
|
61 |
+
);
|
|
|
62 |
parent::__construct($data);
|
63 |
}
|
64 |
|
65 |
/**
|
66 |
* Gets the value of the ValidationResult property.
|
67 |
+
*
|
68 |
* @return string ValidationResult
|
69 |
*/
|
70 |
public function getValidationResult ()
|
74 |
|
75 |
/**
|
76 |
* Sets the value of the ValidationResult property.
|
77 |
+
*
|
78 |
* @param string ValidationResult
|
79 |
* @return this instance
|
80 |
*/
|
86 |
|
87 |
/**
|
88 |
* Sets the value of the ValidationResult and returns this instance
|
89 |
+
*
|
90 |
* @param string $value ValidationResult
|
91 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResult instance
|
92 |
*/
|
98 |
|
99 |
/**
|
100 |
* Checks if ValidationResult is set
|
101 |
+
*
|
102 |
* @return bool true if ValidationResult is set
|
103 |
*/
|
104 |
public function isSetValidationResult ()
|
108 |
|
109 |
/**
|
110 |
* Gets the value of the FailureReasonCode property.
|
111 |
+
*
|
112 |
* @return string FailureReasonCode
|
113 |
*/
|
114 |
public function getFailureReasonCode ()
|
118 |
|
119 |
/**
|
120 |
* Sets the value of the FailureReasonCode property.
|
121 |
+
*
|
122 |
* @param string FailureReasonCode
|
123 |
* @return this instance
|
124 |
*/
|
130 |
|
131 |
/**
|
132 |
* Sets the value of the FailureReasonCode and returns this instance
|
133 |
+
*
|
134 |
* @param string $value FailureReasonCode
|
135 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResult instance
|
136 |
*/
|
142 |
|
143 |
/**
|
144 |
* Checks if FailureReasonCode is set
|
145 |
+
*
|
146 |
* @return bool true if FailureReasonCode is set
|
147 |
*/
|
148 |
public function isSetFailureReasonCode ()
|
152 |
|
153 |
/**
|
154 |
* Gets the value of the BillingAgreementStatus.
|
155 |
+
*
|
156 |
* @return BillingAgreementStatus BillingAgreementStatus
|
157 |
*/
|
158 |
public function getBillingAgreementStatus ()
|
162 |
|
163 |
/**
|
164 |
* Sets the value of the BillingAgreementStatus.
|
165 |
+
*
|
166 |
* @param BillingAgreementStatus BillingAgreementStatus
|
167 |
* @return void
|
168 |
*/
|
174 |
|
175 |
/**
|
176 |
* Sets the value of the BillingAgreementStatus and returns this instance
|
177 |
+
*
|
178 |
* @param BillingAgreementStatus $value BillingAgreementStatus
|
179 |
* @return OffAmazonPaymentsService_Model_ValidateBillingAgreementResult instance
|
180 |
*/
|
186 |
|
187 |
/**
|
188 |
* Checks if BillingAgreementStatus is set
|
189 |
+
*
|
190 |
* @return bool true if BillingAgreementStatus property is set
|
191 |
*/
|
192 |
public function isSetBillingAgreementStatus ()
|
193 |
{
|
194 |
return ! is_null($this->_fields['BillingAgreementStatus']['FieldValue']);
|
195 |
}
|
196 |
+
|
197 |
+
}
|
lib/OffAmazonPaymentsService/RegionSpecificProperties.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php
|
2 |
|
3 |
/*******************************************************************************
|
4 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
@@ -224,5 +224,4 @@ class OffAmazonPaymentsService_RegionSpecificProperties
|
|
224 |
{
|
225 |
return strcasecmp($environment,'sandbox') == 0;
|
226 |
}
|
227 |
-
}
|
228 |
-
|
1 |
+
<?php
|
2 |
|
3 |
/*******************************************************************************
|
4 |
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
224 |
{
|
225 |
return strcasecmp($environment,'sandbox') == 0;
|
226 |
}
|
227 |
+
}
|
|
lib/OffAmazonPaymentsService/Regions.php
CHANGED
@@ -22,5 +22,4 @@ final class OffAmazonPaymentsService_Regions
|
|
22 |
const UK = "uk";
|
23 |
const US = "us";
|
24 |
const NA = "na";
|
25 |
-
}
|
26 |
-
|
22 |
const UK = "uk";
|
23 |
const US = "us";
|
24 |
const NA = "na";
|
25 |
+
}
|
|
package.xml
CHANGED
@@ -1,23 +1,26 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Creativestyle_AmazonPayments</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://creativecommons.org/licenses/by-nd/4.0/">Creative Commons Attribution-NoDerivatives 4.0 International</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Integration of your Magento shop with Login and Pay with Amazon service</summary>
|
10 |
<description>This extension provides an official integration of your Magento store with Login and Pay with Amazon service. It helps your customers shop quickly, safely and securely. Your customers can pay on your website without re-entering their payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.</description>
|
11 |
-
<notes>ADDED:
|
12 |
-
ADDED:
|
13 |
-
ADDED:
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
17 |
<authors><author><name>creativestyle GmbH</name><user>creativestyle</user><email>amazon@creativestyle.de</email></author></authors>
|
18 |
-
<date>2015-
|
19 |
-
<time>
|
20 |
-
<contents><target name="magecommunity"><dir name="Creativestyle"><dir name="AmazonPayments"><dir name="Block"><file name="Abstract.php" hash="ce9a49bde52db0195d94bf409029b8c6"/><dir name="Adminhtml"><file name="CredentialsValidator.php" hash="bb62c178c7bba1dd30fa16f22394ec85"/><dir name="Debug"><dir name="Section"><file name="Table.php" hash="f6947e99e982164a220e3d82fa0f988f"/></dir><file name="Section.php" hash="a249d2fedeaa5e485e40ffaeeb0335c6"/></dir><file name="Debug.php" hash="cc798f2987cc0dffc755a88988b74912"/><file name="Info.php" hash="be764b1856eccc2b3070a1ea4cfe57f7"/><file name="IpnUrl.php" hash="f9a516356c4c9b98e02eb3761ad5bf90"/><dir name="Log"><file name="Abstract.php" hash="02887066c2d6973141dff769b385d8fa"/><dir name="Api"><file name="Grid.php" hash="8d072ba9ce4be99222c03a26680d51eb"/><file name="View.php" hash="eb30544643fa9571a454a763111d0113"/></dir><file name="Api.php" hash="5ea0736c83de5feb01df0a3ec4db4d80"/><dir name="Exception"><file name="Grid.php" hash="3c3decb0a90638d5e2b1617426ec9437"/><file name="View.php" hash="cae17d2a2d5716e8dde1c6662397131e"/></dir><file name="Exception.php" hash="c35dafcaf89ca709394341394862f4cf"/><dir name="Ipn"><file name="Grid.php" hash="74bb51ab562b09d42bd9ced6d6609ae1"/><file name="View.php" hash="6ab63414642658e95258a73a143e6955"/></dir><file name="Ipn.php" hash="a2225b081ccb354bfe94b4a646b0d521"/><dir name="View"><file name="Abstract.php" hash="0a4c977a1f89622148bdc6acc037fc1f"/></dir></dir><dir name="Renderer"><file name="Timestamp.php" hash="190325613c20e2cf97adc28950658e99"/></dir><dir name="Sales"><file name="Order.php" hash="45a5ee919501a2bf26160d38dafccd44"/></dir></dir><dir name="Button"><file name="Js.php" hash="29f5907c8898af60bdc78d957998da3f"/></dir><dir name="Checkout"><file name="Abstract.php" hash="db5cf0b3d9dd37ad4552987b9df5e09c"/><file name="Js.php" hash="0e5ba9b3f4ae06139a084816c04a05a3"/><file name="Notice.php" hash="3bd2869322fac80a80436f8e2daa8d70"/><file name="SandboxToolbox.php" hash="047b1bfde3f5469195b9a7ccfee3f16d"/></dir><file name="Checkout.php" hash="6620fc17c1c86deac47709664d6a93f7"/><dir name="Js"><file name="Interface.php" hash="11827746ff821b4cbda1ad041e30321e"/></dir><file name="Js.php" hash="8610dddee84cda450c4874e0fd93b5f5"/><dir name="Login"><file name="Abstract.php" hash="b84dfbbe66bbee39a547d33e856b4a8d"/><dir name="Account"><file name="Confirm.php" hash="ae8123a65a717a0046aaf1d9dc21f878"/><file name="Update.php" hash="8fdadae9294b17fbb0989f8d0e2016a4"/></dir><file name="Button.php" hash="bad55de20f480d53a15ddedd551ff6dd"/><file name="Js.php" hash="2d144b27681c48f2adfa8cd0fdd5d31e"/><file name="Redirect.php" hash="8634cf4f6bf792006e4ab7674b758e5c"/></dir><dir name="Onepage"><file name="Button.php" hash="b122db0163e8580f42679f13a3a45726"/></dir><dir name="Pay"><file name="Abstract.php" hash="2e96e1d4a1a0e2c74cee40a46a75241c"/><file name="Button.php" hash="b76cbc47c91b88ceb9fc1fde609fa2dc"/></dir><dir name="Payment"><file name="Info.php" hash="c6285a5688834b456765317d3471bf2a"/></dir></dir><dir name="Exception"><dir name="InvalidStatus"><file name="Recoverable.php" hash="dc4d8857cf1841bb56f6da11cf92e99e"/></dir><file name="InvalidStatus.php" hash="614d45747601dea035ff2a3faadd7e18"/></dir><file name="Exception.php" hash="ca655a29842b38dd2ebf438208a6c70c"/><dir name="Helper"><file name="Data.php" hash="d2b92ae2df83c78f17bbd27ce2765fe0"/><file name="Debug.php" hash="782ae864f43f5bb85b439cf1a4c35334"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="1814fcd0d61599f15d808d9c2990ebe4"/><file name="Advanced.php" hash="2c2359c3969f43a7e7024325d0fdbce8"/><file name="Ipn.php" hash="7796776a38fe90b9805cbd88094a773d"/><file name="Login.php" hash="d9297e66749c6930a1010a5babdfde14"/></dir><file name="Checkout.php" hash="593935995a788c113d14fbba9bce9dc5"/><file name="Config.php" hash="9ea3d65a08e6c2024bca16e1f38a2634"/><dir name="Log"><file name="Collection.php" hash="13d71847c4e164af18636a3fe5bf975b"/></dir><file name="Logger.php" hash="0821a7d8ddeea993fe3ad9495ef6f9d9"/><dir name="Lookup"><file name="Abstract.php" hash="443bbef12f4e7c896e54cf0b7463e04e"/><file name="Authentication.php" hash="56e12ebde89bb29b59ac1153be4b10cc"/><file name="AuthorizationMode.php" hash="b26806dc71de6b55bc37b20a1b804364"/><dir name="Design"><dir name="Button"><dir name="Color"><file name="LoginPay.php" hash="e9a469e82c7805782cf7694c4d50af7a"/></dir><file name="Color.php" hash="81a33471dfefb27897f7b1ff19749671"/><dir name="Size"><file name="LoginPay.php" hash="6cdf3d3633617994783a38f30add86fe"/></dir><file name="Size.php" hash="7c73a97a0fa3f4c6a73b838c0594ad5c"/><dir name="Type"><file name="Login.php" hash="44e852189b0305bbe4cc38848316d4e6"/><file name="Pay.php" hash="5e6f65d1e355ed265787b28b12c6e7a6"/></dir></dir></dir><file name="Frequency.php" hash="5115fb39b48781e5e97f9b62414a72cc"/><file name="IpnActive.php" hash="b73000f5bfc1e26b80911e125e9eec46"/><file name="PaymentAction.php" hash="6d0c15996ec3caf112d88e07ea703bb4"/><file name="Region.php" hash="8f5cc8ab970aa165e16085368b320f89"/></dir><file name="Observer.php" hash="ae33bf5b7804c8588f07dc120622fd19"/><dir name="Payment"><file name="Abstract.php" hash="857638e7fc74f9cf5247d337ef41b0e4"/><dir name="Advanced"><file name="Sandbox.php" hash="10e80bd587f2d27fc97bb6e595936b82"/></dir><file name="Advanced.php" hash="15c5dde1d3a82a9bdf01e1681c47ec3b"/></dir><dir name="Processor"><file name="Ipn.php" hash="d0541388acac591e34efd7b75dcd0b57"/><file name="Order.php" hash="907c5cbce80f40e0ce788befa29df9dd"/><file name="Payment.php" hash="48986e137bd5febee8378ae876139ac2"/><file name="TransactionAdapter.php" hash="b2c09a44be6b448ed3b3afbfea282a0f"/></dir><dir name="Service"><file name="Login.php" hash="99f99ff273e0cb6dea7b2053702bf323"/><file name="Quote.php" hash="d566370281e690ca31f3ddd47c21ef1d"/></dir><file name="Simulator.php" hash="553bb0c0ca3c74202083b366f4c33e9a"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="DataPolling"><file name="Cron.php" hash="c3d3009775702bee14da3695f0d41f68"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DebugController.php" hash="28e0ddedf23912140158d100339bdbe8"/><file name="DocumentationController.php" hash="4e214386e032b2e513dda5a26344fd87"/><dir name="Log"><file name="ApiController.php" hash="e0a9181f57223d3ba722982572c1d003"/><file name="ExceptionController.php" hash="5daaa04ec6479396edfb1f62910f4ad3"/><file name="IpnController.php" hash="f00870c68a6b18d460c59d0b76d4a67d"/></dir><file name="OrderController.php" hash="cae5700331ca6aa6f26b78314c3507d9"/><file name="SystemController.php" hash="52c60fa39dba8582b4ca81c2f065dbc5"/></dir><dir name="Advanced"><file name="CheckoutController.php" hash="2f80227774f7fac74b545ef47030423d"/><file name="IpnController.php" hash="78277323844f97a30b6531aa331eef86"/><file name="LoginController.php" hash="a2ec1a2c457dca39afab9cad463a4f2e"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2dc1b70997469f8f0cd6a80eff845842"/><file name="config.xml" hash="9752e085c2e76473117e2d16d7d8e38c"/><file name="system.xml" hash="3f2b7050c2167e539e8def3332fee717"/></dir><dir name="sql"><dir name="amazonpayments_setup"><file name="mysql4-install-1.0.0.php" hash="d4681b9a39905cc9e9dcc660688dea85"/><file name="mysql4-install-1.6.2.php" hash="6bb2b8656a3c6b2b517b88ca98ff84de"/><file name="mysql4-upgrade-1.1.6-1.2.0.php" hash="27f8e108bac4268d3c17e812b413dbbc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="4bc12228bba39bd925ed129d7cf64258"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="advanced"><file name="documentation.phtml" hash="af3ae6ebce4712dd8fb972bef508ca55"/><dir name="log"><dir name="api"><file name="view.phtml" hash="92e2a91aa6f25e20fe8e89bad751e8cf"/></dir><dir name="exception"><file name="view.phtml" hash="c5d01f6de86e47d4da5dfabd60b1b382"/></dir><file name="js.phtml" hash="eb1d2098440a0bac2a6f5b959afa3693"/><dir name="notification"><file name="view.phtml" hash="31d893106f7c7c7f94f05d5cafa36440"/></dir></dir></dir><dir name="debug"><dir name="section"><file name="table.phtml" hash="f4bb8e35b3608cf0639407a3461c3717"/></dir><file name="section.phtml" hash="1472da0e9f07b5583a02e327483d4d75"/></dir><file name="debug.phtml" hash="9748d4fe92986f36ad47ae5b61fc4883"/><file name="info.phtml" hash="8f58e70d3d5974c60d182450b424e521"/><file name="init.phtml" hash="ba9d53045077e63b4e6c25c6b7bb685c"/><dir name="payment"><file name="info.phtml" hash="1604a1ca8c640748023859dee07f1182"/><dir name="pdf"><file name="info.phtml" hash="1fb213f3fcc3aeecaa6305c07cff3b73"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="7c1c1fc8f1476bb000c6b5cd60a46814"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="button"><file name="js.phtml" hash="4eb92ecb1032a8f57c6b0230a333f88e"/></dir><dir name="checkout"><file name="capture_notice.phtml" hash="f9c75cd05a596d0a16c55f0169b4ee6c"/><file name="js.phtml" hash="71f1e2eb29af46959f268b7f0bc5e416"/><dir name="review"><file name="button.phtml" hash="5fa9b038cc1e91a8203b163411b8bf20"/></dir><file name="sandbox_toolbox.phtml" hash="ff639266f99827e3ec3a9e8305bd7eb7"/><file name="shipping_method.phtml" hash="852008f89fc32c7af6c250cafdde5f51"/></dir><file name="checkout.phtml" hash="6873b347a7e10b3b5c35fda1b48345b1"/><file name="js.phtml" hash="13581f0bcdf7c39da46be530892e8183"/><dir name="login"><dir name="button"><file name="account_login.phtml" hash="0ce9b9d891af3f6c5b1c83a17d311e6b"/></dir><file name="button.phtml" hash="b5d66280337ecc895ae9a2bc48c469e4"/><dir name="form"><file name="account_confirm.phtml" hash="cff4c9f656b2e790bd65723d4e2042b9"/><file name="account_update.phtml" hash="64fdc50df3b3c49384d5d50a1da82d4d"/></dir><file name="js.phtml" hash="9d542e726fe51739b72fc2e509edadd8"/><file name="logout.phtml" hash="e8b6f4d39047903e4ee8d481ba59543b"/><file name="redirect.phtml" hash="8d395ab25504c0cdb928cf93e684b868"/></dir><dir name="onepage"><file name="button.phtml" hash="95e053ca57f36df23180af93b77a6557"/></dir><dir name="pay"><file name="button.phtml" hash="dfcccab45794c81d2d3ca52f709019d4"/></dir><dir name="payment"><file name="info.phtml" hash="3631896707e596d9675f526a7d021617"/><dir name="pdf"><file name="info.phtml" hash="69549bf3340c19d62f42a556f13e8a1e"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creativestyle_AmazonPayments.xml" hash="3d30f68b24829494a2a66164eba0e5f7"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Creativestyle_AmazonPayments.csv" hash="1f097beb74ab28d1cfc2029358844b63"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="ad694ba24051f779698d483bc32d9b75"/></dir></dir></dir><dir name="en_GB"><file name="Creativestyle_AmazonPayments.csv" hash="579d6eba132592d417548d371f381b70"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="1a933579acb1fbb3d78ae47ca990521b"/></dir></dir></dir><dir name="de_DE"><file name="Creativestyle_AmazonPayments.csv" hash="66ee08782e1c47f3f7787dbb7587d8bd"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="4879ccbfbea101548700da52b058bd0b"/></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="creativestyle"><file name="apa_checkout.min.js" hash="0ed997aced504b31dcecdc955c315dee"/><file name="apa_sandbox_toolbox.min.js" hash="9c04a2cae7d749b99e70036676e57019"/><dir name="vendors"><file name="prism.js" hash="c700de3d980f7ef1e056dc5400acfd44"/></dir><file name="apa_checkout.js" hash="a792a076daf64a5968eed53e738ea46c"/></dir></dir></target><target name="magelib"><dir name="OffAmazonPayments"><file name="Model.php" hash="36434820209eb10952abc8e41259d96c"/></dir><dir name="OffAmazonPaymentsNotifications"><file name="Client.php" hash="3b2d2c969c03e774ff86fa876e12b278"/><dir name="Impl"><file name="Certificate.php" hash="3b49f95f652daa628a586c5d57a1b96f"/><file name="IpnNotificationParser.php" hash="41c7c75dfb26e2df9071263a464f4810"/><file name="Message.php" hash="d6a798d889d4fa1c6938b1493932925d"/><file name="OpenSslVerifySignature.php" hash="41ebc72238ef3eebe7741e21e18a9788"/><file name="SnsMessageParser.php" hash="7ebf58afecd5d3a3c859f6daf60b19c4"/><file name="SnsMessageValidator.php" hash="4d4a2452b4587d622926b6cfbfb4b179"/><file name="VerifySignature.php" hash="b03c485451a27ada7e67497988093e47"/><file name="XmlNotificationParser.php" hash="17ee03585854ed24eb4add7834e9f02d"/></dir><file name="Interface.php" hash="2c527d58c518632f8cc1b6a973c08e05"/><file name="InvalidCertificateException.php" hash="5412d2fc7ca03ac822bcb4066d558b50"/><file name="InvalidMessageException.php" hash="5fc7cb16c37c4cde49d87744c5a583c0"/><dir name="Model"><file name="AuthorizationDetails.php" hash="fccb851dc730850b8d185016dbca2590"/><file name="AuthorizationNotification.php" hash="80250048069681142a95cac51e3fa21c"/><file name="BillingAgreement.php" hash="087f904ec04b8c63a0120940f177c698"/><file name="BillingAgreementLimits.php" hash="801a01b85a09eababfa08b2186c44cd4"/><file name="BillingAgreementNotification.php" hash="dd8af8bd716a907f507c0dd885b3ed4c"/><file name="BillingAgreementStatus.php" hash="788a292faf04486d93b1f70b14cf156c"/><file name="CaptureDetails.php" hash="326a26f5b981710e4c6328cf1ea91459"/><file name="CaptureNotification.php" hash="50aaaf110b451b3a95e08a1525ec29c4"/><file name="IdList.php" hash="5c4b01c197bd17841dbba5ad37bd7b10"/><file name="IpnNotificationMetadata.php" hash="5e894a2584bbf0469ec73f32d7059ac6"/><file name="MerchantRegistrationDetails.php" hash="d4de7689d8e216567abd710dde7ef4ed"/><file name="NotificationImpl.php" hash="717df190c76f9d3b9a95999dbd962cd4"/><file name="NotificationMetadataImpl.php" hash="045d988afb0c21179d22e086e263a84d"/><file name="OrderItemCategories.php" hash="143c9a7a5d0e048fd8f3d35d7193699c"/><file name="OrderReference.php" hash="aa46198885e00b987c4b19c316920b9a"/><file name="OrderReferenceNotification.php" hash="5757807850c3afa08dd17a49803f317a"/><file name="OrderReferenceStatus.php" hash="91332f4bb02b984d57a6c519df3f90ed"/><file name="OrderTotal.php" hash="9414289b9477ffe27d3dfd0511aa0729"/><file name="Price.php" hash="f8c2a436b7244bc026078fd02887da82"/><file name="ProviderCreditDetails.php" hash="d355185842eb0816de151fb535b14edc"/><file name="ProviderCreditNotification.php" hash="833ef1e2383d6a97a28b1d61d352e824"/><file name="ProviderCreditReversalDetails.php" hash="a789bbf3c7074bc800053967e64286c7"/><file name="ProviderCreditReversalNotification.php" hash="84a36f2d6157424a571ddada073b2be5"/><file name="ProviderCreditReversalSummary.php" hash="1f9cd50005ade77d793a15e029b3cf69"/><file name="ProviderCreditReversalSummaryList.php" hash="6d3a3913ea433fa54ac34197825354ff"/><file name="ProviderCreditSummary.php" hash="4403e12b73867b58021655df3fcf6720"/><file name="ProviderCreditSummaryList.php" hash="8a5a83e94ce75fc3992f98525d47765d"/><file name="RefundDetails.php" hash="4b2dacdc4ce32db6b6dff7613e5b6098"/><file name="RefundNotification.php" hash="55225faad22f6a5b9b44603239488ebb"/><file name="SellerBillingAgreementAttributes.php" hash="c772791d5522be53415d339e169c6a12"/><file name="SellerOrderAttributes.php" hash="116f00df52e1cc7d9b0a23c58dc0c93d"/><file name="SnsNotificationMetadata.php" hash="79a8aacd35588ce20daea2d8ded574ac"/><file name="SolutionProviderMerchantNotification.php" hash="d5829f16e032db871798f1ba45732f39"/><file name="SolutionProviderOption.php" hash="df8fbbb1ad2fef1796e3b42a9a417a64"/><file name="SolutionProviderOptions.php" hash="8f5f0e7415bb9dfc5dfafaab236d91df"/><file name="Status.php" hash="5ac5d81fafbb7a45c7ef67b7d61e3ccf"/></dir><file name="Notification.php" hash="f14f5fded3845499c03ed011ff115b13"/><file name="NotificationMetadata.php" hash="fcbdda900353d35a850ab518c24506ca"/></dir><dir name="OffAmazonPaymentsService"><file name="Client.php" hash="bba604078e0d7491ee6dbcce80258aea"/><file name="Environments.php" hash="5c469c72e7e1fc24eeda2b6a22917d77"/><file name="Exception.php" hash="965ca3466457e04d79ee9250fc946803"/><file name="Interface.php" hash="822113682cd65aa8b02f61f18ab07984"/><file name="MerchantValues.php" hash="ef10d79a38b3ae5ded1c2ed9d55e1f6c"/><dir name="Model"><file name="Address.php" hash="2cac12c7465df053c1fbfebd7c0c3e4b"/><file name="AuthorizationDetails.php" hash="9ef03efd7eb35c2f1c764e60a7492be6"/><file name="AuthorizeOnBillingAgreementRequest.php" hash="08084c850ebbc53f1a691fec0db5d011"/><file name="AuthorizeOnBillingAgreementResponse.php" hash="c2bc2dab6950c7a6be5ec3c55b71b4f9"/><file name="AuthorizeOnBillingAgreementResult.php" hash="b52d0c0ad908617cbd39345aba54882b"/><file name="AuthorizeRequest.php" hash="d01f4a32ec8e57a44a0804ba7350bfef"/><file name="AuthorizeResponse.php" hash="ccbb769ef3012724c48b1d76acd6e0ef"/><file name="AuthorizeResult.php" hash="a90eaf3bb2a12a6945407c01a0f967d0"/><file name="BillingAddress.php" hash="9d3881a26603f1392f9b93b55a8a8a5a"/><file name="BillingAgreementAttributes.php" hash="30046b148b8a7b4cd6026ebd0fc482b5"/><file name="BillingAgreementDetails.php" hash="9b9d0d8722afa825d45f98b9c5cece6e"/><file name="BillingAgreementLimits.php" hash="9984271b285397d7e08322c91d9ccd08"/><file name="BillingAgreementStatus.php" hash="f3a6ac460a66e62a4e5cff1f966e1a4a"/><file name="Buyer.php" hash="10df01a4c7815bf4760e56308957351a"/><file name="CancelOrderReferenceRequest.php" hash="2a1aea8fad7cf8a87d2a9f6ff6fcea78"/><file name="CancelOrderReferenceResponse.php" hash="c3f81641827af137bf4a6010e58bb62c"/><file name="CancelOrderReferenceResult.php" hash="504557ccf47b0b5b6a071f138ba962f0"/><file name="CaptureDetails.php" hash="f907d38d2148b1c1703d6f1a3d958f34"/><file name="CaptureRequest.php" hash="f2ddfd0218c81f234b0ba05c74efe1dd"/><file name="CaptureResponse.php" hash="6faf1938d380ebaeb6fcf1ff6e865624"/><file name="CaptureResult.php" hash="f174ee46f021bd40751e0d63245bd850"/><file name="CloseAuthorizationRequest.php" hash="07191ba72e4eee57553ecd41e15f779d"/><file name="CloseAuthorizationResponse.php" hash="70e8e86c4edbfb2f96ec139560636494"/><file name="CloseAuthorizationResult.php" hash="2c406dd340ef5b838a37a75aabb4f149"/><file name="CloseBillingAgreementRequest.php" hash="c80b8e3cb690595dc72c3924f5e7a13f"/><file name="CloseBillingAgreementResponse.php" hash="8994fb56dc5f487302937c1395d0963d"/><file name="CloseBillingAgreementResult.php" hash="10517589598754b0e58be29c5082c3ce"/><file name="CloseOrderReferenceRequest.php" hash="523c2061c026540e0189872e87ed1af1"/><file name="CloseOrderReferenceResponse.php" hash="fd13d871e69eb5413526c19cf5f66de8"/><file name="CloseOrderReferenceResult.php" hash="0e5afd3aa795bf82684c0f40744e2e04"/><file name="ConfirmBillingAgreementRequest.php" hash="098e7fd225da377b14799a0957991d0a"/><file name="ConfirmBillingAgreementResponse.php" hash="54327b4909053fc3fc65197e796c5d59"/><file name="ConfirmBillingAgreementResult.php" hash="f1ab41657391d37de4148fa07b0849da"/><file name="ConfirmOrderReferenceRequest.php" hash="c0667576d46907f0965c89a36e5dc1aa"/><file name="ConfirmOrderReferenceResponse.php" hash="497d3a7f3710ece7bd1a25fd5261707f"/><file name="Constraint.php" hash="5dfaa3ce9fb9c0fe8a1f20e24a053f6e"/><file name="Constraints.php" hash="e831530f17d7df39cc03bceaafed0216"/><file name="CreateOrderReferenceForIdRequest.php" hash="84a50944a1e0d58bd1e77306f1f7ada7"/><file name="CreateOrderReferenceForIdResponse.php" hash="3b9d3020b2e874f191e0083203d46723"/><file name="CreateOrderReferenceForIdResult.php" hash="46f720aea9c58694b2ca4b81142abcfa"/><file name="Destination.php" hash="4da36642b21ab96ab6bdee10781d8d07"/><file name="Error.php" hash="a0b83f2bc8edc3e503efae6d98ecb464"/><file name="ErrorResponse.php" hash="00391c711283b2fd5a6859f6a341cbbf"/><file name="GetAuthorizationDetailsRequest.php" hash="fdfeafa306e64b92325972b67bb12f92"/><file name="GetAuthorizationDetailsResponse.php" hash="eae478e879b021b30e22188af50c2e2c"/><file name="GetAuthorizationDetailsResult.php" hash="270d0ebb53cf595593a72ba29ca3d1f0"/><file name="GetBillingAgreementDetailsRequest.php" hash="e8124ac8d748b26642456c090a86463b"/><file name="GetBillingAgreementDetailsResponse.php" hash="5e05dd77c3b176b303af9711eeea97fd"/><file name="GetBillingAgreementDetailsResult.php" hash="b320ede4586359d2b5f1f1d7333b2743"/><file name="GetCaptureDetailsRequest.php" hash="b4d9e5414e63840b87c97a1d5f8ec9bb"/><file name="GetCaptureDetailsResponse.php" hash="049306e3f85755114fb033732111c613"/><file name="GetCaptureDetailsResult.php" hash="ab7ccba1bfaf183205a2a5a7c495fd19"/><file name="GetOrderReferenceDetailsRequest.php" hash="21d60f781305cf963ea2a40099decdf7"/><file name="GetOrderReferenceDetailsResponse.php" hash="eebbc1b4482d78a0d3d57bbf8d1c5a66"/><file name="GetOrderReferenceDetailsResult.php" hash="f4425bd39c8279e66f4c9052d452925d"/><file name="GetProviderCreditDetailsRequest.php" hash="1b613acafc8f66e0385379705bcf664c"/><file name="GetProviderCreditDetailsResponse.php" hash="9fcdbd8af985e96579c93378259c5e4a"/><file name="GetProviderCreditDetailsResult.php" hash="3a660d2ad0f6528e16f554987caf9a51"/><file name="GetProviderCreditReversalDetailsRequest.php" hash="592caa40f517ed1cfc66dd9a12e9bac3"/><file name="GetProviderCreditReversalDetailsResponse.php" hash="85d1fb8584f14d443cf7e4956c3dd03f"/><file name="GetProviderCreditReversalDetailsResult.php" hash="06effa515f870d1bd5fff7bc62a1d752"/><file name="GetRefundDetailsRequest.php" hash="a433b45ba3dc2894042d2e8072286bd1"/><file name="GetRefundDetailsResponse.php" hash="58771173d1a1c43f2a8a9f5515f4823b"/><file name="GetRefundDetailsResult.php" hash="0d51a779b95371ad425a4c9bc0aa6f82"/><file name="IdList.php" hash="a7a531e733a67f5a320bdb77c6ebd1a6"/><file name="OrderItemCategories.php" hash="1ed3edbf18fda5819ace2284bff49c15"/><file name="OrderReferenceAttributes.php" hash="d3d2d00f6626ab2116553cf2d266bb38"/><file name="OrderReferenceDetails.php" hash="a3ae5a3c4a6d5b8b3fa4f84593d1c33a"/><file name="OrderReferenceStatus.php" hash="5605fd30208a09dedea1aab688d92f49"/><file name="OrderTotal.php" hash="3ba85975c17821e7b72710b713f48f93"/><file name="ParentDetails.php" hash="b0d8bc8245fc4f8e75842e7c48e5b174"/><file name="Price.php" hash="ebd5fe74f1840f7804b3f869ce25384b"/><file name="ProviderCredit.php" hash="331663826ea8f444d5b0c05c59d69874"/><file name="ProviderCreditDetails.php" hash="0b916937d2397ad51d0dc1b0cf86777b"/><file name="ProviderCreditList.php" hash="3467cfe1dc096d07c33e2fadb3cb90d1"/><file name="ProviderCreditReversal.php" hash="b965141481deddd3b8e1c48a68d8c292"/><file name="ProviderCreditReversalDetails.php" hash="aaf5a41e7d6aba6758b5c24de2affe4d"/><file name="ProviderCreditReversalList.php" hash="47ff9cee9313ea98b23cec3257fdd704"/><file name="ProviderCreditReversalSummary.php" hash="decb86a0305f061206625dea1c8aacdb"/><file name="ProviderCreditReversalSummaryList.php" hash="4948d8e2034b7e60fc7157d7be149ea1"/><file name="ProviderCreditSummary.php" hash="06f9ad261e09b3709107d074604a1227"/><file name="ProviderCreditSummaryList.php" hash="28652df460f09e5d907d0c07f98b1b8f"/><file name="RefundDetails.php" hash="e12c1a6a49bda599d628e382de6f8874"/><file name="RefundRequest.php" hash="1e6f8500871cbae8b1d57a7a853cd298"/><file name="RefundResponse.php" hash="f2af68623a6f37a0f0227ea9e648603f"/><file name="RefundResult.php" hash="2b73f810b388d8ea30ded964bb1d1644"/><file name="ResponseHeaderMetadata.php" hash="4305e32c733bf48b2e34b2de0f0eee7f"/><file name="ResponseMetadata.php" hash="c5efe1da81e4a9fa3c76b9901c90f9fe"/><file name="ReverseProviderCreditRequest.php" hash="51af6c8b7e31efd4fffafd83994fbc63"/><file name="ReverseProviderCreditResponse.php" hash="3a959a1b22156ddb81e2eed9e02a0da4"/><file name="ReverseProviderCreditResult.php" hash="6dc02bb8141e136a55d28034add4b101"/><file name="SellerBillingAgreementAttributes.php" hash="0c1c845a25dbcd724d0c6ca2a8e07ab4"/><file name="SellerOrderAttributes.php" hash="326ac3910572ddfcc88d467e837283af"/><file name="SetBillingAgreementDetailsRequest.php" hash="19522c9d1290c1ae63e22902cd1655d9"/><file name="SetBillingAgreementDetailsResponse.php" hash="029e631097cb557f2a44ccc0f108aeae"/><file name="SetBillingAgreementDetailsResult.php" hash="4006851ac3799e4ee89fe6665e78be66"/><file name="SetOrderReferenceDetailsRequest.php" hash="61de911c937a20dc795727ca66a90b89"/><file name="SetOrderReferenceDetailsResponse.php" hash="e2bcd0495e0249c654a3cfedc0e3697e"/><file name="SetOrderReferenceDetailsResult.php" hash="ad903a104466558226f58e790a2bb061"/><file name="Status.php" hash="92253830c1eeb08094f5eca6506a0b0f"/><file name="ValidateBillingAgreementRequest.php" hash="b3a0ae148f92a2b0132af201f49c98d4"/><file name="ValidateBillingAgreementResponse.php" hash="c3866b3ffa85037b5c070ffed2d6cf06"/><file name="ValidateBillingAgreementResult.php" hash="2c96a303ad608eb9c840971c374125f4"/></dir><file name="Model.php" hash="7452a81d314d6212937d79e71b040e01"/><file name="RegionSpecificProperties.php" hash="4cad5116fb2608d5000c0e9aed5bace9"/><file name="Regions.php" hash="849549c7834fac2fb94749276eabeb97"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="a1f07a48b8de6d1fa9391a4eed2f12be"/><file name="amazonpayments-highlight.css" hash="f6daf03c989ac56ad436300b5520f0df"/></dir><dir name="images"><file name="amazon-payments-advanced-creativestyle-logo.png" hash="bb507d0085dab135ac313b8068515620"/><file name="amazon-payments-advanced-creativestyle-header-logo.png" hash="1f17fc7a61f8aaf929000d1d87f7d943"/><file name="amazon-payments-advanced-creativestyle-header-logo-white.png" hash="4ce4ba0d8d210a26caa380217804e200"/><file name="amazon-payments-advanced-header.png" hash="60f587870fbdb1242368c8c3b553bd8c"/><file name="amazon-payments-advanced-section.png" hash="8bc620f345eb46c920c51875d4cfad7c"/><file name="logo_a-glyph_16.png" hash="44a3f5f0013cab34d26653eb48b989fc"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="98669e803a468cc7e01d481ce1647a0e"/><file name="amazonpayments-widgets.css" hash="35704192aaeb204e407e8b853c118d16"/><file name="amazonpayments-responsive-widgets.css" hash="ffca5cdc8a4e0585946c78258044c471"/></dir><dir name="images"><file name="amazon-loading-large.gif" hash="5f6d83bf2b69ab73c7e48ec9b66d54db"/><file name="logo_a-glyph_1x.png" hash="5d44ca86985afbb2a47b9265053a456e"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments-responsive-widgets.css" hash="389d23ee96bb5305f7ba5b616d930846"/></dir></dir></dir></dir></dir></target></contents>
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>dom</name><min/><max/></extension><extension><name>curl</name><min/><max/></extension></required></dependencies>
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Creativestyle_AmazonPayments</name>
|
4 |
+
<version>1.7.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://creativecommons.org/licenses/by-nd/4.0/">Creative Commons Attribution-NoDerivatives 4.0 International</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Integration of your Magento shop with Login and Pay with Amazon service</summary>
|
10 |
<description>This extension provides an official integration of your Magento store with Login and Pay with Amazon service. It helps your customers shop quickly, safely and securely. Your customers can pay on your website without re-entering their payment and address details. All Amazon transactions are protected by Amazon's A-to-z Guarantee.</description>
|
11 |
+
<notes>ADDED: multilanguage feature for Login with Amazon
|
12 |
+
ADDED: store name to SetOrderReferenceDetails call
|
13 |
+
ADDED: reason code of the transaction status directly to the order comments
|
14 |
+
ADDED: re-authorization after the first authorization expires
|
15 |
+
ADDED: putting order on hold for some kinds of closed authorization
|
16 |
+
UPDATED: Amazon Payments SDK library to 1.0.14
|
17 |
+
FIXED: Firefox redirect experience issue
|
18 |
+
FIXED: helper function for splitting full customer name
|
19 |
+
</notes>
|
20 |
<authors><author><name>creativestyle GmbH</name><user>creativestyle</user><email>amazon@creativestyle.de</email></author></authors>
|
21 |
+
<date>2015-07-03</date>
|
22 |
+
<time>15:25:01</time>
|
23 |
+
<contents><target name="magecommunity"><dir name="Creativestyle"><dir name="AmazonPayments"><dir name="Block"><file name="Abstract.php" hash="ce9a49bde52db0195d94bf409029b8c6"/><dir name="Adminhtml"><file name="CredentialsValidator.php" hash="bb62c178c7bba1dd30fa16f22394ec85"/><dir name="Debug"><dir name="Section"><file name="Table.php" hash="f6947e99e982164a220e3d82fa0f988f"/></dir><file name="Section.php" hash="a249d2fedeaa5e485e40ffaeeb0335c6"/></dir><file name="Debug.php" hash="cc798f2987cc0dffc755a88988b74912"/><file name="Info.php" hash="be764b1856eccc2b3070a1ea4cfe57f7"/><file name="IpnUrl.php" hash="f9a516356c4c9b98e02eb3761ad5bf90"/><dir name="Log"><file name="Abstract.php" hash="02887066c2d6973141dff769b385d8fa"/><dir name="Api"><file name="Grid.php" hash="8d072ba9ce4be99222c03a26680d51eb"/><file name="View.php" hash="eb30544643fa9571a454a763111d0113"/></dir><file name="Api.php" hash="5ea0736c83de5feb01df0a3ec4db4d80"/><dir name="Exception"><file name="Grid.php" hash="3c3decb0a90638d5e2b1617426ec9437"/><file name="View.php" hash="cae17d2a2d5716e8dde1c6662397131e"/></dir><file name="Exception.php" hash="c35dafcaf89ca709394341394862f4cf"/><dir name="Ipn"><file name="Grid.php" hash="74bb51ab562b09d42bd9ced6d6609ae1"/><file name="View.php" hash="6ab63414642658e95258a73a143e6955"/></dir><file name="Ipn.php" hash="a2225b081ccb354bfe94b4a646b0d521"/><dir name="View"><file name="Abstract.php" hash="0a4c977a1f89622148bdc6acc037fc1f"/></dir></dir><dir name="Renderer"><file name="Timestamp.php" hash="190325613c20e2cf97adc28950658e99"/></dir><dir name="Sales"><file name="Order.php" hash="45a5ee919501a2bf26160d38dafccd44"/></dir></dir><dir name="Button"><file name="Js.php" hash="6081c66a769b6db8a7f607e6f60365af"/></dir><dir name="Checkout"><file name="Abstract.php" hash="db5cf0b3d9dd37ad4552987b9df5e09c"/><file name="Js.php" hash="0e5ba9b3f4ae06139a084816c04a05a3"/><file name="Notice.php" hash="3bd2869322fac80a80436f8e2daa8d70"/><file name="SandboxToolbox.php" hash="047b1bfde3f5469195b9a7ccfee3f16d"/></dir><file name="Checkout.php" hash="6620fc17c1c86deac47709664d6a93f7"/><dir name="Js"><file name="Interface.php" hash="11827746ff821b4cbda1ad041e30321e"/></dir><file name="Js.php" hash="8610dddee84cda450c4874e0fd93b5f5"/><dir name="Login"><file name="Abstract.php" hash="b84dfbbe66bbee39a547d33e856b4a8d"/><dir name="Account"><file name="Confirm.php" hash="ae8123a65a717a0046aaf1d9dc21f878"/><file name="Update.php" hash="8fdadae9294b17fbb0989f8d0e2016a4"/></dir><file name="Button.php" hash="bad55de20f480d53a15ddedd551ff6dd"/><file name="Js.php" hash="2d144b27681c48f2adfa8cd0fdd5d31e"/><file name="Redirect.php" hash="8634cf4f6bf792006e4ab7674b758e5c"/></dir><dir name="Onepage"><file name="Button.php" hash="b122db0163e8580f42679f13a3a45726"/></dir><dir name="Pay"><file name="Abstract.php" hash="2e96e1d4a1a0e2c74cee40a46a75241c"/><file name="Button.php" hash="b76cbc47c91b88ceb9fc1fde609fa2dc"/></dir><dir name="Payment"><file name="Info.php" hash="c6285a5688834b456765317d3471bf2a"/></dir></dir><dir name="Exception"><dir name="InvalidStatus"><file name="Recoverable.php" hash="dc4d8857cf1841bb56f6da11cf92e99e"/></dir><file name="InvalidStatus.php" hash="614d45747601dea035ff2a3faadd7e18"/></dir><file name="Exception.php" hash="ca655a29842b38dd2ebf438208a6c70c"/><dir name="Helper"><file name="Data.php" hash="978766ef00217f5362773ff59d9967ab"/><file name="Debug.php" hash="3749831ab7f268051fd592277f02bf0c"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="1814fcd0d61599f15d808d9c2990ebe4"/><file name="Advanced.php" hash="67d225ced579ce0301eb642e0b71bd68"/><file name="Ipn.php" hash="e672342ca8b1f1f7493e42b9656aeabe"/><file name="Login.php" hash="d9297e66749c6930a1010a5babdfde14"/></dir><file name="Checkout.php" hash="593935995a788c113d14fbba9bce9dc5"/><file name="Config.php" hash="8f4d52802cec898fa79df16cb196195d"/><dir name="Log"><file name="Collection.php" hash="13d71847c4e164af18636a3fe5bf975b"/></dir><file name="Logger.php" hash="0821a7d8ddeea993fe3ad9495ef6f9d9"/><dir name="Lookup"><file name="Abstract.php" hash="443bbef12f4e7c896e54cf0b7463e04e"/><file name="Authentication.php" hash="56e12ebde89bb29b59ac1153be4b10cc"/><file name="AuthorizationMode.php" hash="b26806dc71de6b55bc37b20a1b804364"/><dir name="Design"><dir name="Button"><dir name="Color"><file name="LoginPay.php" hash="e9a469e82c7805782cf7694c4d50af7a"/></dir><file name="Color.php" hash="81a33471dfefb27897f7b1ff19749671"/><dir name="Size"><file name="LoginPay.php" hash="6cdf3d3633617994783a38f30add86fe"/></dir><file name="Size.php" hash="7c73a97a0fa3f4c6a73b838c0594ad5c"/><dir name="Type"><file name="Login.php" hash="44e852189b0305bbe4cc38848316d4e6"/><file name="Pay.php" hash="5e6f65d1e355ed265787b28b12c6e7a6"/></dir></dir></dir><file name="Frequency.php" hash="5115fb39b48781e5e97f9b62414a72cc"/><file name="IpnActive.php" hash="b73000f5bfc1e26b80911e125e9eec46"/><file name="Language.php" hash="6091a70bddec2c2a4812fff3e8cd09ca"/><file name="PaymentAction.php" hash="6d0c15996ec3caf112d88e07ea703bb4"/><file name="Region.php" hash="8f5cc8ab970aa165e16085368b320f89"/></dir><file name="Observer.php" hash="ae33bf5b7804c8588f07dc120622fd19"/><dir name="Payment"><file name="Abstract.php" hash="857638e7fc74f9cf5247d337ef41b0e4"/><dir name="Advanced"><file name="Sandbox.php" hash="10e80bd587f2d27fc97bb6e595936b82"/></dir><file name="Advanced.php" hash="15c5dde1d3a82a9bdf01e1681c47ec3b"/></dir><dir name="Processor"><file name="Ipn.php" hash="d0541388acac591e34efd7b75dcd0b57"/><file name="Order.php" hash="3ddf2d38dcdbf47660b569d14450b8c1"/><file name="Payment.php" hash="c45716ba65ed2148362aa2b96d0e5c6f"/><file name="TransactionAdapter.php" hash="2a9e7dee746f1465c7cde39afafeff9e"/></dir><dir name="Service"><file name="Login.php" hash="99f99ff273e0cb6dea7b2053702bf323"/><file name="Quote.php" hash="d566370281e690ca31f3ddd47c21ef1d"/></dir><file name="Simulator.php" hash="553bb0c0ca3c74202083b366f4c33e9a"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="DataPolling"><file name="Cron.php" hash="c3d3009775702bee14da3695f0d41f68"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DebugController.php" hash="28e0ddedf23912140158d100339bdbe8"/><file name="DocumentationController.php" hash="4e214386e032b2e513dda5a26344fd87"/><dir name="Log"><file name="ApiController.php" hash="e0a9181f57223d3ba722982572c1d003"/><file name="ExceptionController.php" hash="5daaa04ec6479396edfb1f62910f4ad3"/><file name="IpnController.php" hash="f00870c68a6b18d460c59d0b76d4a67d"/></dir><file name="OrderController.php" hash="cae5700331ca6aa6f26b78314c3507d9"/><file name="SystemController.php" hash="8f93ad1e95d4d4b86af77a1fd6b10f87"/></dir><dir name="Advanced"><file name="CheckoutController.php" hash="2f80227774f7fac74b545ef47030423d"/><file name="IpnController.php" hash="78277323844f97a30b6531aa331eef86"/><file name="LoginController.php" hash="2d6d0d201c1ff4bcdeb9a1c19372a888"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2dc1b70997469f8f0cd6a80eff845842"/><file name="config.xml" hash="4bb47eb6b3794fa16e63d00f4f7030cd"/><file name="system.xml" hash="9f76f8660c04b5796688275341d719bb"/></dir><dir name="sql"><dir name="amazonpayments_setup"><file name="mysql4-install-1.0.0.php" hash="d4681b9a39905cc9e9dcc660688dea85"/><file name="mysql4-install-1.6.2.php" hash="6bb2b8656a3c6b2b517b88ca98ff84de"/><file name="mysql4-upgrade-1.1.6-1.2.0.php" hash="27f8e108bac4268d3c17e812b413dbbc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="4bc12228bba39bd925ed129d7cf64258"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="advanced"><file name="documentation.phtml" hash="af3ae6ebce4712dd8fb972bef508ca55"/><dir name="log"><dir name="api"><file name="view.phtml" hash="92e2a91aa6f25e20fe8e89bad751e8cf"/></dir><dir name="exception"><file name="view.phtml" hash="c5d01f6de86e47d4da5dfabd60b1b382"/></dir><file name="js.phtml" hash="eb1d2098440a0bac2a6f5b959afa3693"/><dir name="notification"><file name="view.phtml" hash="31d893106f7c7c7f94f05d5cafa36440"/></dir></dir></dir><dir name="debug"><dir name="section"><file name="table.phtml" hash="f4bb8e35b3608cf0639407a3461c3717"/></dir><file name="section.phtml" hash="1472da0e9f07b5583a02e327483d4d75"/></dir><file name="debug.phtml" hash="9748d4fe92986f36ad47ae5b61fc4883"/><file name="info.phtml" hash="8f58e70d3d5974c60d182450b424e521"/><file name="init.phtml" hash="ba9d53045077e63b4e6c25c6b7bb685c"/><dir name="payment"><file name="info.phtml" hash="1604a1ca8c640748023859dee07f1182"/><dir name="pdf"><file name="info.phtml" hash="1fb213f3fcc3aeecaa6305c07cff3b73"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="amazonpayments.xml" hash="7c1c1fc8f1476bb000c6b5cd60a46814"/></dir><dir name="template"><dir name="creativestyle"><dir name="amazonpayments"><dir name="button"><file name="js.phtml" hash="3142375878bb43893393ee3499ad9804"/></dir><dir name="checkout"><file name="capture_notice.phtml" hash="f9c75cd05a596d0a16c55f0169b4ee6c"/><file name="js.phtml" hash="e0f950d4b6c1bd8cf790c90527b51109"/><dir name="review"><file name="button.phtml" hash="5fa9b038cc1e91a8203b163411b8bf20"/></dir><file name="sandbox_toolbox.phtml" hash="b1a346f095d83223914e65024f56d19f"/><file name="shipping_method.phtml" hash="852008f89fc32c7af6c250cafdde5f51"/></dir><file name="checkout.phtml" hash="6873b347a7e10b3b5c35fda1b48345b1"/><file name="js.phtml" hash="13581f0bcdf7c39da46be530892e8183"/><dir name="login"><dir name="button"><file name="account_login.phtml" hash="0ce9b9d891af3f6c5b1c83a17d311e6b"/></dir><file name="button.phtml" hash="b5d66280337ecc895ae9a2bc48c469e4"/><dir name="form"><file name="account_confirm.phtml" hash="cff4c9f656b2e790bd65723d4e2042b9"/><file name="account_update.phtml" hash="64fdc50df3b3c49384d5d50a1da82d4d"/></dir><file name="js.phtml" hash="9d542e726fe51739b72fc2e509edadd8"/><file name="logout.phtml" hash="e8b6f4d39047903e4ee8d481ba59543b"/><file name="redirect.phtml" hash="8d395ab25504c0cdb928cf93e684b868"/></dir><dir name="onepage"><file name="button.phtml" hash="95e053ca57f36df23180af93b77a6557"/></dir><dir name="pay"><file name="button.phtml" hash="dfcccab45794c81d2d3ca52f709019d4"/></dir><dir name="payment"><file name="info.phtml" hash="3631896707e596d9675f526a7d021617"/><dir name="pdf"><file name="info.phtml" hash="69549bf3340c19d62f42a556f13e8a1e"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creativestyle_AmazonPayments.xml" hash="3d30f68b24829494a2a66164eba0e5f7"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Creativestyle_AmazonPayments.csv" hash="44b6d7e9ac51526a199590aa151bb551"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="ad694ba24051f779698d483bc32d9b75"/></dir></dir></dir><dir name="en_GB"><file name="Creativestyle_AmazonPayments.csv" hash="528785a3492164ef628b8dd7f938bd4d"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="1a933579acb1fbb3d78ae47ca990521b"/></dir></dir></dir><dir name="de_DE"><file name="Creativestyle_AmazonPayments.csv" hash="6ee3ad44ced41ee6a66d4cca86a3c7b9"/><dir name="template"><dir name="email"><file name="amazon_payments_failed.html" hash="4879ccbfbea101548700da52b058bd0b"/></dir></dir></dir><dir name="es_ES"><file name="Creativestyle_AmazonPayments.csv" hash="14ac8865152bd798bcb16623292fa4b6"/></dir><dir name="fr_FR"><file name="Creativestyle_AmazonPayments.csv" hash="0b9a0075698e4e8d4e67a68879d2fa36"/></dir><dir name="it_IT"><file name="Creativestyle_AmazonPayments.csv" hash="ffa3e0ca21b53775df15776f371855e9"/></dir></target><target name="mage"><dir name="js"><dir name="creativestyle"><file name="apa_checkout.min.js" hash="c1aabf2578d462973c0debfebea7162a"/><file name="apa_sandbox_toolbox.min.js" hash="9c04a2cae7d749b99e70036676e57019"/><dir name="vendors"><file name="prism.js" hash="c700de3d980f7ef1e056dc5400acfd44"/></dir><file name="apa_checkout.js" hash="c0e4c26f75855f241841fd455c5f90f5"/></dir></dir></target><target name="magelib"><dir name="OffAmazonPayments"><dir name="HttpRequest"><file name="HttpException.php" hash="d2feba35467baa6ff61503bb15d5f016"/><file name="IHttpRequest.php" hash="7c7d44deffb15b2db161d8dfc585c4d2"/><file name="IHttpRequestFactory.php" hash="02c9cfe067cd0ae40f14704d58fa2098"/><dir name="Impl"><file name="HttpRequestCurlImpl.php" hash="815a03cc4b5fc1222e0bc9b9f85f3428"/><file name="HttpRequestFactoryCurlImpl.php" hash="09140d0c9518e0e7c1bffb8bd0c98310"/></dir></dir><file name="Model.php" hash="778dfe809587f010352d9ccd2bed8106"/><file name="OffAmazonPaymentsServiceUtils.php" hash="827a9e9f2b04652736406b1cd9672a2c"/></dir><dir name="OffAmazonPaymentsNotifications"><file name="Client.php" hash="a8bfa462188eb5193985e984ff503b04"/><dir name="Impl"><file name="Certificate.php" hash="33aec53879fff368b0f6f52ce7f79f13"/><file name="IpnNotificationParser.php" hash="3f4e203c89d23c2971214a7e0713f6a9"/><file name="Message.php" hash="6cffc2f4b4c09a8411572cdb7ddcc83a"/><file name="OpenSslVerifySignature.php" hash="621bb7e9660d079f53b6ac567fd361e7"/><file name="SnsMessageParser.php" hash="c6d1b0bfa852441b4ddfdc25cf624c9d"/><file name="SnsMessageValidator.php" hash="7291f2b91f0dc9ace62752c37b69d15f"/><file name="VerifySignature.php" hash="b7c3089f35fba596e16f6f39f7029908"/><file name="XmlNotificationParser.php" hash="a6b6ff48de5cee20db383a2a6c953092"/></dir><file name="Interface.php" hash="3930f956058657059e2ea705fc43333d"/><file name="InvalidCertificateException.php" hash="4711c0ea7b574a8ab3fb04623b2f7453"/><file name="InvalidMessageException.php" hash="c9608c6ecfafeae2db9db9e8786f2a15"/><dir name="Model"><file name="AuthorizationDetails.php" hash="c5e85494dd4b21c49c1d786bf38879da"/><file name="AuthorizationNotification.php" hash="490fd1da11270f9af20a6ca0d87b8149"/><file name="BillingAgreement.php" hash="00f24d00547ddb3320a20f77132feb0e"/><file name="BillingAgreementLimits.php" hash="e972154534547bde777133c2de1e835f"/><file name="BillingAgreementNotification.php" hash="c5ee60508326e840ce02765b175897aa"/><file name="BillingAgreementStatus.php" hash="68da18941f6cc8b17a9157c83e550c0c"/><file name="CaptureDetails.php" hash="f8702f3d5d5afd595814182f847367c5"/><file name="CaptureNotification.php" hash="8d4da47b23888f3cfd94fe9d217c46da"/><file name="IdList.php" hash="4d77007c611ba2a990179ecf506d4ac7"/><file name="IpnNotificationMetadata.php" hash="802e724b1cc35eae31e4aa9288446b8f"/><file name="MerchantRegistrationDetails.php" hash="d4de7689d8e216567abd710dde7ef4ed"/><file name="NotificationImpl.php" hash="17205cb366af769c0563d80ee82de067"/><file name="NotificationMetadataImpl.php" hash="27bdabd2ae04ab753e60b0ab3042859c"/><file name="OrderItemCategories.php" hash="ac5edd66a87e28f1e0a4be758e3d7b8c"/><file name="OrderReference.php" hash="3ff8f8729cc3e398823061b73d8d2789"/><file name="OrderReferenceNotification.php" hash="4b6a0e68f77ff7b710fe00916d5b0546"/><file name="OrderReferenceStatus.php" hash="e09fc390fb5c21afd4764c41dd7418c0"/><file name="OrderTotal.php" hash="ce3157db8b593588c9405030968176a5"/><file name="Price.php" hash="cff064218bbb2d56f463ab489dc907cd"/><file name="ProviderCreditDetails.php" hash="d355185842eb0816de151fb535b14edc"/><file name="ProviderCreditNotification.php" hash="7ddc5d80dee797893171237ecabf10e2"/><file name="ProviderCreditReversalDetails.php" hash="a789bbf3c7074bc800053967e64286c7"/><file name="ProviderCreditReversalNotification.php" hash="56479587ee330013bdffe17719d0edec"/><file name="ProviderCreditReversalSummary.php" hash="577971d363b95fd7a73e8cd4995a240c"/><file name="ProviderCreditReversalSummaryList.php" hash="05ae0f9769e4c46e5c3ba3f9907ae576"/><file name="ProviderCreditSummary.php" hash="4403e12b73867b58021655df3fcf6720"/><file name="ProviderCreditSummaryList.php" hash="667167ed6a427d71086aa4ef8dabc5f5"/><file name="RefundDetails.php" hash="ae08c0447ec12996a465772d55f2c28f"/><file name="RefundNotification.php" hash="fb29285214205fd09c4f9ac7964c1a07"/><file name="SellerBillingAgreementAttributes.php" hash="691b120995ac30f3f542c3ec9cd6c0d6"/><file name="SellerOrderAttributes.php" hash="896cf700231529f39e903d4614579a85"/><file name="SnsNotificationMetadata.php" hash="df453726f714f7ea50cc04b6093123eb"/><file name="SolutionProviderMerchantNotification.php" hash="77e4152a922f1a26582e46546387943d"/><file name="SolutionProviderOption.php" hash="df8fbbb1ad2fef1796e3b42a9a417a64"/><file name="SolutionProviderOptions.php" hash="624d2f4efd3a32eab8baf8628efda4ef"/><file name="Status.php" hash="8726fde00e0f97595115866c1a8000dd"/></dir><file name="Notification.php" hash="562b2a4eb6e292b6df4db3112391ab55"/><file name="NotificationMetadata.php" hash="07f94bf3a41ed0c72f387e900260c48a"/></dir><dir name="OffAmazonPaymentsService"><file name="Client.php" hash="284bf51c42442c51a62e8d76ecd900ef"/><file name="Environments.php" hash="1a9ff744e131c19f5bd0d58c5aa578ab"/><file name="Exception.php" hash="eee23053020a397cf082a28f41001284"/><file name="Interface.php" hash="b681a546f2a5e3690e5e04f9c75ca8a5"/><file name="MerchantValues.php" hash="2cca67c2b1b0557e5a63d4ef35950172"/><file name="MerchantValuesBuilder.php" hash="a6328566f8f5ee48a8b054d8f02897e1"/><dir name="Model"><file name="Address.php" hash="6840237ae7035912f95020ff6d580033"/><file name="AuthorizationDetails.php" hash="159edfb213e12b7ecb847c103c70c5de"/><file name="AuthorizeOnBillingAgreementRequest.php" hash="8b0e8d6ffa94b1f18546b7554ec042ed"/><file name="AuthorizeOnBillingAgreementResponse.php" hash="8770715da01743adeafc25d54bb0c1d9"/><file name="AuthorizeOnBillingAgreementResult.php" hash="a73c77f8fce673257e2dca072ad6fab6"/><file name="AuthorizeRequest.php" hash="08bdab4fe2896f4a2b808c6e8abfeeba"/><file name="AuthorizeResponse.php" hash="0ae054040c36e7362683146b537f551b"/><file name="AuthorizeResult.php" hash="e7dfd388200467e736ff3b7d11c8d2bf"/><file name="BillingAddress.php" hash="93f82f074b62e8b1abf25ae8ae44b676"/><file name="BillingAgreementAttributes.php" hash="e52a2c92f92f7081ac742e24f70385df"/><file name="BillingAgreementDetails.php" hash="359f9bd686d21242f2e27feb8b3379b2"/><file name="BillingAgreementLimits.php" hash="66f84e67052b91092867496d11a28763"/><file name="BillingAgreementStatus.php" hash="adcf9379fb2f6fa88a1d8e230d8cf101"/><file name="Buyer.php" hash="cb691abf757d54025ac43964849dd5fd"/><file name="CancelOrderReferenceRequest.php" hash="ef06ecd8f05a4c032aa28f5b5a132d05"/><file name="CancelOrderReferenceResponse.php" hash="004c4e3a21ea1dc8e11bbba3d733b3ca"/><file name="CancelOrderReferenceResult.php" hash="74b7ad1facdf31263e9bb55544303180"/><file name="CaptureDetails.php" hash="4f360221d888d50d92e7f2ea20b5b54f"/><file name="CaptureRequest.php" hash="5b976a76214f870964d49cf104a50b30"/><file name="CaptureResponse.php" hash="7ece74f93f362d31bc16f9fb7bf2b270"/><file name="CaptureResult.php" hash="e0fccf0fe27efd36d822ddcdaefe97ac"/><file name="CloseAuthorizationRequest.php" hash="cb0e2113e9e36b7b133b539e5ff99c50"/><file name="CloseAuthorizationResponse.php" hash="99be7612c9effdac53fb0bc225a13eb1"/><file name="CloseAuthorizationResult.php" hash="6d77eea8924d2ef6a3acd0dabb3f9f76"/><file name="CloseBillingAgreementRequest.php" hash="89f82b30dd0902faa6feb3a57dfe24cb"/><file name="CloseBillingAgreementResponse.php" hash="1bda191dc9a8b2b1a14b6e11772f05cf"/><file name="CloseBillingAgreementResult.php" hash="f926f5d65d95323647129605a26037ae"/><file name="CloseOrderReferenceRequest.php" hash="b8b592bdc71a4046efead52196f8073c"/><file name="CloseOrderReferenceResponse.php" hash="137da00395052b25099de3a0d152887d"/><file name="CloseOrderReferenceResult.php" hash="81e21f75ae477f07a9b913e1ac2bd89d"/><file name="ConfirmBillingAgreementRequest.php" hash="ab524aa1cc6e51a8b483e4f96b7e1e02"/><file name="ConfirmBillingAgreementResponse.php" hash="0639de39ba58e6c2b806a84b43dc31d3"/><file name="ConfirmBillingAgreementResult.php" hash="42456915a3efa4ccd774a1d5d3a05307"/><file name="ConfirmOrderReferenceRequest.php" hash="632a4b8414aac550fc0ec59a83737be7"/><file name="ConfirmOrderReferenceResponse.php" hash="fb0c329ffa1a54e4c15c531b58561f6f"/><file name="Constraint.php" hash="e46dc3d18486b6639ea5b8f52a92cfdc"/><file name="Constraints.php" hash="cb983d71bda42bdda767ffc9f4feeafc"/><file name="CreateOrderReferenceForIdRequest.php" hash="b1f4e96f1392c427228f5799edc5dc64"/><file name="CreateOrderReferenceForIdResponse.php" hash="630cb4812997fa7c067f393dfb5e2f48"/><file name="CreateOrderReferenceForIdResult.php" hash="4abf7af5eb56058c17996406a877f427"/><file name="Destination.php" hash="737777909588915788398ab86f0de1de"/><file name="Error.php" hash="bb8b6bb6d3c778fc4e1d0a346b5fa03a"/><file name="ErrorResponse.php" hash="8804c6f39d9a0bdcbd76260eba9d261d"/><file name="GetAuthorizationDetailsRequest.php" hash="67d5a478c01fbbfba420dff3cf2098dc"/><file name="GetAuthorizationDetailsResponse.php" hash="0c9fe935bcb953cc9cd9e11bab32b5b2"/><file name="GetAuthorizationDetailsResult.php" hash="02ac4fa6533ccfd705c543160165c31d"/><file name="GetBillingAgreementDetailsRequest.php" hash="761cbdc44a4ac1e28b22d01f7a484b76"/><file name="GetBillingAgreementDetailsResponse.php" hash="061084469683253d1d76d5c881e5062d"/><file name="GetBillingAgreementDetailsResult.php" hash="5a585ad373b11b806ba320bcd988f71b"/><file name="GetCaptureDetailsRequest.php" hash="69252be80c32d911f2ff664904375e7d"/><file name="GetCaptureDetailsResponse.php" hash="5323ed86174064bb1122187457440861"/><file name="GetCaptureDetailsResult.php" hash="962ef27de2778c9ccde55d848b8fa649"/><file name="GetOrderReferenceDetailsRequest.php" hash="edfea06a629f298ab134229d35fef319"/><file name="GetOrderReferenceDetailsResponse.php" hash="4955733fe736a9f51e0bd6823b8bf74b"/><file name="GetOrderReferenceDetailsResult.php" hash="f9ee3738bddff51c6bd545028d275348"/><file name="GetProviderCreditDetailsRequest.php" hash="e51201c7d39935c4fa8da96e822b7075"/><file name="GetProviderCreditDetailsResponse.php" hash="e312b54192343e16230b7436b101766a"/><file name="GetProviderCreditDetailsResult.php" hash="9f0af601e8a716e4e5af3802d8952fe4"/><file name="GetProviderCreditReversalDetailsRequest.php" hash="cf74576ef8dc02e34244aca962d854b3"/><file name="GetProviderCreditReversalDetailsResponse.php" hash="a869c2695416514834c83890d3b080f9"/><file name="GetProviderCreditReversalDetailsResult.php" hash="33f1980d1632034eee8396c6286b5320"/><file name="GetRefundDetailsRequest.php" hash="7ab0f7d756a59a284ffd0ffc361fee42"/><file name="GetRefundDetailsResponse.php" hash="4847a7513f69d3f81c306d26ad7c5291"/><file name="GetRefundDetailsResult.php" hash="0c24e3c8e95f4ee10f5c4e9dd07518bf"/><file name="IdList.php" hash="25fd15394669b4721bdd0e4d367d534f"/><file name="OrderItemCategories.php" hash="995db32a92601555ee9a7550d1daae7e"/><file name="OrderReferenceAttributes.php" hash="78e1735d8fc99c5676d894564d6b88c7"/><file name="OrderReferenceDetails.php" hash="4e9365808e09fe1b1407348c9d05ca41"/><file name="OrderReferenceStatus.php" hash="5c21e44d991a24ab2527e491c435d54c"/><file name="OrderTotal.php" hash="2ff8e8ccc9c7266d72f534485ccd01bf"/><file name="ParentDetails.php" hash="99f7062b4764166637dfc44b4fe4788c"/><file name="Price.php" hash="4ac8de3791146a17a237a914c9f762a6"/><file name="ProviderCredit.php" hash="8f2f21ac5c0dba73e64a35cc7a61fbbe"/><file name="ProviderCreditDetails.php" hash="d9057efbe528a1571eda4252b8ad1813"/><file name="ProviderCreditList.php" hash="4a3eeae90b5a1ed09a528f5254b968a5"/><file name="ProviderCreditReversal.php" hash="07c1d7959a7cfb94164846c276b43ce7"/><file name="ProviderCreditReversalDetails.php" hash="ebfbf919b4a399213c7e312e59873e43"/><file name="ProviderCreditReversalList.php" hash="8eb64497a6a233535c8b0ca55591d06b"/><file name="ProviderCreditReversalSummary.php" hash="7646c582ea5fb3a46dcb09637f7daf01"/><file name="ProviderCreditReversalSummaryList.php" hash="cae281ddee9f766d1d5bf350e238037a"/><file name="ProviderCreditSummary.php" hash="69bc18eefe644e6b851a6daf7e6dfa8a"/><file name="ProviderCreditSummaryList.php" hash="751812d8903ba883036d1bc381c37667"/><file name="RefundDetails.php" hash="b53e480fe8e8e5d96a4b6a0df431e5ac"/><file name="RefundRequest.php" hash="665585551aba39532fe3352abb4859b3"/><file name="RefundResponse.php" hash="fadbc4ad5313395a48e38b1c0502c85a"/><file name="RefundResult.php" hash="9ddad34dd53edfd156651b021bc5137a"/><file name="ResponseHeaderMetadata.php" hash="382fe7bd666eea293b729c5d6c79348f"/><file name="ResponseMetadata.php" hash="073748a20ecd8bddc240dd4c0a4a56b9"/><file name="ReverseProviderCreditRequest.php" hash="802a3709149add8fa192ce389b93c2ea"/><file name="ReverseProviderCreditResponse.php" hash="ff702a7def546f0c6216094f93095bd7"/><file name="ReverseProviderCreditResult.php" hash="84f3e78e1b8b1b47e6f8b92abee7704b"/><file name="SellerBillingAgreementAttributes.php" hash="308899b9e48a95f0b5d48d74a510c915"/><file name="SellerOrderAttributes.php" hash="35b62fe0e130207dfaa2caefa1dfe7ba"/><file name="SetBillingAgreementDetailsRequest.php" hash="347a6c85c5cc8394255efcb9c4b57d52"/><file name="SetBillingAgreementDetailsResponse.php" hash="92299b3338dc7435149f17d8126f7518"/><file name="SetBillingAgreementDetailsResult.php" hash="7cb3e84e58fe2bbf163f8ac34de5eccf"/><file name="SetOrderReferenceDetailsRequest.php" hash="4cf2605f5188116a1526d463638aa768"/><file name="SetOrderReferenceDetailsResponse.php" hash="41720bdf965dcd759cc3278e01610530"/><file name="SetOrderReferenceDetailsResult.php" hash="4281a97da7865e47157c1d22c2094bfd"/><file name="Status.php" hash="28bd007e6c9747417a063e9941cc0dba"/><file name="ValidateBillingAgreementRequest.php" hash="d77beda441fd1688903e96a02fa4e643"/><file name="ValidateBillingAgreementResponse.php" hash="89658fd2a78d7dbb2997dae6ba169f7e"/><file name="ValidateBillingAgreementResult.php" hash="b9244d0496b0bbcfbf7628c775c17ca3"/></dir><file name="Model.php" hash="fafcb3a4318eb7bd9be5b69225187352"/><file name="RegionSpecificProperties.php" hash="15c3230c1c27627b53488e110002d47b"/><file name="Regions.php" hash="4676d77db7dde345118e2a6fc021ce3f"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="a1f07a48b8de6d1fa9391a4eed2f12be"/><file name="amazonpayments-highlight.css" hash="f6daf03c989ac56ad436300b5520f0df"/></dir><dir name="images"><file name="amazon-payments-advanced-creativestyle-logo.png" hash="bb507d0085dab135ac313b8068515620"/><file name="amazon-payments-advanced-creativestyle-header-logo.png" hash="1f17fc7a61f8aaf929000d1d87f7d943"/><file name="amazon-payments-advanced-creativestyle-header-logo-white.png" hash="4ce4ba0d8d210a26caa380217804e200"/><file name="amazon-payments-advanced-header.png" hash="60f587870fbdb1242368c8c3b553bd8c"/><file name="amazon-payments-advanced-section.png" hash="8bc620f345eb46c920c51875d4cfad7c"/><file name="logo_a-glyph_16.png" hash="44a3f5f0013cab34d26653eb48b989fc"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments.css" hash="98669e803a468cc7e01d481ce1647a0e"/><file name="amazonpayments-widgets.css" hash="35704192aaeb204e407e8b853c118d16"/><file name="amazonpayments-responsive-widgets.css" hash="ffca5cdc8a4e0585946c78258044c471"/></dir><dir name="images"><file name="amazon-loading-large.gif" hash="5f6d83bf2b69ab73c7e48ec9b66d54db"/><file name="logo_a-glyph_1x.png" hash="5d44ca86985afbb2a47b9265053a456e"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="creativestyle"><dir name="css"><file name="amazonpayments-responsive-widgets.css" hash="389d23ee96bb5305f7ba5b616d930846"/></dir></dir></dir></dir></dir></target></contents>
|
24 |
<compatible/>
|
25 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>dom</name><min/><max/></extension><extension><name>curl</name><min/><max/></extension></required></dependencies>
|
26 |
</package>
|