increase 0.203.0 → 0.206.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 (43) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/core.d.ts +1 -1
  3. package/core.d.ts.map +1 -1
  4. package/core.js +5 -5
  5. package/core.js.map +1 -1
  6. package/core.mjs +5 -5
  7. package/core.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/ach-transfers.d.ts +4 -0
  10. package/resources/ach-transfers.d.ts.map +1 -1
  11. package/resources/ach-transfers.js.map +1 -1
  12. package/resources/ach-transfers.mjs.map +1 -1
  13. package/resources/card-payments.d.ts +8 -6
  14. package/resources/card-payments.d.ts.map +1 -1
  15. package/resources/card-payments.js.map +1 -1
  16. package/resources/card-payments.mjs.map +1 -1
  17. package/resources/check-transfers.d.ts +18 -10
  18. package/resources/check-transfers.d.ts.map +1 -1
  19. package/resources/check-transfers.js.map +1 -1
  20. package/resources/check-transfers.mjs.map +1 -1
  21. package/resources/physical-card-profiles.d.ts +4 -0
  22. package/resources/physical-card-profiles.d.ts.map +1 -1
  23. package/resources/physical-card-profiles.js.map +1 -1
  24. package/resources/physical-card-profiles.mjs.map +1 -1
  25. package/resources/proof-of-authorization-request-submissions.d.ts +10 -2
  26. package/resources/proof-of-authorization-request-submissions.d.ts.map +1 -1
  27. package/resources/proof-of-authorization-request-submissions.js.map +1 -1
  28. package/resources/proof-of-authorization-request-submissions.mjs.map +1 -1
  29. package/resources/transactions.d.ts +8 -6
  30. package/resources/transactions.d.ts.map +1 -1
  31. package/resources/transactions.js.map +1 -1
  32. package/resources/transactions.mjs.map +1 -1
  33. package/src/core.ts +4 -4
  34. package/src/resources/ach-transfers.ts +5 -0
  35. package/src/resources/card-payments.ts +8 -6
  36. package/src/resources/check-transfers.ts +21 -12
  37. package/src/resources/physical-card-profiles.ts +5 -0
  38. package/src/resources/proof-of-authorization-request-submissions.ts +11 -2
  39. package/src/resources/transactions.ts +8 -6
  40. package/src/version.ts +1 -1
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/version.mjs +1 -1
@@ -1751,9 +1751,10 @@ export namespace CardPayment {
1751
1751
  */
1752
1752
  export interface Interchange {
1753
1753
  /**
1754
- * The interchange amount given as a string containing a decimal number. The amount
1755
- * is a positive number if it is credited to Increase (e.g., settlements) and a
1756
- * negative number if it is debited (e.g., refunds).
1754
+ * The interchange amount given as a string containing a decimal number in major
1755
+ * units (so e.g., "3.14" for $3.14). The amount is a positive number if it is
1756
+ * credited to Increase (e.g., settlements) and a negative number if it is debited
1757
+ * (e.g., refunds).
1757
1758
  */
1758
1759
  amount: string;
1759
1760
 
@@ -2639,9 +2640,10 @@ export namespace CardPayment {
2639
2640
  */
2640
2641
  export interface Interchange {
2641
2642
  /**
2642
- * The interchange amount given as a string containing a decimal number. The amount
2643
- * is a positive number if it is credited to Increase (e.g., settlements) and a
2644
- * negative number if it is debited (e.g., refunds).
2643
+ * The interchange amount given as a string containing a decimal number in major
2644
+ * units (so e.g., "3.14" for $3.14). The amount is a positive number if it is
2645
+ * credited to Increase (e.g., settlements) and a negative number if it is debited
2646
+ * (e.g., refunds).
2645
2647
  */
2646
2648
  amount: string;
2647
2649
 
@@ -365,6 +365,11 @@ export namespace CheckTransfer {
365
365
  * be present if and only if `fulfillment_method` is equal to `physical_check`.
366
366
  */
367
367
  export interface PhysicalCheck {
368
+ /**
369
+ * The ID of the file for the check attachment.
370
+ */
371
+ attachment_file_id: string | null;
372
+
368
373
  /**
369
374
  * Details for where Increase will mail the check.
370
375
  */
@@ -612,11 +617,6 @@ export namespace CheckTransfer {
612
617
  * and only if `fulfillment_method` is equal to `third_party`.
613
618
  */
614
619
  export interface ThirdParty {
615
- /**
616
- * The check number that you will print on the check.
617
- */
618
- check_number: string | null;
619
-
620
620
  /**
621
621
  * The name that you will print on the check.
622
622
  */
@@ -693,6 +693,13 @@ export namespace CheckTransferCreateParams {
693
693
  */
694
694
  recipient_name: string;
695
695
 
696
+ /**
697
+ * The ID of a File to be attached to the check. This must have
698
+ * `purpose: check_attachment`. For details on pricing and restrictions, see
699
+ * https://increase.com/documentation/originating-checks#printing-checks .
700
+ */
701
+ attachment_file_id?: string;
702
+
696
703
  /**
697
704
  * The check number Increase should print on the check. This should not contain
698
705
  * leading zeroes and must be unique across the `source_account_number`. If this is
@@ -712,6 +719,15 @@ export namespace CheckTransferCreateParams {
712
719
  */
713
720
  return_address?: PhysicalCheck.ReturnAddress;
714
721
 
722
+ /**
723
+ * How to ship the check. For details on pricing, timing, and restrictions, see
724
+ * https://increase.com/documentation/originating-checks#printing-checks .
725
+ *
726
+ * - `usps_first_class` - USPS First Class
727
+ * - `fedex_overnight` - FedEx Overnight
728
+ */
729
+ shipping_method?: 'usps_first_class' | 'fedex_overnight';
730
+
715
731
  /**
716
732
  * The text that will appear as the signature on the check in cursive font. If not
717
733
  * provided, the check will be printed with 'No signature required'.
@@ -794,13 +810,6 @@ export namespace CheckTransferCreateParams {
794
810
  * other `fulfillment_method` is provided.
795
811
  */
796
812
  export interface ThirdParty {
797
- /**
798
- * The check number you will print on the check. This should not contain leading
799
- * zeroes. If this is omitted, Increase will generate a check number for you; you
800
- * should inspect the response and use that check number.
801
- */
802
- check_number?: string;
803
-
804
813
  /**
805
814
  * The pay-to name you will print on the check. If provided, this is used for
806
815
  * [Positive Pay](/documentation/positive-pay). If this is omitted, Increase will
@@ -134,6 +134,11 @@ export interface PhysicalCardProfile {
134
134
  */
135
135
  is_default: boolean;
136
136
 
137
+ /**
138
+ * The identifier for the Program this Physical Card Profile belongs to.
139
+ */
140
+ program_id: string;
141
+
137
142
  /**
138
143
  * The status of the Physical Card Profile.
139
144
  *
@@ -70,9 +70,9 @@ export interface ProofOfAuthorizationRequestSubmission {
70
70
  id: string;
71
71
 
72
72
  /**
73
- * File containing additional evidence.
73
+ * Files containing additional evidence.
74
74
  */
75
- additional_evidence_file_id: string | null;
75
+ additional_evidence_files: Array<ProofOfAuthorizationRequestSubmission.AdditionalEvidenceFile>;
76
76
 
77
77
  /**
78
78
  * Terms of authorization.
@@ -167,6 +167,15 @@ export interface ProofOfAuthorizationRequestSubmission {
167
167
  validated_account_ownership_with_microdeposit: boolean | null;
168
168
  }
169
169
 
170
+ export namespace ProofOfAuthorizationRequestSubmission {
171
+ export interface AdditionalEvidenceFile {
172
+ /**
173
+ * The File identifier.
174
+ */
175
+ file_id: string;
176
+ }
177
+ }
178
+
170
179
  export interface ProofOfAuthorizationRequestSubmissionCreateParams {
171
180
  /**
172
181
  * Terms of authorization.
@@ -1013,9 +1013,10 @@ export namespace Transaction {
1013
1013
  */
1014
1014
  export interface Interchange {
1015
1015
  /**
1016
- * The interchange amount given as a string containing a decimal number. The amount
1017
- * is a positive number if it is credited to Increase (e.g., settlements) and a
1018
- * negative number if it is debited (e.g., refunds).
1016
+ * The interchange amount given as a string containing a decimal number in major
1017
+ * units (so e.g., "3.14" for $3.14). The amount is a positive number if it is
1018
+ * credited to Increase (e.g., settlements) and a negative number if it is debited
1019
+ * (e.g., refunds).
1019
1020
  */
1020
1021
  amount: string;
1021
1022
 
@@ -1789,9 +1790,10 @@ export namespace Transaction {
1789
1790
  */
1790
1791
  export interface Interchange {
1791
1792
  /**
1792
- * The interchange amount given as a string containing a decimal number. The amount
1793
- * is a positive number if it is credited to Increase (e.g., settlements) and a
1794
- * negative number if it is debited (e.g., refunds).
1793
+ * The interchange amount given as a string containing a decimal number in major
1794
+ * units (so e.g., "3.14" for $3.14). The amount is a positive number if it is
1795
+ * credited to Increase (e.g., settlements) and a negative number if it is debited
1796
+ * (e.g., refunds).
1795
1797
  */
1796
1798
  amount: string;
1797
1799
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.203.0'; // x-release-please-version
1
+ export const VERSION = '0.206.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.203.0";
1
+ export declare const VERSION = "0.206.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.203.0'; // x-release-please-version
4
+ exports.VERSION = '0.206.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.203.0'; // x-release-please-version
1
+ export const VERSION = '0.206.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map