Skip to content

Commit

Permalink
fix: adds types to ChargeTypeEnum, TaxCollectionModelEnum, `Adjus…
Browse files Browse the repository at this point in the history
…tmentTypeEnum` (ScaleLeap#448)

Closes ScaleLeap#447
  • Loading branch information
AlexanderGaivorontsev committed Oct 28, 2021
1 parent eecb7e7 commit 8aafc98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sections/finances/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export enum ChargeTypeEnum {
'TCS-SGST' = 'TCS-SGST',
'TCS-IGST' = 'TCS-IGST',
'TCS-UTGST' = 'TCS-UTGST',
'LowValueGoodsTax-Shipping' = 'LowValueGoodsTax-Shipping',
'LowValueGoodsTax-Principal' = 'LowValueGoodsTax-Principal',
}

const ChargeType = enumeration(ChargeTypeEnum)
Expand Down Expand Up @@ -116,6 +118,7 @@ const DirectPayment = Codec.interface({
export enum TaxCollectionModelEnum {
MarketplaceFacilitator = 'MarketplaceFacilitator',
Standard = 'Standard',
LowValueGoods = 'LowValueGoods',
}

const TaxCollectionModel = enumeration(TaxCollectionModelEnum)
Expand Down Expand Up @@ -338,6 +341,12 @@ export enum AdjustmentTypeEnum {
ReversalReimbursement = 'REVERSAL_REIMBURSEMENT',
SellerRewards = 'SellerRewards',
WAREHOUSE_DAMAGE = 'WAREHOUSE_DAMAGE',
FREE_REPLACEMENT_REFUND_ITEMS = 'FREE_REPLACEMENT_REFUND_ITEMS',
Other = 'Other',
COMPENSATED_CLAWBACK = 'COMPENSATED_CLAWBACK',
WAREHOUSE_LOST = 'WAREHOUSE_LOST',
LowValueGoods = 'LowValueGoods',
ItemTaxWithheldList = 'ItemTaxWithheldList',
}

const AdjustmentType = enumeration(AdjustmentTypeEnum)
Expand Down

0 comments on commit 8aafc98

Please sign in to comment.