@shipengine/connect-carrier-api 4.12.2 → 4.13.0
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.
- package/lib/models/billing/billing-line-item.d.ts +3 -0
- package/lib/models/billing/billing-line-item.js +2 -0
- package/lib/models/billing/billing-line-item.js.map +1 -1
- package/lib/models/billing/index.d.ts +1 -0
- package/lib/models/billing/index.js +1 -0
- package/lib/models/billing/index.js.map +1 -1
- package/lib/models/billing/tax-details.d.ts +7 -0
- package/lib/models/billing/tax-details.js +11 -0
- package/lib/models/billing/tax-details.js.map +1 -0
- package/lib/models/taxes/index.d.ts +1 -0
- package/lib/models/taxes/index.js +1 -0
- package/lib/models/taxes/index.js.map +1 -1
- package/lib/models/taxes/tax-type.d.ts +3 -0
- package/lib/models/taxes/tax-type.js +8 -0
- package/lib/models/taxes/tax-type.js.map +1 -0
- package/package.json +1 -1
- package/spec.json +30 -2
- package/src/models/billing/billing-line-item.ts +3 -0
- package/src/models/billing/index.ts +1 -0
- package/src/models/billing/tax-details.ts +8 -0
- package/src/models/taxes/index.ts +1 -0
- package/src/models/taxes/tax-type.ts +3 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingCategories } from './billing-categories';
|
|
2
2
|
import { Currency } from '../currency';
|
|
3
|
+
import { TaxDetails } from './tax-details';
|
|
3
4
|
/** @description Basic structure of each charge or line item */
|
|
4
5
|
export declare class BillingLineItem {
|
|
5
6
|
/** A generalized category for what type of billing line item this is */
|
|
@@ -14,4 +15,6 @@ export declare class BillingLineItem {
|
|
|
14
15
|
amount: Currency;
|
|
15
16
|
/** @description Total amount of the line item billed by the provider. This should only be populated if it differs from 'amount' **/
|
|
16
17
|
provider_billed_amount?: Currency;
|
|
18
|
+
/** @description Optional field. This field is applicable only to items that represent tax charge. It contains details about the tax, e.g. type (VAT), etc. */
|
|
19
|
+
tax_details?: TaxDetails;
|
|
17
20
|
}
|
|
@@ -15,6 +15,8 @@ class BillingLineItem {
|
|
|
15
15
|
amount;
|
|
16
16
|
/** @description Total amount of the line item billed by the provider. This should only be populated if it differs from 'amount' **/
|
|
17
17
|
provider_billed_amount;
|
|
18
|
+
/** @description Optional field. This field is applicable only to items that represent tax charge. It contains details about the tax, e.g. type (VAT), etc. */
|
|
19
|
+
tax_details;
|
|
18
20
|
}
|
|
19
21
|
exports.BillingLineItem = BillingLineItem;
|
|
20
22
|
//# sourceMappingURL=billing-line-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,MAAa,eAAe;IAC1B,wEAAwE;IACxE,gBAAgB,CAAqB;IACrC,+JAA+J;IAC/J,mBAAmB,CAAU;IAC7B,8DAA8D;IAC9D,oBAAoB,CAAU;IAC9B,6MAA6M;IAC7M,IAAI,CAAU;IACd,oFAAoF;IACpF,MAAM,CAAY;IAClB,oIAAoI;IACpI,sBAAsB,CAAY;IAClC,8JAA8J;IAC9J,WAAW,CAAc;CAC1B;AAfD,0CAeC"}
|
|
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./billing-categories-schema"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./billing-line-item"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./billing-line-item-schema"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./billing-to-party"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./tax-details"), exports);
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/billing/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,sEAA4C;AAC5C,8DAAoC;AACpC,qEAA2C;AAC3C,6DAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/billing/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,sEAA4C;AAC5C,8DAAoC;AACpC,qEAA2C;AAC3C,6DAAmC;AACnC,wDAA8B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxDetails = void 0;
|
|
4
|
+
class TaxDetails {
|
|
5
|
+
tax_type;
|
|
6
|
+
tax_code;
|
|
7
|
+
/** @description Tax percentage, e.g. 20, 23.7 */
|
|
8
|
+
tax_percentage;
|
|
9
|
+
}
|
|
10
|
+
exports.TaxDetails = TaxDetails;
|
|
11
|
+
//# sourceMappingURL=tax-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tax-details.js","sourceRoot":"","sources":["../../../src/models/billing/tax-details.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IACrB,QAAQ,CAAW;IACnB,QAAQ,CAAU;IAClB,iDAAiD;IACjD,cAAc,CAAU;CACzB;AALD,gCAKC"}
|
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./tax-identifier-type"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./tax-identifier"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./tax-type"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/taxes/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,2DAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/taxes/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,2DAAiC;AACjC,qDAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tax-type.js","sourceRoot":"","sources":["../../../src/models/taxes/tax-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,sBAAW,CAAA;AACb,CAAC,EAFW,OAAO,uBAAP,OAAO,QAElB"}
|
package/package.json
CHANGED
package/spec.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Shipping API",
|
|
5
5
|
"description": "This API specification describes the canonical ShipEngine Shipping API connector module.",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.26.0"
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
9
|
"/Register": {
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
},
|
|
1006
1006
|
"memo": {
|
|
1007
1007
|
"type": "string",
|
|
1008
|
-
"description": "
|
|
1008
|
+
"description": "This will often be empty; however, if there was additionally specific information about the charge it should go here, could also be a reference number. Maximum length of 250 characters.",
|
|
1009
1009
|
"nullable": true
|
|
1010
1010
|
},
|
|
1011
1011
|
"amount": {
|
|
@@ -1026,6 +1026,9 @@
|
|
|
1026
1026
|
},
|
|
1027
1027
|
"description": "Total amount of the line item to be billed to the end customer.",
|
|
1028
1028
|
"nullable": true
|
|
1029
|
+
},
|
|
1030
|
+
"tax_details": {
|
|
1031
|
+
"$ref": "#/components/schemas/TaxDetails"
|
|
1029
1032
|
}
|
|
1030
1033
|
},
|
|
1031
1034
|
"additionalProperties": false
|
|
@@ -4353,6 +4356,25 @@
|
|
|
4353
4356
|
"type": "string",
|
|
4354
4357
|
"description": "This represents the ShipEngine supported detail codes for a shipment."
|
|
4355
4358
|
},
|
|
4359
|
+
"TaxDetails": {
|
|
4360
|
+
"type": "object",
|
|
4361
|
+
"properties": {
|
|
4362
|
+
"tax_type": {
|
|
4363
|
+
"$ref": "#/components/schemas/TaxType"
|
|
4364
|
+
},
|
|
4365
|
+
"tax_code": {
|
|
4366
|
+
"type": "string",
|
|
4367
|
+
"nullable": true
|
|
4368
|
+
},
|
|
4369
|
+
"tax_percentage": {
|
|
4370
|
+
"type": "number",
|
|
4371
|
+
"description": "Tax percentage, e.g. 20, 23.7",
|
|
4372
|
+
"format": "double",
|
|
4373
|
+
"nullable": true
|
|
4374
|
+
}
|
|
4375
|
+
},
|
|
4376
|
+
"additionalProperties": false
|
|
4377
|
+
},
|
|
4356
4378
|
"TaxIdentificationType": {
|
|
4357
4379
|
"enum": [
|
|
4358
4380
|
"tin",
|
|
@@ -4401,6 +4423,12 @@
|
|
|
4401
4423
|
"additionalProperties": false,
|
|
4402
4424
|
"description": "Entity representing a Tax Identification number, type, and country of registration."
|
|
4403
4425
|
},
|
|
4426
|
+
"TaxType": {
|
|
4427
|
+
"enum": [
|
|
4428
|
+
"vat"
|
|
4429
|
+
],
|
|
4430
|
+
"type": "string"
|
|
4431
|
+
},
|
|
4404
4432
|
"TermsOfTradeCode": {
|
|
4405
4433
|
"enum": [
|
|
4406
4434
|
"exw",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingCategories } from './billing-categories';
|
|
2
2
|
import { Currency } from '../currency';
|
|
3
|
+
import { TaxDetails } from './tax-details';
|
|
3
4
|
|
|
4
5
|
/** @description Basic structure of each charge or line item */
|
|
5
6
|
export class BillingLineItem {
|
|
@@ -15,4 +16,6 @@ export class BillingLineItem {
|
|
|
15
16
|
amount!: Currency;
|
|
16
17
|
/** @description Total amount of the line item billed by the provider. This should only be populated if it differs from 'amount' **/
|
|
17
18
|
provider_billed_amount?: Currency;
|
|
19
|
+
/** @description Optional field. This field is applicable only to items that represent tax charge. It contains details about the tax, e.g. type (VAT), etc. */
|
|
20
|
+
tax_details?: TaxDetails;
|
|
18
21
|
}
|