postgrid-node 0.1.0-alpha.1
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/CHANGELOG.md +19 -0
- package/LICENSE +201 -0
- package/README.md +346 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +241 -0
- package/core.d.ts.map +1 -0
- package/core.js +914 -0
- package/core.js.map +1 -0
- package/core.mjs +882 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +47 -0
- package/error.d.ts.map +1 -0
- package/error.js +113 -0
- package/error.js.map +1 -0
- package/error.mjs +97 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +144 -0
- package/index.d.ts +144 -0
- package/index.d.ts.map +1 -0
- package/index.js +161 -0
- package/index.js.map +1 -0
- package/index.mjs +118 -0
- package/index.mjs.map +1 -0
- package/package.json +124 -0
- package/pagination.d.ts +24 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +45 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +41 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/bank-accounts.d.ts +285 -0
- package/resources/bank-accounts.d.ts.map +1 -0
- package/resources/bank-accounts.js +45 -0
- package/resources/bank-accounts.js.map +1 -0
- package/resources/bank-accounts.mjs +40 -0
- package/resources/bank-accounts.mjs.map +1 -0
- package/resources/boxes.d.ts +683 -0
- package/resources/boxes.d.ts.map +1 -0
- package/resources/boxes.js +54 -0
- package/resources/boxes.js.map +1 -0
- package/resources/boxes.mjs +49 -0
- package/resources/boxes.mjs.map +1 -0
- package/resources/campaigns.d.ts +644 -0
- package/resources/campaigns.d.ts.map +1 -0
- package/resources/campaigns.js +67 -0
- package/resources/campaigns.js.map +1 -0
- package/resources/campaigns.mjs +62 -0
- package/resources/campaigns.mjs.map +1 -0
- package/resources/cheques/cheques.d.ts +349 -0
- package/resources/cheques/cheques.d.ts.map +1 -0
- package/resources/cheques/cheques.js +95 -0
- package/resources/cheques/cheques.js.map +1 -0
- package/resources/cheques/cheques.mjs +67 -0
- package/resources/cheques/cheques.mjs.map +1 -0
- package/resources/cheques/index.d.ts +4 -0
- package/resources/cheques/index.d.ts.map +1 -0
- package/resources/cheques/index.js +12 -0
- package/resources/cheques/index.js.map +1 -0
- package/resources/cheques/index.mjs +5 -0
- package/resources/cheques/index.mjs.map +1 -0
- package/resources/cheques/url.d.ts +29 -0
- package/resources/cheques/url.d.ts.map +1 -0
- package/resources/cheques/url.js +20 -0
- package/resources/cheques/url.js.map +1 -0
- package/resources/cheques/url.mjs +16 -0
- package/resources/cheques/url.mjs.map +1 -0
- package/resources/cheques/with-deposit-ready-pdf.d.ts +13 -0
- package/resources/cheques/with-deposit-ready-pdf.d.ts.map +1 -0
- package/resources/cheques/with-deposit-ready-pdf.js +18 -0
- package/resources/cheques/with-deposit-ready-pdf.js.map +1 -0
- package/resources/cheques/with-deposit-ready-pdf.mjs +14 -0
- package/resources/cheques/with-deposit-ready-pdf.mjs.map +1 -0
- package/resources/contacts.d.ts +295 -0
- package/resources/contacts.d.ts.map +1 -0
- package/resources/contacts.js +52 -0
- package/resources/contacts.js.map +1 -0
- package/resources/contacts.mjs +47 -0
- package/resources/contacts.mjs.map +1 -0
- package/resources/index.d.ts +12 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +50 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +13 -0
- package/resources/index.mjs.map +1 -0
- package/resources/letters.d.ts +639 -0
- package/resources/letters.d.ts.map +1 -0
- package/resources/letters.js +55 -0
- package/resources/letters.js.map +1 -0
- package/resources/letters.mjs +50 -0
- package/resources/letters.mjs.map +1 -0
- package/resources/postcards.d.ts +346 -0
- package/resources/postcards.d.ts.map +1 -0
- package/resources/postcards.js +56 -0
- package/resources/postcards.js.map +1 -0
- package/resources/postcards.mjs +51 -0
- package/resources/postcards.mjs.map +1 -0
- package/resources/reports/exports.d.ts +207 -0
- package/resources/reports/exports.d.ts.map +1 -0
- package/resources/reports/exports.js +33 -0
- package/resources/reports/exports.js.map +1 -0
- package/resources/reports/exports.mjs +29 -0
- package/resources/reports/exports.mjs.map +1 -0
- package/resources/reports/index.d.ts +4 -0
- package/resources/reports/index.d.ts.map +1 -0
- package/resources/reports/index.js +12 -0
- package/resources/reports/index.js.map +1 -0
- package/resources/reports/index.mjs +5 -0
- package/resources/reports/index.mjs.map +1 -0
- package/resources/reports/reports.d.ts +245 -0
- package/resources/reports/reports.d.ts.map +1 -0
- package/resources/reports/reports.js +85 -0
- package/resources/reports/reports.js.map +1 -0
- package/resources/reports/reports.mjs +57 -0
- package/resources/reports/reports.mjs.map +1 -0
- package/resources/reports/samples.d.ts +81 -0
- package/resources/reports/samples.d.ts.map +1 -0
- package/resources/reports/samples.js +26 -0
- package/resources/reports/samples.js.map +1 -0
- package/resources/reports/samples.mjs +22 -0
- package/resources/reports/samples.mjs.map +1 -0
- package/resources/self-mailers.d.ts +622 -0
- package/resources/self-mailers.d.ts.map +1 -0
- package/resources/self-mailers.js +45 -0
- package/resources/self-mailers.js.map +1 -0
- package/resources/self-mailers.mjs +40 -0
- package/resources/self-mailers.mjs.map +1 -0
- package/resources/shared.d.ts +147 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/templates.d.ts +126 -0
- package/resources/templates.d.ts.map +1 -0
- package/resources/templates.js +46 -0
- package/resources/templates.js.map +1 -0
- package/resources/templates.mjs +41 -0
- package/resources/templates.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1208 -0
- package/src/error.ts +130 -0
- package/src/index.ts +428 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +69 -0
- package/src/resource.ts +11 -0
- package/src/resources/bank-accounts.ts +382 -0
- package/src/resources/boxes.ts +982 -0
- package/src/resources/campaigns.ts +853 -0
- package/src/resources/cheques/cheques.ts +493 -0
- package/src/resources/cheques/index.ts +12 -0
- package/src/resources/cheques/url.ts +37 -0
- package/src/resources/cheques/with-deposit-ready-pdf.ts +17 -0
- package/src/resources/contacts.ts +387 -0
- package/src/resources/index.ts +102 -0
- package/src/resources/letters.ts +870 -0
- package/src/resources/postcards.ts +548 -0
- package/src/resources/reports/exports.ts +272 -0
- package/src/resources/reports/index.ts +28 -0
- package/src/resources/reports/reports.ts +359 -0
- package/src/resources/reports/samples.ts +109 -0
- package/src/resources/self-mailers.ts +958 -0
- package/src/resources/shared.ts +182 -0
- package/src/resources/templates.ts +184 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +255 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +171 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +158 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
|
+
import { List, type ListParams } from '../pagination';
|
|
7
|
+
|
|
8
|
+
export class BankAccounts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a bank account. A US bank account is created by setting `bankCountryCode`
|
|
11
|
+
* to `US` and providing `accountNumber` and `routingNumber`. A canadian bank
|
|
12
|
+
* account can be created by specifying `bankCountryCode` as `CA` and setting
|
|
13
|
+
* `accountNumber`, `routeNumber`, and `transitNumber` accordingly.
|
|
14
|
+
*
|
|
15
|
+
* You must specify _either_ `signatureImage` or `signatureText`. The image can be
|
|
16
|
+
* supplied as either a URL or a multipart file upload.
|
|
17
|
+
*/
|
|
18
|
+
create(body: BankAccountCreateParams, options?: Core.RequestOptions): Core.APIPromise<BankAccount> {
|
|
19
|
+
return this._client.post('/bank_accounts', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a bank account by ID.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<BankAccount> {
|
|
26
|
+
return this._client.get(`/bank_accounts/${id}`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get a list of bank accounts.
|
|
31
|
+
*/
|
|
32
|
+
list(
|
|
33
|
+
query?: BankAccountListParams,
|
|
34
|
+
options?: Core.RequestOptions,
|
|
35
|
+
): Core.PagePromise<BankAccountsList, BankAccount>;
|
|
36
|
+
list(options?: Core.RequestOptions): Core.PagePromise<BankAccountsList, BankAccount>;
|
|
37
|
+
list(
|
|
38
|
+
query: BankAccountListParams | Core.RequestOptions = {},
|
|
39
|
+
options?: Core.RequestOptions,
|
|
40
|
+
): Core.PagePromise<BankAccountsList, BankAccount> {
|
|
41
|
+
if (isRequestOptions(query)) {
|
|
42
|
+
return this.list({}, query);
|
|
43
|
+
}
|
|
44
|
+
return this._client.getAPIList('/bank_accounts', BankAccountsList, { query, ...options });
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Delete a bank account by ID. Note that this operation cannot be undone.
|
|
49
|
+
*/
|
|
50
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BankAccountDeleteResponse> {
|
|
51
|
+
return this._client.delete(`/bank_accounts/${id}`, options);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class BankAccountsList extends List<BankAccount> {}
|
|
56
|
+
|
|
57
|
+
export interface BankAccount {
|
|
58
|
+
/**
|
|
59
|
+
* A unique ID prefixed with bank*account*
|
|
60
|
+
*/
|
|
61
|
+
id: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The account number of the bank account.
|
|
65
|
+
*/
|
|
66
|
+
accountNumber: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Countries typically have different bank account formats and standards. These are
|
|
70
|
+
* the countries which PostGrid's bank accounts API supports.
|
|
71
|
+
*/
|
|
72
|
+
bankCountryCode: 'CA' | 'US';
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The name of the bank.
|
|
76
|
+
*/
|
|
77
|
+
bankName: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The UTC time at which this resource was created.
|
|
81
|
+
*/
|
|
82
|
+
createdAt: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* `true` if this is a live mode resource else `false`.
|
|
86
|
+
*/
|
|
87
|
+
live: boolean;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Always `bank_account`.
|
|
91
|
+
*/
|
|
92
|
+
object: 'bank_account';
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The UTC time at which this resource was last updated.
|
|
96
|
+
*/
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The primary address line of the bank.
|
|
101
|
+
*/
|
|
102
|
+
bankPrimaryLine?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The secondary address line of the bank.
|
|
106
|
+
*/
|
|
107
|
+
bankSecondaryLine?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
111
|
+
* dashboard.
|
|
112
|
+
*/
|
|
113
|
+
description?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* See the section on Metadata.
|
|
117
|
+
*/
|
|
118
|
+
metadata?: Record<string, unknown>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The route number of the bank account (for CA).
|
|
122
|
+
*/
|
|
123
|
+
routeNumber?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The routing number of the bank account (for US).
|
|
127
|
+
*/
|
|
128
|
+
routingNumber?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* A signed link to the signature image uploaded when this bank account was
|
|
132
|
+
* created. This is omitted if `signatureText` is present.
|
|
133
|
+
*/
|
|
134
|
+
signatureImage?: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The signature text PostGrid uses to generate a signature for cheques created
|
|
138
|
+
* using this bank account. This is omitted if `signatureImage` is present.
|
|
139
|
+
*/
|
|
140
|
+
signatureText?: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The transit number of the bank account (for CA).
|
|
144
|
+
*/
|
|
145
|
+
transitNumber?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface BankAccountList {
|
|
149
|
+
data: Array<BankAccount>;
|
|
150
|
+
|
|
151
|
+
limit: number;
|
|
152
|
+
|
|
153
|
+
object: 'list';
|
|
154
|
+
|
|
155
|
+
skip: number;
|
|
156
|
+
|
|
157
|
+
totalCount: number;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface BankAccountDeleteResponse {
|
|
161
|
+
/**
|
|
162
|
+
* A unique ID prefixed with bank*account*
|
|
163
|
+
*/
|
|
164
|
+
id: string;
|
|
165
|
+
|
|
166
|
+
deleted: true;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Always `bank_account`.
|
|
170
|
+
*/
|
|
171
|
+
object: 'bank_account';
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type BankAccountCreateParams =
|
|
175
|
+
| BankAccountCreateParams.BankAccountCreateSignatureText
|
|
176
|
+
| BankAccountCreateParams.BankAccountCreateSignatureImageURL
|
|
177
|
+
| BankAccountCreateParams.BankAccountCreateSignatureImageFile;
|
|
178
|
+
|
|
179
|
+
export declare namespace BankAccountCreateParams {
|
|
180
|
+
export interface BankAccountCreateSignatureText {
|
|
181
|
+
/**
|
|
182
|
+
* The account number of the bank account.
|
|
183
|
+
*/
|
|
184
|
+
accountNumber: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Countries typically have different bank account formats and standards. These are
|
|
188
|
+
* the countries which PostGrid's bank accounts API supports.
|
|
189
|
+
*/
|
|
190
|
+
bankCountryCode: 'CA' | 'US';
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The name of the bank.
|
|
194
|
+
*/
|
|
195
|
+
bankName: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The signature text of the bank account.
|
|
199
|
+
*/
|
|
200
|
+
signatureText: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The primary address line of the bank.
|
|
204
|
+
*/
|
|
205
|
+
bankPrimaryLine?: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The secondary address line of the bank.
|
|
209
|
+
*/
|
|
210
|
+
bankSecondaryLine?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
214
|
+
* dashboard.
|
|
215
|
+
*/
|
|
216
|
+
description?: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* See the section on Metadata.
|
|
220
|
+
*/
|
|
221
|
+
metadata?: Record<string, unknown>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The route number of the bank account (for CA).
|
|
225
|
+
*/
|
|
226
|
+
routeNumber?: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* The routing number of the bank account (for US).
|
|
230
|
+
*/
|
|
231
|
+
routingNumber?: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The transit number of the bank account (for CA).
|
|
235
|
+
*/
|
|
236
|
+
transitNumber?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface BankAccountCreateSignatureImageURL {
|
|
240
|
+
/**
|
|
241
|
+
* The account number of the bank account.
|
|
242
|
+
*/
|
|
243
|
+
accountNumber: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Countries typically have different bank account formats and standards. These are
|
|
247
|
+
* the countries which PostGrid's bank accounts API supports.
|
|
248
|
+
*/
|
|
249
|
+
bankCountryCode: 'CA' | 'US';
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The name of the bank.
|
|
253
|
+
*/
|
|
254
|
+
bankName: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Link to signature image which PostGrid will download and apply to cheques
|
|
258
|
+
* created with this bank account.
|
|
259
|
+
*/
|
|
260
|
+
signatureImage: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* The primary address line of the bank.
|
|
264
|
+
*/
|
|
265
|
+
bankPrimaryLine?: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The secondary address line of the bank.
|
|
269
|
+
*/
|
|
270
|
+
bankSecondaryLine?: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
274
|
+
* dashboard.
|
|
275
|
+
*/
|
|
276
|
+
description?: string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* See the section on Metadata.
|
|
280
|
+
*/
|
|
281
|
+
metadata?: Record<string, unknown>;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* The route number of the bank account (for CA).
|
|
285
|
+
*/
|
|
286
|
+
routeNumber?: string;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The routing number of the bank account (for US).
|
|
290
|
+
*/
|
|
291
|
+
routingNumber?: string;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* The transit number of the bank account (for CA).
|
|
295
|
+
*/
|
|
296
|
+
transitNumber?: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface BankAccountCreateSignatureImageFile {
|
|
300
|
+
/**
|
|
301
|
+
* The account number of the bank account.
|
|
302
|
+
*/
|
|
303
|
+
accountNumber: string;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Countries typically have different bank account formats and standards. These are
|
|
307
|
+
* the countries which PostGrid's bank accounts API supports.
|
|
308
|
+
*/
|
|
309
|
+
bankCountryCode: 'CA' | 'US';
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The name of the bank.
|
|
313
|
+
*/
|
|
314
|
+
bankName: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* A PNG or JPEG file which PostGrid will apply to checks created with this bank
|
|
318
|
+
* account.
|
|
319
|
+
*/
|
|
320
|
+
signatureImage: string;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The primary address line of the bank.
|
|
324
|
+
*/
|
|
325
|
+
bankPrimaryLine?: string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The secondary address line of the bank.
|
|
329
|
+
*/
|
|
330
|
+
bankSecondaryLine?: string;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
334
|
+
* dashboard.
|
|
335
|
+
*/
|
|
336
|
+
description?: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* See the section on Metadata.
|
|
340
|
+
*/
|
|
341
|
+
metadata?: Record<string, unknown>;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The route number of the bank account (for CA).
|
|
345
|
+
*/
|
|
346
|
+
routeNumber?: string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* The routing number of the bank account (for US).
|
|
350
|
+
*/
|
|
351
|
+
routingNumber?: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* The transit number of the bank account (for CA).
|
|
355
|
+
*/
|
|
356
|
+
transitNumber?: string;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export interface BankAccountListParams extends ListParams {
|
|
361
|
+
/**
|
|
362
|
+
* You can supply any string to help narrow down the list of resources. For
|
|
363
|
+
* example, if you pass `"New York"` (quoted), it will return resources that have
|
|
364
|
+
* that string present somewhere in their response. Alternatively, you can supply a
|
|
365
|
+
* structured search query. See the documentation on `StructuredSearchQuery` for
|
|
366
|
+
* more details.
|
|
367
|
+
*/
|
|
368
|
+
search?: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
BankAccounts.BankAccountsList = BankAccountsList;
|
|
372
|
+
|
|
373
|
+
export declare namespace BankAccounts {
|
|
374
|
+
export {
|
|
375
|
+
type BankAccount as BankAccount,
|
|
376
|
+
type BankAccountList as BankAccountList,
|
|
377
|
+
type BankAccountDeleteResponse as BankAccountDeleteResponse,
|
|
378
|
+
BankAccountsList as BankAccountsList,
|
|
379
|
+
type BankAccountCreateParams as BankAccountCreateParams,
|
|
380
|
+
type BankAccountListParams as BankAccountListParams,
|
|
381
|
+
};
|
|
382
|
+
}
|