increase 0.538.0 → 0.540.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 (99) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/bin/cli +5 -12
  3. package/client.d.mts +6 -12
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -12
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -12
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -12
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/check-deposits.d.mts +4 -3
  13. package/resources/check-deposits.d.mts.map +1 -1
  14. package/resources/check-deposits.d.ts +4 -3
  15. package/resources/check-deposits.d.ts.map +1 -1
  16. package/resources/inbound-mail-items.d.mts +19 -7
  17. package/resources/inbound-mail-items.d.mts.map +1 -1
  18. package/resources/inbound-mail-items.d.ts +19 -7
  19. package/resources/inbound-mail-items.d.ts.map +1 -1
  20. package/resources/index.d.mts +2 -4
  21. package/resources/index.d.mts.map +1 -1
  22. package/resources/index.d.ts +2 -4
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +6 -10
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +2 -4
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/lockbox-addresses.d.mts +184 -0
  29. package/resources/lockbox-addresses.d.mts.map +1 -0
  30. package/resources/lockbox-addresses.d.ts +184 -0
  31. package/resources/lockbox-addresses.d.ts.map +1 -0
  32. package/resources/lockbox-addresses.js +64 -0
  33. package/resources/lockbox-addresses.js.map +1 -0
  34. package/resources/lockbox-addresses.mjs +60 -0
  35. package/resources/lockbox-addresses.mjs.map +1 -0
  36. package/resources/lockbox-recipients.d.mts +202 -0
  37. package/resources/lockbox-recipients.d.mts.map +1 -0
  38. package/resources/lockbox-recipients.d.ts +202 -0
  39. package/resources/lockbox-recipients.d.ts.map +1 -0
  40. package/resources/lockbox-recipients.js +69 -0
  41. package/resources/lockbox-recipients.js.map +1 -0
  42. package/resources/lockbox-recipients.mjs +65 -0
  43. package/resources/lockbox-recipients.mjs.map +1 -0
  44. package/resources/simulations/inbound-mail-items.d.mts +9 -5
  45. package/resources/simulations/inbound-mail-items.d.mts.map +1 -1
  46. package/resources/simulations/inbound-mail-items.d.ts +9 -5
  47. package/resources/simulations/inbound-mail-items.d.ts.map +1 -1
  48. package/resources/simulations/inbound-mail-items.js +0 -1
  49. package/resources/simulations/inbound-mail-items.js.map +1 -1
  50. package/resources/simulations/inbound-mail-items.mjs +0 -1
  51. package/resources/simulations/inbound-mail-items.mjs.map +1 -1
  52. package/src/client.ts +34 -70
  53. package/src/resources/check-deposits.ts +4 -3
  54. package/src/resources/inbound-mail-items.ts +27 -7
  55. package/src/resources/index.ts +15 -30
  56. package/src/resources/lockbox-addresses.ts +235 -0
  57. package/src/resources/lockbox-recipients.ts +257 -0
  58. package/src/resources/simulations/inbound-mail-items.ts +12 -6
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
  64. package/resources/bookkeeping-accounts.d.mts +0 -164
  65. package/resources/bookkeeping-accounts.d.mts.map +0 -1
  66. package/resources/bookkeeping-accounts.d.ts +0 -164
  67. package/resources/bookkeeping-accounts.d.ts.map +0 -1
  68. package/resources/bookkeeping-accounts.js +0 -71
  69. package/resources/bookkeeping-accounts.js.map +0 -1
  70. package/resources/bookkeeping-accounts.mjs +0 -67
  71. package/resources/bookkeeping-accounts.mjs.map +0 -1
  72. package/resources/bookkeeping-entries.d.mts +0 -74
  73. package/resources/bookkeeping-entries.d.mts.map +0 -1
  74. package/resources/bookkeeping-entries.d.ts +0 -74
  75. package/resources/bookkeeping-entries.d.ts.map +0 -1
  76. package/resources/bookkeeping-entries.js +0 -39
  77. package/resources/bookkeeping-entries.js.map +0 -1
  78. package/resources/bookkeeping-entries.mjs +0 -35
  79. package/resources/bookkeeping-entries.mjs.map +0 -1
  80. package/resources/bookkeeping-entry-sets.d.mts +0 -156
  81. package/resources/bookkeeping-entry-sets.d.mts.map +0 -1
  82. package/resources/bookkeeping-entry-sets.d.ts +0 -156
  83. package/resources/bookkeeping-entry-sets.d.ts.map +0 -1
  84. package/resources/bookkeeping-entry-sets.js +0 -67
  85. package/resources/bookkeeping-entry-sets.js.map +0 -1
  86. package/resources/bookkeeping-entry-sets.mjs +0 -63
  87. package/resources/bookkeeping-entry-sets.mjs.map +0 -1
  88. package/resources/lockboxes.d.mts +0 -217
  89. package/resources/lockboxes.d.mts.map +0 -1
  90. package/resources/lockboxes.d.ts +0 -217
  91. package/resources/lockboxes.d.ts.map +0 -1
  92. package/resources/lockboxes.js +0 -64
  93. package/resources/lockboxes.js.map +0 -1
  94. package/resources/lockboxes.mjs +0 -60
  95. package/resources/lockboxes.mjs.map +0 -1
  96. package/src/resources/bookkeeping-accounts.ts +0 -220
  97. package/src/resources/bookkeeping-entries.ts +0 -98
  98. package/src/resources/bookkeeping-entry-sets.ts +0 -198
  99. package/src/resources/lockboxes.ts +0 -273
@@ -1,71 +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.BookkeepingAccounts = 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 BookkeepingAccounts extends resource_1.APIResource {
9
- /**
10
- * Create a Bookkeeping Account
11
- *
12
- * @example
13
- * ```ts
14
- * const bookkeepingAccount =
15
- * await client.bookkeepingAccounts.create({
16
- * name: 'New Account!',
17
- * });
18
- * ```
19
- */
20
- create(body, options) {
21
- return this._client.post('/bookkeeping_accounts', { body, ...options });
22
- }
23
- /**
24
- * Update a Bookkeeping Account
25
- *
26
- * @example
27
- * ```ts
28
- * const bookkeepingAccount =
29
- * await client.bookkeepingAccounts.update(
30
- * 'bookkeeping_account_e37p1f1iuocw5intf35v',
31
- * { name: 'Deprecated Account' },
32
- * );
33
- * ```
34
- */
35
- update(bookkeepingAccountID, body, options) {
36
- return this._client.patch((0, path_1.path) `/bookkeeping_accounts/${bookkeepingAccountID}`, { body, ...options });
37
- }
38
- /**
39
- * List Bookkeeping Accounts
40
- *
41
- * @example
42
- * ```ts
43
- * // Automatically fetches more pages as needed.
44
- * for await (const bookkeepingAccount of client.bookkeepingAccounts.list()) {
45
- * // ...
46
- * }
47
- * ```
48
- */
49
- list(query = {}, options) {
50
- return this._client.getAPIList('/bookkeeping_accounts', (pagination_1.Page), { query, ...options });
51
- }
52
- /**
53
- * Retrieve a Bookkeeping Account Balance
54
- *
55
- * @example
56
- * ```ts
57
- * const bookkeepingBalanceLookup =
58
- * await client.bookkeepingAccounts.balance(
59
- * 'bookkeeping_account_e37p1f1iuocw5intf35v',
60
- * );
61
- * ```
62
- */
63
- balance(bookkeepingAccountID, query = {}, options) {
64
- return this._client.get((0, path_1.path) `/bookkeeping_accounts/${bookkeepingAccountID}/balance`, {
65
- query,
66
- ...options,
67
- });
68
- }
69
- }
70
- exports.BookkeepingAccounts = BookkeepingAccounts;
71
- //# sourceMappingURL=bookkeeping-accounts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookkeeping-accounts.js","sourceRoot":"","sources":["../src/resources/bookkeeping-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;AAExE,oDAA8C;AAE9C,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAoC,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,oBAA4B,EAC5B,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,yBAAyB,oBAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAA,iBAAwB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,oBAA4B,EAC5B,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,oBAAoB,UAAU,EAAE;YACnF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA3ED,kDA2EC"}
@@ -1,67 +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 BookkeepingAccounts extends APIResource {
6
- /**
7
- * Create a Bookkeeping Account
8
- *
9
- * @example
10
- * ```ts
11
- * const bookkeepingAccount =
12
- * await client.bookkeepingAccounts.create({
13
- * name: 'New Account!',
14
- * });
15
- * ```
16
- */
17
- create(body, options) {
18
- return this._client.post('/bookkeeping_accounts', { body, ...options });
19
- }
20
- /**
21
- * Update a Bookkeeping Account
22
- *
23
- * @example
24
- * ```ts
25
- * const bookkeepingAccount =
26
- * await client.bookkeepingAccounts.update(
27
- * 'bookkeeping_account_e37p1f1iuocw5intf35v',
28
- * { name: 'Deprecated Account' },
29
- * );
30
- * ```
31
- */
32
- update(bookkeepingAccountID, body, options) {
33
- return this._client.patch(path `/bookkeeping_accounts/${bookkeepingAccountID}`, { body, ...options });
34
- }
35
- /**
36
- * List Bookkeeping Accounts
37
- *
38
- * @example
39
- * ```ts
40
- * // Automatically fetches more pages as needed.
41
- * for await (const bookkeepingAccount of client.bookkeepingAccounts.list()) {
42
- * // ...
43
- * }
44
- * ```
45
- */
46
- list(query = {}, options) {
47
- return this._client.getAPIList('/bookkeeping_accounts', (Page), { query, ...options });
48
- }
49
- /**
50
- * Retrieve a Bookkeeping Account Balance
51
- *
52
- * @example
53
- * ```ts
54
- * const bookkeepingBalanceLookup =
55
- * await client.bookkeepingAccounts.balance(
56
- * 'bookkeeping_account_e37p1f1iuocw5intf35v',
57
- * );
58
- * ```
59
- */
60
- balance(bookkeepingAccountID, query = {}, options) {
61
- return this._client.get(path `/bookkeeping_accounts/${bookkeepingAccountID}/balance`, {
62
- query,
63
- ...options,
64
- });
65
- }
66
- }
67
- //# sourceMappingURL=bookkeeping-accounts.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookkeeping-accounts.mjs","sourceRoot":"","sources":["../src/resources/bookkeeping-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,IAAI,EAAgC;OAEtC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAoC,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,oBAA4B,EAC5B,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,yBAAyB,oBAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAA,IAAwB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,oBAA4B,EAC5B,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,oBAAoB,UAAU,EAAE;YACnF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,74 +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 BookkeepingEntries extends APIResource {
6
- /**
7
- * Retrieve a Bookkeeping Entry
8
- *
9
- * @example
10
- * ```ts
11
- * const bookkeepingEntry =
12
- * await client.bookkeepingEntries.retrieve(
13
- * 'bookkeeping_entry_ctjpajsj3ks2blx10375',
14
- * );
15
- * ```
16
- */
17
- retrieve(bookkeepingEntryID: string, options?: RequestOptions): APIPromise<BookkeepingEntry>;
18
- /**
19
- * List Bookkeeping Entries
20
- *
21
- * @example
22
- * ```ts
23
- * // Automatically fetches more pages as needed.
24
- * for await (const bookkeepingEntry of client.bookkeepingEntries.list()) {
25
- * // ...
26
- * }
27
- * ```
28
- */
29
- list(query?: BookkeepingEntryListParams | null | undefined, options?: RequestOptions): PagePromise<BookkeepingEntriesPage, BookkeepingEntry>;
30
- }
31
- export type BookkeepingEntriesPage = Page<BookkeepingEntry>;
32
- /**
33
- * Entries are T-account entries recording debits and credits. Your compliance
34
- * setup might require annotating money movements using this API. Learn more in our
35
- * [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
36
- */
37
- export interface BookkeepingEntry {
38
- /**
39
- * The entry identifier.
40
- */
41
- id: string;
42
- /**
43
- * The identifier for the Account the Entry belongs to.
44
- */
45
- account_id: string;
46
- /**
47
- * The Entry amount in the minor unit of its currency. For dollars, for example,
48
- * this is cents.
49
- */
50
- amount: number;
51
- /**
52
- * When the entry set was created.
53
- */
54
- created_at: string;
55
- /**
56
- * The identifier for the Entry Set the Entry belongs to.
57
- */
58
- entry_set_id: string;
59
- /**
60
- * A constant representing the object's type. For this resource it will always be
61
- * `bookkeeping_entry`.
62
- */
63
- type: 'bookkeeping_entry';
64
- }
65
- export interface BookkeepingEntryListParams extends PageParams {
66
- /**
67
- * The identifier for the Bookkeeping Account to filter by.
68
- */
69
- account_id?: string;
70
- }
71
- export declare namespace BookkeepingEntries {
72
- export { type BookkeepingEntry as BookkeepingEntry, type BookkeepingEntriesPage as BookkeepingEntriesPage, type BookkeepingEntryListParams as BookkeepingEntryListParams, };
73
- }
74
- //# sourceMappingURL=bookkeeping-entries.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookkeeping-entries.d.mts","sourceRoot":"","sources":["../src/resources/bookkeeping-entries.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,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5F;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;CAGzD;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,74 +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 BookkeepingEntries extends APIResource {
6
- /**
7
- * Retrieve a Bookkeeping Entry
8
- *
9
- * @example
10
- * ```ts
11
- * const bookkeepingEntry =
12
- * await client.bookkeepingEntries.retrieve(
13
- * 'bookkeeping_entry_ctjpajsj3ks2blx10375',
14
- * );
15
- * ```
16
- */
17
- retrieve(bookkeepingEntryID: string, options?: RequestOptions): APIPromise<BookkeepingEntry>;
18
- /**
19
- * List Bookkeeping Entries
20
- *
21
- * @example
22
- * ```ts
23
- * // Automatically fetches more pages as needed.
24
- * for await (const bookkeepingEntry of client.bookkeepingEntries.list()) {
25
- * // ...
26
- * }
27
- * ```
28
- */
29
- list(query?: BookkeepingEntryListParams | null | undefined, options?: RequestOptions): PagePromise<BookkeepingEntriesPage, BookkeepingEntry>;
30
- }
31
- export type BookkeepingEntriesPage = Page<BookkeepingEntry>;
32
- /**
33
- * Entries are T-account entries recording debits and credits. Your compliance
34
- * setup might require annotating money movements using this API. Learn more in our
35
- * [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
36
- */
37
- export interface BookkeepingEntry {
38
- /**
39
- * The entry identifier.
40
- */
41
- id: string;
42
- /**
43
- * The identifier for the Account the Entry belongs to.
44
- */
45
- account_id: string;
46
- /**
47
- * The Entry amount in the minor unit of its currency. For dollars, for example,
48
- * this is cents.
49
- */
50
- amount: number;
51
- /**
52
- * When the entry set was created.
53
- */
54
- created_at: string;
55
- /**
56
- * The identifier for the Entry Set the Entry belongs to.
57
- */
58
- entry_set_id: string;
59
- /**
60
- * A constant representing the object's type. For this resource it will always be
61
- * `bookkeeping_entry`.
62
- */
63
- type: 'bookkeeping_entry';
64
- }
65
- export interface BookkeepingEntryListParams extends PageParams {
66
- /**
67
- * The identifier for the Bookkeeping Account to filter by.
68
- */
69
- account_id?: string;
70
- }
71
- export declare namespace BookkeepingEntries {
72
- export { type BookkeepingEntry as BookkeepingEntry, type BookkeepingEntriesPage as BookkeepingEntriesPage, type BookkeepingEntryListParams as BookkeepingEntryListParams, };
73
- }
74
- //# sourceMappingURL=bookkeeping-entries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookkeeping-entries.d.ts","sourceRoot":"","sources":["../src/resources/bookkeeping-entries.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,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5F;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;CAGzD;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,39 +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.BookkeepingEntries = 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 BookkeepingEntries extends resource_1.APIResource {
9
- /**
10
- * Retrieve a Bookkeeping Entry
11
- *
12
- * @example
13
- * ```ts
14
- * const bookkeepingEntry =
15
- * await client.bookkeepingEntries.retrieve(
16
- * 'bookkeeping_entry_ctjpajsj3ks2blx10375',
17
- * );
18
- * ```
19
- */
20
- retrieve(bookkeepingEntryID, options) {
21
- return this._client.get((0, path_1.path) `/bookkeeping_entries/${bookkeepingEntryID}`, options);
22
- }
23
- /**
24
- * List Bookkeeping Entries
25
- *
26
- * @example
27
- * ```ts
28
- * // Automatically fetches more pages as needed.
29
- * for await (const bookkeepingEntry of client.bookkeepingEntries.list()) {
30
- * // ...
31
- * }
32
- * ```
33
- */
34
- list(query = {}, options) {
35
- return this._client.getAPIList('/bookkeeping_entries', (pagination_1.Page), { query, ...options });
36
- }
37
- }
38
- exports.BookkeepingEntries = BookkeepingEntries;
39
- //# sourceMappingURL=bookkeeping-entries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookkeeping-entries.js","sourceRoot":"","sources":["../src/resources/bookkeeping-entries.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAwE;AAExE,oDAA8C;AAE9C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,kBAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,iBAAsB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF;AAjCD,gDAiCC"}
@@ -1,35 +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 BookkeepingEntries extends APIResource {
6
- /**
7
- * Retrieve a Bookkeeping Entry
8
- *
9
- * @example
10
- * ```ts
11
- * const bookkeepingEntry =
12
- * await client.bookkeepingEntries.retrieve(
13
- * 'bookkeeping_entry_ctjpajsj3ks2blx10375',
14
- * );
15
- * ```
16
- */
17
- retrieve(bookkeepingEntryID, options) {
18
- return this._client.get(path `/bookkeeping_entries/${bookkeepingEntryID}`, options);
19
- }
20
- /**
21
- * List Bookkeeping Entries
22
- *
23
- * @example
24
- * ```ts
25
- * // Automatically fetches more pages as needed.
26
- * for await (const bookkeepingEntry of client.bookkeepingEntries.list()) {
27
- * // ...
28
- * }
29
- * ```
30
- */
31
- list(query = {}, options) {
32
- return this._client.getAPIList('/bookkeeping_entries', (Page), { query, ...options });
33
- }
34
- }
35
- //# sourceMappingURL=bookkeeping-entries.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookkeeping-entries.mjs","sourceRoot":"","sources":["../src/resources/bookkeeping-entries.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,IAAI,EAAgC;OAEtC,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,kBAA0B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,IAAsB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF"}
@@ -1,156 +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 BookkeepingEntrySets extends APIResource {
6
- /**
7
- * Create a Bookkeeping Entry Set
8
- *
9
- * @example
10
- * ```ts
11
- * const bookkeepingEntrySet =
12
- * await client.bookkeepingEntrySets.create({
13
- * entries: [
14
- * {
15
- * account_id:
16
- * 'bookkeeping_account_9husfpw68pzmve9dvvc7',
17
- * amount: 100,
18
- * },
19
- * {
20
- * account_id:
21
- * 'bookkeeping_account_t2obldz1rcu15zr54umg',
22
- * amount: -100,
23
- * },
24
- * ],
25
- * });
26
- * ```
27
- */
28
- create(body: BookkeepingEntrySetCreateParams, options?: RequestOptions): APIPromise<BookkeepingEntrySet>;
29
- /**
30
- * Retrieve a Bookkeeping Entry Set
31
- *
32
- * @example
33
- * ```ts
34
- * const bookkeepingEntrySet =
35
- * await client.bookkeepingEntrySets.retrieve(
36
- * 'bookkeeping_entry_set_n80c6wr2p8gtc6p4ingf',
37
- * );
38
- * ```
39
- */
40
- retrieve(bookkeepingEntrySetID: string, options?: RequestOptions): APIPromise<BookkeepingEntrySet>;
41
- /**
42
- * List Bookkeeping Entry Sets
43
- *
44
- * @example
45
- * ```ts
46
- * // Automatically fetches more pages as needed.
47
- * for await (const bookkeepingEntrySet of client.bookkeepingEntrySets.list()) {
48
- * // ...
49
- * }
50
- * ```
51
- */
52
- list(query?: BookkeepingEntrySetListParams | null | undefined, options?: RequestOptions): PagePromise<BookkeepingEntrySetsPage, BookkeepingEntrySet>;
53
- }
54
- export type BookkeepingEntrySetsPage = Page<BookkeepingEntrySet>;
55
- /**
56
- * Entry Sets are accounting entries that are transactionally applied. Your
57
- * compliance setup might require annotating money movements using this API. Learn
58
- * more in our
59
- * [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
60
- */
61
- export interface BookkeepingEntrySet {
62
- /**
63
- * The entry set identifier.
64
- */
65
- id: string;
66
- /**
67
- * When the entry set was created.
68
- */
69
- created_at: string;
70
- /**
71
- * The timestamp of the entry set.
72
- */
73
- date: string;
74
- /**
75
- * The entries.
76
- */
77
- entries: Array<BookkeepingEntrySet.Entry>;
78
- /**
79
- * The idempotency key you chose for this object. This value is unique across
80
- * Increase and is used to ensure that a request is only processed once. Learn more
81
- * about [idempotency](https://increase.com/documentation/idempotency-keys).
82
- */
83
- idempotency_key: string | null;
84
- /**
85
- * The transaction identifier, if any.
86
- */
87
- transaction_id: string | null;
88
- /**
89
- * A constant representing the object's type. For this resource it will always be
90
- * `bookkeeping_entry_set`.
91
- */
92
- type: 'bookkeeping_entry_set';
93
- }
94
- export declare namespace BookkeepingEntrySet {
95
- interface Entry {
96
- /**
97
- * The entry identifier.
98
- */
99
- id: string;
100
- /**
101
- * The bookkeeping account impacted by the entry.
102
- */
103
- account_id: string;
104
- /**
105
- * The amount of the entry in minor units.
106
- */
107
- amount: number;
108
- }
109
- }
110
- export interface BookkeepingEntrySetCreateParams {
111
- /**
112
- * The bookkeeping entries.
113
- */
114
- entries: Array<BookkeepingEntrySetCreateParams.Entry>;
115
- /**
116
- * The date of the transaction. Optional if `transaction_id` is provided, in which
117
- * case we use the `date` of that transaction. Required otherwise.
118
- */
119
- date?: string;
120
- /**
121
- * The identifier of the Transaction related to this entry set, if any.
122
- */
123
- transaction_id?: string;
124
- [k: string]: unknown;
125
- }
126
- export declare namespace BookkeepingEntrySetCreateParams {
127
- interface Entry {
128
- /**
129
- * The identifier for the Bookkeeping Account impacted by this entry.
130
- */
131
- account_id: string;
132
- /**
133
- * The entry amount in the minor unit of the account currency. For dollars, for
134
- * example, this is cents. Debit entries have positive amounts; credit entries have
135
- * negative amounts.
136
- */
137
- amount: number;
138
- }
139
- }
140
- export interface BookkeepingEntrySetListParams extends PageParams {
141
- /**
142
- * Filter records to the one with the specified `idempotency_key` you chose for
143
- * that object. This value is unique across Increase and is used to ensure that a
144
- * request is only processed once. Learn more about
145
- * [idempotency](https://increase.com/documentation/idempotency-keys).
146
- */
147
- idempotency_key?: string;
148
- /**
149
- * Filter to the Bookkeeping Entry Set that maps to this Transaction.
150
- */
151
- transaction_id?: string;
152
- }
153
- export declare namespace BookkeepingEntrySets {
154
- export { type BookkeepingEntrySet as BookkeepingEntrySet, type BookkeepingEntrySetsPage as BookkeepingEntrySetsPage, type BookkeepingEntrySetCreateParams as BookkeepingEntrySetCreateParams, type BookkeepingEntrySetListParams as BookkeepingEntrySetListParams, };
155
- }
156
- //# sourceMappingURL=bookkeeping-entry-sets.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bookkeeping-entry-sets.d.mts","sourceRoot":"","sources":["../src/resources/bookkeeping-entry-sets.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,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAI,EAAE,+BAA+B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAIlG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wBAAwB,EAAE,mBAAmB,CAAC;CAM9D;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAE1C;;;;OAIG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,+BAA+B,CAAC,KAAK,CAAC,CAAC;IAEtD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;;WAIG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}