increase 0.10.4 → 0.11.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 (58) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/index.d.mts +0 -7
  3. package/index.d.ts +0 -7
  4. package/index.d.ts.map +1 -1
  5. package/index.js +0 -3
  6. package/index.js.map +1 -1
  7. package/index.mjs +0 -3
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/account-numbers.d.ts +57 -0
  11. package/resources/account-numbers.d.ts.map +1 -1
  12. package/resources/account-numbers.js.map +1 -1
  13. package/resources/account-numbers.mjs.map +1 -1
  14. package/resources/card-profiles.d.ts +11 -2
  15. package/resources/card-profiles.d.ts.map +1 -1
  16. package/resources/card-profiles.js.map +1 -1
  17. package/resources/card-profiles.mjs.map +1 -1
  18. package/resources/declined-transactions.d.ts +9 -15
  19. package/resources/declined-transactions.d.ts.map +1 -1
  20. package/resources/declined-transactions.js.map +1 -1
  21. package/resources/declined-transactions.mjs.map +1 -1
  22. package/resources/index.d.ts +0 -8
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +0 -15
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +0 -1
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/simulations/ach-transfers.d.ts +9 -15
  29. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  30. package/resources/simulations/ach-transfers.js.map +1 -1
  31. package/resources/simulations/ach-transfers.mjs.map +1 -1
  32. package/resources/simulations/cards.d.ts +9 -15
  33. package/resources/simulations/cards.d.ts.map +1 -1
  34. package/resources/simulations/cards.js.map +1 -1
  35. package/resources/simulations/cards.mjs.map +1 -1
  36. package/resources/simulations/real-time-payments-transfers.d.ts +9 -15
  37. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  38. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  39. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  40. package/src/index.ts +0 -8
  41. package/src/resources/account-numbers.ts +63 -0
  42. package/src/resources/card-profiles.ts +11 -2
  43. package/src/resources/declined-transactions.ts +9 -15
  44. package/src/resources/index.ts +0 -8
  45. package/src/resources/simulations/ach-transfers.ts +9 -15
  46. package/src/resources/simulations/cards.ts +9 -15
  47. package/src/resources/simulations/real-time-payments-transfers.ts +9 -15
  48. package/src/version.ts +1 -1
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
  51. package/version.mjs +1 -1
  52. package/resources/limits.d.ts +0 -148
  53. package/resources/limits.d.ts.map +0 -1
  54. package/resources/limits.js +0 -38
  55. package/resources/limits.js.map +0 -1
  56. package/resources/limits.mjs +0 -33
  57. package/resources/limits.mjs.map +0 -1
  58. package/src/resources/limits.ts +0 -186
