This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add unit test for getFbaOutboundShipmentDetail
- Loading branch information
1 parent
89af12c
commit 51bc669
Showing
3 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
test/unit/__fixtures__/shipment_invoicing_get_fba_outbound_shipment_detail.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<GetFBAOutboundShipmentDetailResponse xmlns="http://mws.amazonservices.com/schema/ShipmentInvoicing/2018-09-01"> | ||
<GetFBAOutboundShipmentDetailResult> | ||
<ShipmentDetail> | ||
<PurchaseDate>2018-04-16T14:44:38Z</PurchaseDate> | ||
<WarehouseId>XXXX</WarehouseId> | ||
<AmazonOrderId>701-0000000-0000000</AmazonOrderId> | ||
<AmazonShipmentId>DrLqQwqvb</AmazonShipmentId> | ||
<BuyerTaxInfo> | ||
<TaxClassifications> | ||
<TaxClassification> | ||
<Name>CPF</Name> | ||
<Value>99999999999</Value> | ||
</TaxClassification> | ||
</TaxClassifications> | ||
</BuyerTaxInfo> | ||
<PaymentMethodDetails> | ||
<PaymentMethodDetail>CreditCard</PaymentMethodDetail> | ||
</PaymentMethodDetails> | ||
<BuyerCounty>Centro</BuyerCounty> | ||
<BuyerName>Fulano da Silva</BuyerName> | ||
<MarketplaceId>A2Q3Y263D00KWC</MarketplaceId> | ||
<ShippingAddress> | ||
<City>SAO PAULO</City> | ||
<PostalCode>00000-000</PostalCode> | ||
<StateOrRegion>SP</StateOrRegion> | ||
<Phone>11912345678</Phone> | ||
<CountryCode>BR</CountryCode> | ||
<Name>Beltrano da Silva</Name> | ||
<AddressLine1>Rua da Consolação, 700</AddressLine1> | ||
<AddressLine2>Apto 32</AddressLine2> | ||
</ShippingAddress> | ||
<ShipmentItems> | ||
<ShipmentItem> | ||
<QuantityOrdered>2</QuantityOrdered> | ||
<Title>iPhone X Apple Cinza Espacial, 64 GB e Câmera 12 MP</Title> | ||
<PromotionDiscount> | ||
<CurrencyCode>BRL</CurrencyCode> | ||
<Amount>0.00</Amount> | ||
</PromotionDiscount> | ||
<ASIN>B078HVJB69</ASIN> | ||
<SellerSKU>XY-1A0O-B1CD</SellerSKU> | ||
<OrderItemId>19441439621890</OrderItemId> | ||
<ShippingPrice> | ||
<CurrencyCode>BRL</CurrencyCode> | ||
<Amount>30.00</Amount> | ||
</ShippingPrice> | ||
<GiftWrapPrice> | ||
<CurrencyCode>BRL</CurrencyCode> | ||
<Amount>0.00</Amount> | ||
</GiftWrapPrice> | ||
<ItemPrice> | ||
<CurrencyCode>BRL</CurrencyCode> | ||
<Amount>5099.99</Amount> | ||
</ItemPrice> | ||
<ShippingDiscount> | ||
<CurrencyCode>BRL</CurrencyCode> | ||
<Amount>0.00</Amount> | ||
</ShippingDiscount> | ||
<SerialNumbers> | ||
<SerialNumber>1234567890</SerialNumber> | ||
<SerialNumber>1234567687</SerialNumber> | ||
</SerialNumbers> | ||
</ShipmentItem> | ||
</ShipmentItems> | ||
</ShipmentDetail> | ||
</GetFBAOutboundShipmentDetailResult> | ||
<ResponseMetadata> | ||
<RequestId>88faca76-b600-46d2-b53c-0c8c4533e43a</RequestId> | ||
</ResponseMetadata> | ||
</GetFBAOutboundShipmentDetailResponse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters