increase 0.108.0 → 0.110.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.
@@ -248,10 +248,26 @@ export namespace DeclinedTransaction {
248
248
  * exceeded.
249
249
  * - `entity_not_active` - The account's entity is not active.
250
250
  * - `group_locked` - Your account is inactive.
251
- * - `insufficient_funds` - Your account contains insufficient funds.
252
251
  * - `transaction_not_allowed` - The transaction is not allowed per Increase's
253
252
  * terms.
254
253
  * - `user_initiated` - Your integration declined this transfer via the API.
254
+ * - `insufficient_funds` - Your account contains insufficient funds.
255
+ * - `returned_per_odfi_request` - The originating financial institution asked for
256
+ * this transfer to be returned. The receiving bank is complying with the
257
+ * request.
258
+ * - `authorization_revoked_by_customer` - The customer no longer authorizes this
259
+ * transaction.
260
+ * - `payment_stopped` - The customer asked for the payment to be stopped.
261
+ * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
262
+ * customer advises that the debit was unauthorized.
263
+ * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
264
+ * payee is deceased.
265
+ * - `beneficiary_or_account_holder_deceased` - The account holder is deceased.
266
+ * - `credit_entry_refused_by_receiver` - The customer refused a credit entry.
267
+ * - `duplicate_entry` - The account holder identified this transaction as a
268
+ * duplicate.
269
+ * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
270
+ * authorizes this transaction.
255
271
  */
256
272
  reason:
257
273
  | 'ach_route_canceled'
@@ -259,9 +275,18 @@ export namespace DeclinedTransaction {
259
275
  | 'breaches_limit'
260
276
  | 'entity_not_active'
261
277
  | 'group_locked'
262
- | 'insufficient_funds'
263
278
  | 'transaction_not_allowed'
264
- | 'user_initiated';
279
+ | 'user_initiated'
280
+ | 'insufficient_funds'
281
+ | 'returned_per_odfi_request'
282
+ | 'authorization_revoked_by_customer'
283
+ | 'payment_stopped'
284
+ | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
285
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
286
+ | 'beneficiary_or_account_holder_deceased'
287
+ | 'credit_entry_refused_by_receiver'
288
+ | 'duplicate_entry'
289
+ | 'corporate_customer_advised_not_authorized';
265
290
 
266
291
  /**
267
292
  * The id of the receiver of the transfer.
@@ -49,8 +49,12 @@ export class InboundACHTransfers extends APIResource {
49
49
  /**
50
50
  * Decline an Inbound ACH Transfer
51
51
  */
52
- decline(inboundACHTransferId: string, options?: Core.RequestOptions): Core.APIPromise<InboundACHTransfer> {
53
- return this._client.post(`/inbound_ach_transfers/${inboundACHTransferId}/decline`, options);
52
+ decline(
53
+ inboundACHTransferId: string,
54
+ body: InboundACHTransferDeclineParams,
55
+ options?: Core.RequestOptions,
56
+ ): Core.APIPromise<InboundACHTransfer> {
57
+ return this._client.post(`/inbound_ach_transfers/${inboundACHTransferId}/decline`, { body, ...options });
54
58
  }
55
59
 
56
60
  /**
@@ -327,10 +331,26 @@ export namespace InboundACHTransfer {
327
331
  * exceeded.
328
332
  * - `entity_not_active` - The account's entity is not active.
329
333
  * - `group_locked` - Your account is inactive.
330
- * - `insufficient_funds` - Your account contains insufficient funds.
331
334
  * - `transaction_not_allowed` - The transaction is not allowed per Increase's
332
335
  * terms.
333
336
  * - `user_initiated` - Your integration declined this transfer via the API.
337
+ * - `insufficient_funds` - Your account contains insufficient funds.
338
+ * - `returned_per_odfi_request` - The originating financial institution asked for
339
+ * this transfer to be returned. The receiving bank is complying with the
340
+ * request.
341
+ * - `authorization_revoked_by_customer` - The customer no longer authorizes this
342
+ * transaction.
343
+ * - `payment_stopped` - The customer asked for the payment to be stopped.
344
+ * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
345
+ * customer advises that the debit was unauthorized.
346
+ * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
347
+ * payee is deceased.
348
+ * - `beneficiary_or_account_holder_deceased` - The account holder is deceased.
349
+ * - `credit_entry_refused_by_receiver` - The customer refused a credit entry.
350
+ * - `duplicate_entry` - The account holder identified this transaction as a
351
+ * duplicate.
352
+ * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
353
+ * authorizes this transaction.
334
354
  */
335
355
  reason:
336
356
  | 'ach_route_canceled'
@@ -338,9 +358,18 @@ export namespace InboundACHTransfer {
338
358
  | 'breaches_limit'
339
359
  | 'entity_not_active'
340
360
  | 'group_locked'
341
- | 'insufficient_funds'
342
361
  | 'transaction_not_allowed'
343
- | 'user_initiated';
362
+ | 'user_initiated'
363
+ | 'insufficient_funds'
364
+ | 'returned_per_odfi_request'
365
+ | 'authorization_revoked_by_customer'
366
+ | 'payment_stopped'
367
+ | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
368
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
369
+ | 'beneficiary_or_account_holder_deceased'
370
+ | 'credit_entry_refused_by_receiver'
371
+ | 'duplicate_entry'
372
+ | 'corporate_customer_advised_not_authorized';
344
373
  }
345
374
 
346
375
  /**
@@ -745,6 +774,48 @@ export interface InboundACHTransferCreateNotificationOfChangeParams {
745
774
  updated_routing_number?: string;
746
775
  }
747
776
 
777
+ export interface InboundACHTransferDeclineParams {
778
+ /**
779
+ * The reason why this transfer will be returned. If this parameter is unset, the
780
+ * return codes will be `payment_stopped` for debits and
781
+ * `credit_entry_refused_by_receiver` for credits.
782
+ *
783
+ * - `insufficient_funds` - The customer's account has insufficient funds. This
784
+ * reason is only allowed for debits. The Nacha return code is R01.
785
+ * - `returned_per_odfi_request` - The originating financial institution asked for
786
+ * this transfer to be returned. The receiving bank is complying with the
787
+ * request. The Nacha return code is R06.
788
+ * - `authorization_revoked_by_customer` - The customer no longer authorizes this
789
+ * transaction. The Nacha return code is R07.
790
+ * - `payment_stopped` - The customer asked for the payment to be stopped. This
791
+ * reason is only allowed for debits. The Nacha return code is R08.
792
+ * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
793
+ * customer advises that the debit was unauthorized. The Nacha return code is
794
+ * R10.
795
+ * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
796
+ * payee is deceased. The Nacha return code is R14.
797
+ * - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
798
+ * Nacha return code is R15.
799
+ * - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
800
+ * reason is only allowed for credits. The Nacha return code is R23.
801
+ * - `duplicate_entry` - The account holder identified this transaction as a
802
+ * duplicate. The Nacha return code is R24.
803
+ * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
804
+ * authorizes this transaction. The Nacha return code is R29.
805
+ */
806
+ reason?:
807
+ | 'insufficient_funds'
808
+ | 'returned_per_odfi_request'
809
+ | 'authorization_revoked_by_customer'
810
+ | 'payment_stopped'
811
+ | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
812
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
813
+ | 'beneficiary_or_account_holder_deceased'
814
+ | 'credit_entry_refused_by_receiver'
815
+ | 'duplicate_entry'
816
+ | 'corporate_customer_advised_not_authorized';
817
+ }
818
+
748
819
  export interface InboundACHTransferTransferReturnParams {
749
820
  /**
750
821
  * The reason why this transfer will be returned. The most usual return codes are
@@ -791,5 +862,6 @@ export namespace InboundACHTransfers {
791
862
  export import InboundACHTransfersPage = InboundACHTransfersAPI.InboundACHTransfersPage;
792
863
  export import InboundACHTransferListParams = InboundACHTransfersAPI.InboundACHTransferListParams;
793
864
  export import InboundACHTransferCreateNotificationOfChangeParams = InboundACHTransfersAPI.InboundACHTransferCreateNotificationOfChangeParams;
865
+ export import InboundACHTransferDeclineParams = InboundACHTransfersAPI.InboundACHTransferDeclineParams;
794
866
  export import InboundACHTransferTransferReturnParams = InboundACHTransfersAPI.InboundACHTransferTransferReturnParams;
795
867
  }
@@ -171,6 +171,7 @@ export {
171
171
  InboundACHTransfer,
172
172
  InboundACHTransferListParams,
173
173
  InboundACHTransferCreateNotificationOfChangeParams,
174
+ InboundACHTransferDeclineParams,
174
175
  InboundACHTransferTransferReturnParams,
175
176
  InboundACHTransfersPage,
176
177
  InboundACHTransfers,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.108.0'; // x-release-please-version
1
+ export const VERSION = '0.110.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.108.0";
1
+ export declare const VERSION = "0.110.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.108.0'; // x-release-please-version
4
+ exports.VERSION = '0.110.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.108.0'; // x-release-please-version
1
+ export const VERSION = '0.110.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map