@@ -1 +1 @@
1
- {"version":3,"file":"real-time-payments-transfers.js","sourceRoot":"","sources":["../../src/resources/simulations/real-time-payments-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAIhD,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;OAIG;IACH,QAAQ,CACN,0BAAkC,EAClC,IAA4C,EAC5C,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,6CAA6C,0BAA0B,WAAW,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,aAAa,CACX,IAAiD,EACjD,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,mDAAmD,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AA3BD,8DA2BC;AA4zID,WAAiB,yBAAyB;AAI1C,CAAC,EAJgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAIzC"}
1
+ {"version":3,"file":"real-time-payments-transfers.js","sourceRoot":"","sources":["../../src/resources/simulations/real-time-payments-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAIhD,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;OAIG;IACH,QAAQ,CACN,0BAAkC,EAClC,IAA4C,EAC5C,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,6CAA6C,0BAA0B,WAAW,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,aAAa,CACX,IAAiD,EACjD,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,mDAAmD,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AA3BD,8DA2BC;AAszID,WAAiB,yBAAyB;AAI1C,CAAC,EAJgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAIzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"real-time-payments-transfers.mjs","sourceRoot":"","sources":["../../src/resources/simulations/real-time-payments-transfers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;AAI/C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;OAIG;IACH,QAAQ,CACN,0BAAkC,EAClC,IAA4C,EAC5C,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,6CAA6C,0BAA0B,WAAW,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,aAAa,CACX,IAAiD,EACjD,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,mDAAmD,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AA4zID,WAAiB,yBAAyB;AAI1C,CAAC,EAJgB,yBAAyB,KAAzB,yBAAyB,QAIzC"}
1
+ {"version":3,"file":"real-time-payments-transfers.mjs","sourceRoot":"","sources":["../../src/resources/simulations/real-time-payments-transfers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;AAI/C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;OAIG;IACH,QAAQ,CACN,0BAAkC,EAClC,IAA4C,EAC5C,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,6CAA6C,0BAA0B,WAAW,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,aAAa,CACX,IAAiD,EACjD,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,mDAAmD,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAszID,WAAiB,yBAAyB;AAI1C,CAAC,EAJgB,yBAAyB,KAAzB,yBAAyB,QAIzC"}
package/src/index.ts CHANGED
@@ -148,7 +148,6 @@ export class Increase extends Core.APIClient {
148
148
  pendingTransactions: API.PendingTransactions = new API.PendingTransactions(this);
149
149
  programs: API.Programs = new API.Programs(this);
150
150
  declinedTransactions: API.DeclinedTransactions = new API.DeclinedTransactions(this);
151
- limits: API.Limits = new API.Limits(this);
152
151
  accountTransfers: API.AccountTransfers = new API.AccountTransfers(this);
153
152
  achTransfers: API.ACHTransfers = new API.ACHTransfers(this);
154
153
  achPrenotifications: API.ACHPrenotifications = new API.ACHPrenotifications(this);
@@ -365,13 +364,6 @@ export namespace Increase {
365
364
  export import DeclinedTransactionsPage = API.DeclinedTransactionsPage;
366
365
  export import DeclinedTransactionListParams = API.DeclinedTransactionListParams;
367
366
 
368
- export import Limits = API.Limits;
369
- export import Limit = API.Limit;
370
- export import LimitsPage = API.LimitsPage;
371
- export import LimitCreateParams = API.LimitCreateParams;
372
- export import LimitUpdateParams = API.LimitUpdateParams;
373
- export import LimitListParams = API.LimitListParams;
374
-
375
367
  export import AccountTransfers = API.AccountTransfers;
376
368
  export import AccountTransfer = API.AccountTransfer;
377
369
  export import AccountTransfersPage = API.AccountTransfersPage;
@@ -84,6 +84,11 @@ export interface AccountNumber {
84
84
  */
85
85
  created_at: string;
86
86
 
87
+ /**
88
+ * Properties related to how this Account Number handles inbound ACH transfers.
89
+ */
90
+ inbound_ach: AccountNumber.InboundACH;
91
+
87
92
  /**
88
93
  * The name you choose for the Account Number.
89
94
  */
@@ -110,6 +115,22 @@ export interface AccountNumber {
110
115
  type: 'account_number';
111
116
  }
112
117
 
118
+ export namespace AccountNumber {
119
+ /**
120
+ * Properties related to how this Account Number handles inbound ACH transfers.
121
+ */
122
+ export interface InboundACH {
123
+ /**
124
+ * Whether ACH debits are allowed against this Account Number. Note that they will
125
+ * still be declined if this is `allowed` if the Account Number is not active.
126
+ *
127
+ * - `allowed` - ACH Debits are allowed.
128
+ * - `blocked` - ACH Debits are blocked.
129
+ */
130
+ debit_status: 'allowed' | 'blocked';
131
+ }
132
+ }
133
+
113
134
  export interface AccountNumberCreateParams {
114
135
  /**
115
136
  * The Account the Account Number should belong to.
@@ -120,9 +141,35 @@ export interface AccountNumberCreateParams {
120
141
  * The name you choose for the Account Number.
121
142
  */
122
143
  name: string;
144
+
145
+ /**
146
+ * Options related to how this Account Number should handle inbound ACH transfers.
147
+ */
148
+ inbound_ach?: AccountNumberCreateParams.InboundACH;
149
+ }
150
+
151
+ export namespace AccountNumberCreateParams {
152
+ /**
153
+ * Options related to how this Account Number should handle inbound ACH transfers.
154
+ */
155
+ export interface InboundACH {
156
+ /**
157
+ * Whether ACH debits are allowed against this Account Number. Note that ACH debits
158
+ * will be declined if this is `allowed` but the Account Number is not active.
159
+ *
160
+ * - `allowed` - ACH Debits are allowed.
161
+ * - `blocked` - ACH Debits are blocked.
162
+ */
163
+ debit_status: 'allowed' | 'blocked';
164
+ }
123
165
  }
124
166
 
125
167
  export interface AccountNumberUpdateParams {
168
+ /**
169
+ * Options related to how this Account Number handles inbound ACH transfers.
170
+ */
171
+ inbound_ach?: AccountNumberUpdateParams.InboundACH;
172
+
126
173
  /**
127
174
  * The name you choose for the Account Number.
128
175
  */
@@ -138,6 +185,22 @@ export interface AccountNumberUpdateParams {
138
185
  status?: 'active' | 'disabled' | 'canceled';
139
186
  }
140
187
 
188
+ export namespace AccountNumberUpdateParams {
189
+ /**
190
+ * Options related to how this Account Number handles inbound ACH transfers.
191
+ */
192
+ export interface InboundACH {
193
+ /**
194
+ * Whether ACH debits are allowed against this Account Number. Note that ACH debits
195
+ * will be declined if this is `allowed` but the Account Number is not active.
196
+ *
197
+ * - `allowed` - ACH Debits are allowed.
198
+ * - `blocked` - ACH Debits are blocked.
199
+ */
200
+ debit_status?: 'allowed' | 'blocked';
201
+ }
202
+ }
203
+
141
204
  export interface AccountNumberListParams extends PageParams {
142
205
  /**
143
206
  * Filter Account Numbers to those belonging to the specified Account.
@@ -206,13 +206,20 @@ export namespace CardProfile {
206
206
  * - `not_eligible` - The Card Profile is not eligible for physical cards.
207
207
  * - `rejected` - There is an issue with the Physical Card Profile preventing it
208
208
  * from use.
209
+ * - `pending_creating` - The Card Profile has not yet been processed by Increase.
209
210
  * - `pending_reviewing` - The card profile is awaiting review by Increase.
210
211
  * - `pending_submitting` - The card profile is awaiting submission to the
211
212
  * fulfillment provider.
212
213
  * - `active` - The Physical Card Profile has been submitted to the fulfillment
213
214
  * provider and is ready to use.
214
215
  */
215
- status: 'not_eligible' | 'rejected' | 'pending_reviewing' | 'pending_submitting' | 'active';
216
+ status:
217
+ | 'not_eligible'
218
+ | 'rejected'
219
+ | 'pending_creating'
220
+ | 'pending_reviewing'
221
+ | 'pending_submitting'
222
+ | 'active';
216
223
  }
217
224
  }
218
225
 
@@ -337,7 +344,9 @@ export namespace CardProfileListParams {
337
344
  * statuses. For GET requests, this should be encoded as a comma-delimited string,
338
345
  * such as `?in=one,two,three`.
339
346
  */
340
- in?: Array<'not_eligible' | 'rejected' | 'pending_reviewing' | 'pending_submitting' | 'active'>;
347
+ in?: Array<
348
+ 'not_eligible' | 'rejected' | 'pending_creating' | 'pending_reviewing' | 'pending_submitting' | 'active'
349
+ >;
341
350
  }
342
351
 
343
352
  export interface Status {
@@ -536,38 +536,32 @@ export namespace DeclinedTransaction {
536
536
  /**
537
537
  * Why the check was declined.
538
538
  *
539
- * - `ach_route_canceled` - The account number is canceled.
540
539
  * - `ach_route_disabled` - The account number is disabled.
540
+ * - `ach_route_canceled` - The account number is canceled.
541
541
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
542
542
  * - `entity_not_active` - The account's entity is not active.
543
543
  * - `group_locked` - Your account is inactive.
544
544
  * - `insufficient_funds` - Your account contains insufficient funds.
545
- * - `unable_to_locate_account` - Unable to locate account.
546
- * - `not_our_item` - Routing number on the check is not ours.
547
- * - `unable_to_process` - Unable to process.
548
- * - `refer_to_image` - Refer to image.
549
545
  * - `stop_payment_requested` - Stop payment requested for this check.
550
- * - `returned` - Check was returned to sender.
551
546
  * - `duplicate_presentment` - The check was a duplicate deposit.
552
- * - `not_authorized` - The transaction is not allowed.
553
- * - `altered_or_fictitious` - The check was altered or fictitious.
547
+ * - `not_authorized` - The check was not authorized.
548
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
549
+ * does not match the amount on the check.
550
+ * - `not_our_item` - The check attempting to be deposited does not belong to
551
+ * Increase.
554
552
  */
555
553
  reason:
556
- | 'ach_route_canceled'
557
554
  | 'ach_route_disabled'
555
+ | 'ach_route_canceled'
558
556
  | 'breaches_limit'
559
557
  | 'entity_not_active'
560
558
  | 'group_locked'
561
559
  | 'insufficient_funds'
562
- | 'unable_to_locate_account'
563
- | 'not_our_item'
564
- | 'unable_to_process'
565
- | 'refer_to_image'
566
560
  | 'stop_payment_requested'
567
- | 'returned'
568
561
  | 'duplicate_presentment'
569
562
  | 'not_authorized'
570
- | 'altered_or_fictitious';
563
+ | 'amount_mismatch'
564
+ | 'not_our_item';
571
565
  }
572
566
 
573
567
  /**
@@ -161,14 +161,6 @@ export {
161
161
  InboundWireDrawdownRequestsPage,
162
162
  InboundWireDrawdownRequests,
163
163
  } from './inbound-wire-drawdown-requests.js';
164
- export {
165
- Limit,
166
- LimitCreateParams,
167
- LimitUpdateParams,
168
- LimitListParams,
169
- LimitsPage,
170
- Limits,
171
- } from './limits.js';
172
164
  export {
173
165
  OauthConnection,
174
166
  OauthConnectionListParams,
@@ -569,38 +569,32 @@ export namespace ACHTransferSimulation {
569
569
  /**
570
570
  * Why the check was declined.
571
571
  *
572
- * - `ach_route_canceled` - The account number is canceled.
573
572
  * - `ach_route_disabled` - The account number is disabled.
573
+ * - `ach_route_canceled` - The account number is canceled.
574
574
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
575
575
  * - `entity_not_active` - The account's entity is not active.
576
576
  * - `group_locked` - Your account is inactive.
577
577
  * - `insufficient_funds` - Your account contains insufficient funds.
578
- * - `unable_to_locate_account` - Unable to locate account.
579
- * - `not_our_item` - Routing number on the check is not ours.
580
- * - `unable_to_process` - Unable to process.
581
- * - `refer_to_image` - Refer to image.
582
578
  * - `stop_payment_requested` - Stop payment requested for this check.
583
- * - `returned` - Check was returned to sender.
584
579
  * - `duplicate_presentment` - The check was a duplicate deposit.
585
- * - `not_authorized` - The transaction is not allowed.
586
- * - `altered_or_fictitious` - The check was altered or fictitious.
580
+ * - `not_authorized` - The check was not authorized.
581
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
582
+ * does not match the amount on the check.
583
+ * - `not_our_item` - The check attempting to be deposited does not belong to
584
+ * Increase.
587
585
  */
588
586
  reason:
589
- | 'ach_route_canceled'
590
587
  | 'ach_route_disabled'
588
+ | 'ach_route_canceled'
591
589
  | 'breaches_limit'
592
590
  | 'entity_not_active'
593
591
  | 'group_locked'
594
592
  | 'insufficient_funds'
595
- | 'unable_to_locate_account'
596
- | 'not_our_item'
597
- | 'unable_to_process'
598
- | 'refer_to_image'
599
593
  | 'stop_payment_requested'
600
- | 'returned'
601
594
  | 'duplicate_presentment'
602
595
  | 'not_authorized'
603
- | 'altered_or_fictitious';
596
+ | 'amount_mismatch'
597
+ | 'not_our_item';
604
598
  }
605
599
 
606
600
  /**
@@ -559,38 +559,32 @@ export namespace CardAuthorizationSimulation {
559
559
  /**
560
560
  * Why the check was declined.
561
561
  *
562
- * - `ach_route_canceled` - The account number is canceled.
563
562
  * - `ach_route_disabled` - The account number is disabled.
563
+ * - `ach_route_canceled` - The account number is canceled.
564
564
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
565
565
  * - `entity_not_active` - The account's entity is not active.
566
566
  * - `group_locked` - Your account is inactive.
567
567
  * - `insufficient_funds` - Your account contains insufficient funds.
568
- * - `unable_to_locate_account` - Unable to locate account.
569
- * - `not_our_item` - Routing number on the check is not ours.
570
- * - `unable_to_process` - Unable to process.
571
- * - `refer_to_image` - Refer to image.
572
568
  * - `stop_payment_requested` - Stop payment requested for this check.
573
- * - `returned` - Check was returned to sender.
574
569
  * - `duplicate_presentment` - The check was a duplicate deposit.
575
- * - `not_authorized` - The transaction is not allowed.
576
- * - `altered_or_fictitious` - The check was altered or fictitious.
570
+ * - `not_authorized` - The check was not authorized.
571
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
572
+ * does not match the amount on the check.
573
+ * - `not_our_item` - The check attempting to be deposited does not belong to
574
+ * Increase.
577
575
  */
578
576
  reason:
579
- | 'ach_route_canceled'
580
577
  | 'ach_route_disabled'
578
+ | 'ach_route_canceled'
581
579
  | 'breaches_limit'
582
580
  | 'entity_not_active'
583
581
  | 'group_locked'
584
582
  | 'insufficient_funds'
585
- | 'unable_to_locate_account'
586
- | 'not_our_item'
587
- | 'unable_to_process'
588
- | 'refer_to_image'
589
583
  | 'stop_payment_requested'
590
- | 'returned'
591
584
  | 'duplicate_presentment'
592
585
  | 'not_authorized'
593
- | 'altered_or_fictitious';
586
+ | 'amount_mismatch'
587
+ | 'not_our_item';
594
588
  }
595
589
 
596
590
  /**
@@ -558,38 +558,32 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
558
558
  /**
559
559
  * Why the check was declined.
560
560
  *
561
- * - `ach_route_canceled` - The account number is canceled.
562
561
  * - `ach_route_disabled` - The account number is disabled.
562
+ * - `ach_route_canceled` - The account number is canceled.
563
563
  * - `breaches_limit` - The transaction would cause a limit to be exceeded.
564
564
  * - `entity_not_active` - The account's entity is not active.
565
565
  * - `group_locked` - Your account is inactive.
566
566
  * - `insufficient_funds` - Your account contains insufficient funds.
567
- * - `unable_to_locate_account` - Unable to locate account.
568
- * - `not_our_item` - Routing number on the check is not ours.
569
- * - `unable_to_process` - Unable to process.
570
- * - `refer_to_image` - Refer to image.
571
567
  * - `stop_payment_requested` - Stop payment requested for this check.
572
- * - `returned` - Check was returned to sender.
573
568
  * - `duplicate_presentment` - The check was a duplicate deposit.
574
- * - `not_authorized` - The transaction is not allowed.
575
- * - `altered_or_fictitious` - The check was altered or fictitious.
569
+ * - `not_authorized` - The check was not authorized.
570
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
571
+ * does not match the amount on the check.
572
+ * - `not_our_item` - The check attempting to be deposited does not belong to
573
+ * Increase.
576
574
  */
577
575
  reason:
578
- | 'ach_route_canceled'
579
576
  | 'ach_route_disabled'
577
+ | 'ach_route_canceled'
580
578
  | 'breaches_limit'
581
579
  | 'entity_not_active'
582
580
  | 'group_locked'
583
581
  | 'insufficient_funds'
584
- | 'unable_to_locate_account'
585
- | 'not_our_item'
586
- | 'unable_to_process'
587
- | 'refer_to_image'
588
582
  | 'stop_payment_requested'
589
- | 'returned'
590
583
  | 'duplicate_presentment'
591
584
  | 'not_authorized'
592
- | 'altered_or_fictitious';
585
+ | 'amount_mismatch'
586
+ | 'not_our_item';
593
587
  }
594
588
 
595
589
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.10.4'; // x-release-please-version
1
+ export const VERSION = '0.11.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = '0.10.4';
1
+ export declare const VERSION = '0.11.0';
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
  Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.10.4'; // x-release-please-version
4
+ exports.VERSION = '0.11.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.10.4'; // x-release-please-version
1
+ export const VERSION = '0.11.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,148 +0,0 @@
1
- import * as Core from 'increase/core';
2
- import { APIResource } from 'increase/resource';
3
- import * as API from './index.js';
4
- import { Page, PageParams } from 'increase/pagination';
5
- export declare class Limits extends APIResource {
6
- /**
7
- * Create a Limit
8
- */
9
- create(body: LimitCreateParams, options?: Core.RequestOptions): Core.APIPromise<Limit>;
10
- /**
11
- * Retrieve a Limit
12
- */
13
- retrieve(limitId: string, options?: Core.RequestOptions): Core.APIPromise<Limit>;
14
- /**
15
- * Update a Limit
16
- */
17
- update(limitId: string, body: LimitUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Limit>;
18
- /**
19
- * List Limits
20
- */
21
- list(query?: LimitListParams, options?: Core.RequestOptions): Core.PagePromise<LimitsPage, Limit>;
22
- list(options?: Core.RequestOptions): Core.PagePromise<LimitsPage, Limit>;
23
- }
24
- export declare class LimitsPage extends Page<Limit> {}
25
- type _LimitsPage = LimitsPage;
26
- /**
27
- * You can set limits at the Account, Account Number, or Card level. Limits applied
28
- * to Accounts will apply to all Account Numbers and Cards in the Account. You can
29
- * specify any number of Limits and they will all be applied to inbound debits and
30
- * card authorizations. Volume and count Limits are designed to prevent
31
- * unauthorized debits.
32
- */
33
- export interface Limit {
34
- /**
35
- * The Limit identifier.
36
- */
37
- id: string;
38
- /**
39
- * The interval for the metric. This is required if `metric` is `count` or
40
- * `volume`.
41
- *
42
- * - `transaction` - Enforce the Limit per-transaction.
43
- * - `day` - Enforce the Limit based on the trailing 24 hour period.
44
- * - `week` - Enforce the Limit based on the trailing seven days.
45
- * - `month` - Enforce the Limit based on the trailing month, going back to the
46
- * current day in the previous month, or as close as possible given month length
47
- * differences.
48
- * - `year` - Enforce the Limit based on the trailing 365 days.
49
- * - `all_time` - Enforce the Limit for all time.
50
- */
51
- interval: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time' | null;
52
- /**
53
- * The metric for the Limit.
54
- *
55
- * - `count` - The maximum number of debits allowed.
56
- * - `volume` - The maximum volume of debits allowed in the minor unit of the
57
- * model's currency.
58
- */
59
- metric: 'count' | 'volume';
60
- /**
61
- * The identifier of the Account Number, Account, or Card the Limit applies to.
62
- */
63
- model_id: string;
64
- /**
65
- * The type of the model you wish to associate the Limit with.
66
- *
67
- * - `account` - Enforce the Limit for the entire account.
68
- * - `account_number` - Enforce the Limit for this specific route.
69
- * - `card` - Enforce the Limit for this specific card.
70
- */
71
- model_type: 'account' | 'account_number' | 'card';
72
- /**
73
- * The current status of the Limit.
74
- *
75
- * - `active` - The Limit is active.
76
- * - `inactive` - The Limit is temporarily disabled.
77
- */
78
- status: 'active' | 'inactive';
79
- /**
80
- * A constant representing the object's type. For this resource it will always be
81
- * `limit`.
82
- */
83
- type: 'limit';
84
- /**
85
- * The value to evaluate the Limit against.
86
- */
87
- value: number;
88
- }
89
- export interface LimitCreateParams {
90
- /**
91
- * The metric for the limit.
92
- *
93
- * - `count` - The maximum number of debits allowed.
94
- * - `volume` - The maximum volume of debits allowed in the minor unit of the
95
- * model's currency.
96
- */
97
- metric: 'count' | 'volume';
98
- /**
99
- * The identifier of the Account, Account Number, or Card you wish to associate the
100
- * limit with.
101
- */
102
- model_id: string;
103
- /**
104
- * The value to test the limit against.
105
- */
106
- value: number;
107
- /**
108
- * The interval for the metric. Required if `metric` is `count` or `volume`.
109
- *
110
- * - `transaction` - Enforce the limit per-transaction.
111
- * - `day` - Enforce the limit based on the previous 24 hour period.
112
- * - `week` - Enforce the limit based on the previous seven days.
113
- * - `month` - Enforce the limit based on the previous month, going back to the
114
- * current day in the previous month, or as close as possible given month length
115
- * differences.
116
- * - `year` - Enforce the limit based on the previous year.
117
- * - `all_time` - Enforce the limit for all time.
118
- */
119
- interval?: 'transaction' | 'day' | 'week' | 'month' | 'year' | 'all_time';
120
- }
121
- export interface LimitUpdateParams {
122
- /**
123
- * The status to update the limit with.
124
- *
125
- * - `inactive` - Disable the limit temporarily.
126
- * - `active` - Activate the limit.
127
- */
128
- status: 'inactive' | 'active';
129
- }
130
- export interface LimitListParams extends PageParams {
131
- /**
132
- * The model to retrieve limits for.
133
- */
134
- model_id?: string;
135
- /**
136
- * The status to retrieve limits for.
137
- */
138
- status?: string;
139
- }
140
- export declare namespace Limits {
141
- export import Limit = API.Limit;
142
- type LimitsPage = _LimitsPage;
143
- export import LimitCreateParams = API.LimitCreateParams;
144
- export import LimitUpdateParams = API.LimitUpdateParams;
145
- export import LimitListParams = API.LimitListParams;
146
- }
147
- export {};
148
- //# sourceMappingURL=limits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/resources/limits.ts"],"names":[],"mappings":"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"}
@@ -1,38 +0,0 @@
1
- 'use strict';
2
- // File generated from our OpenAPI spec by Stainless.
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
- exports.LimitsPage = exports.Limits = void 0;
5
- const resource_1 = require('increase/resource');
6
- const core_1 = require('increase/core');
7
- const pagination_1 = require('increase/pagination');
8
- class Limits extends resource_1.APIResource {
9
- /**
10
- * Create a Limit
11
- */
12
- create(body, options) {
13
- return this.post('/limits', { body, ...options });
14
- }
15
- /**
16
- * Retrieve a Limit
17
- */
18
- retrieve(limitId, options) {
19
- return this.get(`/limits/${limitId}`, options);
20
- }
21
- /**
22
- * Update a Limit
23
- */
24
- update(limitId, body, options) {
25
- return this.patch(`/limits/${limitId}`, { body, ...options });
26
- }
27
- list(query = {}, options) {
28
- if ((0, core_1.isRequestOptions)(query)) {
29
- return this.list({}, query);
30
- }
31
- return this.getAPIList('/limits', LimitsPage, { query, ...options });
32
- }
33
- }
34
- exports.Limits = Limits;
35
- class LimitsPage extends pagination_1.Page {}
36
- exports.LimitsPage = LimitsPage;
37
- (function (Limits) {})((Limits = exports.Limits || (exports.Limits = {})));
38
- //# sourceMappingURL=limits.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"limits.js","sourceRoot":"","sources":["../src/resources/limits.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAChD,wCAAiD;AAEjD,oDAAuD;AAEvD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAA6B;QAC5E,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AApCD,wBAoCC;AAED,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C;AAqI9C,WAAiB,MAAM;AAMvB,CAAC,EANgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAMtB"}
@@ -1,33 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless.
2
- import { APIResource } from 'increase/resource';
3
- import { isRequestOptions } from 'increase/core';
4
- import { Page } from 'increase/pagination';
5
- export class Limits extends APIResource {
6
- /**
7
- * Create a Limit
8
- */
9
- create(body, options) {
10
- return this.post('/limits', { body, ...options });
11
- }
12
- /**
13
- * Retrieve a Limit
14
- */
15
- retrieve(limitId, options) {
16
- return this.get(`/limits/${limitId}`, options);
17
- }
18
- /**
19
- * Update a Limit
20
- */
21
- update(limitId, body, options) {
22
- return this.patch(`/limits/${limitId}`, { body, ...options });
23
- }
24
- list(query = {}, options) {
25
- if (isRequestOptions(query)) {
26
- return this.list({}, query);
27
- }
28
- return this.getAPIList('/limits', LimitsPage, { query, ...options });
29
- }
30
- }
31
- export class LimitsPage extends Page {}
32
- (function (Limits) {})(Limits || (Limits = {}));
33
- //# sourceMappingURL=limits.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"limits.mjs","sourceRoot":"","sources":["../src/resources/limits.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OAEzC,EAAE,IAAI,EAAc,MAAM,qBAAqB;AAEtD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAA6B;QAC5E,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAED,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG;AAqI9C,WAAiB,MAAM;AAMvB,CAAC,EANgB,MAAM,KAAN,MAAM,QAMtB"}