@beach-depository/sdk 0.0.1 → 0.0.3
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/README.md +2 -2
- package/dist/cjs/BaseClient.d.ts +3 -0
- package/dist/cjs/api/resources/fboAccounts/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/fboAccounts/client/Client.js +2 -2
- package/dist/cjs/api/resources/fboAccounts/resources/addresses/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/fboAccounts/resources/addresses/client/Client.js +2 -2
- package/dist/cjs/api/resources/fboAccounts/resources/aliases/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/fboAccounts/resources/aliases/client/Client.js +2 -2
- package/dist/cjs/api/resources/inboundShipments/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/inboundShipments/client/Client.js +2 -2
- package/dist/cjs/api/resources/outboundRequests/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/outboundRequests/client/Client.js +2 -2
- package/dist/cjs/api/resources/transfers/client/Client.d.ts +19 -3
- package/dist/cjs/api/resources/transfers/client/Client.js +47 -2
- package/dist/cjs/api/resources/transfers/client/requests/ConfirmTransfersRequest.d.ts +9 -0
- package/dist/cjs/api/resources/transfers/client/requests/ConfirmTransfersRequest.js +3 -0
- package/dist/cjs/api/resources/transfers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/transfers/types/CancelTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/CancelTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/ConfirmTransfersResponse.d.ts +34 -0
- package/dist/cjs/api/resources/transfers/types/ConfirmTransfersResponse.js +21 -0
- package/dist/cjs/api/resources/transfers/types/CreateTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/CreateTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/GetTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/GetTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersRequestStatus.d.ts +2 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersRequestStatus.js +2 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersResponse.d.ts +8 -2
- package/dist/cjs/api/resources/transfers/types/ListTransfersResponse.js +6 -2
- package/dist/cjs/api/resources/transfers/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/transfers/types/index.js +1 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/webhooks/client/Client.js +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +3 -0
- package/dist/esm/api/resources/fboAccounts/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/fboAccounts/client/Client.mjs +3 -3
- package/dist/esm/api/resources/fboAccounts/resources/addresses/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/fboAccounts/resources/addresses/client/Client.mjs +3 -3
- package/dist/esm/api/resources/fboAccounts/resources/aliases/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/fboAccounts/resources/aliases/client/Client.mjs +3 -3
- package/dist/esm/api/resources/inboundShipments/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/inboundShipments/client/Client.mjs +3 -3
- package/dist/esm/api/resources/outboundRequests/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/outboundRequests/client/Client.mjs +3 -3
- package/dist/esm/api/resources/transfers/client/Client.d.mts +19 -3
- package/dist/esm/api/resources/transfers/client/Client.mjs +48 -3
- package/dist/esm/api/resources/transfers/client/requests/ConfirmTransfersRequest.d.mts +9 -0
- package/dist/esm/api/resources/transfers/client/requests/ConfirmTransfersRequest.mjs +2 -0
- package/dist/esm/api/resources/transfers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/transfers/types/CancelTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/CancelTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/ConfirmTransfersResponse.d.mts +34 -0
- package/dist/esm/api/resources/transfers/types/ConfirmTransfersResponse.mjs +18 -0
- package/dist/esm/api/resources/transfers/types/CreateTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/CreateTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/GetTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/GetTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersRequestStatus.d.mts +2 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersRequestStatus.mjs +2 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersResponse.d.mts +8 -2
- package/dist/esm/api/resources/transfers/types/ListTransfersResponse.mjs +6 -2
- package/dist/esm/api/resources/transfers/types/index.d.mts +1 -0
- package/dist/esm/api/resources/transfers/types/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -3
- package/dist/esm/index.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -5
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Beach Depository TypeScript Library
|
|
2
2
|
|
|
3
3
|
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPure-Technologies%2Fbeach-sdk-typescript)
|
|
4
4
|
[](https://www.npmjs.com/package/@beach-depository/sdk)
|
|
5
5
|
|
|
6
|
-
The
|
|
6
|
+
The Beach Depository TypeScript library provides convenient access to the Beach Depository API from TypeScript.
|
|
7
7
|
|
|
8
8
|
## Table of Contents
|
|
9
9
|
|
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -43,6 +43,9 @@ export interface BaseRequestOptions {
|
|
|
43
43
|
maxReconnectionAttempts?: number;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
+
export interface BaseIdempotentRequestOptions {
|
|
47
|
+
idempotencyKey?: string | undefined;
|
|
48
|
+
}
|
|
46
49
|
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
47
50
|
logging: core.logging.Logger;
|
|
48
51
|
authProvider?: core.AuthProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import type * as BeachApi from "../../../index.js";
|
|
@@ -8,6 +8,8 @@ export declare namespace FboAccountsClient {
|
|
|
8
8
|
type Options = BaseClientOptions;
|
|
9
9
|
interface RequestOptions extends BaseRequestOptions {
|
|
10
10
|
}
|
|
11
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
12
|
+
}
|
|
11
13
|
}
|
|
12
14
|
export declare class FboAccountsClient {
|
|
13
15
|
protected readonly _options: NormalizedClientOptionsWithAuth<FboAccountsClient.Options>;
|
|
@@ -30,7 +32,7 @@ export declare class FboAccountsClient {
|
|
|
30
32
|
private __list;
|
|
31
33
|
/**
|
|
32
34
|
* @param {BeachApi.CreateFboAccountsRequest} request
|
|
33
|
-
* @param {FboAccountsClient.
|
|
35
|
+
* @param {FboAccountsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
34
36
|
*
|
|
35
37
|
* @throws {@link errors.BeachApiError}
|
|
36
38
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -43,7 +45,7 @@ export declare class FboAccountsClient {
|
|
|
43
45
|
* phone: "phone"
|
|
44
46
|
* })
|
|
45
47
|
*/
|
|
46
|
-
create(request: BeachApi.CreateFboAccountsRequest, requestOptions?: FboAccountsClient.
|
|
48
|
+
create(request: BeachApi.CreateFboAccountsRequest, requestOptions?: FboAccountsClient.IdempotentRequestOptions): core.HttpResponsePromise<BeachApi.CreateFboAccountsResponse>;
|
|
47
49
|
private __create;
|
|
48
50
|
/**
|
|
49
51
|
* @param {BeachApi.GetFboAccountsRequest} request
|
|
@@ -129,7 +129,7 @@ class FboAccountsClient {
|
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* @param {BeachApi.CreateFboAccountsRequest} request
|
|
132
|
-
* @param {FboAccountsClient.
|
|
132
|
+
* @param {FboAccountsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
133
133
|
*
|
|
134
134
|
* @throws {@link errors.BeachApiError}
|
|
135
135
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -149,7 +149,7 @@ class FboAccountsClient {
|
|
|
149
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
150
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
151
151
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
152
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
153
153
|
const _response = yield core.fetcher({
|
|
154
154
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, "v1/fbo-accounts"),
|
|
155
155
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import type * as BeachApi from "../../../../../index.js";
|
|
@@ -6,6 +6,8 @@ export declare namespace AddressesClient {
|
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
export declare class AddressesClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<AddressesClient.Options>;
|
|
@@ -26,7 +28,7 @@ export declare class AddressesClient {
|
|
|
26
28
|
private __list;
|
|
27
29
|
/**
|
|
28
30
|
* @param {BeachApi.fboAccounts.CreateAddressesRequest} request
|
|
29
|
-
* @param {AddressesClient.
|
|
31
|
+
* @param {AddressesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
30
32
|
*
|
|
31
33
|
* @throws {@link errors.BeachApiError}
|
|
32
34
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -42,7 +44,7 @@ export declare class AddressesClient {
|
|
|
42
44
|
* country: "country"
|
|
43
45
|
* })
|
|
44
46
|
*/
|
|
45
|
-
create(request: BeachApi.fboAccounts.CreateAddressesRequest, requestOptions?: AddressesClient.
|
|
47
|
+
create(request: BeachApi.fboAccounts.CreateAddressesRequest, requestOptions?: AddressesClient.IdempotentRequestOptions): core.HttpResponsePromise<BeachApi.fboAccounts.CreateAddressesResponse>;
|
|
46
48
|
private __create;
|
|
47
49
|
/**
|
|
48
50
|
* @param {BeachApi.fboAccounts.DeleteAddressesRequest} request
|
|
@@ -116,7 +116,7 @@ class AddressesClient {
|
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* @param {BeachApi.fboAccounts.CreateAddressesRequest} request
|
|
119
|
-
* @param {AddressesClient.
|
|
119
|
+
* @param {AddressesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
120
120
|
*
|
|
121
121
|
* @throws {@link errors.BeachApiError}
|
|
122
122
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -140,7 +140,7 @@ class AddressesClient {
|
|
|
140
140
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
141
141
|
const { id } = request, _body = __rest(request, ["id"]);
|
|
142
142
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
143
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
143
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
144
144
|
const _response = yield core.fetcher({
|
|
145
145
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, `v1/fbo-accounts/${core.url.encodePathParam(id)}/addresses`),
|
|
146
146
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import type * as BeachApi from "../../../../../index.js";
|
|
@@ -6,6 +6,8 @@ export declare namespace AliasesClient {
|
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
export declare class AliasesClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<AliasesClient.Options>;
|
|
@@ -26,7 +28,7 @@ export declare class AliasesClient {
|
|
|
26
28
|
private __list;
|
|
27
29
|
/**
|
|
28
30
|
* @param {BeachApi.fboAccounts.CreateAliasesRequest} request
|
|
29
|
-
* @param {AliasesClient.
|
|
31
|
+
* @param {AliasesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
30
32
|
*
|
|
31
33
|
* @throws {@link errors.BeachApiError}
|
|
32
34
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -37,7 +39,7 @@ export declare class AliasesClient {
|
|
|
37
39
|
* aliasVaultId: "aliasVaultId"
|
|
38
40
|
* })
|
|
39
41
|
*/
|
|
40
|
-
create(request: BeachApi.fboAccounts.CreateAliasesRequest, requestOptions?: AliasesClient.
|
|
42
|
+
create(request: BeachApi.fboAccounts.CreateAliasesRequest, requestOptions?: AliasesClient.IdempotentRequestOptions): core.HttpResponsePromise<BeachApi.fboAccounts.CreateAliasesResponse>;
|
|
41
43
|
private __create;
|
|
42
44
|
/**
|
|
43
45
|
* @param {BeachApi.fboAccounts.DeleteAliasesRequest} request
|
|
@@ -116,7 +116,7 @@ class AliasesClient {
|
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* @param {BeachApi.fboAccounts.CreateAliasesRequest} request
|
|
119
|
-
* @param {AliasesClient.
|
|
119
|
+
* @param {AliasesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
120
120
|
*
|
|
121
121
|
* @throws {@link errors.BeachApiError}
|
|
122
122
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -135,7 +135,7 @@ class AliasesClient {
|
|
|
135
135
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
136
136
|
const { id } = request, _body = __rest(request, ["id"]);
|
|
137
137
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
138
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
138
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
139
|
const _response = yield core.fetcher({
|
|
140
140
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, `v1/fbo-accounts/${core.url.encodePathParam(id)}/aliases`),
|
|
141
141
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import type * as BeachApi from "../../../index.js";
|
|
@@ -6,6 +6,8 @@ export declare namespace InboundShipmentsClient {
|
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
export declare class InboundShipmentsClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<InboundShipmentsClient.Options>;
|
|
@@ -24,7 +26,7 @@ export declare class InboundShipmentsClient {
|
|
|
24
26
|
private __list;
|
|
25
27
|
/**
|
|
26
28
|
* @param {BeachApi.CreateInboundShipmentsRequest} request
|
|
27
|
-
* @param {InboundShipmentsClient.
|
|
29
|
+
* @param {InboundShipmentsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
28
30
|
*
|
|
29
31
|
* @throws {@link errors.BeachApiError}
|
|
30
32
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -38,7 +40,7 @@ export declare class InboundShipmentsClient {
|
|
|
38
40
|
* }]
|
|
39
41
|
* })
|
|
40
42
|
*/
|
|
41
|
-
create(request: BeachApi.CreateInboundShipmentsRequest, requestOptions?: InboundShipmentsClient.
|
|
43
|
+
create(request: BeachApi.CreateInboundShipmentsRequest, requestOptions?: InboundShipmentsClient.IdempotentRequestOptions): core.HttpResponsePromise<BeachApi.CreateInboundShipmentsResponse>;
|
|
42
44
|
private __create;
|
|
43
45
|
/**
|
|
44
46
|
* @param {BeachApi.GetInboundShipmentsRequest} request
|
|
@@ -132,7 +132,7 @@ class InboundShipmentsClient {
|
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* @param {BeachApi.CreateInboundShipmentsRequest} request
|
|
135
|
-
* @param {InboundShipmentsClient.
|
|
135
|
+
* @param {InboundShipmentsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
136
136
|
*
|
|
137
137
|
* @throws {@link errors.BeachApiError}
|
|
138
138
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -153,7 +153,7 @@ class InboundShipmentsClient {
|
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
155
155
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
156
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
156
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
157
157
|
const _response = yield core.fetcher({
|
|
158
158
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, "v1/inbound-shipments"),
|
|
159
159
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import type * as BeachApi from "../../../index.js";
|
|
@@ -6,6 +6,8 @@ export declare namespace OutboundRequestsClient {
|
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
export declare class OutboundRequestsClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<OutboundRequestsClient.Options>;
|
|
@@ -24,7 +26,7 @@ export declare class OutboundRequestsClient {
|
|
|
24
26
|
private __list;
|
|
25
27
|
/**
|
|
26
28
|
* @param {BeachApi.CreateOutboundRequestsRequest} request
|
|
27
|
-
* @param {OutboundRequestsClient.
|
|
29
|
+
* @param {OutboundRequestsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
28
30
|
*
|
|
29
31
|
* @throws {@link errors.BeachApiError}
|
|
30
32
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -37,7 +39,7 @@ export declare class OutboundRequestsClient {
|
|
|
37
39
|
* }]
|
|
38
40
|
* })
|
|
39
41
|
*/
|
|
40
|
-
create(request: BeachApi.CreateOutboundRequestsRequest, requestOptions?: OutboundRequestsClient.
|
|
42
|
+
create(request: BeachApi.CreateOutboundRequestsRequest, requestOptions?: OutboundRequestsClient.IdempotentRequestOptions): core.HttpResponsePromise<BeachApi.CreateOutboundRequestsResponse>;
|
|
41
43
|
private __create;
|
|
42
44
|
/**
|
|
43
45
|
* @param {BeachApi.GetOutboundRequestsRequest} request
|
|
@@ -132,7 +132,7 @@ class OutboundRequestsClient {
|
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* @param {BeachApi.CreateOutboundRequestsRequest} request
|
|
135
|
-
* @param {OutboundRequestsClient.
|
|
135
|
+
* @param {OutboundRequestsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
136
136
|
*
|
|
137
137
|
* @throws {@link errors.BeachApiError}
|
|
138
138
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -152,7 +152,7 @@ class OutboundRequestsClient {
|
|
|
152
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
153
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
154
154
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
155
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
155
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
156
156
|
const _response = yield core.fetcher({
|
|
157
157
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, "v1/outbound-requests"),
|
|
158
158
|
method: "POST",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import type * as BeachApi from "../../../index.js";
|
|
@@ -6,6 +6,8 @@ export declare namespace TransfersClient {
|
|
|
6
6
|
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
12
|
export declare class TransfersClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<TransfersClient.Options>;
|
|
@@ -24,7 +26,7 @@ export declare class TransfersClient {
|
|
|
24
26
|
private __list;
|
|
25
27
|
/**
|
|
26
28
|
* @param {BeachApi.CreateTransfersRequest} request
|
|
27
|
-
* @param {TransfersClient.
|
|
29
|
+
* @param {TransfersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
28
30
|
*
|
|
29
31
|
* @throws {@link errors.BeachApiError}
|
|
30
32
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -39,7 +41,7 @@ export declare class TransfersClient {
|
|
|
39
41
|
* }]
|
|
40
42
|
* })
|
|
41
43
|
*/
|
|
42
|
-
create(request: BeachApi.CreateTransfersRequest, requestOptions?: TransfersClient.
|
|
44
|
+
create(request: BeachApi.CreateTransfersRequest, requestOptions?: TransfersClient.IdempotentRequestOptions): core.HttpResponsePromise<BeachApi.CreateTransfersResponse>;
|
|
43
45
|
private __create;
|
|
44
46
|
/**
|
|
45
47
|
* @param {BeachApi.GetTransfersRequest} request
|
|
@@ -55,6 +57,20 @@ export declare class TransfersClient {
|
|
|
55
57
|
*/
|
|
56
58
|
get(request: BeachApi.GetTransfersRequest, requestOptions?: TransfersClient.RequestOptions): core.HttpResponsePromise<BeachApi.GetTransfersResponse>;
|
|
57
59
|
private __get;
|
|
60
|
+
/**
|
|
61
|
+
* @param {BeachApi.ConfirmTransfersRequest} request
|
|
62
|
+
* @param {TransfersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link errors.BeachApiError}
|
|
65
|
+
* @throws {@link errors.BeachApiTimeoutError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.transfers.confirm({
|
|
69
|
+
* id: "id"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
confirm(request: BeachApi.ConfirmTransfersRequest, requestOptions?: TransfersClient.RequestOptions): core.HttpResponsePromise<BeachApi.ConfirmTransfersResponse>;
|
|
73
|
+
private __confirm;
|
|
58
74
|
/**
|
|
59
75
|
* @param {BeachApi.CancelTransfersRequest} request
|
|
60
76
|
* @param {TransfersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -120,7 +120,7 @@ class TransfersClient {
|
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* @param {BeachApi.CreateTransfersRequest} request
|
|
123
|
-
* @param {TransfersClient.
|
|
123
|
+
* @param {TransfersClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
124
124
|
*
|
|
125
125
|
* @throws {@link errors.BeachApiError}
|
|
126
126
|
* @throws {@link errors.BeachApiTimeoutError}
|
|
@@ -142,7 +142,7 @@ class TransfersClient {
|
|
|
142
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
143
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
144
144
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
145
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
145
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
146
146
|
const _response = yield core.fetcher({
|
|
147
147
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, "v1/transfers"),
|
|
148
148
|
method: "POST",
|
|
@@ -215,6 +215,51 @@ class TransfersClient {
|
|
|
215
215
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/transfers/{id}");
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* @param {BeachApi.ConfirmTransfersRequest} request
|
|
220
|
+
* @param {TransfersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
|
+
*
|
|
222
|
+
* @throws {@link errors.BeachApiError}
|
|
223
|
+
* @throws {@link errors.BeachApiTimeoutError}
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* await client.transfers.confirm({
|
|
227
|
+
* id: "id"
|
|
228
|
+
* })
|
|
229
|
+
*/
|
|
230
|
+
confirm(request, requestOptions) {
|
|
231
|
+
return core.HttpResponsePromise.fromPromise(this.__confirm(request, requestOptions));
|
|
232
|
+
}
|
|
233
|
+
__confirm(request, requestOptions) {
|
|
234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
236
|
+
const { id } = request;
|
|
237
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
238
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
239
|
+
const _response = yield core.fetcher({
|
|
240
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BeachApiEnvironment.Sandbox, `v1/transfers/${core.url.encodePathParam(id)}/confirm`),
|
|
241
|
+
method: "POST",
|
|
242
|
+
headers: _headers,
|
|
243
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
244
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
245
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
246
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
247
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
248
|
+
logging: this._options.logging,
|
|
249
|
+
});
|
|
250
|
+
if (_response.ok) {
|
|
251
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
252
|
+
}
|
|
253
|
+
if (_response.error.reason === "status-code") {
|
|
254
|
+
throw new errors.BeachApiError({
|
|
255
|
+
statusCode: _response.error.statusCode,
|
|
256
|
+
body: _response.error.body,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/transfers/{id}/confirm");
|
|
261
|
+
});
|
|
262
|
+
}
|
|
218
263
|
/**
|
|
219
264
|
* @param {BeachApi.CancelTransfersRequest} request
|
|
220
265
|
* @param {TransfersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { CancelTransfersRequest } from "./CancelTransfersRequest.js";
|
|
2
|
+
export type { ConfirmTransfersRequest } from "./ConfirmTransfersRequest.js";
|
|
2
3
|
export { CreateTransfersRequest } from "./CreateTransfersRequest.js";
|
|
3
4
|
export type { GetTransfersRequest } from "./GetTransfersRequest.js";
|
|
4
5
|
export type { ListTransfersRequest } from "./ListTransfersRequest.js";
|
|
@@ -8,6 +8,7 @@ export declare namespace CancelTransfersResponse {
|
|
|
8
8
|
toFboAccountId: string;
|
|
9
9
|
organizationId: string;
|
|
10
10
|
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
11
12
|
totalItems: number;
|
|
12
13
|
approvedBySystem?: boolean | undefined;
|
|
13
14
|
notes?: string | undefined;
|
|
@@ -17,12 +18,17 @@ export declare namespace CancelTransfersResponse {
|
|
|
17
18
|
}
|
|
18
19
|
namespace Data {
|
|
19
20
|
const Status: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
22
23
|
readonly Completed: "completed";
|
|
23
24
|
readonly Rejected: "rejected";
|
|
24
25
|
readonly Cancelled: "cancelled";
|
|
25
26
|
};
|
|
26
27
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -7,11 +7,15 @@ var CancelTransfersResponse;
|
|
|
7
7
|
let Data;
|
|
8
8
|
(function (Data) {
|
|
9
9
|
Data.Status = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
PendingApproval: "pending_approval",
|
|
11
|
+
Processing: "processing",
|
|
12
12
|
Completed: "completed",
|
|
13
13
|
Rejected: "rejected",
|
|
14
14
|
Cancelled: "cancelled",
|
|
15
15
|
};
|
|
16
|
+
Data.InitiatedBy = {
|
|
17
|
+
Customer: "customer",
|
|
18
|
+
Vault: "vault",
|
|
19
|
+
};
|
|
16
20
|
})(Data = CancelTransfersResponse.Data || (CancelTransfersResponse.Data = {}));
|
|
17
21
|
})(CancelTransfersResponse || (exports.CancelTransfersResponse = CancelTransfersResponse = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface ConfirmTransfersResponse {
|
|
2
|
+
data: ConfirmTransfersResponse.Data;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ConfirmTransfersResponse {
|
|
5
|
+
interface Data {
|
|
6
|
+
id: string;
|
|
7
|
+
fromFboAccountId: string;
|
|
8
|
+
toFboAccountId: string;
|
|
9
|
+
organizationId: string;
|
|
10
|
+
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
12
|
+
totalItems: number;
|
|
13
|
+
approvedBySystem?: boolean | undefined;
|
|
14
|
+
notes?: string | undefined;
|
|
15
|
+
approvedAt?: string | undefined;
|
|
16
|
+
completedAt?: string | undefined;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
}
|
|
19
|
+
namespace Data {
|
|
20
|
+
const Status: {
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
23
|
+
readonly Completed: "completed";
|
|
24
|
+
readonly Rejected: "rejected";
|
|
25
|
+
readonly Cancelled: "cancelled";
|
|
26
|
+
};
|
|
27
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ConfirmTransfersResponse = void 0;
|
|
5
|
+
var ConfirmTransfersResponse;
|
|
6
|
+
(function (ConfirmTransfersResponse) {
|
|
7
|
+
let Data;
|
|
8
|
+
(function (Data) {
|
|
9
|
+
Data.Status = {
|
|
10
|
+
PendingApproval: "pending_approval",
|
|
11
|
+
Processing: "processing",
|
|
12
|
+
Completed: "completed",
|
|
13
|
+
Rejected: "rejected",
|
|
14
|
+
Cancelled: "cancelled",
|
|
15
|
+
};
|
|
16
|
+
Data.InitiatedBy = {
|
|
17
|
+
Customer: "customer",
|
|
18
|
+
Vault: "vault",
|
|
19
|
+
};
|
|
20
|
+
})(Data = ConfirmTransfersResponse.Data || (ConfirmTransfersResponse.Data = {}));
|
|
21
|
+
})(ConfirmTransfersResponse || (exports.ConfirmTransfersResponse = ConfirmTransfersResponse = {}));
|
|
@@ -8,6 +8,7 @@ export declare namespace CreateTransfersResponse {
|
|
|
8
8
|
toFboAccountId: string;
|
|
9
9
|
organizationId: string;
|
|
10
10
|
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
11
12
|
totalItems: number;
|
|
12
13
|
approvedBySystem?: boolean | undefined;
|
|
13
14
|
notes?: string | undefined;
|
|
@@ -17,12 +18,17 @@ export declare namespace CreateTransfersResponse {
|
|
|
17
18
|
}
|
|
18
19
|
namespace Data {
|
|
19
20
|
const Status: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
22
23
|
readonly Completed: "completed";
|
|
23
24
|
readonly Rejected: "rejected";
|
|
24
25
|
readonly Cancelled: "cancelled";
|
|
25
26
|
};
|
|
26
27
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -7,11 +7,15 @@ var CreateTransfersResponse;
|
|
|
7
7
|
let Data;
|
|
8
8
|
(function (Data) {
|
|
9
9
|
Data.Status = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
PendingApproval: "pending_approval",
|
|
11
|
+
Processing: "processing",
|
|
12
12
|
Completed: "completed",
|
|
13
13
|
Rejected: "rejected",
|
|
14
14
|
Cancelled: "cancelled",
|
|
15
15
|
};
|
|
16
|
+
Data.InitiatedBy = {
|
|
17
|
+
Customer: "customer",
|
|
18
|
+
Vault: "vault",
|
|
19
|
+
};
|
|
16
20
|
})(Data = CreateTransfersResponse.Data || (CreateTransfersResponse.Data = {}));
|
|
17
21
|
})(CreateTransfersResponse || (exports.CreateTransfersResponse = CreateTransfersResponse = {}));
|
|
@@ -8,6 +8,7 @@ export declare namespace GetTransfersResponse {
|
|
|
8
8
|
toFboAccountId: string;
|
|
9
9
|
organizationId: string;
|
|
10
10
|
status: Data.Status;
|
|
11
|
+
initiatedBy: Data.InitiatedBy;
|
|
11
12
|
totalItems: number;
|
|
12
13
|
approvedBySystem?: boolean | undefined;
|
|
13
14
|
notes?: string | undefined;
|
|
@@ -17,12 +18,17 @@ export declare namespace GetTransfersResponse {
|
|
|
17
18
|
}
|
|
18
19
|
namespace Data {
|
|
19
20
|
const Status: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
21
|
+
readonly PendingApproval: "pending_approval";
|
|
22
|
+
readonly Processing: "processing";
|
|
22
23
|
readonly Completed: "completed";
|
|
23
24
|
readonly Rejected: "rejected";
|
|
24
25
|
readonly Cancelled: "cancelled";
|
|
25
26
|
};
|
|
26
27
|
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
const InitiatedBy: {
|
|
29
|
+
readonly Customer: "customer";
|
|
30
|
+
readonly Vault: "vault";
|
|
31
|
+
};
|
|
32
|
+
type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy];
|
|
27
33
|
}
|
|
28
34
|
}
|
|
@@ -7,11 +7,15 @@ var GetTransfersResponse;
|
|
|
7
7
|
let Data;
|
|
8
8
|
(function (Data) {
|
|
9
9
|
Data.Status = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
PendingApproval: "pending_approval",
|
|
11
|
+
Processing: "processing",
|
|
12
12
|
Completed: "completed",
|
|
13
13
|
Rejected: "rejected",
|
|
14
14
|
Cancelled: "cancelled",
|
|
15
15
|
};
|
|
16
|
+
Data.InitiatedBy = {
|
|
17
|
+
Customer: "customer",
|
|
18
|
+
Vault: "vault",
|
|
19
|
+
};
|
|
16
20
|
})(Data = GetTransfersResponse.Data || (GetTransfersResponse.Data = {}));
|
|
17
21
|
})(GetTransfersResponse || (exports.GetTransfersResponse = GetTransfersResponse = {}));
|