@shipengine/js-api 1.12.0 → 1.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.
@@ -61,10 +61,17 @@ export interface Term {
61
61
  termType: string;
62
62
  version: string;
63
63
  }
64
- export type MetadataRequiredTerm = {
65
- termType: string;
66
- version: string;
67
- };
64
+ export interface MetadataTermLink {
65
+ link: string;
66
+ locale: string;
67
+ title: string;
68
+ }
69
+ export interface MetadataOptionalTerm extends Term {
70
+ links: MetadataTermLink[];
71
+ }
72
+ export interface MetadataRequiredTerm extends Term {
73
+ links: MetadataTermLink[];
74
+ }
68
75
  export declare enum MetadataCapability {
69
76
  AutoFunding = "auto_funding",
70
77
  UpdatePaymentMethod = "update_payment_method",
@@ -133,6 +140,7 @@ export interface MetadataResponse {
133
140
  capabilities: MetadataCapability[] | null;
134
141
  countryCode: string;
135
142
  currencyCode: string;
143
+ optionalTerms: MetadataOptionalTerm[];
136
144
  registrationRequirements: MetadataRegistrationRequirement[];
137
145
  requiredTerms: MetadataRequiredTerm[];
138
146
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {