Skip to content

Commit

Permalink
feat: update for tds reimbursement (#244)
Browse files Browse the repository at this point in the history
Co-authored-by: nguyentoanit <[email protected]>
  • Loading branch information
github-actions[bot] and nguyentoanit authored Sep 17, 2021
1 parent c062334 commit 95d3928
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 31 deletions.
193 changes: 173 additions & 20 deletions src/api-models/finances-api-model/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,36 @@ export interface FinancialEvents {
* @memberof FinancialEvents
*/
AffordabilityExpenseReversalEventList?: Array<AffordabilityExpenseEvent>;
/**
* A list of information about trial shipment financial events.
* @type {Array<TrialShipmentEvent>}
* @memberof FinancialEvents
*/
TrialShipmentEventList?: Array<TrialShipmentEvent>;
/**
* A list of information about shipment settle financial events.
* @type {Array<ShipmentEvent>}
* @memberof FinancialEvents
*/
ShipmentSettleEventList?: Array<ShipmentEvent>;
/**
* List of TaxWithholding events.
* @type {Array<TaxWithholdingEvent>}
* @memberof FinancialEvents
*/
TaxWithholdingEventList?: Array<TaxWithholdingEvent>;
/**
* A list of removal shipment event information.
* @type {Array<RemovalShipmentEvent>}
* @memberof FinancialEvents
*/
RemovalShipmentEventList?: Array<RemovalShipmentEvent>;
/**
* A comma-delimited list of Removal shipmentAdjustment details for FBA inventory.
* @type {Array<RemovalShipmentAdjustmentEvent>}
* @memberof FinancialEvents
*/
RemovalShipmentAdjustmentEventList?: Array<RemovalShipmentAdjustmentEvent>;
}
/**
* A fee event related to Amazon Imaging services.
Expand Down Expand Up @@ -970,6 +1000,49 @@ export interface Promotion {
*/
PromotionAmount?: Currency;
}
/**
* A financial adjustment event for FBA liquidated inventory. Possible adjustment: * Positive values - Buyer needs to pay more amount to Amazon. E.g. charge was wrongly calculated 0$ instead of 100$ due to system error. * Negative Values - Buyer get refund. E.g. Buyer receives less items or damaged items and as part of their adjustment buyer gets refund.
* @export
* @interface RemovalShipmentAdjustmentEvent
*/
export interface RemovalShipmentAdjustmentEvent {
/**
*
* @type {string}
* @memberof RemovalShipmentAdjustmentEvent
*/
PostedDate?: string;
/**
* The unique identifier for the adjustment event.
* @type {string}
* @memberof RemovalShipmentAdjustmentEvent
*/
AdjustmentEventId?: string;
/**
* The merchant removal orderId.
* @type {string}
* @memberof RemovalShipmentAdjustmentEvent
*/
MerchantOrderId?: string;
/**
* The orderId for shipping inventory.
* @type {string}
* @memberof RemovalShipmentAdjustmentEvent
*/
OrderId?: string;
/**
* The type of removal order. Possible values: * WHOLESALE_LIQUIDATION.
* @type {string}
* @memberof RemovalShipmentAdjustmentEvent
*/
TransactionType?: string;
/**
* A comma-delimited list of Removal shipmentItemAdjustment details for FBA inventory.
* @type {Array<RemovalShipmentItemAdjustment>}
* @memberof RemovalShipmentAdjustmentEvent
*/
RemovalShipmentItemAdjustmentList?: Array<RemovalShipmentItemAdjustment>;
}
/**
* A removal shipment event for a removal order.
* @export
Expand All @@ -982,6 +1055,12 @@ export interface RemovalShipmentEvent {
* @memberof RemovalShipmentEvent
*/
PostedDate?: string;
/**
* The merchant removal orderId.
* @type {string}
* @memberof RemovalShipmentEvent
*/
MerchantOrderId?: string;
/**
* The identifier for the removal shipment order.
* @type {string}
Expand Down Expand Up @@ -1056,6 +1135,55 @@ export interface RemovalShipmentItem {
*/
TaxWithheld?: Currency;
}
/**
* Item-level information for a removal shipment item adjustment.
* @export
* @interface RemovalShipmentItemAdjustment
*/
export interface RemovalShipmentItemAdjustment {
/**
* An identifier for an item in a removal shipment.
* @type {string}
* @memberof RemovalShipmentItemAdjustment
*/
RemovalShipmentItemId?: string;
/**
* The tax collection model applied to the item. Possible values: * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon.
* @type {string}
* @memberof RemovalShipmentItemAdjustment
*/
TaxCollectionModel?: string;
/**
* The Amazon fulfillment network SKU for the item.
* @type {string}
* @memberof RemovalShipmentItemAdjustment
*/
FulfillmentNetworkSKU?: string;
/**
* Adjusted quantity of removal shipmentItemAdjustment items.
* @type {number}
* @memberof RemovalShipmentItemAdjustment
*/
AdjustedQuantity?: number;
/**
*
* @type {Currency}
* @memberof RemovalShipmentItemAdjustment
*/
RevenueAdjustment?: Currency;
/**
*
* @type {Currency}
* @memberof RemovalShipmentItemAdjustment
*/
TaxAmountAdjustment?: Currency;
/**
*
* @type {Currency}
* @memberof RemovalShipmentItemAdjustment
*/
TaxWithheldAdjustment?: Currency;
}
/**
* An event related to a rental transaction.
* @export
Expand Down Expand Up @@ -1619,48 +1747,73 @@ export interface SolutionProviderCreditEvent {
TransactionCreationDate?: string;
}
/**
* A tax deduction at source (TDS) claim reimbursement event on the seller\'s account.
* Information about the taxes withheld.
* @export
* @interface TDSReimbursementEvent
* @interface TaxWithheldComponent
*/
export interface TDSReimbursementEvent {
export interface TaxWithheldComponent {
/**
* The tax collection model applied to the item. Possible values: * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon.
* @type {string}
* @memberof TaxWithheldComponent
*/
TaxCollectionModel?: string;
/**
* A list of charge information on the seller\'s account.
* @type {Array<ChargeComponent>}
* @memberof TaxWithheldComponent
*/
TaxesWithheld?: Array<ChargeComponent>;
}
/**
* A TaxWithholding event on seller\'s account.
* @export
* @interface TaxWithholdingEvent
*/
export interface TaxWithholdingEvent {
/**
*
* @type {string}
* @memberof TDSReimbursementEvent
* @memberof TaxWithholdingEvent
*/
PostedDate?: string;
/**
* A tax deduction at source (TDS) claim identifier.
* @type {string}
* @memberof TDSReimbursementEvent
*
* @type {Currency}
* @memberof TaxWithholdingEvent
*/
TdsOrderId?: string;
BaseAmount?: Currency;
/**
*
* @type {Currency}
* @memberof TDSReimbursementEvent
* @memberof TaxWithholdingEvent
*/
ReimbursedAmount?: Currency;
WithheldAmount?: Currency;
/**
*
* @type {TaxWithholdingPeriod}
* @memberof TaxWithholdingEvent
*/
TaxWithholdingPeriod?: TaxWithholdingPeriod;
}
/**
* Information about the taxes withheld.
* Period which taxwithholding on seller\'s account is calculated.
* @export
* @interface TaxWithheldComponent
* @interface TaxWithholdingPeriod
*/
export interface TaxWithheldComponent {
export interface TaxWithholdingPeriod {
/**
* The tax collection model applied to the item. Possible values: * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon.
*
* @type {string}
* @memberof TaxWithheldComponent
* @memberof TaxWithholdingPeriod
*/
TaxCollectionModel?: string;
StartDate?: string;
/**
* A list of charge information on the seller\'s account.
* @type {Array<ChargeComponent>}
* @memberof TaxWithheldComponent
*
* @type {string}
* @memberof TaxWithholdingPeriod
*/
TaxesWithheld?: Array<ChargeComponent>;
EndDate?: string;
}
/**
* An event related to a trial shipment.
Expand Down
5 changes: 4 additions & 1 deletion src/api-models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,10 @@ export {
PayWithAmazonEvent as FinancesApiModelPayWithAmazonEvent,
ProductAdsPaymentEvent as FinancesApiModelProductAdsPaymentEvent,
Promotion as FinancesApiModelPromotion,
RemovalShipmentAdjustmentEvent as FinancesApiModelRemovalShipmentAdjustmentEvent,
RemovalShipmentEvent as FinancesApiModelRemovalShipmentEvent,
RemovalShipmentItem as FinancesApiModelRemovalShipmentItem,
RemovalShipmentItemAdjustment as FinancesApiModelRemovalShipmentItemAdjustment,
RentalTransactionEvent as FinancesApiModelRentalTransactionEvent,
RetrochargeEvent as FinancesApiModelRetrochargeEvent,
SAFETReimbursementEvent as FinancesApiModelSAFETReimbursementEvent,
Expand All @@ -259,8 +261,9 @@ export {
ShipmentEvent as FinancesApiModelShipmentEvent,
ShipmentItem as FinancesApiModelShipmentItem,
SolutionProviderCreditEvent as FinancesApiModelSolutionProviderCreditEvent,
TDSReimbursementEvent as FinancesApiModelTDSReimbursementEvent,
TaxWithheldComponent as FinancesApiModelTaxWithheldComponent,
TaxWithholdingEvent as FinancesApiModelTaxWithholdingEvent,
TaxWithholdingPeriod as FinancesApiModelTaxWithholdingPeriod,
TrialShipmentEvent as FinancesApiModelTrialShipmentEvent,
DefaultApiListFinancialEventGroupsRequest as FinancesApiModelDefaultApiListFinancialEventGroupsRequest,
DefaultApiListFinancialEventsRequest as FinancesApiModelDefaultApiListFinancialEventsRequest,
Expand Down
6 changes: 3 additions & 3 deletions src/api-models/merchant-fulfillment-api-model/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export interface GetAdditionalSellerInputsRequest {
*/
ShipFromAddress: Address;
/**
* An Amazon-defined order identifier, in 3-7-7 format. <br>**Pattern** : `[0-9A-Z]{3}-[0-9]{7}-[0-9]{7}`.
* An Amazon-defined order identifier, in 3-7-7 format.
* @type {string}
* @memberof GetAdditionalSellerInputsRequest
*/
Expand Down Expand Up @@ -1038,7 +1038,7 @@ export interface Shipment {
*/
ShipmentId: string;
/**
* An Amazon-defined order identifier, in 3-7-7 format. <br>**Pattern** : `[0-9A-Z]{3}-[0-9]{7}-[0-9]{7}`.
* An Amazon-defined order identifier, in 3-7-7 format.
* @type {string}
* @memberof Shipment
*/
Expand Down Expand Up @@ -1129,7 +1129,7 @@ export interface Shipment {
*/
export interface ShipmentRequestDetails {
/**
* An Amazon-defined order identifier, in 3-7-7 format. <br>**Pattern** : `[0-9A-Z]{3}-[0-9]{7}-[0-9]{7}`.
* An Amazon-defined order identifier, in 3-7-7 format.
* @type {string}
* @memberof ShipmentRequestDetails
*/
Expand Down
6 changes: 0 additions & 6 deletions src/api-models/product-pricing-api-model/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,6 @@ export enum OfferCustomerType {
* @interface OfferDetail
*/
export interface OfferDetail {
/**
* The seller identifier for the offer.
* @type {string}
* @memberof OfferDetail
*/
sellerId?: string;
/**
* When true, this is the seller\'s offer.
* @type {boolean}
Expand Down
2 changes: 1 addition & 1 deletion src/api-models/sales-api-model/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export interface Money {
*/
currencyCode: string;
/**
* A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`.
* A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation.
* @type {string}
* @memberof Money
*/
Expand Down

0 comments on commit 95d3928

Please sign in to comment.