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

Commit

Permalink
fix: fix parameters registerDestination
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 15, 2020
1 parent 3368363 commit 908ecfd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/sections/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ interface Destination {
interface RegisterDestinationParameters {
MarketplaceId: string
Destination: Destination
[key: string]: string | Destination
}

const RegisterDestinationResponse = Codec.interface({
Expand All @@ -37,7 +36,13 @@ export class Subscriptions {
resource: Resource.Subscriptions,
version: SUBSCRIPTIONS_API_VERSION,
action: 'RegisterDestination',
parameters,
parameters: {
MarketplaceId: parameters.MarketplaceId,
Destination: {
DeliveryChannel: parameters.Destination.DeliveryChannel,
'AttributeList.member': parameters.Destination.AttributeList,
},
},
})

return RegisterDestinationResponse.decode(response).caseOf({
Expand Down

0 comments on commit 908ecfd

Please sign in to comment.