increase 0.114.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,13 @@
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
+
3
11
  ## 0.114.0 (2024-10-02)
4
12
 
5
13
  Full Changelog: [v0.113.0...v0.114.0](https://github.com/Increase/increase-node/compare/v0.113.0...v0.114.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "increase",
3
- "version": "0.114.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,6 +46,34 @@ 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
  */
@@ -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;;;;;;;;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
+ {"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;;;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;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;AA+FD,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;AA+FD,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,6 +60,50 @@ 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
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.114.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.114.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.114.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.114.0'; // x-release-please-version
1
+ export const VERSION = '0.115.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map