@shipengine/js-api 3.9.0 → 3.11.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/errors/types.d.ts +2 -2
- package/funding-sources/types.d.ts +4 -1
- package/index.js +2 -0
- package/index.mjs +2 -0
- package/package.json +1 -1
package/errors/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @category Entities
|
|
3
3
|
*/
|
|
4
|
-
export type CodedErrorCode = "auto_fund_not_supported" | "batch_cannot_be_modified" | "carrier_conflict" | "carrier_disconnected" | "carrier_not_connected" | "carrier_not_supported" | "confirmation_not_supported" | "default_warehouse_cannot_be_deleted" | "duplicated_name" | "duplicated_rate_card" | "empty_file" | "field_conflict" | "field_value_required" | "forbidden" | "funding_source_registration_in_progress" | "identifier_conflict" | "identifiers_must_match" | "insufficient_funds" | "insufficient_rate_card_data" | "invalid_address" | "invalid_billing_plan" | "invalid_currency" | "invalid_field_value" | "invalid_file_size" | "invalid_file_type" | "invalid_identifier" | "invalid_packages" | "invalid_rates" | "invalid_service" | "invalid_shipping_rule" | "invalid_status" | "invalid_string_length" | "invalid_weight_bands_rates" | "invalid_weight_bands" | "invalid_zones" | "label_images_not_supported" | "meter_failure" | "not_found" | "order_source_not_active" | "rate_limit_exceeded" | "refresh_not_supported" | "repeated_surcharges_in_rate_card" | "repeated_surcharges_in_services" | "repeated_surcharges_in_zone" | "request_body_required" | "return_label_not_supported" | "settings_not_supported" | "subscription_inactive" | "terms_not_accepted" | "tracking_not_supported" | "trial_expired" | "unauthorized" | "unknown" | "unspecified" | "verification_failure" | "warehouse_conflict" | "webhook_event_type_conflict";
|
|
4
|
+
export type CodedErrorCode = "auto_fund_not_supported" | "batch_cannot_be_modified" | "carrier_conflict" | "carrier_disconnected" | "carrier_not_connected" | "carrier_not_supported" | "confirmation_not_supported" | "default_warehouse_cannot_be_deleted" | "duplicated_name" | "duplicated_rate_card" | "empty_file" | "field_conflict" | "field_value_required" | "forbidden" | "funding_source_registration_in_progress" | "identifier_conflict" | "identifiers_must_match" | "insufficient_funds" | "insufficient_rate_card_data" | "insurance_failure" | "invalid_address" | "invalid_billing_plan" | "invalid_currency" | "invalid_field_value" | "invalid_file_size" | "invalid_file_type" | "invalid_identifier" | "invalid_packages" | "invalid_rates" | "invalid_service" | "invalid_shipping_rule" | "invalid_status" | "invalid_string_length" | "invalid_weight_bands_rates" | "invalid_weight_bands" | "invalid_zones" | "label_images_not_supported" | "meter_failure" | "not_found" | "order_source_not_active" | "rate_limit_exceeded" | "refresh_not_supported" | "repeated_surcharges_in_rate_card" | "repeated_surcharges_in_services" | "repeated_surcharges_in_zone" | "request_body_required" | "return_label_not_supported" | "settings_not_supported" | "subscription_inactive" | "terms_not_accepted" | "tracking_not_supported" | "trial_expired" | "unauthorized" | "unknown" | "unspecified" | "verification_failure" | "warehouse_conflict" | "webhook_event_type_conflict";
|
|
5
5
|
/**
|
|
6
6
|
* @category Entities
|
|
7
7
|
*/
|
|
@@ -9,7 +9,7 @@ export type CodedErrorSource = "carrier" | "client" | "elements" | "order_source
|
|
|
9
9
|
/**
|
|
10
10
|
* @category Entities
|
|
11
11
|
*/
|
|
12
|
-
export type CodedErrorType = "account_status" | "business_rules" | "validation" | "security" | "system" | "integrations" | "unknown";
|
|
12
|
+
export type CodedErrorType = "account_status" | "business_rules" | "funding_sources" | "validation" | "security" | "system" | "integrations" | "unknown";
|
|
13
13
|
export interface CodedErrorOptions {
|
|
14
14
|
errorCode: CodedErrorCode;
|
|
15
15
|
errorSource: CodedErrorSource;
|
|
@@ -12,7 +12,8 @@ export type CreateFundingSource = {
|
|
|
12
12
|
billingInfo: FundingSourceAddress;
|
|
13
13
|
iovationBlackBox: IovationBlackBox;
|
|
14
14
|
paymentMethod: {
|
|
15
|
-
|
|
15
|
+
auctanePayInfo?: AuctanePayInfo;
|
|
16
|
+
creditCardInfo?: CreditCardInfo;
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
/** @internal */
|
|
@@ -130,12 +131,14 @@ export declare enum MetadataRequirement {
|
|
|
130
131
|
Nickname = "nickname",
|
|
131
132
|
PaymentMethod = "payment_method",
|
|
132
133
|
PickupAddress = "pickup_address",
|
|
134
|
+
RequestActivation = "request_activation",
|
|
133
135
|
Unknown = "unknown"
|
|
134
136
|
}
|
|
135
137
|
/** @internal */
|
|
136
138
|
export declare enum MetadataSatisfyingFormTypes {
|
|
137
139
|
Address = "address",
|
|
138
140
|
CreditCard = "credit_card",
|
|
141
|
+
ExplicitIntent = "explicit_intent",
|
|
139
142
|
StampsAccountCredentials = "stamps_account_credentials",
|
|
140
143
|
StampsSellerLabelProvider = "stamps_seller_label_provider",
|
|
141
144
|
Unknown = "unknown"
|
package/index.js
CHANGED
|
@@ -59,12 +59,14 @@ var MetadataRequirement = /* @__PURE__ */ ((MetadataRequirement2) => {
|
|
|
59
59
|
MetadataRequirement2["Nickname"] = "nickname";
|
|
60
60
|
MetadataRequirement2["PaymentMethod"] = "payment_method";
|
|
61
61
|
MetadataRequirement2["PickupAddress"] = "pickup_address";
|
|
62
|
+
MetadataRequirement2["RequestActivation"] = "request_activation";
|
|
62
63
|
MetadataRequirement2["Unknown"] = "unknown";
|
|
63
64
|
return MetadataRequirement2;
|
|
64
65
|
})(MetadataRequirement || {});
|
|
65
66
|
var MetadataSatisfyingFormTypes = /* @__PURE__ */ ((MetadataSatisfyingFormTypes2) => {
|
|
66
67
|
MetadataSatisfyingFormTypes2["Address"] = "address";
|
|
67
68
|
MetadataSatisfyingFormTypes2["CreditCard"] = "credit_card";
|
|
69
|
+
MetadataSatisfyingFormTypes2["ExplicitIntent"] = "explicit_intent";
|
|
68
70
|
MetadataSatisfyingFormTypes2["StampsAccountCredentials"] = "stamps_account_credentials";
|
|
69
71
|
MetadataSatisfyingFormTypes2["StampsSellerLabelProvider"] = "stamps_seller_label_provider";
|
|
70
72
|
MetadataSatisfyingFormTypes2["Unknown"] = "unknown";
|
package/index.mjs
CHANGED
|
@@ -55,12 +55,14 @@ var MetadataRequirement = /* @__PURE__ */ ((MetadataRequirement2) => {
|
|
|
55
55
|
MetadataRequirement2["Nickname"] = "nickname";
|
|
56
56
|
MetadataRequirement2["PaymentMethod"] = "payment_method";
|
|
57
57
|
MetadataRequirement2["PickupAddress"] = "pickup_address";
|
|
58
|
+
MetadataRequirement2["RequestActivation"] = "request_activation";
|
|
58
59
|
MetadataRequirement2["Unknown"] = "unknown";
|
|
59
60
|
return MetadataRequirement2;
|
|
60
61
|
})(MetadataRequirement || {});
|
|
61
62
|
var MetadataSatisfyingFormTypes = /* @__PURE__ */ ((MetadataSatisfyingFormTypes2) => {
|
|
62
63
|
MetadataSatisfyingFormTypes2["Address"] = "address";
|
|
63
64
|
MetadataSatisfyingFormTypes2["CreditCard"] = "credit_card";
|
|
65
|
+
MetadataSatisfyingFormTypes2["ExplicitIntent"] = "explicit_intent";
|
|
64
66
|
MetadataSatisfyingFormTypes2["StampsAccountCredentials"] = "stamps_account_credentials";
|
|
65
67
|
MetadataSatisfyingFormTypes2["StampsSellerLabelProvider"] = "stamps_seller_label_provider";
|
|
66
68
|
MetadataSatisfyingFormTypes2["Unknown"] = "unknown";
|