increase 0.469.0 → 0.470.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.470.0 (2026-03-10)
4
+
5
+ Full Changelog: [v0.469.0...v0.470.0](https://github.com/Increase/increase-typescript/compare/v0.469.0...v0.470.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b76818f](https://github.com/Increase/increase-typescript/commit/b76818f67ff8ad0cf129337d5d6e5827fc542db8))
10
+
3
11
  ## 0.469.0 (2026-03-10)
4
12
 
5
13
  Full Changelog: [v0.468.0...v0.469.0](https://github.com/Increase/increase-typescript/compare/v0.468.0...v0.469.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "increase",
3
- "version": "0.469.0",
3
+ "version": "0.470.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",
@@ -27,6 +27,10 @@ export interface CardTokenCreateParams {
27
27
  * The last 4 digits of the card number.
28
28
  */
29
29
  last4?: string;
30
+ /**
31
+ * The outcome to simulate for card push transfers using this token.
32
+ */
33
+ outcome?: CardTokenCreateParams.Outcome;
30
34
  /**
31
35
  * The prefix of the card number, usually the first 8 digits.
32
36
  */
@@ -60,6 +64,107 @@ export declare namespace CardTokenCreateParams {
60
64
  */
61
65
  route: 'visa' | 'mastercard';
62
66
  }
67
+ /**
68
+ * The outcome to simulate for card push transfers using this token.
69
+ */
70
+ interface Outcome {
71
+ /**
72
+ * Whether card push transfers or validations will be approved or declined.
73
+ *
74
+ * - `approve` - Any card push transfers or validations will be approved.
75
+ * - `decline` - Any card push transfers or validations will be declined.
76
+ */
77
+ result: 'approve' | 'decline';
78
+ /**
79
+ * If the result is declined, the details of the decline.
80
+ */
81
+ decline?: Outcome.Decline;
82
+ }
83
+ namespace Outcome {
84
+ /**
85
+ * If the result is declined, the details of the decline.
86
+ */
87
+ interface Decline {
88
+ /**
89
+ * The reason for the decline.
90
+ *
91
+ * - `do_not_honor` - The card issuer has declined the transaction without
92
+ * providing a specific reason.
93
+ * - `activity_count_limit_exceeded` - The number of transactions for the card has
94
+ * exceeded the limit set by the issuer.
95
+ * - `refer_to_card_issuer` - The card issuer requires the cardholder to contact
96
+ * them for further information regarding the transaction.
97
+ * - `refer_to_card_issuer_special_condition` - The card issuer requires the
98
+ * cardholder to contact them due to a special condition related to the
99
+ * transaction.
100
+ * - `invalid_merchant` - The merchant is not valid for this transaction.
101
+ * - `pick_up_card` - The card should be retained by the terminal.
102
+ * - `error` - An error occurred during processing of the transaction.
103
+ * - `pick_up_card_special` - The card should be retained by the terminal due to a
104
+ * special condition.
105
+ * - `invalid_transaction` - The transaction is invalid and cannot be processed.
106
+ * - `invalid_amount` - The amount of the transaction is invalid.
107
+ * - `invalid_account_number` - The account number provided is invalid.
108
+ * - `no_such_issuer` - The issuer of the card could not be found.
109
+ * - `re_enter_transaction` - The transaction should be re-entered for processing.
110
+ * - `no_credit_account` - There is no credit account associated with the card.
111
+ * - `pick_up_card_lost` - The card should be retained by the terminal because it
112
+ * has been reported lost.
113
+ * - `pick_up_card_stolen` - The card should be retained by the terminal because it
114
+ * has been reported stolen.
115
+ * - `closed_account` - The account associated with the card has been closed.
116
+ * - `insufficient_funds` - There are insufficient funds in the account to complete
117
+ * the transaction.
118
+ * - `no_checking_account` - There is no checking account associated with the card.
119
+ * - `no_savings_account` - There is no savings account associated with the card.
120
+ * - `expired_card` - The card has expired and cannot be used for transactions.
121
+ * - `transaction_not_permitted_to_cardholder` - The transaction is not permitted
122
+ * for this cardholder.
123
+ * - `transaction_not_allowed_at_terminal` - The transaction is not allowed at this
124
+ * terminal.
125
+ * - `suspected_fraud` - The transaction has been flagged as suspected fraud and
126
+ * cannot be processed.
127
+ * - `activity_amount_limit_exceeded` - The amount of activity on the card has
128
+ * exceeded the limit set by the issuer.
129
+ * - `restricted_card` - The card has restrictions that prevent it from being used
130
+ * for this transaction.
131
+ * - `security_violation` - A security violation has occurred, preventing the
132
+ * transaction from being processed.
133
+ * - `transaction_does_not_fulfill_anti_money_laundering_requirement` - The
134
+ * transaction does not meet the anti-money laundering requirements set by the
135
+ * issuer.
136
+ * - `blocked_first_use` - The first use of the card has been blocked by the
137
+ * issuer.
138
+ * - `credit_issuer_unavailable` - The credit issuer is currently unavailable to
139
+ * process the transaction.
140
+ * - `negative_card_verification_value_results` - The card verification value (CVV)
141
+ * results were negative, indicating a potential issue with the card.
142
+ * - `issuer_unavailable` - The issuer of the card is currently unavailable to
143
+ * process the transaction.
144
+ * - `financial_institution_cannot_be_found` - The financial institution associated
145
+ * with the card could not be found.
146
+ * - `transaction_cannot_be_completed` - The transaction cannot be completed due to
147
+ * an unspecified reason.
148
+ * - `duplicate_transaction` - The transaction is a duplicate of a previous
149
+ * transaction and cannot be processed again.
150
+ * - `system_malfunction` - A system malfunction occurred, preventing the
151
+ * transaction from being processed.
152
+ * - `additional_customer_authentication_required` - Additional customer
153
+ * authentication is required to complete the transaction.
154
+ * - `surcharge_amount_not_permitted` - The surcharge amount applied to the
155
+ * transaction is not permitted by the issuer.
156
+ * - `decline_for_cvv2_failure` - The transaction was declined due to a failure in
157
+ * verifying the CVV2 code.
158
+ * - `stop_payment_order` - A stop payment order has been placed on this
159
+ * transaction.
160
+ * - `revocation_of_authorization_order` - An order has been placed to revoke
161
+ * authorization for this transaction.
162
+ * - `revocation_of_all_authorizations_order` - An order has been placed to revoke
163
+ * all authorizations for this cardholder.
164
+ */
165
+ reason?: 'do_not_honor' | 'activity_count_limit_exceeded' | 'refer_to_card_issuer' | 'refer_to_card_issuer_special_condition' | 'invalid_merchant' | 'pick_up_card' | 'error' | 'pick_up_card_special' | 'invalid_transaction' | 'invalid_amount' | 'invalid_account_number' | 'no_such_issuer' | 're_enter_transaction' | 'no_credit_account' | 'pick_up_card_lost' | 'pick_up_card_stolen' | 'closed_account' | 'insufficient_funds' | 'no_checking_account' | 'no_savings_account' | 'expired_card' | 'transaction_not_permitted_to_cardholder' | 'transaction_not_allowed_at_terminal' | 'suspected_fraud' | 'activity_amount_limit_exceeded' | 'restricted_card' | 'security_violation' | 'transaction_does_not_fulfill_anti_money_laundering_requirement' | 'blocked_first_use' | 'credit_issuer_unavailable' | 'negative_card_verification_value_results' | 'issuer_unavailable' | 'financial_institution_cannot_be_found' | 'transaction_cannot_be_completed' | 'duplicate_transaction' | 'system_malfunction' | 'additional_customer_authentication_required' | 'surcharge_amount_not_permitted' | 'decline_for_cvv2_failure' | 'stop_payment_order' | 'revocation_of_authorization_order' | 'revocation_of_all_authorizations_order';
166
+ }
167
+ }
63
168
  }
64
169
  export declare namespace CardTokens {
65
170
  export { type CardTokenCreateParams as CardTokenCreateParams };
@@ -1 +1 @@
1
- {"version":3,"file":"card-tokens.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/card-tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;CAGnG;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAEvD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,UAAU;QACz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Y,CAAC;KAC9B;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB;;;;;WAKG;QACH,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;QAE9B;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;KAC3B;IAED,UAAiB,OAAO,CAAC;QACvB;;WAEG;QACH,UAAiB,OAAO;YACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA4EG;YACH,MAAM,CAAC,EACH,cAAc,GACd,+BAA+B,GAC/B,sBAAsB,GACtB,wCAAwC,GACxC,kBAAkB,GAClB,cAAc,GACd,OAAO,GACP,sBAAsB,GACtB,qBAAqB,GACrB,gBAAgB,GAChB,wBAAwB,GACxB,gBAAgB,GAChB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,gBAAgB,GAChB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,cAAc,GACd,yCAAyC,GACzC,qCAAqC,GACrC,iBAAiB,GACjB,gCAAgC,GAChC,iBAAiB,GACjB,oBAAoB,GACpB,gEAAgE,GAChE,mBAAmB,GACnB,2BAA2B,GAC3B,0CAA0C,GAC1C,oBAAoB,GACpB,uCAAuC,GACvC,iCAAiC,GACjC,uBAAuB,GACvB,oBAAoB,GACpB,6CAA6C,GAC7C,gCAAgC,GAChC,0BAA0B,GAC1B,oBAAoB,GACpB,mCAAmC,GACnC,wCAAwC,CAAC;SAC9C;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
@@ -27,6 +27,10 @@ export interface CardTokenCreateParams {
27
27
  * The last 4 digits of the card number.
28
28
  */
29
29
  last4?: string;
30
+ /**
31
+ * The outcome to simulate for card push transfers using this token.
32
+ */
33
+ outcome?: CardTokenCreateParams.Outcome;
30
34
  /**
31
35
  * The prefix of the card number, usually the first 8 digits.
32
36
  */
@@ -60,6 +64,107 @@ export declare namespace CardTokenCreateParams {
60
64
  */
61
65
  route: 'visa' | 'mastercard';
62
66
  }
67
+ /**
68
+ * The outcome to simulate for card push transfers using this token.
69
+ */
70
+ interface Outcome {
71
+ /**
72
+ * Whether card push transfers or validations will be approved or declined.
73
+ *
74
+ * - `approve` - Any card push transfers or validations will be approved.
75
+ * - `decline` - Any card push transfers or validations will be declined.
76
+ */
77
+ result: 'approve' | 'decline';
78
+ /**
79
+ * If the result is declined, the details of the decline.
80
+ */
81
+ decline?: Outcome.Decline;
82
+ }
83
+ namespace Outcome {
84
+ /**
85
+ * If the result is declined, the details of the decline.
86
+ */
87
+ interface Decline {
88
+ /**
89
+ * The reason for the decline.
90
+ *
91
+ * - `do_not_honor` - The card issuer has declined the transaction without
92
+ * providing a specific reason.
93
+ * - `activity_count_limit_exceeded` - The number of transactions for the card has
94
+ * exceeded the limit set by the issuer.
95
+ * - `refer_to_card_issuer` - The card issuer requires the cardholder to contact
96
+ * them for further information regarding the transaction.
97
+ * - `refer_to_card_issuer_special_condition` - The card issuer requires the
98
+ * cardholder to contact them due to a special condition related to the
99
+ * transaction.
100
+ * - `invalid_merchant` - The merchant is not valid for this transaction.
101
+ * - `pick_up_card` - The card should be retained by the terminal.
102
+ * - `error` - An error occurred during processing of the transaction.
103
+ * - `pick_up_card_special` - The card should be retained by the terminal due to a
104
+ * special condition.
105
+ * - `invalid_transaction` - The transaction is invalid and cannot be processed.
106
+ * - `invalid_amount` - The amount of the transaction is invalid.
107
+ * - `invalid_account_number` - The account number provided is invalid.
108
+ * - `no_such_issuer` - The issuer of the card could not be found.
109
+ * - `re_enter_transaction` - The transaction should be re-entered for processing.
110
+ * - `no_credit_account` - There is no credit account associated with the card.
111
+ * - `pick_up_card_lost` - The card should be retained by the terminal because it
112
+ * has been reported lost.
113
+ * - `pick_up_card_stolen` - The card should be retained by the terminal because it
114
+ * has been reported stolen.
115
+ * - `closed_account` - The account associated with the card has been closed.
116
+ * - `insufficient_funds` - There are insufficient funds in the account to complete
117
+ * the transaction.
118
+ * - `no_checking_account` - There is no checking account associated with the card.
119
+ * - `no_savings_account` - There is no savings account associated with the card.
120
+ * - `expired_card` - The card has expired and cannot be used for transactions.
121
+ * - `transaction_not_permitted_to_cardholder` - The transaction is not permitted
122
+ * for this cardholder.
123
+ * - `transaction_not_allowed_at_terminal` - The transaction is not allowed at this
124
+ * terminal.
125
+ * - `suspected_fraud` - The transaction has been flagged as suspected fraud and
126
+ * cannot be processed.
127
+ * - `activity_amount_limit_exceeded` - The amount of activity on the card has
128
+ * exceeded the limit set by the issuer.
129
+ * - `restricted_card` - The card has restrictions that prevent it from being used
130
+ * for this transaction.
131
+ * - `security_violation` - A security violation has occurred, preventing the
132
+ * transaction from being processed.
133
+ * - `transaction_does_not_fulfill_anti_money_laundering_requirement` - The
134
+ * transaction does not meet the anti-money laundering requirements set by the
135
+ * issuer.
136
+ * - `blocked_first_use` - The first use of the card has been blocked by the
137
+ * issuer.
138
+ * - `credit_issuer_unavailable` - The credit issuer is currently unavailable to
139
+ * process the transaction.
140
+ * - `negative_card_verification_value_results` - The card verification value (CVV)
141
+ * results were negative, indicating a potential issue with the card.
142
+ * - `issuer_unavailable` - The issuer of the card is currently unavailable to
143
+ * process the transaction.
144
+ * - `financial_institution_cannot_be_found` - The financial institution associated
145
+ * with the card could not be found.
146
+ * - `transaction_cannot_be_completed` - The transaction cannot be completed due to
147
+ * an unspecified reason.
148
+ * - `duplicate_transaction` - The transaction is a duplicate of a previous
149
+ * transaction and cannot be processed again.
150
+ * - `system_malfunction` - A system malfunction occurred, preventing the
151
+ * transaction from being processed.
152
+ * - `additional_customer_authentication_required` - Additional customer
153
+ * authentication is required to complete the transaction.
154
+ * - `surcharge_amount_not_permitted` - The surcharge amount applied to the
155
+ * transaction is not permitted by the issuer.
156
+ * - `decline_for_cvv2_failure` - The transaction was declined due to a failure in
157
+ * verifying the CVV2 code.
158
+ * - `stop_payment_order` - A stop payment order has been placed on this
159
+ * transaction.
160
+ * - `revocation_of_authorization_order` - An order has been placed to revoke
161
+ * authorization for this transaction.
162
+ * - `revocation_of_all_authorizations_order` - An order has been placed to revoke
163
+ * all authorizations for this cardholder.
164
+ */
165
+ reason?: 'do_not_honor' | 'activity_count_limit_exceeded' | 'refer_to_card_issuer' | 'refer_to_card_issuer_special_condition' | 'invalid_merchant' | 'pick_up_card' | 'error' | 'pick_up_card_special' | 'invalid_transaction' | 'invalid_amount' | 'invalid_account_number' | 'no_such_issuer' | 're_enter_transaction' | 'no_credit_account' | 'pick_up_card_lost' | 'pick_up_card_stolen' | 'closed_account' | 'insufficient_funds' | 'no_checking_account' | 'no_savings_account' | 'expired_card' | 'transaction_not_permitted_to_cardholder' | 'transaction_not_allowed_at_terminal' | 'suspected_fraud' | 'activity_amount_limit_exceeded' | 'restricted_card' | 'security_violation' | 'transaction_does_not_fulfill_anti_money_laundering_requirement' | 'blocked_first_use' | 'credit_issuer_unavailable' | 'negative_card_verification_value_results' | 'issuer_unavailable' | 'financial_institution_cannot_be_found' | 'transaction_cannot_be_completed' | 'duplicate_transaction' | 'system_malfunction' | 'additional_customer_authentication_required' | 'surcharge_amount_not_permitted' | 'decline_for_cvv2_failure' | 'stop_payment_order' | 'revocation_of_authorization_order' | 'revocation_of_all_authorizations_order';
166
+ }
167
+ }
63
168
  }
64
169
  export declare namespace CardTokens {
65
170
  export { type CardTokenCreateParams as CardTokenCreateParams };
@@ -1 +1 @@
1
- {"version":3,"file":"card-tokens.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,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C,iCAAiC,GACjC,uBAAuB,GACvB,oBAAoB,GACpB,6CAA6C,GAC7C,gCAAgC,GAChC,0BAA0B,GAC1B,oBAAoB,GACpB,mCAAmC,GACnC,wCAAwC,CAAC;SAC9C;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
@@ -36,6 +36,11 @@ export interface CardTokenCreateParams {
36
36
  */
37
37
  last4?: string;
38
38
 
39
+ /**
40
+ * The outcome to simulate for card push transfers using this token.
41
+ */
42
+ outcome?: CardTokenCreateParams.Outcome;
43
+
39
44
  /**
40
45
  * The prefix of the card number, usually the first 8 digits.
41
46
  */
@@ -73,6 +78,152 @@ export namespace CardTokenCreateParams {
73
78
  */
74
79
  route: 'visa' | 'mastercard';
75
80
  }
81
+
82
+ /**
83
+ * The outcome to simulate for card push transfers using this token.
84
+ */
85
+ export interface Outcome {
86
+ /**
87
+ * Whether card push transfers or validations will be approved or declined.
88
+ *
89
+ * - `approve` - Any card push transfers or validations will be approved.
90
+ * - `decline` - Any card push transfers or validations will be declined.
91
+ */
92
+ result: 'approve' | 'decline';
93
+
94
+ /**
95
+ * If the result is declined, the details of the decline.
96
+ */
97
+ decline?: Outcome.Decline;
98
+ }
99
+
100
+ export namespace Outcome {
101
+ /**
102
+ * If the result is declined, the details of the decline.
103
+ */
104
+ export interface Decline {
105
+ /**
106
+ * The reason for the decline.
107
+ *
108
+ * - `do_not_honor` - The card issuer has declined the transaction without
109
+ * providing a specific reason.
110
+ * - `activity_count_limit_exceeded` - The number of transactions for the card has
111
+ * exceeded the limit set by the issuer.
112
+ * - `refer_to_card_issuer` - The card issuer requires the cardholder to contact
113
+ * them for further information regarding the transaction.
114
+ * - `refer_to_card_issuer_special_condition` - The card issuer requires the
115
+ * cardholder to contact them due to a special condition related to the
116
+ * transaction.
117
+ * - `invalid_merchant` - The merchant is not valid for this transaction.
118
+ * - `pick_up_card` - The card should be retained by the terminal.
119
+ * - `error` - An error occurred during processing of the transaction.
120
+ * - `pick_up_card_special` - The card should be retained by the terminal due to a
121
+ * special condition.
122
+ * - `invalid_transaction` - The transaction is invalid and cannot be processed.
123
+ * - `invalid_amount` - The amount of the transaction is invalid.
124
+ * - `invalid_account_number` - The account number provided is invalid.
125
+ * - `no_such_issuer` - The issuer of the card could not be found.
126
+ * - `re_enter_transaction` - The transaction should be re-entered for processing.
127
+ * - `no_credit_account` - There is no credit account associated with the card.
128
+ * - `pick_up_card_lost` - The card should be retained by the terminal because it
129
+ * has been reported lost.
130
+ * - `pick_up_card_stolen` - The card should be retained by the terminal because it
131
+ * has been reported stolen.
132
+ * - `closed_account` - The account associated with the card has been closed.
133
+ * - `insufficient_funds` - There are insufficient funds in the account to complete
134
+ * the transaction.
135
+ * - `no_checking_account` - There is no checking account associated with the card.
136
+ * - `no_savings_account` - There is no savings account associated with the card.
137
+ * - `expired_card` - The card has expired and cannot be used for transactions.
138
+ * - `transaction_not_permitted_to_cardholder` - The transaction is not permitted
139
+ * for this cardholder.
140
+ * - `transaction_not_allowed_at_terminal` - The transaction is not allowed at this
141
+ * terminal.
142
+ * - `suspected_fraud` - The transaction has been flagged as suspected fraud and
143
+ * cannot be processed.
144
+ * - `activity_amount_limit_exceeded` - The amount of activity on the card has
145
+ * exceeded the limit set by the issuer.
146
+ * - `restricted_card` - The card has restrictions that prevent it from being used
147
+ * for this transaction.
148
+ * - `security_violation` - A security violation has occurred, preventing the
149
+ * transaction from being processed.
150
+ * - `transaction_does_not_fulfill_anti_money_laundering_requirement` - The
151
+ * transaction does not meet the anti-money laundering requirements set by the
152
+ * issuer.
153
+ * - `blocked_first_use` - The first use of the card has been blocked by the
154
+ * issuer.
155
+ * - `credit_issuer_unavailable` - The credit issuer is currently unavailable to
156
+ * process the transaction.
157
+ * - `negative_card_verification_value_results` - The card verification value (CVV)
158
+ * results were negative, indicating a potential issue with the card.
159
+ * - `issuer_unavailable` - The issuer of the card is currently unavailable to
160
+ * process the transaction.
161
+ * - `financial_institution_cannot_be_found` - The financial institution associated
162
+ * with the card could not be found.
163
+ * - `transaction_cannot_be_completed` - The transaction cannot be completed due to
164
+ * an unspecified reason.
165
+ * - `duplicate_transaction` - The transaction is a duplicate of a previous
166
+ * transaction and cannot be processed again.
167
+ * - `system_malfunction` - A system malfunction occurred, preventing the
168
+ * transaction from being processed.
169
+ * - `additional_customer_authentication_required` - Additional customer
170
+ * authentication is required to complete the transaction.
171
+ * - `surcharge_amount_not_permitted` - The surcharge amount applied to the
172
+ * transaction is not permitted by the issuer.
173
+ * - `decline_for_cvv2_failure` - The transaction was declined due to a failure in
174
+ * verifying the CVV2 code.
175
+ * - `stop_payment_order` - A stop payment order has been placed on this
176
+ * transaction.
177
+ * - `revocation_of_authorization_order` - An order has been placed to revoke
178
+ * authorization for this transaction.
179
+ * - `revocation_of_all_authorizations_order` - An order has been placed to revoke
180
+ * all authorizations for this cardholder.
181
+ */
182
+ reason?:
183
+ | 'do_not_honor'
184
+ | 'activity_count_limit_exceeded'
185
+ | 'refer_to_card_issuer'
186
+ | 'refer_to_card_issuer_special_condition'
187
+ | 'invalid_merchant'
188
+ | 'pick_up_card'
189
+ | 'error'
190
+ | 'pick_up_card_special'
191
+ | 'invalid_transaction'
192
+ | 'invalid_amount'
193
+ | 'invalid_account_number'
194
+ | 'no_such_issuer'
195
+ | 're_enter_transaction'
196
+ | 'no_credit_account'
197
+ | 'pick_up_card_lost'
198
+ | 'pick_up_card_stolen'
199
+ | 'closed_account'
200
+ | 'insufficient_funds'
201
+ | 'no_checking_account'
202
+ | 'no_savings_account'
203
+ | 'expired_card'
204
+ | 'transaction_not_permitted_to_cardholder'
205
+ | 'transaction_not_allowed_at_terminal'
206
+ | 'suspected_fraud'
207
+ | 'activity_amount_limit_exceeded'
208
+ | 'restricted_card'
209
+ | 'security_violation'
210
+ | 'transaction_does_not_fulfill_anti_money_laundering_requirement'
211
+ | 'blocked_first_use'
212
+ | 'credit_issuer_unavailable'
213
+ | 'negative_card_verification_value_results'
214
+ | 'issuer_unavailable'
215
+ | 'financial_institution_cannot_be_found'
216
+ | 'transaction_cannot_be_completed'
217
+ | 'duplicate_transaction'
218
+ | 'system_malfunction'
219
+ | 'additional_customer_authentication_required'
220
+ | 'surcharge_amount_not_permitted'
221
+ | 'decline_for_cvv2_failure'
222
+ | 'stop_payment_order'
223
+ | 'revocation_of_authorization_order'
224
+ | 'revocation_of_all_authorizations_order';
225
+ }
226
+ }
76
227
  }
77
228
 
78
229
  export declare namespace CardTokens {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.469.0'; // x-release-please-version
1
+ export const VERSION = '0.470.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.469.0";
1
+ export declare const VERSION = "0.470.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.469.0";
1
+ export declare const VERSION = "0.470.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.469.0'; // x-release-please-version
4
+ exports.VERSION = '0.470.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.469.0'; // x-release-please-version
1
+ export const VERSION = '0.470.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map