├── NOTICE
├── Amazon MCF Magento Extension User Guide - Documentation.pdf
├── README.md
├── .github
└── PULL_REQUEST_TEMPLATE.md
├── app
├── etc
│ └── modules
│ │ └── Amazon_MCF.xml
├── design
│ ├── adminhtml
│ │ └── default
│ │ │ └── default
│ │ │ ├── layout
│ │ │ └── amazon_mcf.xml
│ │ │ └── template
│ │ │ └── amazon
│ │ │ └── system
│ │ │ └── config
│ │ │ └── credentials_button.phtml
│ └── frontend
│ │ └── base
│ │ └── default
│ │ └── layout
│ │ └── amazon
│ │ └── mcf.xml
└── code
│ └── community
│ └── Amazon
│ └── MCF
│ ├── etc
│ └── adminhtml.xml
│ ├── sql
│ └── amazonmcf_product_setup
│ │ ├── mysql4-upgrade-0.1.0-0.2.0.php
│ │ ├── mysql4-upgrade-0.3.0-0.4.0.php
│ │ ├── mysql4-install-0.1.0.php
│ │ └── mysql4-upgrade-0.2.0-0.3.0.php
│ ├── Block
│ ├── Adminhtml
│ │ └── System
│ │ │ └── Config
│ │ │ ├── Button.php
│ │ │ └── Button
│ │ │ └── Credentials.php
│ ├── Catalog
│ │ └── DeliveryEstimate.php
│ └── Sales
│ │ └── Order
│ │ └── Shipment
│ │ └── Create
│ │ └── Items.php
│ ├── Model
│ ├── System
│ │ └── Config
│ │ │ └── Source
│ │ │ └── Dropdown
│ │ │ └── Marketplaces.php
│ └── Service
│ │ ├── Abstract.php
│ │ └── Inventory.php
│ └── controllers
│ ├── AjaxController.php
│ └── McfController.php
└── lib
└── Amazon
├── FBAOutboundServiceMWS
├── Mock
│ ├── CancelFulfillmentOrderResponse.xml
│ ├── CreateFulfillmentOrderResponse.xml
│ ├── UpdateFulfillmentOrderResponse.xml
│ ├── GetServiceStatusResponse.xml
│ ├── ErrorResponse.xml
│ ├── ListReturnReasonCodesResponse.xml
│ ├── GetPackageTrackingDetailsResponse.xml
│ ├── CreateFulfillmentReturnResponse.xml
│ ├── ListAllFulfillmentOrdersResponse.xml
│ ├── ListAllFulfillmentOrdersByNextTokenResponse.xml
│ └── GetFulfillmentPreviewResponse.xml
├── Model
│ ├── ResponseMetadata.php
│ ├── GetFulfillmentPreviewResult.php
│ ├── ListReturnReasonCodesResult.php
│ ├── StringList.php
│ ├── FeeList.php
│ ├── FulfillmentMethodList.php
│ ├── NotificationEmailList.php
│ ├── ShippingSpeedCategoryList.php
│ ├── ReturnItemList.php
│ ├── TrackingEventList.php
│ ├── DeliveryWindowList.php
│ ├── CreateReturnItemList.php
│ ├── FulfillmentOrderList.php
│ ├── InvalidReturnItemList.php
│ ├── ReasonCodeDetailsList.php
│ ├── FulfillmentPreviewList.php
│ ├── FulfillmentShipmentList.php
│ ├── ReturnAuthorizationList.php
│ ├── FulfillmentOrderItemList.php
│ ├── FulfillmentPreviewItemList.php
│ ├── FulfillmentShipmentItemList.php
│ ├── UnfulfillablePreviewItemList.php
│ ├── GetFulfillmentPreviewItemList.php
│ ├── ResponseHeaderMetadata.php
│ ├── CreateFulfillmentOrderItemList.php
│ ├── FulfillmentPreviewShipmentList.php
│ ├── FulfillmentShipmentPackageList.php
│ └── UpdateFulfillmentOrderItemList.php
└── Samples
│ └── .config.inc.php
├── FBAInventoryServiceMWS
├── Mock
│ ├── GetServiceStatusResponse.xml
│ ├── ErrorResponse.xml
│ ├── ListInventorySupplyResponse.xml
│ └── ListInventorySupplyByNextTokenResponse.xml
├── Model
│ ├── ResponseMetadata.php
│ ├── SellerSkuList.php
│ ├── InventorySupplyList.php
│ ├── InventorySupplyDetailList.php
│ └── ResponseHeaderMetadata.php
└── Samples
│ └── .config.inc.php
├── MarketplaceWebServiceSellers
├── Mock
│ ├── ErrorResponse.xml
│ ├── GetServiceStatusResponse.xml
│ ├── ListMarketplaceParticipationsResponse.xml
│ └── ListMarketplaceParticipationsByNextTokenResponse.xml
├── Model
│ ├── ResponseMetadata.php
│ ├── MessageList.php
│ ├── ResponseHeaderMetadata.php
│ ├── ListMarketplaces.php
│ └── ListParticipations.php
├── Samples
│ └── .config.inc.php
└── Interface.php
└── MarketplaceWebServiceOrders
├── Mock
├── ErrorResponse.xml
└── GetServiceStatusResponse.xml
├── Model
├── ResponseMetadata.php
├── BuyerCustomizedInfoDetail.php
├── GetOrderResult.php
└── ResponseHeaderMetadata.php
└── Samples
└── .config.inc.php
/NOTICE:
--------------------------------------------------------------------------------
1 | Amazon MCF plugin for Magento 1
2 | Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 |
--------------------------------------------------------------------------------
/Amazon MCF Magento Extension User Guide - Documentation.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/amzn/amazon-mcf-plugin-for-magento-1/HEAD/Amazon MCF Magento Extension User Guide - Documentation.pdf
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Amazon MCF plugin for Magento 1
2 |
3 | Plugin code to enable Amazon MCF in Magento 1.
4 |
5 | ## License
6 |
7 | This library is licensed under the Apache 2.0 License.
8 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | *Issue #, if available:*
2 |
3 | *Description of changes:*
4 |
5 |
6 | By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
7 |
--------------------------------------------------------------------------------
/app/etc/modules/Amazon_MCF.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | true
6 | community
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/CancelFulfillmentOrderResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/CreateFulfillmentOrderResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/UpdateFulfillmentOrderResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/design/adminhtml/default/default/layout/amazon_mcf.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | amazon/sales/order/shipment/create/items.phtml
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Mock/GetServiceStatusResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 | 1969-07-21T02:56:03Z
6 |
7 |
8 | String
9 |
10 |
11 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/GetServiceStatusResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 | 1969-07-21T02:56:03Z
6 |
7 |
8 | String
9 |
10 |
11 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Mock/ErrorResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Sender
6 | string
7 | string
8 |
9 |
10 |
11 |
12 |
13 | string
14 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceOrders/Mock/ErrorResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Sender
6 | string
7 | string
8 |
9 |
10 |
11 |
12 |
13 | string
14 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Mock/ErrorResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Sender
6 | string
7 | string
8 |
9 |
10 |
11 |
12 |
13 | string
14 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/ErrorResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Sender
6 | string
7 | string
8 |
9 |
10 |
11 |
12 |
13 | string
14 |
--------------------------------------------------------------------------------
/app/design/frontend/base/default/layout/amazon/mcf.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | css/amazon/mcf.css
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceOrders/Mock/GetServiceStatusResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 | 1969-07-21T02:56:03Z
6 | String
7 |
8 |
9 | String
10 | String
11 |
12 |
13 |
14 |
15 | String
16 |
17 |
18 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Mock/GetServiceStatusResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 | 1969-07-21T02:56:03Z
6 | String
7 |
8 |
9 | String
10 | String
11 |
12 |
13 |
14 |
15 | String
16 |
17 |
18 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/ListReturnReasonCodesResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | String
7 | String
8 | String
9 |
10 |
11 |
12 |
13 | String
14 |
15 |
16 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Mock/ListMarketplaceParticipationsResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 | String
8 | String
9 | String
10 |
11 |
12 |
13 |
14 | String
15 | String
16 | String
17 | String
18 | String
19 | String
20 |
21 |
22 |
23 |
24 | String
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/etc/adminhtml.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Amazon MCF
13 | 1
14 |
15 |
16 | Amazon MCF Configuration
17 | 10
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Mock/ListMarketplaceParticipationsByNextTokenResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 | String
8 | String
9 | String
10 |
11 |
12 |
13 |
14 | String
15 | String
16 | String
17 | String
18 | String
19 | String
20 |
21 |
22 |
23 |
24 | String
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/sql/amazonmcf_product_setup/mysql4-upgrade-0.1.0-0.2.0.php:
--------------------------------------------------------------------------------
1 | startSetup();
23 |
24 | $fba_attr = array (
25 | 'label' => 'Fulfilled By Amazon',
26 | 'type' => 'varchar',
27 | 'user_defined' => false,
28 | 'input' => 'select',
29 | 'source' => 'eav/entity_attribute_source_boolean',
30 | 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
31 | 'required' => false,
32 | 'visible' => true,
33 | 'default' => false,
34 |
35 | );
36 |
37 | $installer->addAttribute('order', 'fulfilled_by_amazon', $fba_attr);
38 |
39 | $installer->endSetup();
40 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/Block/Adminhtml/System/Config/Button.php:
--------------------------------------------------------------------------------
1 | getUrl('adminhtml/mcf/sync');
30 |
31 | $html = $this->getLayout()->createBlock('adminhtml/widget_button')
32 | ->setType('button')
33 | ->setClass('scalable')
34 | ->setLabel('Start Sync')
35 | ->setOnClick("setLocation('$url')")
36 | ->toHtml();
37 |
38 |
39 | return $html;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/GetPackageTrackingDetailsResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1
5 | String
6 | String
7 | String
8 | String
9 | 1969-07-21T02:56:03Z
10 | 1969-07-21T02:56:03Z
11 |
12 | String
13 | String
14 | String
15 |
16 | String
17 | String
18 | String
19 |
20 |
21 | 1969-07-21T02:56:03Z
22 |
23 | String
24 | String
25 | String
26 |
27 | String
28 |
29 |
30 |
31 |
32 | String
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/design/adminhtml/default/default/template/amazon/system/config/credentials_button.phtml:
--------------------------------------------------------------------------------
1 |
18 |
19 |
45 |
46 | getButtonHtml() ?>
47 |
48 |
49 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/Block/Catalog/DeliveryEstimate.php:
--------------------------------------------------------------------------------
1 | product = Mage::registry('current_product');
33 | }
34 |
35 | /**
36 | * Check if Amazon Carrier is enabled and the product is configured to be
37 | * fulfilled by Amazon
38 | *
39 | * @return bool
40 | */
41 | public function isFBAEnabled()
42 | {
43 | $helper = Mage::helper('amazon_mcf');
44 | $enabled = false;
45 | if ($helper->getDisplayDeliveryEstimatorPdp()
46 | && $this->product->getAmazonMcfEnabled()
47 | ) {
48 | $enabled = true;
49 | }
50 |
51 | return $enabled;
52 | }
53 |
54 | /**
55 | * @return mixed
56 | */
57 | public function getProductId()
58 | {
59 | return $this->product->getId();
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Mock/ListInventorySupplyResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 | String
8 | String
9 | String
10 | String
11 | 1
12 | 1
13 |
14 | String
15 | 1969-07-21T02:56:03Z
16 |
17 |
18 |
19 | 1
20 | String
21 |
22 | String
23 | 1969-07-21T02:56:03Z
24 |
25 |
26 | String
27 | 1969-07-21T02:56:03Z
28 |
29 |
30 |
31 |
32 |
33 | String
34 |
35 |
36 | String
37 |
38 |
39 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/sql/amazonmcf_product_setup/mysql4-upgrade-0.3.0-0.4.0.php:
--------------------------------------------------------------------------------
1 | startSetup();
23 |
24 | $orderStatusAttr = array (
25 | 'label' => 'Amazon Order Status',
26 | 'type' => 'varchar',
27 | 'user_defined' => false,
28 | 'input' => 'text',
29 | 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
30 | 'required' => false,
31 | 'visible' => true,
32 | 'default' => false,
33 |
34 | );
35 |
36 | $submissionAttemptAttr = array (
37 | 'label' => 'Amazon Order Submission Attempt Count',
38 | 'type' => 'varchar',
39 | 'user_defined' => false,
40 | 'input' => 'text',
41 | 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
42 | 'required' => false,
43 | 'visible' => false,
44 | 'default' => false,
45 |
46 | );
47 |
48 | $installer->addAttribute(
49 | 'order',
50 | 'amazon_order_status',
51 | $orderStatusAttr
52 | );
53 |
54 | $installer->addAttribute(
55 | 'order',
56 | 'amazon_order_submission_attempt_count',
57 | $submissionAttemptAttr
58 | );
59 |
60 | $installer->endSetup();
61 |
62 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Mock/ListInventorySupplyByNextTokenResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 | String
8 | String
9 | String
10 | String
11 | 1
12 | 1
13 |
14 | String
15 | 1969-07-21T02:56:03Z
16 |
17 |
18 |
19 | 1
20 | String
21 |
22 | String
23 | 1969-07-21T02:56:03Z
24 |
25 |
26 | String
27 | 1969-07-21T02:56:03Z
28 |
29 |
30 |
31 |
32 |
33 | String
34 |
35 |
36 | String
37 |
38 |
39 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/sql/amazonmcf_product_setup/mysql4-install-0.1.0.php:
--------------------------------------------------------------------------------
1 | startSetup();
24 |
25 | $enabled_attr = array (
26 | 'label' => 'Amazon Multi-Channel Fulfillment Enabled',
27 | 'type' => 'varchar',
28 | 'user_defined' => false,
29 | 'input' => 'select',
30 | 'source' => 'eav/entity_attribute_source_boolean',
31 | 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
32 | 'required' => false,
33 | 'default' => false,
34 | 'apply_to' => Mage_Catalog_Model_Product_Type::TYPE_SIMPLE,
35 | );
36 |
37 | $sku_attr = array (
38 | 'label' => 'Amazon SKU Override',
39 | 'type' => 'text',
40 | 'user_defined' => false,
41 | 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
42 | 'required' => false,
43 | 'apply_to' => Mage_Catalog_Model_Product_Type::TYPE_SIMPLE,
44 | );
45 |
46 | $installer->addAttribute(
47 | Mage_Catalog_Model_Product::ENTITY,
48 | 'amazon_mcf_enabled',
49 | $enabled_attr
50 | );
51 |
52 | $installer->addAttribute(
53 | Mage_Catalog_Model_Product::ENTITY,
54 | 'amazon_mcf_sku',
55 | $sku_attr
56 | );
57 |
58 | $installer->endSetup();
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/Model/System/Config/Source/Dropdown/Marketplaces.php:
--------------------------------------------------------------------------------
1 | 'CA', 'label' => 'Canada'),
32 | array('value' => 'MX', 'label' => 'Mexico'),
33 | array('value' => 'US', 'label' => 'United States'),
34 | array('value' => 'BR', 'label' => 'Brazil'),
35 | array('value' => 'DE', 'label' => 'Germany'),
36 | array('value' => 'ES', 'label' => 'Spain'),
37 | array('value' => 'FR', 'label' => 'France'),
38 | array('value' => 'IT', 'label' => 'Italy'),
39 | array('value' => 'UK', 'label' => 'United Kingdom'),
40 | array('value' => 'IN', 'label' => 'India'),
41 | array('value' => 'AU', 'label' => 'Australia'),
42 | array('value' => 'JP', 'label' => 'Japan'),
43 | array('value' => 'CN', 'label' => 'China'),
44 | array('value' => 'custom', 'label' => 'Custom'),
45 | );
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/Block/Adminhtml/System/Config/Button/Credentials.php:
--------------------------------------------------------------------------------
1 | setTemplate('amazon/system/config/credentials_button.phtml');
31 | }
32 |
33 | /**
34 | * @inheritdoc
35 | */
36 | protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
37 | {
38 | return $this->_toHtml();
39 | }
40 |
41 | /**
42 | * @return string
43 | */
44 | public function getAjaxValidateUrl()
45 | {
46 | return $this->getUrl('adminhtml/mcf/validateCredentials');
47 | }
48 |
49 | /**
50 | * @return mixed
51 | */
52 | public function getButtonHtml()
53 | {
54 | $html = $this->getLayout()->createBlock('adminhtml/widget_button')
55 | ->setType('button')
56 | ->setClass('scalable')
57 | ->setLabel($this->helper('adminhtml')->__('Validate Credentials'))
58 | ->setOnClick("javascript:validateCredentials(); return false;")
59 | ->toHtml();
60 |
61 | return $html;
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/Block/Sales/Order/Shipment/Create/Items.php:
--------------------------------------------------------------------------------
1 | isEnabled() && $helper->getCarrierEnabled();
31 | }
32 |
33 | /**
34 | * Prints warning message for use with JavaScript flag.
35 | *
36 | * @return string
37 | */
38 | public function getFBAWarningMessage()
39 | {
40 | if ($this->FBAEnabled()) {
41 | return __(
42 | 'This item will be updated as shipped after FBA shipping
43 | completed, are you sure you want to manually ship
44 | this item in Magento?'
45 | );
46 | }
47 |
48 | return '';
49 | }
50 |
51 | /**
52 | * Flags a shipment item row with class indicating it is fulfilled by Amazon
53 | *
54 | * @param $item
55 | *
56 | * @return string
57 | */
58 | public function isFBAItem($item)
59 | {
60 |
61 | if ($this->FBAEnabled()) {
62 |
63 | $product = Mage::getModel('catalog/product')
64 | ->load($item->getProductId());
65 |
66 |
67 | if ($product->getAmazonMcfEnabled()) {
68 | return ' isFBA';
69 | }
70 |
71 | }
72 |
73 | return '';
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/sql/amazonmcf_product_setup/mysql4-upgrade-0.2.0-0.3.0.php:
--------------------------------------------------------------------------------
1 | startSetup();
23 |
24 | $inventorySyncVar = Mage::getModel('core/variable')
25 | ->setCode(Amazon_MCF_Helper_Data::CORE_VAR_INVENTORY_SYNC_TOKEN)
26 | ->setName('Amazon MCF Inventory Sync Token')
27 | ->setPlainValue('')
28 | ->save();
29 |
30 | $inventorySyncPageVar = Mage::getModel('core/variable')
31 | ->setCode(Amazon_MCF_Helper_Data::CORE_VAR_INVENTORY_SYNC_PAGE)
32 | ->setName('Amazon MCF Inventory Sync Page')
33 | ->setPlainValue('')
34 | ->save();
35 |
36 | $inventorySyncRunningVar = Mage::getModel('core/variable')
37 | ->setCode(Amazon_MCF_Helper_Data::CORE_VAR_INVENTORY_SYNC_RUNNING)
38 | ->setName('Amazon MCF Inventory Sync Running')
39 | ->setPlainValue('')
40 | ->save();
41 |
42 | $orderSyncVar = Mage::getModel('core/variable')
43 | ->setCode(Amazon_MCF_Helper_Data::CORE_VAR_ORDER_SYNC_TOKEN)
44 | ->setName('Amazon MCF Order Sync Token')
45 | ->setPlainValue('')
46 | ->save();
47 |
48 | $orderSyncPageVar = Mage::getModel('core/variable')
49 | ->setCode(Amazon_MCF_Helper_Data::CORE_VAR_ORDER_SYNC_PAGE)
50 | ->setName('Amazon MCF Order Sync Page')
51 | ->setPlainValue('')
52 | ->save();
53 |
54 | $orderSyncRunningVar = Mage::getModel('core/variable')
55 | ->setCode(Amazon_MCF_Helper_Data::CORE_VAR_ORDER_SYNC_RUNNING)
56 | ->setName('Amazon MCF Order Sync Running')
57 | ->setPlainValue('')
58 | ->save();
59 |
60 | $installer->endSetup();
61 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/CreateFulfillmentReturnResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | String
7 | String
8 | String
9 | String
10 | String
11 | String
12 | String
13 | 1969-07-21T02:56:03Z
14 | String
15 | String
16 | String
17 |
18 |
19 |
20 |
21 | String
22 | String
23 |
24 | String
25 | String
26 |
27 |
28 |
29 |
30 |
31 | String
32 | String
33 |
34 | String
35 | String
36 | String
37 | String
38 | String
39 | String
40 | String
41 | String
42 | String
43 | String
44 |
45 | String
46 | String
47 |
48 |
49 |
50 |
51 | String
52 |
53 |
54 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/ResponseMetadata.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * RequestId: string
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_ResponseMetadata extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'RequestId' => array('FieldValue' => null, 'FieldType' => 'string'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the RequestId property.
50 | *
51 | * @return String RequestId.
52 | */
53 | public function getRequestId()
54 | {
55 | return $this->_fields['RequestId']['FieldValue'];
56 | }
57 |
58 | /**
59 | * Set the value of the RequestId property.
60 | *
61 | * @param string requestId
62 | * @return this instance
63 | */
64 | public function setRequestId($value)
65 | {
66 | $this->_fields['RequestId']['FieldValue'] = $value;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Check to see if RequestId is set.
72 | *
73 | * @return true if RequestId is set.
74 | */
75 | public function isSetRequestId()
76 | {
77 | return !is_null($this->_fields['RequestId']['FieldValue']);
78 | }
79 |
80 | /**
81 | * Set the value of RequestId, return this.
82 | *
83 | * @param requestId
84 | * The new value to set.
85 | *
86 | * @return This instance.
87 | */
88 | public function withRequestId($value)
89 | {
90 | $this->setRequestId($value);
91 | return $this;
92 | }
93 |
94 | }
95 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/controllers/AjaxController.php:
--------------------------------------------------------------------------------
1 | getRequest()->getParam('zip');
30 | $productId = $this->getRequest()->getParam('product_id');
31 | $qty = $this->getRequest()->getParam('qty');
32 |
33 | /**
34 | * @var Amazon_MCF_Model_Service_Outbound $service
35 | */
36 | $service = Mage::getSingleton('amazon_mcf/service_outbound');
37 | $fulfillmentPreview = $service->getDeliveryEstimate($productId, $zip, $qty);
38 |
39 | $amazonShipping = Mage::getModel('amazon_mcf/carrier_amazon');
40 | $deliveryData
41 | = $amazonShipping->getRatesFromFulfillmentPreview($fulfillmentPreview);
42 |
43 | $rates = array();
44 | foreach ($deliveryData as $speed => $rate) {
45 | $sortedRates[$rate['earliest'] . $speed] = $speed;
46 | }
47 |
48 | foreach ($sortedRates as $speed) {
49 | $rate = $deliveryData[$speed];
50 | $earliest = date(
51 | Amazon_MCF_Helper_Conversion::ISO8601_FORMAT,
52 | $rate['earliest']
53 | );
54 | $latest = date(
55 | Amazon_MCF_Helper_Conversion::ISO8601_FORMAT,
56 | $rate['latest']
57 | );
58 | $rates[] = array(
59 | 'type' => $speed,
60 | 'earliest' => $earliest,
61 | 'latest' => $latest,
62 | 'cost' => $rate['fee']
63 | );
64 | }
65 |
66 | $jsonData = array(
67 | 'result' => true,
68 | 'message' => 'Rates available',
69 | 'data' => $rates,
70 | );
71 |
72 | $this->getResponse()
73 | ->setHeader('Content-type', 'application/json');
74 | $this->getResponse()
75 | ->setBody(Mage::helper('core')->jsonEncode($jsonData));
76 | }
77 | }
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Model/ResponseMetadata.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * RequestId: string
34 | *
35 | *
36 | */
37 |
38 | class FBAInventoryServiceMWS_Model_ResponseMetadata extends FBAInventoryServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'RequestId' => array('FieldValue' => null, 'FieldType' => 'string'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the RequestId property.
50 | *
51 | * @return String RequestId.
52 | */
53 | public function getRequestId()
54 | {
55 | return $this->_fields['RequestId']['FieldValue'];
56 | }
57 |
58 | /**
59 | * Set the value of the RequestId property.
60 | *
61 | * @param string requestId
62 | * @return this instance
63 | */
64 | public function setRequestId($value)
65 | {
66 | $this->_fields['RequestId']['FieldValue'] = $value;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Check to see if RequestId is set.
72 | *
73 | * @return true if RequestId is set.
74 | */
75 | public function isSetRequestId()
76 | {
77 | return !is_null($this->_fields['RequestId']['FieldValue']);
78 | }
79 |
80 | /**
81 | * Set the value of RequestId, return this.
82 | *
83 | * @param requestId
84 | * The new value to set.
85 | *
86 | * @return This instance.
87 | */
88 | public function withRequestId($value)
89 | {
90 | $this->setRequestId($value);
91 | return $this;
92 | }
93 |
94 | }
95 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceOrders/Model/ResponseMetadata.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * RequestId: string
34 | *
35 | *
36 | */
37 |
38 | class MarketplaceWebServiceOrders_Model_ResponseMetadata extends MarketplaceWebServiceOrders_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'RequestId' => array('FieldValue' => null, 'FieldType' => 'string'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the RequestId property.
50 | *
51 | * @return String RequestId.
52 | */
53 | public function getRequestId()
54 | {
55 | return $this->_fields['RequestId']['FieldValue'];
56 | }
57 |
58 | /**
59 | * Set the value of the RequestId property.
60 | *
61 | * @param string requestId
62 | * @return this instance
63 | */
64 | public function setRequestId($value)
65 | {
66 | $this->_fields['RequestId']['FieldValue'] = $value;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Check to see if RequestId is set.
72 | *
73 | * @return true if RequestId is set.
74 | */
75 | public function isSetRequestId()
76 | {
77 | return !is_null($this->_fields['RequestId']['FieldValue']);
78 | }
79 |
80 | /**
81 | * Set the value of RequestId, return this.
82 | *
83 | * @param requestId
84 | * The new value to set.
85 | *
86 | * @return This instance.
87 | */
88 | public function withRequestId($value)
89 | {
90 | $this->setRequestId($value);
91 | return $this;
92 | }
93 |
94 | }
95 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Model/ResponseMetadata.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * RequestId: string
34 | *
35 | *
36 | */
37 |
38 | class MarketplaceWebServiceSellers_Model_ResponseMetadata extends MarketplaceWebServiceSellers_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'RequestId' => array('FieldValue' => null, 'FieldType' => 'string'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the RequestId property.
50 | *
51 | * @return String RequestId.
52 | */
53 | public function getRequestId()
54 | {
55 | return $this->_fields['RequestId']['FieldValue'];
56 | }
57 |
58 | /**
59 | * Set the value of the RequestId property.
60 | *
61 | * @param string requestId
62 | * @return this instance
63 | */
64 | public function setRequestId($value)
65 | {
66 | $this->_fields['RequestId']['FieldValue'] = $value;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Check to see if RequestId is set.
72 | *
73 | * @return true if RequestId is set.
74 | */
75 | public function isSetRequestId()
76 | {
77 | return !is_null($this->_fields['RequestId']['FieldValue']);
78 | }
79 |
80 | /**
81 | * Set the value of RequestId, return this.
82 | *
83 | * @param requestId
84 | * The new value to set.
85 | *
86 | * @return This instance.
87 | */
88 | public function withRequestId($value)
89 | {
90 | $this->setRequestId($value);
91 | return $this;
92 | }
93 |
94 | }
95 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceOrders/Model/BuyerCustomizedInfoDetail.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * CustomizedURL: string
34 | *
35 | *
36 | */
37 |
38 | class MarketplaceWebServiceOrders_Model_BuyerCustomizedInfoDetail extends MarketplaceWebServiceOrders_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'CustomizedURL' => array('FieldValue' => null, 'FieldType' => 'string'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the CustomizedURL property.
50 | *
51 | * @return String CustomizedURL.
52 | */
53 | public function getCustomizedURL()
54 | {
55 | return $this->_fields['CustomizedURL']['FieldValue'];
56 | }
57 |
58 | /**
59 | * Set the value of the CustomizedURL property.
60 | *
61 | * @param string customizedURL
62 | * @return this instance
63 | */
64 | public function setCustomizedURL($value)
65 | {
66 | $this->_fields['CustomizedURL']['FieldValue'] = $value;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Check to see if CustomizedURL is set.
72 | *
73 | * @return true if CustomizedURL is set.
74 | */
75 | public function isSetCustomizedURL()
76 | {
77 | return !is_null($this->_fields['CustomizedURL']['FieldValue']);
78 | }
79 |
80 | /**
81 | * Set the value of CustomizedURL, return this.
82 | *
83 | * @param customizedURL
84 | * The new value to set.
85 | *
86 | * @return This instance.
87 | */
88 | public function withCustomizedURL($value)
89 | {
90 | $this->setCustomizedURL($value);
91 | return $this;
92 | }
93 |
94 | }
95 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/GetFulfillmentPreviewResult.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * FulfillmentPreviews: FBAOutboundServiceMWS_Model_FulfillmentPreviewList
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_GetFulfillmentPreviewResult extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'FulfillmentPreviews' => array('FieldValue' => null, 'FieldType' => 'FBAOutboundServiceMWS_Model_FulfillmentPreviewList'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the FulfillmentPreviews property.
50 | *
51 | * @return FulfillmentPreviewList FulfillmentPreviews.
52 | */
53 | public function getFulfillmentPreviews()
54 | {
55 | return $this->_fields['FulfillmentPreviews']['FieldValue'];
56 | }
57 |
58 | /**
59 | * Set the value of the FulfillmentPreviews property.
60 | *
61 | * @param FBAOutboundServiceMWS_Model_FulfillmentPreviewList fulfillmentPreviews
62 | * @return this instance
63 | */
64 | public function setFulfillmentPreviews($value)
65 | {
66 | $this->_fields['FulfillmentPreviews']['FieldValue'] = $value;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Check to see if FulfillmentPreviews is set.
72 | *
73 | * @return true if FulfillmentPreviews is set.
74 | */
75 | public function isSetFulfillmentPreviews()
76 | {
77 | return !is_null($this->_fields['FulfillmentPreviews']['FieldValue']);
78 | }
79 |
80 | /**
81 | * Set the value of FulfillmentPreviews, return this.
82 | *
83 | * @param fulfillmentPreviews
84 | * The new value to set.
85 | *
86 | * @return This instance.
87 | */
88 | public function withFulfillmentPreviews($value)
89 | {
90 | $this->setFulfillmentPreviews($value);
91 | return $this;
92 | }
93 |
94 | }
95 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/ListReturnReasonCodesResult.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * ReasonCodeDetailsList: FBAOutboundServiceMWS_Model_ReasonCodeDetailsList
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_ListReturnReasonCodesResult extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'ReasonCodeDetailsList' => array('FieldValue' => null, 'FieldType' => 'FBAOutboundServiceMWS_Model_ReasonCodeDetailsList'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the ReasonCodeDetailsList property.
50 | *
51 | * @return ReasonCodeDetailsList ReasonCodeDetailsList.
52 | */
53 | public function getReasonCodeDetailsList()
54 | {
55 | return $this->_fields['ReasonCodeDetailsList']['FieldValue'];
56 | }
57 |
58 | /**
59 | * Set the value of the ReasonCodeDetailsList property.
60 | *
61 | * @param FBAOutboundServiceMWS_Model_ReasonCodeDetailsList reasonCodeDetailsList
62 | * @return this instance
63 | */
64 | public function setReasonCodeDetailsList($value)
65 | {
66 | $this->_fields['ReasonCodeDetailsList']['FieldValue'] = $value;
67 | return $this;
68 | }
69 |
70 | /**
71 | * Check to see if ReasonCodeDetailsList is set.
72 | *
73 | * @return true if ReasonCodeDetailsList is set.
74 | */
75 | public function isSetReasonCodeDetailsList()
76 | {
77 | return !is_null($this->_fields['ReasonCodeDetailsList']['FieldValue']);
78 | }
79 |
80 | /**
81 | * Set the value of ReasonCodeDetailsList, return this.
82 | *
83 | * @param reasonCodeDetailsList
84 | * The new value to set.
85 | *
86 | * @return This instance.
87 | */
88 | public function withReasonCodeDetailsList($value)
89 | {
90 | $this->setReasonCodeDetailsList($value);
91 | return $this;
92 | }
93 |
94 | }
95 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Samples/.config.inc.php:
--------------------------------------------------------------------------------
1 | ');
10 | define('AWS_SECRET_ACCESS_KEY', '');
11 |
12 | /************************************************************************
13 | * REQUIRED
14 | *
15 | * All MWS requests must contain a User-Agent header. The application
16 | * name and version defined below are used in creating this value.
17 | ***********************************************************************/
18 | define('APPLICATION_NAME', '');
19 | define('APPLICATION_VERSION', '');
20 |
21 | /************************************************************************
22 | * REQUIRED
23 | *
24 | * All MWS requests must contain the seller's merchant ID and
25 | * marketplace ID.
26 | ***********************************************************************/
27 | define ('MERCHANT_ID', '');
28 | define ('MARKETPLACE_ID', '');
29 |
30 |
31 | /************************************************************************
32 | * OPTIONAL ON SOME INSTALLATIONS
33 | *
34 | * Set include path to root of library, relative to Samples directory.
35 | * Only needed when running library from local directory.
36 | * If library is installed in PHP include path, this is not needed
37 | ***********************************************************************/
38 | set_include_path(get_include_path() . PATH_SEPARATOR . '../../.');
39 |
40 | /************************************************************************
41 | * OPTIONAL ON SOME INSTALLATIONS
42 | *
43 | * Autoload function is reponsible for loading classes of the library on demand
44 | *
45 | * NOTE: Only one __autoload function is allowed by PHP per each PHP installation,
46 | * and this function may need to be replaced with individual require_once statements
47 | * in case where other framework that define an __autoload already loaded.
48 | *
49 | * However, since this library follow common naming convention for PHP classes it
50 | * may be possible to simply re-use an autoload mechanism defined by other frameworks
51 | * (provided library is installed in the PHP include path), and so classes may just
52 | * be loaded even when this function is removed
53 | ***********************************************************************/
54 | function __autoload($className){
55 | $filePath = str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
56 | $includePaths = explode(PATH_SEPARATOR, get_include_path());
57 | foreach($includePaths as $includePath){
58 | if(file_exists($includePath . DIRECTORY_SEPARATOR . $filePath)){
59 | require_once $filePath;
60 | return;
61 | }
62 | }
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Samples/.config.inc.php:
--------------------------------------------------------------------------------
1 | ');
10 | define('AWS_SECRET_ACCESS_KEY', '');
11 |
12 | /************************************************************************
13 | * REQUIRED
14 | *
15 | * All MWS requests must contain a User-Agent header. The application
16 | * name and version defined below are used in creating this value.
17 | ***********************************************************************/
18 | define('APPLICATION_NAME', '');
19 | define('APPLICATION_VERSION', '');
20 |
21 | /************************************************************************
22 | * REQUIRED
23 | *
24 | * All MWS requests must contain the seller's merchant ID and
25 | * marketplace ID.
26 | ***********************************************************************/
27 | define ('MERCHANT_ID', '');
28 | define ('MARKETPLACE_ID', '');
29 |
30 |
31 | /************************************************************************
32 | * OPTIONAL ON SOME INSTALLATIONS
33 | *
34 | * Set include path to root of library, relative to Samples directory.
35 | * Only needed when running library from local directory.
36 | * If library is installed in PHP include path, this is not needed
37 | ***********************************************************************/
38 | set_include_path(get_include_path() . PATH_SEPARATOR . '../../.');
39 |
40 | /************************************************************************
41 | * OPTIONAL ON SOME INSTALLATIONS
42 | *
43 | * Autoload function is reponsible for loading classes of the library on demand
44 | *
45 | * NOTE: Only one __autoload function is allowed by PHP per each PHP installation,
46 | * and this function may need to be replaced with individual require_once statements
47 | * in case where other framework that define an __autoload already loaded.
48 | *
49 | * However, since this library follow common naming convention for PHP classes it
50 | * may be possible to simply re-use an autoload mechanism defined by other frameworks
51 | * (provided library is installed in the PHP include path), and so classes may just
52 | * be loaded even when this function is removed
53 | ***********************************************************************/
54 | function __autoload($className){
55 | $filePath = str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
56 | $includePaths = explode(PATH_SEPARATOR, get_include_path());
57 | foreach($includePaths as $includePath){
58 | if(file_exists($includePath . DIRECTORY_SEPARATOR . $filePath)){
59 | require_once $filePath;
60 | return;
61 | }
62 | }
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceOrders/Samples/.config.inc.php:
--------------------------------------------------------------------------------
1 | ');
10 | define('AWS_SECRET_ACCESS_KEY', '');
11 |
12 | /************************************************************************
13 | * REQUIRED
14 | *
15 | * All MWS requests must contain a User-Agent header. The application
16 | * name and version defined below are used in creating this value.
17 | ***********************************************************************/
18 | define('APPLICATION_NAME', '');
19 | define('APPLICATION_VERSION', '');
20 |
21 | /************************************************************************
22 | * REQUIRED
23 | *
24 | * All MWS requests must contain the seller's merchant ID and
25 | * marketplace ID.
26 | ***********************************************************************/
27 | define ('MERCHANT_ID', '');
28 | define ('MARKETPLACE_ID', '');
29 |
30 |
31 | /************************************************************************
32 | * OPTIONAL ON SOME INSTALLATIONS
33 | *
34 | * Set include path to root of library, relative to Samples directory.
35 | * Only needed when running library from local directory.
36 | * If library is installed in PHP include path, this is not needed
37 | ***********************************************************************/
38 | set_include_path(get_include_path() . PATH_SEPARATOR . '../../.');
39 |
40 | /************************************************************************
41 | * OPTIONAL ON SOME INSTALLATIONS
42 | *
43 | * Autoload function is reponsible for loading classes of the library on demand
44 | *
45 | * NOTE: Only one __autoload function is allowed by PHP per each PHP installation,
46 | * and this function may need to be replaced with individual require_once statements
47 | * in case where other framework that define an __autoload already loaded.
48 | *
49 | * However, since this library follow common naming convention for PHP classes it
50 | * may be possible to simply re-use an autoload mechanism defined by other frameworks
51 | * (provided library is installed in the PHP include path), and so classes may just
52 | * be loaded even when this function is removed
53 | ***********************************************************************/
54 | function __autoload($className){
55 | $filePath = str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
56 | $includePaths = explode(PATH_SEPARATOR, get_include_path());
57 | foreach($includePaths as $includePath){
58 | if(file_exists($includePath . DIRECTORY_SEPARATOR . $filePath)){
59 | require_once $filePath;
60 | return;
61 | }
62 | }
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Samples/.config.inc.php:
--------------------------------------------------------------------------------
1 | ');
10 | define('AWS_SECRET_ACCESS_KEY', '');
11 |
12 | /************************************************************************
13 | * REQUIRED
14 | *
15 | * All MWS requests must contain a User-Agent header. The application
16 | * name and version defined below are used in creating this value.
17 | ***********************************************************************/
18 | define('APPLICATION_NAME', '');
19 | define('APPLICATION_VERSION', '');
20 |
21 | /************************************************************************
22 | * REQUIRED
23 | *
24 | * All MWS requests must contain the seller's merchant ID and
25 | * marketplace ID.
26 | ***********************************************************************/
27 | define ('MERCHANT_ID', '');
28 | define ('MARKETPLACE_ID', '');
29 |
30 |
31 | /************************************************************************
32 | * OPTIONAL ON SOME INSTALLATIONS
33 | *
34 | * Set include path to root of library, relative to Samples directory.
35 | * Only needed when running library from local directory.
36 | * If library is installed in PHP include path, this is not needed
37 | ***********************************************************************/
38 | set_include_path(get_include_path() . PATH_SEPARATOR . '../../.');
39 |
40 | /************************************************************************
41 | * OPTIONAL ON SOME INSTALLATIONS
42 | *
43 | * Autoload function is reponsible for loading classes of the library on demand
44 | *
45 | * NOTE: Only one __autoload function is allowed by PHP per each PHP installation,
46 | * and this function may need to be replaced with individual require_once statements
47 | * in case where other framework that define an __autoload already loaded.
48 | *
49 | * However, since this library follow common naming convention for PHP classes it
50 | * may be possible to simply re-use an autoload mechanism defined by other frameworks
51 | * (provided library is installed in the PHP include path), and so classes may just
52 | * be loaded even when this function is removed
53 | ***********************************************************************/
54 | function __autoload($className){
55 | $filePath = str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
56 | $includePaths = explode(PATH_SEPARATOR, get_include_path());
57 | foreach($includePaths as $includePath){
58 | if(file_exists($includePath . DIRECTORY_SEPARATOR . $filePath)){
59 | require_once $filePath;
60 | return;
61 | }
62 | }
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/ListAllFulfillmentOrdersResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 | String
8 | String
9 | String
10 | 1969-07-21T02:56:03Z
11 | String
12 | String
13 |
14 | 1969-07-21T02:56:03Z
15 | 1969-07-21T02:56:03Z
16 |
17 |
18 | String
19 | String
20 | String
21 | String
22 | String
23 | String
24 | String
25 | String
26 | String
27 | String
28 |
29 | String
30 | String
31 | String
32 |
33 | true
34 |
35 | String
36 | String
37 |
38 |
39 | String
40 | String
41 |
42 |
43 | String
44 | String
45 |
46 |
47 | String
48 | String
49 |
50 |
51 | 1969-07-21T02:56:03Z
52 | String
53 | 1969-07-21T02:56:03Z
54 |
55 | String
56 |
57 |
58 |
59 |
60 |
61 | String
62 |
63 |
64 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/ListAllFulfillmentOrdersByNextTokenResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | String
5 |
6 |
7 | String
8 | String
9 | String
10 | 1969-07-21T02:56:03Z
11 | String
12 | String
13 |
14 | 1969-07-21T02:56:03Z
15 | 1969-07-21T02:56:03Z
16 |
17 |
18 | String
19 | String
20 | String
21 | String
22 | String
23 | String
24 | String
25 | String
26 | String
27 | String
28 |
29 | String
30 | String
31 | String
32 |
33 | true
34 |
35 | String
36 | String
37 |
38 |
39 | String
40 | String
41 |
42 |
43 | String
44 | String
45 |
46 |
47 | String
48 | String
49 |
50 |
51 | 1969-07-21T02:56:03Z
52 | String
53 | 1969-07-21T02:56:03Z
54 |
55 | String
56 |
57 |
58 |
59 |
60 |
61 | String
62 |
63 |
64 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/StringList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_StringList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('string')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Model/SellerSkuList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAInventoryServiceMWS_Model_SellerSkuList extends FBAInventoryServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('string')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FeeList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FeeList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_Fee')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentMethodList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentMethodList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('string')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/NotificationEmailList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_NotificationEmailList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('string')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/ShippingSpeedCategoryList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_ShippingSpeedCategoryList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('string')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/ReturnItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_ReturnItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_ReturnItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/TrackingEventList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_TrackingEventList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_TrackingEvent')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/DeliveryWindowList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_DeliveryWindowList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_DeliveryWindow')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Model/InventorySupplyList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAInventoryServiceMWS_Model_InventorySupplyList extends FBAInventoryServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAInventoryServiceMWS_Model_InventorySupply')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/CreateReturnItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_CreateReturnItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_CreateReturnItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentOrderList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentOrderList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentOrder')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/InvalidReturnItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_InvalidReturnItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_InvalidReturnItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/ReasonCodeDetailsList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_ReasonCodeDetailsList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_ReasonCodeDetails')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentPreviewList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentPreviewList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentPreview')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentShipmentList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentShipmentList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentShipment')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/ReturnAuthorizationList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_ReturnAuthorizationList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_ReturnAuthorization')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentOrderItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentOrderItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentOrderItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Model/InventorySupplyDetailList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAInventoryServiceMWS_Model_InventorySupplyDetailList extends FBAInventoryServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAInventoryServiceMWS_Model_InventorySupplyDetail')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentPreviewItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentPreviewItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentPreviewItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceOrders/Model/GetOrderResult.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * Orders: array
34 | *
35 | *
36 | */
37 |
38 | class MarketplaceWebServiceOrders_Model_GetOrderResult extends MarketplaceWebServiceOrders_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'Orders' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_Order'), 'ListMemberName' => 'Order'),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the Orders property.
50 | *
51 | * @return List Orders.
52 | */
53 | public function getOrders()
54 | {
55 | if ($this->_fields['Orders']['FieldValue'] == null)
56 | {
57 | $this->_fields['Orders']['FieldValue'] = array();
58 | }
59 | return $this->_fields['Orders']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the Orders property.
64 | *
65 | * @param array orders
66 | * @return this instance
67 | */
68 | public function setOrders($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['Orders']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear Orders.
79 | */
80 | public function unsetOrders()
81 | {
82 | $this->_fields['Orders']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if Orders is set.
87 | *
88 | * @return true if Orders is set.
89 | */
90 | public function isSetOrders()
91 | {
92 | return !empty($this->_fields['Orders']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for Orders, return this.
97 | *
98 | * @param orders
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withOrders()
104 | {
105 | foreach (func_get_args() as $Orders)
106 | {
107 | $this->_fields['Orders']['FieldValue'][] = $Orders;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Model/MessageList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * Message: array
34 | *
35 | *
36 | */
37 |
38 | class MarketplaceWebServiceSellers_Model_MessageList extends MarketplaceWebServiceSellers_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'Message' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceSellers_Model_Message')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the Message property.
50 | *
51 | * @return List Message.
52 | */
53 | public function getMessage()
54 | {
55 | if ($this->_fields['Message']['FieldValue'] == null)
56 | {
57 | $this->_fields['Message']['FieldValue'] = array();
58 | }
59 | return $this->_fields['Message']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the Message property.
64 | *
65 | * @param array message
66 | * @return this instance
67 | */
68 | public function setMessage($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['Message']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear Message.
79 | */
80 | public function unsetMessage()
81 | {
82 | $this->_fields['Message']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if Message is set.
87 | *
88 | * @return true if Message is set.
89 | */
90 | public function isSetMessage()
91 | {
92 | return !empty($this->_fields['Message']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for Message, return this.
97 | *
98 | * @param message
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withMessage()
104 | {
105 | foreach (func_get_args() as $Message)
106 | {
107 | $this->_fields['Message']['FieldValue'][] = $Message;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentShipmentItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentShipmentItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentShipmentItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Interface.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_UnfulfillablePreviewItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_UnfulfillablePreviewItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAInventoryServiceMWS/Model/ResponseHeaderMetadata.php:
--------------------------------------------------------------------------------
1 | metadata[self::REQUEST_ID] = $requestId;
34 | $this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
35 | $this->metadata[self::TIMESTAMP] = $timestamp;
36 | $this->metadata[self::QUOTA_MAX] = $quotaMax;
37 | $this->metadata[self::QUOTA_REMAINING] = $quotaMax;
38 | $this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
39 | }
40 |
41 | public function getRequestId() {
42 | return $this->metadata[self::REQUEST_ID];
43 | }
44 |
45 | public function getResponseContext() {
46 | return $this->metadata[self::RESPONSE_CONTEXT];
47 | }
48 |
49 | public function getTimestamp() {
50 | return $this->metadata[self::TIMESTAMP];
51 | }
52 |
53 | /**
54 | * Gets the max quota allowed for a quota period
55 | * (from the x-mws-quota-max header)
56 | *
57 | * @return the max quota allowed for a quota period
58 | */
59 | public function getQuotaMax() {
60 | return $this->metadata[self::QUOTA_MAX];
61 | }
62 |
63 | /**
64 | * Gets the quota remaining within this quota period
65 | * (from the x-mws-quota-remaining header)
66 | *
67 | * @return the quota remaining within this quota period
68 | */
69 | public function getQuotaRemaining() {
70 | return $this->metadata[self::QUOTA_REMAINING];
71 | }
72 |
73 | /**
74 | * Gets the time that this quota period ends
75 | * (from the x-mws-quota-resetsOn header)
76 | *
77 | * @return the time that this quota period ends
78 | */
79 | public function getQuotaResetsAt() {
80 | return $this->metadata[self::QUOTA_RESETS_AT];
81 | }
82 |
83 | public function __toString() {
84 | return "RequestId: " . $this->getRequestId() . ", ResponseContext: " . $this->getResponseContext() .
85 | ", Timestamp: " . $this->getTimestamp() . ", Quota Max: " . $this->getQuotaMax() .
86 | ", Quota Remaining: " . $this->getQuotaRemaining() . ", Quota Resets At: " . $this->getQuotaResetsAt();
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/GetFulfillmentPreviewItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_GetFulfillmentPreviewItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_GetFulfillmentPreviewItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/ResponseHeaderMetadata.php:
--------------------------------------------------------------------------------
1 | metadata[self::REQUEST_ID] = $requestId;
34 | $this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
35 | $this->metadata[self::TIMESTAMP] = $timestamp;
36 | $this->metadata[self::QUOTA_MAX] = $quotaMax;
37 | $this->metadata[self::QUOTA_REMAINING] = $quotaMax;
38 | $this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
39 | }
40 |
41 | public function getRequestId() {
42 | return $this->metadata[self::REQUEST_ID];
43 | }
44 |
45 | public function getResponseContext() {
46 | return $this->metadata[self::RESPONSE_CONTEXT];
47 | }
48 |
49 | public function getTimestamp() {
50 | return $this->metadata[self::TIMESTAMP];
51 | }
52 |
53 | /**
54 | * Gets the max quota allowed for a quota period
55 | * (from the x-mws-quota-max header)
56 | *
57 | * @return the max quota allowed for a quota period
58 | */
59 | public function getQuotaMax() {
60 | return $this->metadata[self::QUOTA_MAX];
61 | }
62 |
63 | /**
64 | * Gets the quota remaining within this quota period
65 | * (from the x-mws-quota-remaining header)
66 | *
67 | * @return the quota remaining within this quota period
68 | */
69 | public function getQuotaRemaining() {
70 | return $this->metadata[self::QUOTA_REMAINING];
71 | }
72 |
73 | /**
74 | * Gets the time that this quota period ends
75 | * (from the x-mws-quota-resetsOn header)
76 | *
77 | * @return the time that this quota period ends
78 | */
79 | public function getQuotaResetsAt() {
80 | return $this->metadata[self::QUOTA_RESETS_AT];
81 | }
82 |
83 | public function __toString() {
84 | return "RequestId: " . $this->getRequestId() . ", ResponseContext: " . $this->getResponseContext() .
85 | ", Timestamp: " . $this->getTimestamp() . ", Quota Max: " . $this->getQuotaMax() .
86 | ", Quota Remaining: " . $this->getQuotaRemaining() . ", Quota Resets At: " . $this->getQuotaResetsAt();
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/CreateFulfillmentOrderItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_CreateFulfillmentOrderItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_CreateFulfillmentOrderItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentPreviewShipmentList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentPreviewShipmentList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentPreviewShipment')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/FulfillmentShipmentPackageList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_FulfillmentShipmentPackageList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_FulfillmentShipmentPackage')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Model/UpdateFulfillmentOrderItemList.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * member: array
34 | *
35 | *
36 | */
37 |
38 | class FBAOutboundServiceMWS_Model_UpdateFulfillmentOrderItemList extends FBAOutboundServiceMWS_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'member' => array('FieldValue' => array(), 'FieldType' => array('FBAOutboundServiceMWS_Model_UpdateFulfillmentOrderItem')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the member property.
50 | *
51 | * @return List member.
52 | */
53 | public function getmember()
54 | {
55 | if ($this->_fields['member']['FieldValue'] == null)
56 | {
57 | $this->_fields['member']['FieldValue'] = array();
58 | }
59 | return $this->_fields['member']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the member property.
64 | *
65 | * @param array member
66 | * @return this instance
67 | */
68 | public function setmember($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['member']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear member.
79 | */
80 | public function unsetmember()
81 | {
82 | $this->_fields['member']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if member is set.
87 | *
88 | * @return true if member is set.
89 | */
90 | public function isSetmember()
91 | {
92 | return !empty($this->_fields['member']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for member, return this.
97 | *
98 | * @param member
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withmember()
104 | {
105 | foreach (func_get_args() as $member)
106 | {
107 | $this->_fields['member']['FieldValue'][] = $member;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceOrders/Model/ResponseHeaderMetadata.php:
--------------------------------------------------------------------------------
1 | metadata[self::REQUEST_ID] = $requestId;
34 | $this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
35 | $this->metadata[self::TIMESTAMP] = $timestamp;
36 | $this->metadata[self::QUOTA_MAX] = $quotaMax;
37 | $this->metadata[self::QUOTA_REMAINING] = $quotaMax;
38 | $this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
39 | }
40 |
41 | public function getRequestId() {
42 | return $this->metadata[self::REQUEST_ID];
43 | }
44 |
45 | public function getResponseContext() {
46 | return $this->metadata[self::RESPONSE_CONTEXT];
47 | }
48 |
49 | public function getTimestamp() {
50 | return $this->metadata[self::TIMESTAMP];
51 | }
52 |
53 | /**
54 | * Gets the max quota allowed for a quota period
55 | * (from the x-mws-quota-max header)
56 | *
57 | * @return the max quota allowed for a quota period
58 | */
59 | public function getQuotaMax() {
60 | return $this->metadata[self::QUOTA_MAX];
61 | }
62 |
63 | /**
64 | * Gets the quota remaining within this quota period
65 | * (from the x-mws-quota-remaining header)
66 | *
67 | * @return the quota remaining within this quota period
68 | */
69 | public function getQuotaRemaining() {
70 | return $this->metadata[self::QUOTA_REMAINING];
71 | }
72 |
73 | /**
74 | * Gets the time that this quota period ends
75 | * (from the x-mws-quota-resetsOn header)
76 | *
77 | * @return the time that this quota period ends
78 | */
79 | public function getQuotaResetsAt() {
80 | return $this->metadata[self::QUOTA_RESETS_AT];
81 | }
82 |
83 | public function __toString() {
84 | return "RequestId: " . $this->getRequestId() . ", ResponseContext: " . $this->getResponseContext() .
85 | ", Timestamp: " . $this->getTimestamp() . ", Quota Max: " . $this->getQuotaMax() .
86 | ", Quota Remaining: " . $this->getQuotaRemaining() . ", Quota Resets At: " . $this->getQuotaResetsAt();
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Model/ResponseHeaderMetadata.php:
--------------------------------------------------------------------------------
1 | metadata[self::REQUEST_ID] = $requestId;
34 | $this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
35 | $this->metadata[self::TIMESTAMP] = $timestamp;
36 | $this->metadata[self::QUOTA_MAX] = $quotaMax;
37 | $this->metadata[self::QUOTA_REMAINING] = $quotaMax;
38 | $this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
39 | }
40 |
41 | public function getRequestId() {
42 | return $this->metadata[self::REQUEST_ID];
43 | }
44 |
45 | public function getResponseContext() {
46 | return $this->metadata[self::RESPONSE_CONTEXT];
47 | }
48 |
49 | public function getTimestamp() {
50 | return $this->metadata[self::TIMESTAMP];
51 | }
52 |
53 | /**
54 | * Gets the max quota allowed for a quota period
55 | * (from the x-mws-quota-max header)
56 | *
57 | * @return the max quota allowed for a quota period
58 | */
59 | public function getQuotaMax() {
60 | return $this->metadata[self::QUOTA_MAX];
61 | }
62 |
63 | /**
64 | * Gets the quota remaining within this quota period
65 | * (from the x-mws-quota-remaining header)
66 | *
67 | * @return the quota remaining within this quota period
68 | */
69 | public function getQuotaRemaining() {
70 | return $this->metadata[self::QUOTA_REMAINING];
71 | }
72 |
73 | /**
74 | * Gets the time that this quota period ends
75 | * (from the x-mws-quota-resetsOn header)
76 | *
77 | * @return the time that this quota period ends
78 | */
79 | public function getQuotaResetsAt() {
80 | return $this->metadata[self::QUOTA_RESETS_AT];
81 | }
82 |
83 | public function __toString() {
84 | return "RequestId: " . $this->getRequestId() . ", ResponseContext: " . $this->getResponseContext() .
85 | ", Timestamp: " . $this->getTimestamp() . ", Quota Max: " . $this->getQuotaMax() .
86 | ", Quota Remaining: " . $this->getQuotaRemaining() . ", Quota Resets At: " . $this->getQuotaResetsAt();
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Model/ListMarketplaces.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * Marketplace: array
34 | *
35 | *
36 | */
37 |
38 | class MarketplaceWebServiceSellers_Model_ListMarketplaces extends MarketplaceWebServiceSellers_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'Marketplace' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceSellers_Model_Marketplace')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the Marketplace property.
50 | *
51 | * @return List Marketplace.
52 | */
53 | public function getMarketplace()
54 | {
55 | if ($this->_fields['Marketplace']['FieldValue'] == null)
56 | {
57 | $this->_fields['Marketplace']['FieldValue'] = array();
58 | }
59 | return $this->_fields['Marketplace']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the Marketplace property.
64 | *
65 | * @param array marketplace
66 | * @return this instance
67 | */
68 | public function setMarketplace($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['Marketplace']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear Marketplace.
79 | */
80 | public function unsetMarketplace()
81 | {
82 | $this->_fields['Marketplace']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if Marketplace is set.
87 | *
88 | * @return true if Marketplace is set.
89 | */
90 | public function isSetMarketplace()
91 | {
92 | return !empty($this->_fields['Marketplace']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for Marketplace, return this.
97 | *
98 | * @param marketplace
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withMarketplace()
104 | {
105 | foreach (func_get_args() as $Marketplace)
106 | {
107 | $this->_fields['Marketplace']['FieldValue'][] = $Marketplace;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/lib/Amazon/FBAOutboundServiceMWS/Mock/GetFulfillmentPreviewResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | String
7 |
8 | String
9 |
10 |
11 | 1969-07-21T02:56:03Z
12 | 1969-07-21T02:56:03Z
13 |
14 |
15 |
16 | true
17 | true
18 |
19 | String
20 | String
21 |
22 |
23 |
24 | String
25 |
26 | String
27 | String
28 |
29 |
30 |
31 |
32 |
33 | 1969-07-21T02:56:03Z
34 | 1969-07-21T02:56:03Z
35 | 1969-07-21T02:56:03Z
36 | 1969-07-21T02:56:03Z
37 |
38 |
39 | String
40 | 1
41 | String
42 |
43 | String
44 | String
45 |
46 | String
47 |
48 |
49 |
50 |
51 |
52 |
53 | String
54 | 1
55 | String
56 |
57 | String
58 |
59 |
60 |
61 |
62 | String
63 |
64 | String
65 |
66 |
67 |
68 |
69 | String
70 |
71 |
72 |
--------------------------------------------------------------------------------
/lib/Amazon/MarketplaceWebServiceSellers/Model/ListParticipations.php:
--------------------------------------------------------------------------------
1 |
32 | *
33 | * Participation: array
34 | *
35 | *
36 | */
37 |
38 | class MarketplaceWebServiceSellers_Model_ListParticipations extends MarketplaceWebServiceSellers_Model {
39 |
40 | public function __construct($data = null)
41 | {
42 | $this->_fields = array (
43 | 'Participation' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceSellers_Model_Participation')),
44 | );
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Get the value of the Participation property.
50 | *
51 | * @return List Participation.
52 | */
53 | public function getParticipation()
54 | {
55 | if ($this->_fields['Participation']['FieldValue'] == null)
56 | {
57 | $this->_fields['Participation']['FieldValue'] = array();
58 | }
59 | return $this->_fields['Participation']['FieldValue'];
60 | }
61 |
62 | /**
63 | * Set the value of the Participation property.
64 | *
65 | * @param array participation
66 | * @return this instance
67 | */
68 | public function setParticipation($value)
69 | {
70 | if (!$this->_isNumericArray($value)) {
71 | $value = array ($value);
72 | }
73 | $this->_fields['Participation']['FieldValue'] = $value;
74 | return $this;
75 | }
76 |
77 | /**
78 | * Clear Participation.
79 | */
80 | public function unsetParticipation()
81 | {
82 | $this->_fields['Participation']['FieldValue'] = array();
83 | }
84 |
85 | /**
86 | * Check to see if Participation is set.
87 | *
88 | * @return true if Participation is set.
89 | */
90 | public function isSetParticipation()
91 | {
92 | return !empty($this->_fields['Participation']['FieldValue']);
93 | }
94 |
95 | /**
96 | * Add values for Participation, return this.
97 | *
98 | * @param participation
99 | * New values to add.
100 | *
101 | * @return This instance.
102 | */
103 | public function withParticipation()
104 | {
105 | foreach (func_get_args() as $Participation)
106 | {
107 | $this->_fields['Participation']['FieldValue'][] = $Participation;
108 | }
109 | return $this;
110 | }
111 |
112 | }
113 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/Model/Service/Abstract.php:
--------------------------------------------------------------------------------
1 | helper = Mage::helper('amazon_mcf');
40 | }
41 |
42 | /**
43 | * Each implementing class should override this with correct service version
44 | *
45 | * @return string
46 | */
47 | protected function getServiceVersion()
48 | {
49 | return '2017-01-01';
50 | }
51 |
52 | /**
53 | * Returns service endpoint URL
54 | *
55 | * @param null $store
56 | * @param null $endpoint
57 | * @return string
58 | */
59 | protected function getServiceUrl($store = null, $endpoint = null)
60 | {
61 | if (empty($endpoint)) {
62 | $endpoint = $this->helper->getEndpoint($store);
63 | }
64 |
65 | return $endpoint . $this::SERVICE_NAME . $this->getServiceVersion();
66 | }
67 |
68 | /**
69 | * Returns mock or production client class
70 | *
71 | * @return string
72 | */
73 | protected function getServiceClass()
74 | {
75 | return $this::SERVICE_CLASS . (
76 | $this->helper->isDebug() ? '_Mock' : '_Client'
77 | );
78 | }
79 |
80 | /**
81 | * Returns instance of MWS outbound service client
82 | *
83 | * @return FBAOutboundServiceMWS_Client
84 | */
85 | protected function getClient()
86 | {
87 | /**
88 | * @var Amazon_MCF_Helper_Data $helper
89 | */
90 | $helper = $this->helper;
91 |
92 | $config = array(
93 | 'ServiceURL' => $this->getServiceUrl(),
94 | );
95 |
96 | $serviceClass = $this->getServiceClass();
97 |
98 | $client = new $serviceClass(
99 | $helper->getAccessKeyId(),
100 | $helper->getSecretAccessKey(),
101 | $config,
102 | $helper->getApplicationName(),
103 | $helper->getApplicationVersion()
104 | );
105 |
106 | return $client;
107 | }
108 |
109 | /**
110 | * Creates base request array and adds specific call parameters
111 | *
112 | * @param array $params
113 | * @param null $store
114 | * @return array
115 | */
116 | protected function getRequest($params = array(), $store = null)
117 | {
118 | return array_merge(
119 | array(
120 | 'SellerId' => $this->helper->getSellerId($store),
121 | 'MarketplaceId' => $this->helper->getMarketplaceId($store),
122 | ),
123 | $params
124 | );
125 | }
126 | }
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/controllers/McfController.php:
--------------------------------------------------------------------------------
1 | startInventorySync();
33 |
34 | if ($startedSync) {
35 | $message = 'Started full inventory sync via admin action';
36 | Mage::getSingleton("adminhtml/session")
37 | ->addSuccess($this->__($message));
38 | } else {
39 | $message = 'Inventory sync already running';
40 | Mage::getSingleton("adminhtml/session")
41 | ->addWarning($this->__($message));
42 | }
43 | $helper->logInventory($message);
44 |
45 | $this->_redirectReferer();
46 | }
47 |
48 | /**
49 | * Validates Amazon credentials
50 | */
51 | public function validateCredentialsAction()
52 | {
53 | $request = $this->getRequest();
54 | $marketplace = $request->getParam('marketplace');
55 | $sellerId = $request->getParam('seller_id');
56 | $accessKey = $request->getParam('access_key_id');
57 | $secretKey = $request->getParam('secret_access_key');
58 |
59 | /**
60 | * @var Amazon_MCF_Model_Service_Sellers $service
61 | */
62 | $service = Mage::getModel('amazon_mcf/service_sellers');
63 | $result = $service->validateCredentials(
64 | $marketplace,
65 | $sellerId,
66 | $accessKey,
67 | $secretKey
68 | );
69 |
70 | if ($result) {
71 | $jsonData = array(
72 | 'result' => true,
73 | 'message' => ''
74 | . $this->__(
75 | "Your Amazon MWS API credentials are valid,
76 | please save config to apply."
77 | ) . '',
78 | );
79 | } else {
80 | $jsonData = array(
81 | 'result' => true,
82 | 'message' => ''
83 | . $this->__(
84 | "Your Amazon MWS API credentials are not valid.
85 | Please verify keys were entered correctly, and check user guide
86 | for more details on obtaining keys."
87 | ) . '',
88 | );
89 | }
90 |
91 | $this->getResponse()->setHeader(
92 | 'Content-type',
93 | 'application/json'
94 | );
95 | $this->getResponse()
96 | ->setBody(Mage::helper('core')->jsonEncode($jsonData));
97 | }
98 |
99 | /**
100 | * Only allow admins with appropriate permission to run these actions
101 | *
102 | * @return mixed
103 | */
104 | protected function _isAllowed()
105 | {
106 | return Mage::getSingleton('admin/session')
107 | ->isAllowed('system/config/amazon_mcf');
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/app/code/community/Amazon/MCF/Model/Service/Inventory.php:
--------------------------------------------------------------------------------
1 | helper;
56 | $client = $this->getClient();
57 |
58 | $request = $this->getRequest(
59 | array(
60 | 'SellerSkus' => $sellerSKUs,
61 | )
62 | );
63 |
64 | if ($startTime && !$sellerSKUs) {
65 | $request['QueryStartDateTime'] = $startTime;
66 | }
67 |
68 | try {
69 | $helper->logApi(
70 | 'listInventorySupply request: '
71 | . var_export($request, true)
72 | );
73 | $response = $client->listInventorySupply($request);
74 | $helper->logApi(
75 | 'listInventorySupply response: ' . $response->toXML()
76 | );
77 | } catch (\FBAInventoryServiceMWS_Exception $e) {
78 | $response = null;
79 | $helper->logApiError('listInventorySupply', $e);
80 | }
81 |
82 | return $response;
83 | }
84 |
85 | /**
86 | * @param string $nextToken
87 | * @return null
88 | */
89 | public function getListInventorySupplyByNextToken($nextToken)
90 | {
91 |
92 | /**
93 | * @var Amazon_MCF_Helper_Data $helper
94 | */
95 | $helper = $this->helper;
96 | $client = $this->getClient();
97 |
98 | $request = $this->getRequest(
99 | array(
100 | 'NextToken' => $nextToken
101 | )
102 | );
103 |
104 | try {
105 | $helper->logApi(
106 | 'listInventorySupplyByNextToken request: '
107 | . var_export($request, true)
108 | );
109 | $response = $client->listInventorySupplyByNextToken($request);
110 | $helper->logApi(
111 | 'listInventorySupplyByNextToken response: '
112 | . $response->toXML()
113 | );
114 | } catch (\FBAInventoryServiceMWS_Exception $e) {
115 | $response = null;
116 | $helper->logApiError('listInventorySupplyByNextToken', $e);
117 | }
118 |
119 | return $response;
120 | }
121 | }
122 |
--------------------------------------------------------------------------------