increase 0.113.0 → 0.115.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.115.0 (2024-10-02)
4
+
5
+ Full Changelog: [v0.114.0...v0.115.0](https://github.com/Increase/increase-node/compare/v0.114.0...v0.115.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** OpenAPI spec update via Stainless API ([#648](https://github.com/Increase/increase-node/issues/648)) ([b58112d](https://github.com/Increase/increase-node/commit/b58112d5429d03b83833caca4718364217ef05ac))
10
+
11
+ ## 0.114.0 (2024-10-02)
12
+
13
+ Full Changelog: [v0.113.0...v0.114.0](https://github.com/Increase/increase-node/compare/v0.113.0...v0.114.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** OpenAPI spec update via Stainless API ([#646](https://github.com/Increase/increase-node/issues/646)) ([0ab560e](https://github.com/Increase/increase-node/commit/0ab560e6567126afffeb7741dfa2eaac457e63f0))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **internal:** codegen related update ([#644](https://github.com/Increase/increase-node/issues/644)) ([c83c79f](https://github.com/Increase/increase-node/commit/c83c79f7fb37e0f925b91c82bdbc8fac784b4427))
23
+
3
24
  ## 0.113.0 (2024-10-02)
4
25
 
5
26
  Full Changelog: [v0.112.0...v0.113.0](https://github.com/Increase/increase-node/compare/v0.112.0...v0.113.0)
package/README.md CHANGED
@@ -377,3 +377,7 @@ The following runtimes are supported:
377
377
  Note that React Native is not supported at this time.
378
378
 
379
379
  If you are interested in other runtime environments, please open or upvote an issue on GitHub.
380
+
381
+ ## Contributing
382
+
383
+ See [the contributing documentation](./CONTRIBUTING.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "increase",
3
- "version": "0.113.0",
3
+ "version": "0.115.0",
4
4
  "description": "The official TypeScript library for the Increase API",
5
5
  "author": "Increase <dev-feedback@increase.com>",
6
6
  "types": "./index.d.ts",
@@ -46,10 +46,48 @@ export interface CardAuthorizationCreateParams {
46
46
  * The identifier of the Card to be authorized.
47
47
  */
48
48
  card_id?: string;
49
+ /**
50
+ * Forces a card decline with a specific reason. No real time decision will be
51
+ * sent.
52
+ *
53
+ * - `card_not_active` - The Card was not active.
54
+ * - `physical_card_not_active` - The Physical Card was not active.
55
+ * - `entity_not_active` - The account's entity was not active.
56
+ * - `group_locked` - The account was inactive.
57
+ * - `insufficient_funds` - The Card's Account did not have a sufficient available
58
+ * balance.
59
+ * - `cvv2_mismatch` - The given CVV2 did not match the card's value.
60
+ * - `card_expiration_mismatch` - The given expiration date did not match the
61
+ * card's value. Only applies when a CVV2 is present.
62
+ * - `transaction_not_allowed` - The attempted card transaction is not allowed per
63
+ * Increase's terms.
64
+ * - `breaches_limit` - The transaction was blocked by a Limit.
65
+ * - `webhook_declined` - Your application declined the transaction via webhook.
66
+ * - `webhook_timed_out` - Your application webhook did not respond without the
67
+ * required timeout.
68
+ * - `declined_by_stand_in_processing` - Declined by stand-in processing.
69
+ * - `invalid_physical_card` - The card read had an invalid CVV, dCVV, or
70
+ * authorization request cryptogram.
71
+ * - `missing_original_authorization` - The original card authorization for this
72
+ * incremental authorization does not exist.
73
+ * - `suspected_fraud` - The transaction was suspected to be fraudulent. Please
74
+ * reach out to support@increase.com for more information.
75
+ */
76
+ decline_reason?: 'card_not_active' | 'physical_card_not_active' | 'entity_not_active' | 'group_locked' | 'insufficient_funds' | 'cvv2_mismatch' | 'card_expiration_mismatch' | 'transaction_not_allowed' | 'breaches_limit' | 'webhook_declined' | 'webhook_timed_out' | 'declined_by_stand_in_processing' | 'invalid_physical_card' | 'missing_original_authorization' | 'suspected_fraud';
49
77
  /**
50
78
  * The identifier of the Digital Wallet Token to be authorized.
51
79
  */
52
80
  digital_wallet_token_id?: string;
81
+ /**
82
+ * The direction describes the direction the funds will move, either from the
83
+ * cardholder to the merchant or from the merchant to the cardholder.
84
+ *
85
+ * - `settlement` - A regular card authorization where funds are debited from the
86
+ * cardholder.
87
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
88
+ * voucher authorization, where funds are credited to the cardholder.
89
+ */
90
+ direction?: 'settlement' | 'refund';
53
91
  /**
54
92
  * The identifier of the Event Subscription to use. If provided, will override the
55
93
  * default real time event subscription. Because you can only create one real time
@@ -1 +1 @@
1
- {"version":3,"file":"card-authorizations.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-authorizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,uBAAuB,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,sBAAsB,MAAM,yBAAyB,CAAC;AAElE,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAGpD;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,oBAAoB,EAAE,uBAAuB,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAEzE;;;;OAIG;IACH,mBAAmB,EAAE,sBAAsB,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAEtE;;;OAGG;IACH,IAAI,EAAE,8CAA8C,CAAC;CACtD;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,MAAM,QAAQ,+BAA+B,GAAG,qBAAqB,CAAC,+BAA+B,CAAC;IACtG,MAAM,QAAQ,6BAA6B,GAAG,qBAAqB,CAAC,6BAA6B,CAAC;CACnG"}
1
+ {"version":3,"file":"card-authorizations.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-authorizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,uBAAuB,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,sBAAsB,MAAM,yBAAyB,CAAC;AAElE,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAGpD;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,oBAAoB,EAAE,uBAAuB,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAEzE;;;;OAIG;IACH,mBAAmB,EAAE,sBAAsB,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAEtE;;;OAGG;IACH,IAAI,EAAE,8CAA8C,CAAC;CACtD;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,cAAc,CAAC,EACX,iBAAiB,GACjB,0BAA0B,GAC1B,mBAAmB,GACnB,cAAc,GACd,oBAAoB,GACpB,eAAe,GACf,0BAA0B,GAC1B,yBAAyB,GACzB,gBAAgB,GAChB,kBAAkB,GAClB,mBAAmB,GACnB,iCAAiC,GACjC,uBAAuB,GACvB,gCAAgC,GAChC,iBAAiB,CAAC;IAEtB;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC;IAEpC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,MAAM,QAAQ,+BAA+B,GAAG,qBAAqB,CAAC,+BAA+B,CAAC;IACtG,MAAM,QAAQ,6BAA6B,GAAG,qBAAqB,CAAC,6BAA6B,CAAC;CACnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"card-authorizations.js","sourceRoot":"","sources":["../../src/resources/simulations/card-authorizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAM7C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAhBD,gDAgBC;AAoFD,WAAiB,kBAAkB;AAGnC,CAAC,EAHgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAGlC"}
1
+ {"version":3,"file":"card-authorizations.js","sourceRoot":"","sources":["../../src/resources/simulations/card-authorizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAM7C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAhBD,gDAgBC;AA2ID,WAAiB,kBAAkB;AAGnC,CAAC,EAHgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAGlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"card-authorizations.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-authorizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAoFD,WAAiB,kBAAkB;AAGnC,CAAC,EAHgB,kBAAkB,KAAlB,kBAAkB,QAGlC"}
1
+ {"version":3,"file":"card-authorizations.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-authorizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AA2ID,WAAiB,kBAAkB;AAGnC,CAAC,EAHgB,kBAAkB,KAAlB,kBAAkB,QAGlC"}
@@ -60,11 +60,66 @@ export interface CardAuthorizationCreateParams {
60
60
  */
61
61
  card_id?: string;
62
62
 
63
+ /**
64
+ * Forces a card decline with a specific reason. No real time decision will be
65
+ * sent.
66
+ *
67
+ * - `card_not_active` - The Card was not active.
68
+ * - `physical_card_not_active` - The Physical Card was not active.
69
+ * - `entity_not_active` - The account's entity was not active.
70
+ * - `group_locked` - The account was inactive.
71
+ * - `insufficient_funds` - The Card's Account did not have a sufficient available
72
+ * balance.
73
+ * - `cvv2_mismatch` - The given CVV2 did not match the card's value.
74
+ * - `card_expiration_mismatch` - The given expiration date did not match the
75
+ * card's value. Only applies when a CVV2 is present.
76
+ * - `transaction_not_allowed` - The attempted card transaction is not allowed per
77
+ * Increase's terms.
78
+ * - `breaches_limit` - The transaction was blocked by a Limit.
79
+ * - `webhook_declined` - Your application declined the transaction via webhook.
80
+ * - `webhook_timed_out` - Your application webhook did not respond without the
81
+ * required timeout.
82
+ * - `declined_by_stand_in_processing` - Declined by stand-in processing.
83
+ * - `invalid_physical_card` - The card read had an invalid CVV, dCVV, or
84
+ * authorization request cryptogram.
85
+ * - `missing_original_authorization` - The original card authorization for this
86
+ * incremental authorization does not exist.
87
+ * - `suspected_fraud` - The transaction was suspected to be fraudulent. Please
88
+ * reach out to support@increase.com for more information.
89
+ */
90
+ decline_reason?:
91
+ | 'card_not_active'
92
+ | 'physical_card_not_active'
93
+ | 'entity_not_active'
94
+ | 'group_locked'
95
+ | 'insufficient_funds'
96
+ | 'cvv2_mismatch'
97
+ | 'card_expiration_mismatch'
98
+ | 'transaction_not_allowed'
99
+ | 'breaches_limit'
100
+ | 'webhook_declined'
101
+ | 'webhook_timed_out'
102
+ | 'declined_by_stand_in_processing'
103
+ | 'invalid_physical_card'
104
+ | 'missing_original_authorization'
105
+ | 'suspected_fraud';
106
+
63
107
  /**
64
108
  * The identifier of the Digital Wallet Token to be authorized.
65
109
  */
66
110
  digital_wallet_token_id?: string;
67
111
 
112
+ /**
113
+ * The direction describes the direction the funds will move, either from the
114
+ * cardholder to the merchant or from the merchant to the cardholder.
115
+ *
116
+ * - `settlement` - A regular card authorization where funds are debited from the
117
+ * cardholder.
118
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
119
+ * voucher authorization, where funds are credited to the cardholder.
120
+ */
121
+ direction?: 'settlement' | 'refund';
122
+
68
123
  /**
69
124
  * The identifier of the Event Subscription to use. If provided, will override the
70
125
  * default real time event subscription. Because you can only create one real time
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.113.0'; // x-release-please-version
1
+ export const VERSION = '0.115.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.113.0";
1
+ export declare const VERSION = "0.115.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.113.0'; // x-release-please-version
4
+ exports.VERSION = '0.115.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.113.0'; // x-release-please-version
1
+ export const VERSION = '0.115.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map