@shipengine/js-api 3.13.0 → 3.14.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-billing/api.d.ts +2 -2
- package/auctane-pay/api.d.ts +7 -1
- package/auctane-pay/types.d.ts +6 -0
- package/index.js +11 -3
- package/index.mjs +11 -3
- package/package.json +1 -1
package/account-billing/api.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class AccountBillingAPI {
|
|
|
12
12
|
*/
|
|
13
13
|
get: () => Promise<import("axios").AxiosResponse<AccountBillingResponse, any>>;
|
|
14
14
|
/**
|
|
15
|
-
* The `
|
|
15
|
+
* The `put` method updates (or create) the Billing Info for the current user.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
put: (reqBody: UpsertAccountBillingRequestBody) => Promise<import("axios").AxiosResponse<AccountBillingResponse, any>>;
|
|
18
18
|
}
|
package/auctane-pay/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { CreateSessionRequest, CreateSessionResponse } from "./types";
|
|
2
|
+
import { ConfigResponse, CreateSessionRequest, CreateSessionResponse } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* # Auctane Pay API module - /internal/auctane_pay
|
|
5
5
|
*
|
|
@@ -15,4 +15,10 @@ export declare class AuctanePayAPI {
|
|
|
15
15
|
* @returns a promise that resolves to the created session
|
|
16
16
|
*/
|
|
17
17
|
createSession: (request: CreateSessionRequest) => Promise<import("axios").AxiosResponse<CreateSessionResponse, any>>;
|
|
18
|
+
/**
|
|
19
|
+
* The `getConfig` method get the AuctanePay config, such as the "adyenClientKey"
|
|
20
|
+
*
|
|
21
|
+
* @returns a promise that returns the AuctanePay config
|
|
22
|
+
*/
|
|
23
|
+
getConfig: () => Promise<import("axios").AxiosResponse<ConfigResponse, any>>;
|
|
18
24
|
}
|
package/auctane-pay/types.d.ts
CHANGED
|
@@ -101,6 +101,12 @@ export interface PaymentMethodHolderAddress {
|
|
|
101
101
|
*/
|
|
102
102
|
sourceAccountId: string;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* @category Entities
|
|
106
|
+
*/
|
|
107
|
+
export interface ConfigResponse {
|
|
108
|
+
metadata: AuctanePaySessionMetadata;
|
|
109
|
+
}
|
|
104
110
|
/**
|
|
105
111
|
* @category Entities
|
|
106
112
|
*/
|
package/index.js
CHANGED
|
@@ -252,6 +252,14 @@ class AuctanePayAPI {
|
|
|
252
252
|
this.createSession = (request) => {
|
|
253
253
|
return this.client.post("/internal/auctane_pay/sessions", request);
|
|
254
254
|
};
|
|
255
|
+
/**
|
|
256
|
+
* The `getConfig` method get the AuctanePay config, such as the "adyenClientKey"
|
|
257
|
+
*
|
|
258
|
+
* @returns a promise that returns the AuctanePay config
|
|
259
|
+
*/
|
|
260
|
+
this.getConfig = () => {
|
|
261
|
+
return this.client.get("/internal/auctane_pay/config");
|
|
262
|
+
};
|
|
255
263
|
this.client = client;
|
|
256
264
|
}
|
|
257
265
|
}
|
|
@@ -285,10 +293,10 @@ class AccountBillingAPI {
|
|
|
285
293
|
return this.client.get("/v1/account/billing");
|
|
286
294
|
};
|
|
287
295
|
/**
|
|
288
|
-
* The `
|
|
296
|
+
* The `put` method updates (or create) the Billing Info for the current user.
|
|
289
297
|
*/
|
|
290
|
-
this.
|
|
291
|
-
return this.client.
|
|
298
|
+
this.put = (reqBody) => {
|
|
299
|
+
return this.client.put("/v1/account/billing", reqBody);
|
|
292
300
|
};
|
|
293
301
|
this.client = client;
|
|
294
302
|
}
|
package/index.mjs
CHANGED
|
@@ -248,6 +248,14 @@ class AuctanePayAPI {
|
|
|
248
248
|
this.createSession = (request) => {
|
|
249
249
|
return this.client.post("/internal/auctane_pay/sessions", request);
|
|
250
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* The `getConfig` method get the AuctanePay config, such as the "adyenClientKey"
|
|
253
|
+
*
|
|
254
|
+
* @returns a promise that returns the AuctanePay config
|
|
255
|
+
*/
|
|
256
|
+
this.getConfig = () => {
|
|
257
|
+
return this.client.get("/internal/auctane_pay/config");
|
|
258
|
+
};
|
|
251
259
|
this.client = client;
|
|
252
260
|
}
|
|
253
261
|
}
|
|
@@ -281,10 +289,10 @@ class AccountBillingAPI {
|
|
|
281
289
|
return this.client.get("/v1/account/billing");
|
|
282
290
|
};
|
|
283
291
|
/**
|
|
284
|
-
* The `
|
|
292
|
+
* The `put` method updates (or create) the Billing Info for the current user.
|
|
285
293
|
*/
|
|
286
|
-
this.
|
|
287
|
-
return this.client.
|
|
294
|
+
this.put = (reqBody) => {
|
|
295
|
+
return this.client.put("/v1/account/billing", reqBody);
|
|
288
296
|
};
|
|
289
297
|
this.client = client;
|
|
290
298
|
}
|