@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1 1.6.16

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.
Files changed (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/src/api-model/api/vendor-invoice-api.js +119 -0
  5. package/dist/cjs/src/api-model/api.js +17 -0
  6. package/dist/cjs/src/api-model/base.js +62 -0
  7. package/dist/cjs/src/api-model/common.js +137 -0
  8. package/dist/cjs/src/api-model/configuration.js +42 -0
  9. package/dist/cjs/src/api-model/index.js +19 -0
  10. package/dist/cjs/src/api-model/models/additional-details.js +25 -0
  11. package/dist/cjs/src/api-model/models/address.js +15 -0
  12. package/dist/cjs/src/api-model/models/charge-details.js +30 -0
  13. package/dist/cjs/src/api-model/models/index.js +17 -0
  14. package/dist/cjs/src/api-model/models/invoice-detail.js +15 -0
  15. package/dist/cjs/src/api-model/models/invoice-item.js +15 -0
  16. package/dist/cjs/src/api-model/models/item-quantity.js +15 -0
  17. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  18. package/dist/cjs/src/api-model/models/money.js +15 -0
  19. package/dist/cjs/src/api-model/models/party-identification.js +15 -0
  20. package/dist/cjs/src/api-model/models/submit-invoice-request.js +15 -0
  21. package/dist/cjs/src/api-model/models/submit-invoice-response.js +15 -0
  22. package/dist/cjs/src/api-model/models/tax-detail.js +37 -0
  23. package/dist/cjs/src/api-model/models/tax-registration-detail.js +25 -0
  24. package/dist/cjs/src/api-model/models/transaction-reference.js +15 -0
  25. package/dist/cjs/src/client.js +35 -0
  26. package/dist/cjs/src/error.js +10 -0
  27. package/dist/es/index.js +3 -0
  28. package/dist/es/src/api-model/api/vendor-invoice-api.js +111 -0
  29. package/dist/es/src/api-model/api.js +14 -0
  30. package/dist/es/src/api-model/base.js +56 -0
  31. package/dist/es/src/api-model/common.js +125 -0
  32. package/dist/es/src/api-model/configuration.js +38 -0
  33. package/dist/es/src/api-model/index.js +16 -0
  34. package/dist/es/src/api-model/models/additional-details.js +22 -0
  35. package/dist/es/src/api-model/models/address.js +14 -0
  36. package/dist/es/src/api-model/models/charge-details.js +27 -0
  37. package/dist/es/src/api-model/models/index.js +14 -0
  38. package/dist/es/src/api-model/models/invoice-detail.js +14 -0
  39. package/dist/es/src/api-model/models/invoice-item.js +14 -0
  40. package/dist/es/src/api-model/models/item-quantity.js +14 -0
  41. package/dist/es/src/api-model/models/model-error.js +14 -0
  42. package/dist/es/src/api-model/models/money.js +14 -0
  43. package/dist/es/src/api-model/models/party-identification.js +14 -0
  44. package/dist/es/src/api-model/models/submit-invoice-request.js +14 -0
  45. package/dist/es/src/api-model/models/submit-invoice-response.js +14 -0
  46. package/dist/es/src/api-model/models/tax-detail.js +34 -0
  47. package/dist/es/src/api-model/models/tax-registration-detail.js +22 -0
  48. package/dist/es/src/api-model/models/transaction-reference.js +14 -0
  49. package/dist/es/src/client.js +31 -0
  50. package/dist/es/src/error.js +6 -0
  51. package/dist/types/index.d.ts +3 -0
  52. package/dist/types/src/api-model/api/vendor-invoice-api.d.ts +84 -0
  53. package/dist/types/src/api-model/api.d.ts +12 -0
  54. package/dist/types/src/api-model/base.d.ts +55 -0
  55. package/dist/types/src/api-model/common.d.ts +65 -0
  56. package/dist/types/src/api-model/configuration.d.ts +83 -0
  57. package/dist/types/src/api-model/index.d.ts +14 -0
  58. package/dist/types/src/api-model/models/additional-details.d.ts +44 -0
  59. package/dist/types/src/api-model/models/address.d.ts +84 -0
  60. package/dist/types/src/api-model/models/charge-details.d.ts +51 -0
  61. package/dist/types/src/api-model/models/index.d.ts +14 -0
  62. package/dist/types/src/api-model/models/invoice-detail.d.ts +102 -0
  63. package/dist/types/src/api-model/models/invoice-item.d.ts +82 -0
  64. package/dist/types/src/api-model/models/item-quantity.d.ts +30 -0
  65. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  66. package/dist/types/src/api-model/models/money.d.ts +30 -0
  67. package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
  68. package/dist/types/src/api-model/models/submit-invoice-request.d.ts +25 -0
  69. package/dist/types/src/api-model/models/submit-invoice-response.d.ts +31 -0
  70. package/dist/types/src/api-model/models/tax-detail.d.ts +63 -0
  71. package/dist/types/src/api-model/models/tax-registration-detail.d.ts +51 -0
  72. package/dist/types/src/api-model/models/transaction-reference.d.ts +24 -0
  73. package/dist/types/src/client.d.ts +13 -0
  74. package/dist/types/src/error.d.ts +3 -0
  75. package/package.json +53 -0
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Payments
3
+ * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
4
+ *
5
+ * The version of the OpenAPI document: v1
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
+ * An amount of money, including units in the form of currency.
14
+ * @export
15
+ * @interface Money
16
+ */
17
+ export interface Money {
18
+ /**
19
+ * Three digit currency code in ISO 4217 format.
20
+ * @type {string}
21
+ * @memberof Money
22
+ */
23
+ currencyCode: string;
24
+ /**
25
+ * 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+)?$`.
26
+ * @type {string}
27
+ * @memberof Money
28
+ */
29
+ amount: string;
30
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Payments
3
+ * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { Address } from './address';
13
+ import { TaxRegistrationDetail } from './tax-registration-detail';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PartyIdentification
18
+ */
19
+ export interface PartyIdentification {
20
+ /**
21
+ * Assigned Identification for the party.
22
+ * @type {string}
23
+ * @memberof PartyIdentification
24
+ */
25
+ partyId: string;
26
+ /**
27
+ *
28
+ * @type {Address}
29
+ * @memberof PartyIdentification
30
+ */
31
+ address?: Address;
32
+ /**
33
+ * Tax registration details of the entity.
34
+ * @type {Array<TaxRegistrationDetail>}
35
+ * @memberof PartyIdentification
36
+ */
37
+ taxRegistrationDetails?: Array<TaxRegistrationDetail>;
38
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Payments
3
+ * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { InvoiceDetail } from './invoice-detail';
13
+ /**
14
+ * The request schema for the submitInvoice operation.
15
+ * @export
16
+ * @interface SubmitInvoiceRequest
17
+ */
18
+ export interface SubmitInvoiceRequest {
19
+ /**
20
+ *
21
+ * @type {Array<InvoiceDetail>}
22
+ * @memberof SubmitInvoiceRequest
23
+ */
24
+ invoices?: Array<InvoiceDetail>;
25
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Payments
3
+ * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { TransactionReference } from './transaction-reference';
13
+ /**
14
+ * The response schema for the submitInvoice operation.
15
+ * @export
16
+ * @interface SubmitInvoiceResponse
17
+ */
18
+ export interface SubmitInvoiceResponse {
19
+ /**
20
+ *
21
+ * @type {TransactionReference}
22
+ * @memberof SubmitInvoiceResponse
23
+ */
24
+ payload?: TransactionReference;
25
+ /**
26
+ * A list of error responses returned when a request is unsuccessful.
27
+ * @type {Array<Error>}
28
+ * @memberof SubmitInvoiceResponse
29
+ */
30
+ errors?: Array<Error>;
31
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Payments
3
+ * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { Money } from './money';
13
+ /**
14
+ * Details of tax amount applied.
15
+ * @export
16
+ * @interface TaxDetail
17
+ */
18
+ export interface TaxDetail {
19
+ /**
20
+ * Type of the tax applied.
21
+ * @type {string}
22
+ * @memberof TaxDetail
23
+ */
24
+ taxType: TaxDetailTaxTypeEnum;
25
+ /**
26
+ * 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+)?$`.
27
+ * @type {string}
28
+ * @memberof TaxDetail
29
+ */
30
+ taxRate?: string;
31
+ /**
32
+ *
33
+ * @type {Money}
34
+ * @memberof TaxDetail
35
+ */
36
+ taxAmount: Money;
37
+ /**
38
+ *
39
+ * @type {Money}
40
+ * @memberof TaxDetail
41
+ */
42
+ taxableAmount?: Money;
43
+ }
44
+ /**
45
+ * @export
46
+ * @enum {string}
47
+ */
48
+ export declare enum TaxDetailTaxTypeEnum {
49
+ Cgst = "CGST",
50
+ Sgst = "SGST",
51
+ Cess = "CESS",
52
+ Utgst = "UTGST",
53
+ Igst = "IGST",
54
+ MwSt = "MwSt.",
55
+ Pst = "PST",
56
+ Tva = "TVA",
57
+ Vat = "VAT",
58
+ Gst = "GST",
59
+ St = "ST",
60
+ Consumption = "Consumption",
61
+ MutuallyDefined = "MutuallyDefined",
62
+ DomesticVat = "DomesticVAT"
63
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Payments
3
+ * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { Address } from './address';
13
+ /**
14
+ * Tax registration details of the entity.
15
+ * @export
16
+ * @interface TaxRegistrationDetail
17
+ */
18
+ export interface TaxRegistrationDetail {
19
+ /**
20
+ * Tax registration type for the entity.
21
+ * @type {string}
22
+ * @memberof TaxRegistrationDetail
23
+ */
24
+ taxRegistrationType?: TaxRegistrationDetailTaxRegistrationTypeEnum;
25
+ /**
26
+ * Tax registration number for the party. For example, VAT ID.
27
+ * @type {string}
28
+ * @memberof TaxRegistrationDetail
29
+ */
30
+ taxRegistrationNumber: string;
31
+ /**
32
+ *
33
+ * @type {Address}
34
+ * @memberof TaxRegistrationDetail
35
+ */
36
+ taxRegistrationAddress?: Address;
37
+ /**
38
+ * Tax registration message that can be used for additional tax related details.
39
+ * @type {string}
40
+ * @memberof TaxRegistrationDetail
41
+ */
42
+ taxRegistrationMessage?: string;
43
+ }
44
+ /**
45
+ * @export
46
+ * @enum {string}
47
+ */
48
+ export declare enum TaxRegistrationDetailTaxRegistrationTypeEnum {
49
+ Vat = "VAT",
50
+ Gst = "GST"
51
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Direct Fulfillment Payments
3
+ * The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor\'s invoice data.
4
+ *
5
+ * The version of the OpenAPI document: v1
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
+ *
14
+ * @export
15
+ * @interface TransactionReference
16
+ */
17
+ export interface TransactionReference {
18
+ /**
19
+ * GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
20
+ * @type {string}
21
+ * @memberof TransactionReference
22
+ */
23
+ transactionId?: string;
24
+ }
@@ -0,0 +1,13 @@
1
+ import { onRetry } from '@sp-api-sdk/common';
2
+ import type { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
3
+ import { VendorInvoiceApi } from './api-model';
4
+ export declare const RATE_LIMITS: RateLimit[];
5
+ export interface ClientParameters extends Omit<ClientConfiguration, 'rateLimits' | 'onRetry'> {
6
+ rateLimiting?: {
7
+ retry: boolean;
8
+ onRetry?: onRetry;
9
+ };
10
+ }
11
+ export declare class VendorDirectFulfillmentPaymentsApiClient extends VendorInvoiceApi {
12
+ constructor(parameters: ClientParameters);
13
+ }
@@ -0,0 +1,3 @@
1
+ export declare class VendorDirectFulfillmentPaymentsApiError extends Error {
2
+ constructor(message: string);
3
+ }
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@sp-api-sdk/vendor-direct-fulfillment-payments-api-v1",
3
+ "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
+ "description": "The Selling Partner API for Direct Fulfillment Payments provides programmatic access to a direct fulfillment vendor's invoice data.",
5
+ "version": "1.6.16",
6
+ "main": "dist/cjs/index.js",
7
+ "module": "dist/es/index.js",
8
+ "types": "dist/types/index.d.ts",
9
+ "license": "MIT",
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "directories": {
14
+ "lib": "dist"
15
+ },
16
+ "files": [
17
+ "dist/**/*.js",
18
+ "dist/**/*.d.ts"
19
+ ],
20
+ "scripts": {
21
+ "build:cjs": "tsc -p tsconfig.json",
22
+ "build:es": "tsc -p tsconfig.es.json",
23
+ "build": "yarn build:cjs && yarn build:es",
24
+ "clean": "rimraf dist",
25
+ "lint": "xo --cwd=../../ $PWD",
26
+ "test": "NODE_ENV='test' yarn jest"
27
+ },
28
+ "dependencies": {
29
+ "@sp-api-sdk/auth": "^1.9.1",
30
+ "@sp-api-sdk/common": "^1.7.2",
31
+ "axios": "^0.21.1"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/bizon/selling-partner-api-sdk.git",
36
+ "directory": "clients/vendor-direct-fulfillment-payments-api-v1"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/bizon/selling-partner-api-sdk/issues"
40
+ },
41
+ "homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/vendor-direct-fulfillment-payments-api-v1",
42
+ "keywords": [
43
+ "amazon",
44
+ "bizon",
45
+ "marketplace web services",
46
+ "mws",
47
+ "selling partner api",
48
+ "sp api",
49
+ "sp sdk",
50
+ "vendor direct fulfillment payments api"
51
+ ],
52
+ "gitHead": "dc4286920dc77e99d6ad71f71bcb78ae22b9ab06"
53
+ }