Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
feat: add fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed May 11, 2020
1 parent b834af3 commit 8ce8f15
Show file tree
Hide file tree
Showing 8 changed files with 269 additions and 267 deletions.
6 changes: 6 additions & 0 deletions test/unit/__fixtures__/get_service_status.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<GetServiceStatusResponse>
<GetServiceStatusResult>
<Status>GREEN</Status>
<Timestamp>2020-05-06T08:22:23.582Z</Timestamp>
</GetServiceStatusResult>
</GetServiceStatusResponse>
161 changes: 161 additions & 0 deletions test/unit/__fixtures__/orders_list_orders.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<ListOrdersResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
<ListOrdersResult>
<NextToken>2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=</NextToken>
<LastUpdatedBefore>2017-02-25T18%3A10%3A21.687Z</LastUpdatedBefore>
<Orders>
<Order>
<AmazonOrderId>902-3159896-1390916</AmazonOrderId>
<PurchaseDate>2017-02-20T19:49:35Z</PurchaseDate>
<LastUpdateDate>2017-02-20T19:49:35Z</LastUpdateDate>
<OrderStatus>Unshipped</OrderStatus>
<FulfillmentChannel>MFN</FulfillmentChannel>
<SalesChannel>Amazon.com</SalesChannel>
<ShippingAddress>
<Name>Buyer name</Name>
<AddressLine1>1234 Any St.</AddressLine1>
<City>Seattle</City>
<PostalCode>98103</PostalCode>
<CountryCode>US</CountryCode>
<AddressType>Commercial</AddressType>
</ShippingAddress>
<OrderTotal>
<CurrencyCode>USD</CurrencyCode>
<Amount>25.00</Amount>
</OrderTotal>
<NumberOfItemsShipped>0</NumberOfItemsShipped>
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
<PaymentMethod>Other</PaymentMethod>
<PaymentMethodDetails>
<PaymentMethodDetail>CreditCard</PaymentMethodDetail>
</PaymentMethodDetails>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<BuyerEmail>5vlhEXAMPLEh9h5@marketplace.amazon.com</BuyerEmail>
<BuyerName>Buyer name</BuyerName>
<BuyerTaxInfo>
<CompanyLegalName>Company Name</CompanyLegalName>
<TaxingRegion>US</TaxingRegion>
<TaxClassifications>
<TaxClassification>
<Name>VATNumber</Name>
<Value>XXX123</Value>
</TaxClassification>
</TaxClassifications>
</BuyerTaxInfo>
<OrderType>StandardOrder</OrderType>
<EarliestShipDate>2017-02-20T19:51:16Z</EarliestShipDate>
<LatestShipDate>2017-02-25T19:49:35Z</LatestShipDate>
<IsBusinessOrder>true</IsBusinessOrder>
<PurchaseOrderNumber>PO12345678</PurchaseOrderNumber>
<IsPrime>false</IsPrime>
<IsPremiumOrder>false</IsPremiumOrder>
<IsGlobalExpressEnabled>false</IsGlobalExpressEnabled>
</Order>
<Order>
<AmazonOrderId>483-3488972-0896720</AmazonOrderId>
<PurchaseDate>2017-02-20T19:49:35Z</PurchaseDate>
<LastUpdateDate>2017-02-20T19:49:35Z</LastUpdateDate>
<OrderStatus>Unshipped</OrderStatus>
<FulfillmentChannel>MFN</FulfillmentChannel>
<ShippingAddress>
<Name>Buyer name</Name>
<AddressLine1>1234 Avenida Qualquer</AddressLine1>
<City>Sao Paulo</City>
<PostalCode>08474-130</PostalCode>
<CountryCode>BR</CountryCode>
<AddressType>Residential</AddressType>
</ShippingAddress>
<OrderTotal>
<CurrencyCode>BRL</CurrencyCode>
<Amount>100.00</Amount>
</OrderTotal>
<NumberOfItemsShipped>0</NumberOfItemsShipped>
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
<PaymentMethod>Other</PaymentMethod>
<PaymentMethodDetails>
<PaymentMethodDetail>CreditCard</PaymentMethodDetail>
</PaymentMethodDetails>
<MarketplaceId>A2Q3Y263D00KWC</MarketplaceId>
<BuyerEmail>5vlhEXAMPLEh9h5@marketplace.amazon.com.br</BuyerEmail>
<BuyerName>John Jones</BuyerName>
<BuyerCounty>Vila Olimpia</BuyerCounty>
<BuyerTaxInfo>
<TaxingRegion>BR</TaxingRegion>
<TaxClassifications>
<TaxClassification>
<Name>CSTNumber</Name>
<Value>XXX123</Value>
</TaxClassification>
</TaxClassifications>
</BuyerTaxInfo>
<EarliestShipDate>2017-02-20T19:51:16Z</EarliestShipDate>
<LatestShipDate>2017-02-25T19:49:35Z</LatestShipDate>
<IsBusinessOrder>false</IsBusinessOrder>
<IsPrime>false</IsPrime>
<IsPremiumOrder>false</IsPremiumOrder>
<IsGlobalExpressEnabled>false</IsGlobalExpressEnabled>
</Order>
<Order>
<AmazonOrderId>058-1233752-8214740</AmazonOrderId>
<PurchaseDate>2017-02-05T00%3A06%3A07.000Z</PurchaseDate>
<LastUpdateDate>2017-02-07T12%3A43%3A16.000Z</LastUpdateDate>
<OrderStatus>Unshipped</OrderStatus>
<FulfillmentChannel>MFN</FulfillmentChannel>
<ShipServiceLevel>Std JP Kanto8</ShipServiceLevel>
<ShippingAddress>
<Name>Jane Smith</Name>
<AddressLine1>1-2-10 Akasaka</AddressLine1>
<City>Tokyo</City>
<PostalCode>107-0053</PostalCode>
<CountryCode>JP</CountryCode>
</ShippingAddress>
<OrderTotal>
<CurrencyCode>JPY</CurrencyCode>
<Amount>1507.00</Amount>
</OrderTotal>
<NumberOfItemsShipped>0</NumberOfItemsShipped>
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
<PaymentExecutionDetail>
<PaymentExecutionDetailItem>
<Payment>
<Amount>10.00</Amount>
<CurrencyCode>JPY</CurrencyCode>
</Payment>
<PaymentMethod>PointsAccount</PaymentMethod>
</PaymentExecutionDetailItem>
<PaymentExecutionDetailItem>
<Payment>
<Amount>317.00</Amount>
<CurrencyCode>JPY</CurrencyCode>
</Payment>
<PaymentMethod>GC</PaymentMethod>
</PaymentExecutionDetailItem>
<PaymentExecutionDetailItem>
<Payment>
<Amount>1180.00</Amount>
<CurrencyCode>JPY</CurrencyCode>
</Payment>
<PaymentMethod>COD</PaymentMethod>
</PaymentExecutionDetailItem>
</PaymentExecutionDetail>
<PaymentMethod>COD</PaymentMethod>
<PaymentMethodDetails>
<PaymentMethodDetail>COD</PaymentMethodDetail>
</PaymentMethodDetails>
<MarketplaceId>A1VC38T7YXB528</MarketplaceId>
<BuyerEmail>5vlhEXAMPLEh9h5@marketplace.amazon.co.jp</BuyerEmail>
<BuyerName>Jane Smith</BuyerName>
<ShipmentServiceLevelCategory>Standard </ShipmentServiceLevelCategory>
<OrderType>SourcingOnDemandOrder</OrderType>
<IsBusinessOrder>false</IsBusinessOrder>
<IsPrime>false</IsPrime>
<IsPremiumOrder>false</IsPremiumOrder>
<IsGlobalExpressEnabled>false</IsGlobalExpressEnabled>
<PromiseResponseDueDate>2017-08-31T23:58:44Z</PromiseResponseDueDate>
<IsEstimatedShipDateSet>true</IsEstimatedShipDateSet>
</Order>
</Orders>
</ListOrdersResult>
<ResponseMetadata>
<RequestId>88faca76-b600-46d2-b53c-0c8c4533e43a</RequestId>
</ResponseMetadata>
</ListOrdersResponse>
10 changes: 10 additions & 0 deletions test/unit/__fixtures__/orders_list_orders_nt.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<ListOrdersByNextTokenResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
<ListOrdersByNextTokenResult>
<NextToken>2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=</NextToken>
<LastUpdatedBefore>2017-02-25T18%3A10%3A21.687Z</LastUpdatedBefore>
<Orders />
</ListOrdersByNextTokenResult>
<ResponseMetadata>
<RequestId>88faca76-b600-46d2-b53c-0c8c4533e43a</RequestId>
</ResponseMetadata>
</ListOrdersByNextTokenResponse>
37 changes: 37 additions & 0 deletions test/unit/__fixtures__/sellers_list_marketplace_participations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<ListMarketplaceParticipationsResponse xmlns="https://mws.amazonservices.com/Sellers/2011-07-01">
<ListMarketplaceParticipationsResult>
<ListParticipations>
<Participation>
<MarketplaceId>A2EUQ1WTGCTBG2</MarketplaceId>
<SellerId>x</SellerId>
<HasSellerSuspendedListings>No</HasSellerSuspendedListings>
</Participation>
<Participation>
<MarketplaceId>A6W85IYQ5WB1C</MarketplaceId>
<SellerId>x</SellerId>
<HasSellerSuspendedListings>No</HasSellerSuspendedListings>
</Participation>
</ListParticipations>
<ListMarketplaces>
<Marketplace>
<MarketplaceId>A2EUQ1WTGCTBG2</MarketplaceId>
<DefaultCountryCode>CA</DefaultCountryCode>
<DomainName>www.amazon.ca</DomainName>
<Name>Amazon.ca</Name>
<DefaultCurrencyCode>CAD</DefaultCurrencyCode>
<DefaultLanguageCode>en_CA</DefaultLanguageCode>
</Marketplace>
<Marketplace>
<MarketplaceId>A6W85IYQ5WB1C</MarketplaceId>
<DefaultCountryCode>US</DefaultCountryCode>
<DomainName>iba.login.amazon.com</DomainName>
<Name>IBA</Name>
<DefaultCurrencyCode>USD</DefaultCurrencyCode>
<DefaultLanguageCode>en_US</DefaultLanguageCode>
</Marketplace>
</ListMarketplaces>
</ListMarketplaceParticipationsResult>
<ResponseMetadata>
<RequestId>bd71c84f-d2a6-4ce0-ae41-6dc8a13ce637</RequestId>
</ResponseMetadata>
</ListMarketplaceParticipationsResponse>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<ListMarketplaceParticipationsByNextTokenResponse xmlns="https://mws.amazonservices.com/Sellers/2011-07-01">
<ListMarketplaceParticipationsByNextTokenResult>
<ListParticipations>
<Participation>
<MarketplaceId>A2EUQ1WTGCTBG2</MarketplaceId>
<SellerId>x</SellerId>
<HasSellerSuspendedListings>No</HasSellerSuspendedListings>
</Participation>
<Participation>
<MarketplaceId>A6W85IYQ5WB1C</MarketplaceId>
<SellerId>x</SellerId>
<HasSellerSuspendedListings>No</HasSellerSuspendedListings>
</Participation>
</ListParticipations>
<ListMarketplaces>
<Marketplace>
<MarketplaceId>A2EUQ1WTGCTBG2</MarketplaceId>
<DefaultCountryCode>CA</DefaultCountryCode>
<DomainName>www.amazon.ca</DomainName>
<Name>Amazon.ca</Name>
<DefaultCurrencyCode>CAD</DefaultCurrencyCode>
<DefaultLanguageCode>en_CA</DefaultLanguageCode>
</Marketplace>
<Marketplace>
<MarketplaceId>A6W85IYQ5WB1C</MarketplaceId>
<DefaultCountryCode>US</DefaultCountryCode>
<DomainName>iba.login.amazon.com</DomainName>
<Name>IBA</Name>
<DefaultCurrencyCode>USD</DefaultCurrencyCode>
<DefaultLanguageCode>en_US</DefaultLanguageCode>
</Marketplace>
</ListMarketplaces>
</ListMarketplaceParticipationsByNextTokenResult>
<ResponseMetadata>
<RequestId>bd71c84f-d2a6-4ce0-ae41-6dc8a13ce637</RequestId>
</ResponseMetadata>
</ListMarketplaceParticipationsByNextTokenResponse>
Loading

0 comments on commit 8ce8f15

Please sign in to comment.