increase 0.387.0 → 0.389.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +0 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/exports.d.mts +41 -5
  12. package/resources/exports.d.mts.map +1 -1
  13. package/resources/exports.d.ts +41 -5
  14. package/resources/exports.d.ts.map +1 -1
  15. package/resources/index.d.mts +0 -1
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +0 -1
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +2 -4
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +0 -1
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/simulations/exports.d.mts +27 -0
  24. package/resources/simulations/exports.d.mts.map +1 -0
  25. package/resources/simulations/exports.d.ts +27 -0
  26. package/resources/simulations/exports.d.ts.map +1 -0
  27. package/resources/simulations/{documents.js → exports.js} +7 -7
  28. package/resources/simulations/exports.js.map +1 -0
  29. package/resources/simulations/{documents.mjs → exports.mjs} +5 -5
  30. package/resources/simulations/exports.mjs.map +1 -0
  31. package/resources/simulations/index.d.mts +1 -1
  32. package/resources/simulations/index.d.mts.map +1 -1
  33. package/resources/simulations/index.d.ts +1 -1
  34. package/resources/simulations/index.d.ts.map +1 -1
  35. package/resources/simulations/index.js +3 -3
  36. package/resources/simulations/index.js.map +1 -1
  37. package/resources/simulations/index.mjs +1 -1
  38. package/resources/simulations/index.mjs.map +1 -1
  39. package/resources/simulations/simulations.d.mts +4 -4
  40. package/resources/simulations/simulations.d.mts.map +1 -1
  41. package/resources/simulations/simulations.d.ts +4 -4
  42. package/resources/simulations/simulations.d.ts.map +1 -1
  43. package/resources/simulations/simulations.js +4 -4
  44. package/resources/simulations/simulations.js.map +1 -1
  45. package/resources/simulations/simulations.mjs +4 -4
  46. package/resources/simulations/simulations.mjs.map +1 -1
  47. package/src/client.ts +0 -17
  48. package/src/resources/exports.ts +48 -5
  49. package/src/resources/index.ts +0 -7
  50. package/src/resources/simulations/exports.ts +33 -0
  51. package/src/resources/simulations/index.ts +1 -1
  52. package/src/resources/simulations/simulations.ts +5 -5
  53. package/src/version.ts +1 -1
  54. package/version.d.mts +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/version.mjs +1 -1
  58. package/resources/documents.d.mts +0 -213
  59. package/resources/documents.d.mts.map +0 -1
  60. package/resources/documents.d.ts +0 -213
  61. package/resources/documents.d.ts.map +0 -1
  62. package/resources/documents.js +0 -51
  63. package/resources/documents.js.map +0 -1
  64. package/resources/documents.mjs +0 -47
  65. package/resources/documents.mjs.map +0 -1
  66. package/resources/simulations/documents.d.mts +0 -27
  67. package/resources/simulations/documents.d.mts.map +0 -1
  68. package/resources/simulations/documents.d.ts +0 -27
  69. package/resources/simulations/documents.d.ts.map +0 -1
  70. package/resources/simulations/documents.js.map +0 -1
  71. package/resources/simulations/documents.mjs.map +0 -1
  72. package/src/resources/documents.ts +0 -274
  73. package/src/resources/simulations/documents.ts +0 -33
