@shipengine/js-api 4.20.0 → 4.22.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/account-refund-assist/api.d.ts +25 -0
- package/account-refund-assist/index.d.ts +2 -0
- package/account-refund-assist/types.d.ts +10 -0
- package/carriers/api.d.ts +10 -1
- package/carriers/types.d.ts +20 -7
- package/client.d.ts +6 -0
- package/errors/types.d.ts +1 -1
- package/funding-sources/api.d.ts +15 -1
- package/funding-sources/types.d.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +64 -0
- package/index.mjs +64 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AxiosInstance } from "axios";
|
|
2
|
+
import { GetRefundAssistResponse } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* # Account Refund Assist API module - /v1/account/refund_assist
|
|
5
|
+
*/
|
|
6
|
+
export declare class AccountRefundAssistAPI {
|
|
7
|
+
private client;
|
|
8
|
+
constructor(client: AxiosInstance);
|
|
9
|
+
/**
|
|
10
|
+
* The `get` method retrieves the refund assist configuration for all carriers,
|
|
11
|
+
* including if it is enabled for the user.
|
|
12
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#1.--Retrieve-RA-settings-information-(with-carrier-and-RA-details)
|
|
13
|
+
*/
|
|
14
|
+
get: () => Promise<import("axios").AxiosResponse<GetRefundAssistResponse, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* The `enable` method enables refund assist globally for the user.
|
|
17
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#2.--Enable-RA-for-a-seller
|
|
18
|
+
*/
|
|
19
|
+
enable: () => Promise<import("axios").AxiosResponse<void, any>>;
|
|
20
|
+
/**
|
|
21
|
+
* The `disable` method disables refund assist globally for the user.
|
|
22
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#3.--Disable-RA-for-a-seller
|
|
23
|
+
*/
|
|
24
|
+
disable: () => Promise<import("axios").AxiosResponse<void, any>>;
|
|
25
|
+
}
|
package/carriers/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
2
|
import { Currency, Money } from "../payments";
|
|
3
3
|
import { SandboxableQuery } from "../resources";
|
|
4
|
-
import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection, CarrierService, CarrierZone, PackageRatingType } from "./types";
|
|
4
|
+
import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection, CarrierService, CarrierTerm, CarrierZone, PackageRatingType } from "./types";
|
|
5
5
|
/**
|
|
6
6
|
* # Carriers API module - /v1/carriers
|
|
7
7
|
*/
|
|
@@ -87,4 +87,13 @@ export declare class CarriersAPI {
|
|
|
87
87
|
* https://shipengine.github.io/shipengine-openapi/#operation/disconnect_carrier_by_id
|
|
88
88
|
*/
|
|
89
89
|
delete: (carrierId: string) => Promise<import("axios").AxiosResponse<void, any>>;
|
|
90
|
+
/**
|
|
91
|
+
* The `acceptTerms` method allows users to accept new versions of carrier terms.
|
|
92
|
+
* Returns the status of each term.
|
|
93
|
+
*/
|
|
94
|
+
acceptTerms: (carrierId: string, request: {
|
|
95
|
+
acceptedTerms: CarrierTerm[];
|
|
96
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
97
|
+
acceptedTerms: CarrierTerm[];
|
|
98
|
+
}, any>>;
|
|
90
99
|
}
|
package/carriers/types.d.ts
CHANGED
|
@@ -20,13 +20,6 @@ export interface CarrierAutoFundingSettings {
|
|
|
20
20
|
maximumPurchasesPerDay?: number;
|
|
21
21
|
purchaseAmount: Money;
|
|
22
22
|
}
|
|
23
|
-
export interface CarrierAutoFundingSettingsResponse {
|
|
24
|
-
autoPurchaseAmount: number;
|
|
25
|
-
autoPurchaseCutoff?: number;
|
|
26
|
-
autoPurchaseThreshold: number;
|
|
27
|
-
balance: number;
|
|
28
|
-
isAutoPurchaseEnabled: boolean;
|
|
29
|
-
}
|
|
30
23
|
/**
|
|
31
24
|
* @category Entities
|
|
32
25
|
*/
|
|
@@ -128,3 +121,23 @@ export type CarrierZone = {
|
|
|
128
121
|
apiCode: string;
|
|
129
122
|
name: string;
|
|
130
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* @category Entities
|
|
126
|
+
*/
|
|
127
|
+
/** @internal */
|
|
128
|
+
export type CarrierTermsStatus = "saved" | "not_found" | "already_saved" | "error";
|
|
129
|
+
export type CarrierTermCategory = "funding_source" | "carrier" | "insurance";
|
|
130
|
+
export interface CarrierTerm {
|
|
131
|
+
status?: CarrierTermsStatus;
|
|
132
|
+
termCategory?: CarrierTermCategory;
|
|
133
|
+
termType: string;
|
|
134
|
+
version: string;
|
|
135
|
+
}
|
|
136
|
+
/** @internal */
|
|
137
|
+
export interface CarrierAutoFundingSettingsResponse {
|
|
138
|
+
autoPurchaseAmount: number;
|
|
139
|
+
autoPurchaseCutoff?: number;
|
|
140
|
+
autoPurchaseThreshold: number;
|
|
141
|
+
balance: number;
|
|
142
|
+
isAutoPurchaseEnabled: boolean;
|
|
143
|
+
}
|
package/client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AccountAddonsAPI } from "./account-addons";
|
|
|
3
3
|
import { AccountBillingAPI } from "./account-billing";
|
|
4
4
|
import { AccountBillingPlanAPI } from "./account-billing-plan";
|
|
5
5
|
import { AccountFeaturesAPI } from "./account-features";
|
|
6
|
+
import { AccountRefundAssistAPI } from "./account-refund-assist";
|
|
6
7
|
import { AccountSettingsAPI } from "./account-settings";
|
|
7
8
|
import { AddressesAPI } from "./addresses";
|
|
8
9
|
import { AuctanePayAPI } from "./auctane-pay";
|
|
@@ -127,6 +128,11 @@ export declare class ShipEngineAPI {
|
|
|
127
128
|
* in ShipEngine API.
|
|
128
129
|
*/
|
|
129
130
|
get accountBilling(): AccountBillingAPI;
|
|
131
|
+
/**
|
|
132
|
+
* The `accountRefundAssist` method provides access to the Account Refund Assist endpoints
|
|
133
|
+
* in ShipEngine API.
|
|
134
|
+
*/
|
|
135
|
+
get accountRefundAssist(): AccountRefundAssistAPI;
|
|
130
136
|
/**
|
|
131
137
|
* The `addresses` method provides access to the Address Validation endpoints
|
|
132
138
|
* in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
|
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" | "billing_info_not_found" | "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_info" | "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" | "system_api_error" | "inactive_addon_error" | "addons_disabling_missing_seller_addon_error" | "addons_disabling_inactive_addon_error" | "addons_disabling_general_error" | "request_seller_feature_error";
|
|
4
|
+
export type CodedErrorCode = "auto_fund_not_supported" | "batch_cannot_be_modified" | "billing_info_not_found" | "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_info" | "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" | "system_api_error" | "inactive_addon_error" | "addons_disabling_missing_seller_addon_error" | "addons_disabling_inactive_addon_error" | "addons_disabling_general_error" | "request_seller_feature_error" | "refund_assist_already_enabled" | "refund_assist_not_available" | "refund_assist_not_enabled";
|
|
5
5
|
/**
|
|
6
6
|
* @category Entities
|
|
7
7
|
*/
|
package/funding-sources/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
2
|
import { Money } from "../payments";
|
|
3
3
|
import { CreationRangeQuery, PageableQuery } from "../resources";
|
|
4
|
-
import { AddFundsResponse, AuctanePayInfo, CarrierRegistration, CarrierRegistrationResponse, CreateFundingSource, CreditCardInfo, FundingSource, FundingSourceAddress, FundingSourceCreateResponse, FundingSourceTransactionsResponse, InsuranceFundingSourceAcceptedTermsResponse, MetadataResponse } from "./types";
|
|
4
|
+
import { AddFundsResponse, AuctanePayInfo, CarrierRegistration, CarrierRegistrationResponse, CreateFundingSource, CreditCardInfo, FundingSource, FundingSourceAddress, FundingSourceCreateResponse, FundingSourceTransactionsResponse, InsuranceFundingSourceAcceptedTermsResponse, MetadataResponse, Term } from "./types";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
* # Funding Sources API module - /v1/funding_sources
|
|
@@ -58,4 +58,18 @@ export declare class FundingSourcesAPI {
|
|
|
58
58
|
* if "ParcelGuard" appears here that means the user its using it.
|
|
59
59
|
*/
|
|
60
60
|
insuranceAcceptedTerms: () => Promise<import("axios").AxiosResponse<InsuranceFundingSourceAcceptedTermsResponse, any>>;
|
|
61
|
+
/**
|
|
62
|
+
* The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
|
|
63
|
+
*/
|
|
64
|
+
acceptedTerms: (fundingSourceId: string) => Promise<import("axios").AxiosResponse<{
|
|
65
|
+
acceptedTerms: Term[];
|
|
66
|
+
}, any>>;
|
|
67
|
+
/**
|
|
68
|
+
* The`acceptTerms` method allows users to accept new versions of funding source terms.
|
|
69
|
+
*/
|
|
70
|
+
acceptTerms: (fundingSourceId: string, request: {
|
|
71
|
+
acceptedTerms: Term[];
|
|
72
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
73
|
+
acceptedTerms: Term[];
|
|
74
|
+
}, any>>;
|
|
61
75
|
}
|
|
@@ -89,7 +89,12 @@ export interface CreditCardInfo {
|
|
|
89
89
|
provider: Provider;
|
|
90
90
|
}
|
|
91
91
|
/** @internal */
|
|
92
|
+
export type TermsStatus = "saved" | "not_found" | "already_saved" | "error";
|
|
93
|
+
export type TermCategory = "funding_source" | "carrier" | "insurance";
|
|
94
|
+
/** @internal */
|
|
92
95
|
export interface Term {
|
|
96
|
+
status?: TermsStatus;
|
|
97
|
+
termCategory?: TermCategory;
|
|
93
98
|
termType: string;
|
|
94
99
|
version: string;
|
|
95
100
|
}
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * as SE from "./types";
|
|
|
2
2
|
export * from "./account-settings";
|
|
3
3
|
export * from "./account-addons";
|
|
4
4
|
export * from "./account-features";
|
|
5
|
+
export * from "./account-refund-assist";
|
|
5
6
|
export * from "./addresses";
|
|
6
7
|
export * from "./auctane-pay";
|
|
7
8
|
export * from "./account-billing-plan";
|
package/index.js
CHANGED
|
@@ -269,6 +269,35 @@ class AccountFeaturesAPI {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
class AccountRefundAssistAPI {
|
|
273
|
+
constructor(client) {
|
|
274
|
+
this.client = client;
|
|
275
|
+
/**
|
|
276
|
+
* The `get` method retrieves the refund assist configuration for all carriers,
|
|
277
|
+
* including if it is enabled for the user.
|
|
278
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#1.--Retrieve-RA-settings-information-(with-carrier-and-RA-details)
|
|
279
|
+
*/
|
|
280
|
+
this.get = () => {
|
|
281
|
+
return this.client.get("/v1/account/refund_assist");
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* The `enable` method enables refund assist globally for the user.
|
|
285
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#2.--Enable-RA-for-a-seller
|
|
286
|
+
*/
|
|
287
|
+
this.enable = () => {
|
|
288
|
+
return this.client.post("/v1/account/refund_assist/enable");
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* The `disable` method disables refund assist globally for the user.
|
|
292
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#3.--Disable-RA-for-a-seller
|
|
293
|
+
*/
|
|
294
|
+
this.disable = () => {
|
|
295
|
+
return this.client.post("/v1/account/refund_assist/disable");
|
|
296
|
+
};
|
|
297
|
+
this.client = client;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
272
301
|
class AddressesAPI {
|
|
273
302
|
constructor(client) {
|
|
274
303
|
this.client = client;
|
|
@@ -1379,6 +1408,16 @@ class CarriersAPI {
|
|
|
1379
1408
|
this.delete = (carrierId) => {
|
|
1380
1409
|
return this.client.delete(`/v1/carriers/${carrierId}`);
|
|
1381
1410
|
};
|
|
1411
|
+
/**
|
|
1412
|
+
* The `acceptTerms` method allows users to accept new versions of carrier terms.
|
|
1413
|
+
* Returns the status of each term.
|
|
1414
|
+
*/
|
|
1415
|
+
this.acceptTerms = (carrierId, request) => {
|
|
1416
|
+
return this.client.post(
|
|
1417
|
+
`/v1/carriers/${carrierId}/accepted_terms`,
|
|
1418
|
+
request
|
|
1419
|
+
);
|
|
1420
|
+
};
|
|
1382
1421
|
this.client = client;
|
|
1383
1422
|
}
|
|
1384
1423
|
}
|
|
@@ -3744,6 +3783,23 @@ class FundingSourcesAPI {
|
|
|
3744
3783
|
"/v1/insurance/funding_source/accepted_terms"
|
|
3745
3784
|
);
|
|
3746
3785
|
};
|
|
3786
|
+
/**
|
|
3787
|
+
* The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
|
|
3788
|
+
*/
|
|
3789
|
+
this.acceptedTerms = (fundingSourceId) => {
|
|
3790
|
+
return this.client.get(
|
|
3791
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`
|
|
3792
|
+
);
|
|
3793
|
+
};
|
|
3794
|
+
/**
|
|
3795
|
+
* The`acceptTerms` method allows users to accept new versions of funding source terms.
|
|
3796
|
+
*/
|
|
3797
|
+
this.acceptTerms = (fundingSourceId, request) => {
|
|
3798
|
+
return this.client.post(
|
|
3799
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`,
|
|
3800
|
+
request
|
|
3801
|
+
);
|
|
3802
|
+
};
|
|
3747
3803
|
this.client = client;
|
|
3748
3804
|
}
|
|
3749
3805
|
}
|
|
@@ -21983,6 +22039,13 @@ class ShipEngineAPI {
|
|
|
21983
22039
|
get accountBilling() {
|
|
21984
22040
|
return new AccountBillingAPI(this.client);
|
|
21985
22041
|
}
|
|
22042
|
+
/**
|
|
22043
|
+
* The `accountRefundAssist` method provides access to the Account Refund Assist endpoints
|
|
22044
|
+
* in ShipEngine API.
|
|
22045
|
+
*/
|
|
22046
|
+
get accountRefundAssist() {
|
|
22047
|
+
return new AccountRefundAssistAPI(this.client);
|
|
22048
|
+
}
|
|
21986
22049
|
/**
|
|
21987
22050
|
* The `addresses` method provides access to the Address Validation endpoints
|
|
21988
22051
|
* in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
|
|
@@ -22183,6 +22246,7 @@ exports.AccountBillingAPI = AccountBillingAPI;
|
|
|
22183
22246
|
exports.AccountBillingPlanAPI = AccountBillingPlanAPI;
|
|
22184
22247
|
exports.AccountBillingPlanChangeType = AccountBillingPlanChangeType;
|
|
22185
22248
|
exports.AccountFeaturesAPI = AccountFeaturesAPI;
|
|
22249
|
+
exports.AccountRefundAssistAPI = AccountRefundAssistAPI;
|
|
22186
22250
|
exports.AccountSettingsAPI = AccountSettingsAPI;
|
|
22187
22251
|
exports.AddressesAPI = AddressesAPI;
|
|
22188
22252
|
exports.AuctanePayAPI = AuctanePayAPI;
|
package/index.mjs
CHANGED
|
@@ -265,6 +265,35 @@ class AccountFeaturesAPI {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
+
class AccountRefundAssistAPI {
|
|
269
|
+
constructor(client) {
|
|
270
|
+
this.client = client;
|
|
271
|
+
/**
|
|
272
|
+
* The `get` method retrieves the refund assist configuration for all carriers,
|
|
273
|
+
* including if it is enabled for the user.
|
|
274
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#1.--Retrieve-RA-settings-information-(with-carrier-and-RA-details)
|
|
275
|
+
*/
|
|
276
|
+
this.get = () => {
|
|
277
|
+
return this.client.get("/v1/account/refund_assist");
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* The `enable` method enables refund assist globally for the user.
|
|
281
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#2.--Enable-RA-for-a-seller
|
|
282
|
+
*/
|
|
283
|
+
this.enable = () => {
|
|
284
|
+
return this.client.post("/v1/account/refund_assist/enable");
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* The `disable` method disables refund assist globally for the user.
|
|
288
|
+
* @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#3.--Disable-RA-for-a-seller
|
|
289
|
+
*/
|
|
290
|
+
this.disable = () => {
|
|
291
|
+
return this.client.post("/v1/account/refund_assist/disable");
|
|
292
|
+
};
|
|
293
|
+
this.client = client;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
268
297
|
class AddressesAPI {
|
|
269
298
|
constructor(client) {
|
|
270
299
|
this.client = client;
|
|
@@ -1375,6 +1404,16 @@ class CarriersAPI {
|
|
|
1375
1404
|
this.delete = (carrierId) => {
|
|
1376
1405
|
return this.client.delete(`/v1/carriers/${carrierId}`);
|
|
1377
1406
|
};
|
|
1407
|
+
/**
|
|
1408
|
+
* The `acceptTerms` method allows users to accept new versions of carrier terms.
|
|
1409
|
+
* Returns the status of each term.
|
|
1410
|
+
*/
|
|
1411
|
+
this.acceptTerms = (carrierId, request) => {
|
|
1412
|
+
return this.client.post(
|
|
1413
|
+
`/v1/carriers/${carrierId}/accepted_terms`,
|
|
1414
|
+
request
|
|
1415
|
+
);
|
|
1416
|
+
};
|
|
1378
1417
|
this.client = client;
|
|
1379
1418
|
}
|
|
1380
1419
|
}
|
|
@@ -3740,6 +3779,23 @@ class FundingSourcesAPI {
|
|
|
3740
3779
|
"/v1/insurance/funding_source/accepted_terms"
|
|
3741
3780
|
);
|
|
3742
3781
|
};
|
|
3782
|
+
/**
|
|
3783
|
+
* The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
|
|
3784
|
+
*/
|
|
3785
|
+
this.acceptedTerms = (fundingSourceId) => {
|
|
3786
|
+
return this.client.get(
|
|
3787
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`
|
|
3788
|
+
);
|
|
3789
|
+
};
|
|
3790
|
+
/**
|
|
3791
|
+
* The`acceptTerms` method allows users to accept new versions of funding source terms.
|
|
3792
|
+
*/
|
|
3793
|
+
this.acceptTerms = (fundingSourceId, request) => {
|
|
3794
|
+
return this.client.post(
|
|
3795
|
+
`/v1/funding_sources/${fundingSourceId}/accepted_terms`,
|
|
3796
|
+
request
|
|
3797
|
+
);
|
|
3798
|
+
};
|
|
3743
3799
|
this.client = client;
|
|
3744
3800
|
}
|
|
3745
3801
|
}
|
|
@@ -21979,6 +22035,13 @@ class ShipEngineAPI {
|
|
|
21979
22035
|
get accountBilling() {
|
|
21980
22036
|
return new AccountBillingAPI(this.client);
|
|
21981
22037
|
}
|
|
22038
|
+
/**
|
|
22039
|
+
* The `accountRefundAssist` method provides access to the Account Refund Assist endpoints
|
|
22040
|
+
* in ShipEngine API.
|
|
22041
|
+
*/
|
|
22042
|
+
get accountRefundAssist() {
|
|
22043
|
+
return new AccountRefundAssistAPI(this.client);
|
|
22044
|
+
}
|
|
21982
22045
|
/**
|
|
21983
22046
|
* The `addresses` method provides access to the Address Validation endpoints
|
|
21984
22047
|
* in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
|
|
@@ -22174,4 +22237,4 @@ class ShipEngineAPI {
|
|
|
22174
22237
|
}
|
|
22175
22238
|
}
|
|
22176
22239
|
|
|
22177
|
-
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountSettingsAPI, AddressesAPI, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngineAPI, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, camelizeKeys, decamelizeKeys, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, parseError };
|
|
22240
|
+
export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountRefundAssistAPI, AccountSettingsAPI, AddressesAPI, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngineAPI, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, camelizeKeys, decamelizeKeys, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, parseError };
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./account-billing-plan/types";
|
|
|
4
4
|
export * from "./account-billing/types";
|
|
5
5
|
export * from "./account-addons/types";
|
|
6
6
|
export * from "./account-features/types";
|
|
7
|
+
export * from "./account-refund-assist/types";
|
|
7
8
|
export * from "./addresses/types";
|
|
8
9
|
export * from "./auctane-pay/types";
|
|
9
10
|
export * from "./carriers/types";
|