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

Commit

Permalink
fix: include all response properties in sellers codec
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed May 4, 2020
1 parent 39cc968 commit ebc508e
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions src/sections/sellers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,28 @@ interface MarketplaceParticipationsResponse {
}

const MarketplaceParticipations = Codec.interface({
Participations: ensureArray(
Codec.interface({
MarketplaceId: string,
SellerId: string,
HasSellerSuspendedListings: mwsBoolean,
}),
),
Marketplaces: ensureArray(
Codec.interface({
MarketplaceId: string,
Name: string,
DefaultCountryCode: string,
DefaultCurrencyCode: string,
DefaultLanguageCode: string,
DomainName: string,
}),
),
NextToken: string,
ListParticipations: Codec.interface({
Participations: ensureArray(
Codec.interface({
MarketplaceId: string,
SellerId: string,
HasSellerSuspendedListings: mwsBoolean,
}),
),
}),
ListMarketplaces: Codec.interface({
Marketplaces: ensureArray(
Codec.interface({
MarketplaceId: string,
Name: string,
DefaultCountryCode: string,
DefaultCurrencyCode: string,
DefaultLanguageCode: string,
DomainName: string,
}),
),
}),
})

type MarketplaceParticipations = GetInterface<typeof MarketplaceParticipations>
Expand Down

0 comments on commit ebc508e

Please sign in to comment.