@sp-api-sdk/shipment-invoicing-api-v0 4.0.3 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
21
+ exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
22
  exports.COLLECTION_FORMATS = {
23
23
  csv: ",",
24
24
  ssv: " ",
@@ -22,6 +22,8 @@ __exportStar(require("./get-shipment-details-response"), exports);
22
22
  __exportStar(require("./marketplace-tax-info"), exports);
23
23
  __exportStar(require("./model-error"), exports);
24
24
  __exportStar(require("./money"), exports);
25
+ __exportStar(require("./payment-information"), exports);
26
+ __exportStar(require("./payment-method-enum"), exports);
25
27
  __exportStar(require("./shipment-detail"), exports);
26
28
  __exportStar(require("./shipment-invoice-status"), exports);
27
29
  __exportStar(require("./shipment-invoice-status-info"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Shipment Invoicing
6
+ * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Shipment Invoicing
6
+ * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PaymentMethodEnum = void 0;
17
+ /**
18
+ * Payment methods
19
+ */
20
+ exports.PaymentMethodEnum = {
21
+ CreditCard: 'CreditCard',
22
+ DebitCard: 'DebitCard',
23
+ Pix: 'Pix',
24
+ BankSlip: 'BankSlip',
25
+ GiftCard: 'GiftCard',
26
+ Other: 'Other'
27
+ };
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import globalAxios from 'axios';
15
- export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
15
+ export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
16
16
  export const COLLECTION_FORMATS = {
17
17
  csv: ",",
18
18
  ssv: " ",
@@ -6,6 +6,8 @@ export * from './get-shipment-details-response';
6
6
  export * from './marketplace-tax-info';
7
7
  export * from './model-error';
8
8
  export * from './money';
9
+ export * from './payment-information';
10
+ export * from './payment-method-enum';
9
11
  export * from './shipment-detail';
10
12
  export * from './shipment-invoice-status';
11
13
  export * from './shipment-invoice-status-info';
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Shipment Invoicing
5
+ * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,24 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Shipment Invoicing
5
+ * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Payment methods
16
+ */
17
+ export const PaymentMethodEnum = {
18
+ CreditCard: 'CreditCard',
19
+ DebitCard: 'DebitCard',
20
+ Pix: 'Pix',
21
+ BankSlip: 'BankSlip',
22
+ GiftCard: 'GiftCard',
23
+ Other: 'Other'
24
+ };
@@ -135,19 +135,19 @@ export declare class ShipmentInvoicingApi extends BaseAPI {
135
135
  * @param {*} [options] Override http request option.
136
136
  * @throws {RequiredError}
137
137
  */
138
- getInvoiceStatus(requestParameters: ShipmentInvoicingApiGetInvoiceStatusRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoiceStatusResponse, any>>;
138
+ getInvoiceStatus(requestParameters: ShipmentInvoicingApiGetInvoiceStatusRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoiceStatusResponse, any, {}>>;
139
139
  /**
140
140
  * Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
141
141
  * @param {ShipmentInvoicingApiGetShipmentDetailsRequest} requestParameters Request parameters.
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
144
144
  */
145
- getShipmentDetails(requestParameters: ShipmentInvoicingApiGetShipmentDetailsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentDetailsResponse, any>>;
145
+ getShipmentDetails(requestParameters: ShipmentInvoicingApiGetShipmentDetailsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentDetailsResponse, any, {}>>;
146
146
  /**
147
147
  * Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
148
148
  * @param {ShipmentInvoicingApiSubmitInvoiceRequest} requestParameters Request parameters.
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- submitInvoice(requestParameters: ShipmentInvoicingApiSubmitInvoiceRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitInvoiceResponse, any>>;
152
+ submitInvoice(requestParameters: ShipmentInvoicingApiSubmitInvoiceRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitInvoiceResponse, any, {}>>;
153
153
  }
@@ -6,6 +6,8 @@ export * from './get-shipment-details-response';
6
6
  export * from './marketplace-tax-info';
7
7
  export * from './model-error';
8
8
  export * from './money';
9
+ export * from './payment-information';
10
+ export * from './payment-method-enum';
9
11
  export * from './shipment-detail';
10
12
  export * from './shipment-invoice-status';
11
13
  export * from './shipment-invoice-status-info';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Selling Partner API for Shipment Invoicing
3
+ * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Money } from './money';
13
+ import type { PaymentMethodEnum } from './payment-method-enum';
14
+ /**
15
+ * Payment transaction information
16
+ */
17
+ export interface PaymentInformation {
18
+ 'PaymentMethod'?: PaymentMethodEnum;
19
+ /**
20
+ * Government ID of acquirer
21
+ */
22
+ 'AcquirerId'?: string;
23
+ /**
24
+ * Credit card brand (if payment method is CreditCard)
25
+ */
26
+ 'CardBrand'?: string;
27
+ 'PaymentValue'?: Money;
28
+ /**
29
+ * Authorization code for this payment
30
+ */
31
+ 'AuthorizationCode'?: string;
32
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Selling Partner API for Shipment Invoicing
3
+ * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Payment methods
14
+ */
15
+ export declare const PaymentMethodEnum: {
16
+ readonly CreditCard: "CreditCard";
17
+ readonly DebitCard: "DebitCard";
18
+ readonly Pix: "Pix";
19
+ readonly BankSlip: "BankSlip";
20
+ readonly GiftCard: "GiftCard";
21
+ readonly Other: "Other";
22
+ };
23
+ export type PaymentMethodEnum = typeof PaymentMethodEnum[keyof typeof PaymentMethodEnum];
@@ -12,6 +12,7 @@
12
12
  import type { Address } from './address';
13
13
  import type { BuyerTaxInfo } from './buyer-tax-info';
14
14
  import type { MarketplaceTaxInfo } from './marketplace-tax-info';
15
+ import type { PaymentInformation } from './payment-information';
15
16
  import type { ShipmentItem } from './shipment-item';
16
17
  /**
17
18
  * The information required by a selling partner to issue a shipment invoice.
@@ -38,6 +39,10 @@ export interface ShipmentDetail {
38
39
  * The list of payment method details.
39
40
  */
40
41
  'PaymentMethodDetails'?: Array<string>;
42
+ /**
43
+ * List of payment transactions
44
+ */
45
+ 'Payments'?: Array<PaymentInformation>;
41
46
  /**
42
47
  * The identifier for the marketplace where the order was placed.
43
48
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/shipment-invoicing-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.",
5
- "version": "4.0.3",
5
+ "version": "4.1.1",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.17",
22
- "axios": "^1.11.0"
21
+ "@sp-api-sdk/common": "2.1.19",
22
+ "axios": "^1.12.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,26 +40,5 @@
40
40
  "sp sdk",
41
41
  "shipment invoicing api"
42
42
  ],
43
- "xo": {
44
- "extends": [
45
- "xo-bizon"
46
- ],
47
- "settings": {
48
- "import/internal-regex": "^@sp-api-sdk/"
49
- },
50
- "semicolon": false,
51
- "space": 2,
52
- "prettier": true,
53
- "ignores": [
54
- "src/api-model/**"
55
- ],
56
- "rules": {
57
- "unicorn/prevent-abbreviations": "off"
58
- }
59
- },
60
- "prettier": {
61
- "printWidth": 100,
62
- "jsxSingleQuote": true
63
- },
64
- "gitHead": "961457650a65779f38e5d35547ca8cb2fb749943"
43
+ "gitHead": "95f22690de1d02f4739da49cffb24bef8b5b61c9"
65
44
  }