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

Commit

Permalink
feat: made SolutionProviderCreditEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jun 18, 2020
1 parent 5e533a1 commit 69f2509
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/sections/finances/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,25 @@ const PayWithAmazonEvent = Codec.interface({
StoreName: optional(string),
})

/**
* @todo
*/
const ServiceProviderCreditEvent = unknown
enum ProviderTransactionTypeEnum {
ProviderCredit = 'ProviderCredit',
ProviderCreditReversal = 'ProviderCreditReversal',
}

const ProviderTransactionType = enumeration(ProviderTransactionTypeEnum)

const SolutionProviderCreditEvent = Codec.interface({
ProviderTransactionType: optional(ProviderTransactionType),
SellerOrderId: optional(ensureString),
MarketplaceId: optional(string),
MarketplaceCountryCode: optional(string),
SellerId: optional(string),
SellerStoreName: optional(string),
ProviderId: optional(string),
ProviderStoreName: optional(string),
})

const ServiceProviderCreditEvent = SolutionProviderCreditEvent
/**
* @todo
*/
Expand Down

0 comments on commit 69f2509

Please sign in to comment.