@@ -1,213 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { Page, type PageParams, PagePromise } from "../core/pagination.mjs";
4
- import { RequestOptions } from "../internal/request-options.mjs";
5
- export declare class Documents extends APIResource {
6
- /**
7
- * Create a Document
8
- *
9
- * @example
10
- * ```ts
11
- * const document = await client.documents.create({
12
- * category: 'account_verification_letter',
13
- * });
14
- * ```
15
- */
16
- create(body: DocumentCreateParams, options?: RequestOptions): APIPromise<Document>;
17
- /**
18
- * Retrieve a Document
19
- *
20
- * @example
21
- * ```ts
22
- * const document = await client.documents.retrieve(
23
- * 'document_qjtqc6s4c14ve2q89izm',
24
- * );
25
- * ```
26
- */
27
- retrieve(documentID: string, options?: RequestOptions): APIPromise<Document>;
28
- /**
29
- * List Documents
30
- *
31
- * @example
32
- * ```ts
33
- * // Automatically fetches more pages as needed.
34
- * for await (const document of client.documents.list()) {
35
- * // ...
36
- * }
37
- * ```
38
- */
39
- list(query?: DocumentListParams | null | undefined, options?: RequestOptions): PagePromise<DocumentsPage, Document>;
40
- }
41
- export type DocumentsPage = Page<Document>;
42
- /**
43
- * Increase generates certain documents / forms automatically for your application;
44
- * they can be listed here.
45
- */
46
- export interface Document {
47
- /**
48
- * The Document identifier.
49
- */
50
- id: string;
51
- /**
52
- * Properties of an account verification letter document.
53
- */
54
- account_verification_letter: Document.AccountVerificationLetter | null;
55
- /**
56
- * The type of document.
57
- *
58
- * - `form_1099_int` - Internal Revenue Service Form 1099-INT.
59
- * - `form_1099_misc` - Internal Revenue Service Form 1099-MISC.
60
- * - `proof_of_authorization` - A document submitted in response to a proof of
61
- * authorization request for an ACH transfer.
62
- * - `company_information` - Company information, such a policies or procedures,
63
- * typically submitted during our due diligence process.
64
- * - `account_verification_letter` - An account verification letter.
65
- * - `funding_instructions` - Funding instructions.
66
- */
67
- category: 'form_1099_int' | 'form_1099_misc' | 'proof_of_authorization' | 'company_information' | 'account_verification_letter' | 'funding_instructions';
68
- /**
69
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
70
- * Document was created.
71
- */
72
- created_at: string;
73
- /**
74
- * The identifier of the Entity the document was generated for.
75
- */
76
- entity_id: string | null;
77
- /**
78
- * The identifier of the File containing the Document's contents.
79
- */
80
- file_id: string;
81
- /**
82
- * Properties of a funding instructions document.
83
- */
84
- funding_instructions: Document.FundingInstructions | null;
85
- /**
86
- * The idempotency key you chose for this object. This value is unique across
87
- * Increase and is used to ensure that a request is only processed once. Learn more
88
- * about [idempotency](https://increase.com/documentation/idempotency-keys).
89
- */
90
- idempotency_key: string | null;
91
- /**
92
- * A constant representing the object's type. For this resource it will always be
93
- * `document`.
94
- */
95
- type: 'document';
96
- }
97
- export declare namespace Document {
98
- /**
99
- * Properties of an account verification letter document.
100
- */
101
- interface AccountVerificationLetter {
102
- /**
103
- * The identifier of the Account Number the document was generated for.
104
- */
105
- account_number_id: string;
106
- }
107
- /**
108
- * Properties of a funding instructions document.
109
- */
110
- interface FundingInstructions {
111
- /**
112
- * The identifier of the Account Number the document was generated for.
113
- */
114
- account_number_id: string;
115
- }
116
- }
117
- export interface DocumentCreateParams {
118
- /**
119
- * The type of document to create.
120
- *
121
- * - `account_verification_letter` - An account verification letter.
122
- * - `funding_instructions` - Funding instructions.
123
- */
124
- category: 'account_verification_letter' | 'funding_instructions';
125
- /**
126
- * An account verification letter. Required if and only if `category` is
127
- * `account_verification_letter`.
128
- */
129
- account_verification_letter?: DocumentCreateParams.AccountVerificationLetter;
130
- /**
131
- * Funding instructions. Required if and only if `category` is
132
- * `funding_instructions`.
133
- */
134
- funding_instructions?: DocumentCreateParams.FundingInstructions;
135
- [k: string]: unknown;
136
- }
137
- export declare namespace DocumentCreateParams {
138
- /**
139
- * An account verification letter. Required if and only if `category` is
140
- * `account_verification_letter`.
141
- */
142
- interface AccountVerificationLetter {
143
- /**
144
- * The Account Number the bank letter should be generated for.
145
- */
146
- account_number_id: string;
147
- /**
148
- * If provided, the letter will include the Account's balance as of the date.
149
- */
150
- balance_date?: string;
151
- }
152
- /**
153
- * Funding instructions. Required if and only if `category` is
154
- * `funding_instructions`.
155
- */
156
- interface FundingInstructions {
157
- /**
158
- * The Account Number the funding instructions should be generated for.
159
- */
160
- account_number_id: string;
161
- }
162
- }
163
- export interface DocumentListParams extends PageParams {
164
- category?: DocumentListParams.Category;
165
- created_at?: DocumentListParams.CreatedAt;
166
- /**
167
- * Filter Documents to ones belonging to the specified Entity.
168
- */
169
- entity_id?: string;
170
- /**
171
- * Filter records to the one with the specified `idempotency_key` you chose for
172
- * that object. This value is unique across Increase and is used to ensure that a
173
- * request is only processed once. Learn more about
174
- * [idempotency](https://increase.com/documentation/idempotency-keys).
175
- */
176
- idempotency_key?: string;
177
- }
178
- export declare namespace DocumentListParams {
179
- interface Category {
180
- /**
181
- * Filter Documents for those with the specified category or categories. For GET
182
- * requests, this should be encoded as a comma-delimited string, such as
183
- * `?in=one,two,three`.
184
- */
185
- in?: Array<'form_1099_int' | 'form_1099_misc' | 'proof_of_authorization' | 'company_information' | 'account_verification_letter' | 'funding_instructions'>;
186
- }
187
- interface CreatedAt {
188
- /**
189
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
190
- * timestamp.
191
- */
192
- after?: string;
193
- /**
194
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
195
- * timestamp.
196
- */
197
- before?: string;
198
- /**
199
- * Return results on or after this
200
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
201
- */
202
- on_or_after?: string;
203
- /**
204
- * Return results on or before this
205
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
206
- */
207
- on_or_before?: string;
208
- }
209
- }
210
- export declare namespace Documents {
211
- export { type Document as Document, type DocumentsPage as DocumentsPage, type DocumentCreateParams as DocumentCreateParams, type DocumentListParams as DocumentListParams, };
212
- }
213
- //# sourceMappingURL=documents.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.d.mts","sourceRoot":"","sources":["../src/resources/documents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE;OACtC,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIlF;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,E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BAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,213 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { Page, type PageParams, PagePromise } from "../core/pagination.js";
4
- import { RequestOptions } from "../internal/request-options.js";
5
- export declare class Documents extends APIResource {
6
- /**
7
- * Create a Document
8
- *
9
- * @example
10
- * ```ts
11
- * const document = await client.documents.create({
12
- * category: 'account_verification_letter',
13
- * });
14
- * ```
15
- */
16
- create(body: DocumentCreateParams, options?: RequestOptions): APIPromise<Document>;
17
- /**
18
- * Retrieve a Document
19
- *
20
- * @example
21
- * ```ts
22
- * const document = await client.documents.retrieve(
23
- * 'document_qjtqc6s4c14ve2q89izm',
24
- * );
25
- * ```
26
- */
27
- retrieve(documentID: string, options?: RequestOptions): APIPromise<Document>;
28
- /**
29
- * List Documents
30
- *
31
- * @example
32
- * ```ts
33
- * // Automatically fetches more pages as needed.
34
- * for await (const document of client.documents.list()) {
35
- * // ...
36
- * }
37
- * ```
38
- */
39
- list(query?: DocumentListParams | null | undefined, options?: RequestOptions): PagePromise<DocumentsPage, Document>;
40
- }
41
- export type DocumentsPage = Page<Document>;
42
- /**
43
- * Increase generates certain documents / forms automatically for your application;
44
- * they can be listed here.
45
- */
46
- export interface Document {
47
- /**
48
- * The Document identifier.
49
- */
50
- id: string;
51
- /**
52
- * Properties of an account verification letter document.
53
- */
54
- account_verification_letter: Document.AccountVerificationLetter | null;
55
- /**
56
- * The type of document.
57
- *
58
- * - `form_1099_int` - Internal Revenue Service Form 1099-INT.
59
- * - `form_1099_misc` - Internal Revenue Service Form 1099-MISC.
60
- * - `proof_of_authorization` - A document submitted in response to a proof of
61
- * authorization request for an ACH transfer.
62
- * - `company_information` - Company information, such a policies or procedures,
63
- * typically submitted during our due diligence process.
64
- * - `account_verification_letter` - An account verification letter.
65
- * - `funding_instructions` - Funding instructions.
66
- */
67
- category: 'form_1099_int' | 'form_1099_misc' | 'proof_of_authorization' | 'company_information' | 'account_verification_letter' | 'funding_instructions';
68
- /**
69
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
70
- * Document was created.
71
- */
72
- created_at: string;
73
- /**
74
- * The identifier of the Entity the document was generated for.
75
- */
76
- entity_id: string | null;
77
- /**
78
- * The identifier of the File containing the Document's contents.
79
- */
80
- file_id: string;
81
- /**
82
- * Properties of a funding instructions document.
83
- */
84
- funding_instructions: Document.FundingInstructions | null;
85
- /**
86
- * The idempotency key you chose for this object. This value is unique across
87
- * Increase and is used to ensure that a request is only processed once. Learn more
88
- * about [idempotency](https://increase.com/documentation/idempotency-keys).
89
- */
90
- idempotency_key: string | null;
91
- /**
92
- * A constant representing the object's type. For this resource it will always be
93
- * `document`.
94
- */
95
- type: 'document';
96
- }
97
- export declare namespace Document {
98
- /**
99
- * Properties of an account verification letter document.
100
- */
101
- interface AccountVerificationLetter {
102
- /**
103
- * The identifier of the Account Number the document was generated for.
104
- */
105
- account_number_id: string;
106
- }
107
- /**
108
- * Properties of a funding instructions document.
109
- */
110
- interface FundingInstructions {
111
- /**
112
- * The identifier of the Account Number the document was generated for.
113
- */
114
- account_number_id: string;
115
- }
116
- }
117
- export interface DocumentCreateParams {
118
- /**
119
- * The type of document to create.
120
- *
121
- * - `account_verification_letter` - An account verification letter.
122
- * - `funding_instructions` - Funding instructions.
123
- */
124
- category: 'account_verification_letter' | 'funding_instructions';
125
- /**
126
- * An account verification letter. Required if and only if `category` is
127
- * `account_verification_letter`.
128
- */
129
- account_verification_letter?: DocumentCreateParams.AccountVerificationLetter;
130
- /**
131
- * Funding instructions. Required if and only if `category` is
132
- * `funding_instructions`.
133
- */
134
- funding_instructions?: DocumentCreateParams.FundingInstructions;
135
- [k: string]: unknown;
136
- }
137
- export declare namespace DocumentCreateParams {
138
- /**
139
- * An account verification letter. Required if and only if `category` is
140
- * `account_verification_letter`.
141
- */
142
- interface AccountVerificationLetter {
143
- /**
144
- * The Account Number the bank letter should be generated for.
145
- */
146
- account_number_id: string;
147
- /**
148
- * If provided, the letter will include the Account's balance as of the date.
149
- */
150
- balance_date?: string;
151
- }
152
- /**
153
- * Funding instructions. Required if and only if `category` is
154
- * `funding_instructions`.
155
- */
156
- interface FundingInstructions {
157
- /**
158
- * The Account Number the funding instructions should be generated for.
159
- */
160
- account_number_id: string;
161
- }
162
- }
163
- export interface DocumentListParams extends PageParams {
164
- category?: DocumentListParams.Category;
165
- created_at?: DocumentListParams.CreatedAt;
166
- /**
167
- * Filter Documents to ones belonging to the specified Entity.
168
- */
169
- entity_id?: string;
170
- /**
171
- * Filter records to the one with the specified `idempotency_key` you chose for
172
- * that object. This value is unique across Increase and is used to ensure that a
173
- * request is only processed once. Learn more about
174
- * [idempotency](https://increase.com/documentation/idempotency-keys).
175
- */
176
- idempotency_key?: string;
177
- }
178
- export declare namespace DocumentListParams {
179
- interface Category {
180
- /**
181
- * Filter Documents for those with the specified category or categories. For GET
182
- * requests, this should be encoded as a comma-delimited string, such as
183
- * `?in=one,two,three`.
184
- */
185
- in?: Array<'form_1099_int' | 'form_1099_misc' | 'proof_of_authorization' | 'company_information' | 'account_verification_letter' | 'funding_instructions'>;
186
- }
187
- interface CreatedAt {
188
- /**
189
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
190
- * timestamp.
191
- */
192
- after?: string;
193
- /**
194
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
195
- * timestamp.
196
- */
197
- before?: string;
198
- /**
199
- * Return results on or after this
200
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
201
- */
202
- on_or_after?: string;
203
- /**
204
- * Return results on or before this
205
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
206
- */
207
- on_or_before?: string;
208
- }
209
- }
210
- export declare namespace Documents {
211
- export { type Document as Document, type DocumentsPage as DocumentsPage, type DocumentCreateParams as DocumentCreateParams, type DocumentListParams as DocumentListParams, };
212
- }
213
- //# sourceMappingURL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ACrB,6BAA6B,GAC7B,sBAAsB,CACzB,CAAC;KACH;IAED,UAAiB,SAAS;QACxB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Documents = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const pagination_1 = require("../core/pagination.js");
7
- const path_1 = require("../internal/utils/path.js");
8
- class Documents extends resource_1.APIResource {
9
- /**
10
- * Create a Document
11
- *
12
- * @example
13
- * ```ts
14
- * const document = await client.documents.create({
15
- * category: 'account_verification_letter',
16
- * });
17
- * ```
18
- */
19
- create(body, options) {
20
- return this._client.post('/documents', { body, ...options });
21
- }
22
- /**
23
- * Retrieve a Document
24
- *
25
- * @example
26
- * ```ts
27
- * const document = await client.documents.retrieve(
28
- * 'document_qjtqc6s4c14ve2q89izm',
29
- * );
30
- * ```
31
- */
32
- retrieve(documentID, options) {
33
- return this._client.get((0, path_1.path) `/documents/${documentID}`, options);
34
- }
35
- /**
36
- * List Documents
37
- *
38
- * @example
39
- * ```ts
40
- * // Automatically fetches more pages as needed.
41
- * for await (const document of client.documents.list()) {
42
- * // ...
43
- * }
44
- * ```
45
- */
46
- list(query = {}, options) {
47
- return this._client.getAPIList('/documents', (pagination_1.Page), { query, ...options });
48
- }
49
- }
50
- exports.Documents = Documents;
51
- //# sourceMappingURL=documents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.js","sourceRoot":"","sources":["../src/resources/documents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;AAExE,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,iBAAc,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF;AA9CD,8BA8CC"}
@@ -1,47 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- import { Page } from "../core/pagination.mjs";
4
- import { path } from "../internal/utils/path.mjs";
5
- export class Documents extends APIResource {
6
- /**
7
- * Create a Document
8
- *
9
- * @example
10
- * ```ts
11
- * const document = await client.documents.create({
12
- * category: 'account_verification_letter',
13
- * });
14
- * ```
15
- */
16
- create(body, options) {
17
- return this._client.post('/documents', { body, ...options });
18
- }
19
- /**
20
- * Retrieve a Document
21
- *
22
- * @example
23
- * ```ts
24
- * const document = await client.documents.retrieve(
25
- * 'document_qjtqc6s4c14ve2q89izm',
26
- * );
27
- * ```
28
- */
29
- retrieve(documentID, options) {
30
- return this._client.get(path `/documents/${documentID}`, options);
31
- }
32
- /**
33
- * List Documents
34
- *
35
- * @example
36
- * ```ts
37
- * // Automatically fetches more pages as needed.
38
- * for await (const document of client.documents.list()) {
39
- * // ...
40
- * }
41
- * ```
42
- */
43
- list(query = {}, options) {
44
- return this._client.getAPIList('/documents', (Page), { query, ...options });
45
- }
46
- }
47
- //# sourceMappingURL=documents.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.mjs","sourceRoot":"","sources":["../src/resources/documents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,IAAI,EAAgC;OAEtC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,IAAc,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF"}
@@ -1,27 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as DocumentsAPI from "../documents.mjs";
3
- import { APIPromise } from "../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../internal/request-options.mjs";
5
- export declare class Documents extends APIResource {
6
- /**
7
- * Simulates an tax document being created for an account.
8
- *
9
- * @example
10
- * ```ts
11
- * const document = await client.simulations.documents.create({
12
- * account_id: 'account_in71c4amph0vgo2qllky',
13
- * });
14
- * ```
15
- */
16
- create(body: DocumentCreateParams, options?: RequestOptions): APIPromise<DocumentsAPI.Document>;
17
- }
18
- export interface DocumentCreateParams {
19
- /**
20
- * The identifier of the Account the tax document is for.
21
- */
22
- account_id: string;
23
- }
24
- export declare namespace Documents {
25
- export { type DocumentCreateParams as DocumentCreateParams };
26
- }
27
- //# sourceMappingURL=documents.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/documents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC;CAGhG;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
@@ -1,27 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as DocumentsAPI from "../documents.js";
3
- import { APIPromise } from "../../core/api-promise.js";
4
- import { RequestOptions } from "../../internal/request-options.js";
5
- export declare class Documents extends APIResource {
6
- /**
7
- * Simulates an tax document being created for an account.
8
- *
9
- * @example
10
- * ```ts
11
- * const document = await client.simulations.documents.create({
12
- * account_id: 'account_in71c4amph0vgo2qllky',
13
- * });
14
- * ```
15
- */
16
- create(body: DocumentCreateParams, options?: RequestOptions): APIPromise<DocumentsAPI.Document>;
17
- }
18
- export interface DocumentCreateParams {
19
- /**
20
- * The identifier of the Account the tax document is for.
21
- */
22
- account_id: string;
23
- }
24
- export declare namespace Documents {
25
- export { type DocumentCreateParams as DocumentCreateParams };
26
- }
27
- //# sourceMappingURL=documents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/documents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC;CAGhG;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.js","sourceRoot":"","sources":["../../src/resources/simulations/documents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAdD,8BAcC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.mjs","sourceRoot":"","sources":["../../src/resources/simulations/documents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}