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: unit test for competitive pricing for ASIN
- Loading branch information
1 parent
b5346c5
commit 18d4b83
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
test/unit/__fixtures__/products_get_competitive_pricing_for_asin.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,44 @@ | ||
<GetCompetitivePricingForASINResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01"> | ||
<GetCompetitivePricingForASINResult ASIN="B002KT3XQM" status="Success"> | ||
<Product xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01" xmlns:ns2="http://mws.amazonservices.com/schema/Products/2011-10-01/default.xsd"> | ||
<Identifiers> | ||
<MarketplaceASIN> | ||
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId> | ||
<ASIN>B002KT3XQM</ASIN> | ||
</MarketplaceASIN> | ||
</Identifiers> | ||
<CompetitivePricing> | ||
<CompetitivePrices> | ||
<CompetitivePrice belongsToRequester="false" | ||
condition="New" | ||
subcondition="New"> | ||
<CompetitivePriceId>1</CompetitivePriceId> | ||
<Price> | ||
<LandedPrice> | ||
<CurrencyCode>USD</CurrencyCode> | ||
<Amount>34.27</Amount> | ||
</LandedPrice> | ||
<ListingPrice> | ||
<CurrencyCode>USD</CurrencyCode> | ||
<Amount>34.27</Amount> | ||
</ListingPrice> | ||
<Shipping> | ||
<CurrencyCode>USD</CurrencyCode> | ||
<Amount>0.00</Amount> | ||
</Shipping> | ||
</Price> | ||
</CompetitivePrice> | ||
</CompetitivePrices> | ||
<NumberOfOfferListings> | ||
<OfferListingCount condition="Any">11</OfferListingCount> | ||
<OfferListingCount condition="Used">1</OfferListingCount> | ||
<OfferListingCount condition="New">10</OfferListingCount> | ||
</NumberOfOfferListings> | ||
</CompetitivePricing> | ||
<SalesRankings/> | ||
</Product> | ||
</GetCompetitivePricingForASINResult> | ||
<ResponseMetadata> | ||
<RequestId>a8ec20c3-fc88-46e3-a128-EXAMPLE3fcdf</RequestId> | ||
</ResponseMetadata> | ||
</GetCompetitivePricingForASINResponse> |
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