increase 0.378.0 → 0.379.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 +27 -0
- package/package.json +1 -1
- package/resources/card-payments.d.mts +547 -4
- package/resources/card-payments.d.mts.map +1 -1
- package/resources/card-payments.d.ts +547 -4
- package/resources/card-payments.d.ts.map +1 -1
- package/resources/declined-transactions.d.mts +3 -1
- package/resources/declined-transactions.d.mts.map +1 -1
- package/resources/declined-transactions.d.ts +3 -1
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/entities.d.mts +20 -3
- package/resources/entities.d.mts.map +1 -1
- package/resources/entities.d.ts +20 -3
- package/resources/entities.d.ts.map +1 -1
- package/resources/event-subscriptions.d.mts +6 -2
- package/resources/event-subscriptions.d.mts.map +1 -1
- package/resources/event-subscriptions.d.ts +6 -2
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/events.d.mts +4 -2
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +4 -2
- package/resources/events.d.ts.map +1 -1
- package/resources/pending-transactions.d.mts +7 -4
- package/resources/pending-transactions.d.mts.map +1 -1
- package/resources/pending-transactions.d.ts +7 -4
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js +4 -3
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs +4 -3
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/real-time-decisions.d.mts +786 -185
- package/resources/real-time-decisions.d.mts.map +1 -1
- package/resources/real-time-decisions.d.ts +786 -185
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/simulations/card-authorizations.d.mts +3 -1
- package/resources/simulations/card-authorizations.d.mts.map +1 -1
- package/resources/simulations/card-authorizations.d.ts +3 -1
- package/resources/simulations/card-authorizations.d.ts.map +1 -1
- package/resources/simulations/card-balance-inquiries.d.mts +160 -0
- package/resources/simulations/card-balance-inquiries.d.mts.map +1 -0
- package/resources/simulations/card-balance-inquiries.d.ts +160 -0
- package/resources/simulations/card-balance-inquiries.d.ts.map +1 -0
- package/resources/simulations/card-balance-inquiries.js +21 -0
- package/resources/simulations/card-balance-inquiries.js.map +1 -0
- package/resources/simulations/card-balance-inquiries.mjs +17 -0
- package/resources/simulations/card-balance-inquiries.mjs.map +1 -0
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.mts +3 -1
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -1
- package/resources/transactions.d.ts.map +1 -1
- package/src/resources/card-payments.ts +652 -0
- package/src/resources/declined-transactions.ts +3 -0
- package/src/resources/entities.ts +23 -3
- package/src/resources/event-subscriptions.ts +6 -0
- package/src/resources/events.ts +4 -0
- package/src/resources/pending-transactions.ts +7 -3
- package/src/resources/real-time-decisions.ts +893 -177
- package/src/resources/simulations/card-authorizations.ts +4 -1
- package/src/resources/simulations/card-balance-inquiries.ts +212 -0
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/simulations.ts +10 -0
- package/src/resources/transactions.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -277,6 +277,8 @@ export namespace CardAuthorizationCreateParams {
|
|
|
277
277
|
* voucher authorization, where funds are credited to the cardholder.
|
|
278
278
|
* - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
|
|
279
279
|
* from an ATM or a point of sale.
|
|
280
|
+
* - `balance_inquiry` - A balance inquiry transaction is used to check the balance
|
|
281
|
+
* of an account associated with a card.
|
|
280
282
|
*/
|
|
281
283
|
category:
|
|
282
284
|
| 'account_funding'
|
|
@@ -286,7 +288,8 @@ export namespace CardAuthorizationCreateParams {
|
|
|
286
288
|
| 'purchase'
|
|
287
289
|
| 'quasi_cash'
|
|
288
290
|
| 'refund'
|
|
289
|
-
| 'cash_disbursement'
|
|
291
|
+
| 'cash_disbursement'
|
|
292
|
+
| 'balance_inquiry';
|
|
290
293
|
|
|
291
294
|
/**
|
|
292
295
|
* Details related to refund authorizations.
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as CardPaymentsAPI from '../card-payments';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class CardBalanceInquiries extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates a balance inquiry on a [Card](#cards).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const cardPayment =
|
|
15
|
+
* await client.simulations.cardBalanceInquiries.create();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(
|
|
19
|
+
body: CardBalanceInquiryCreateParams,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<CardPaymentsAPI.CardPayment> {
|
|
22
|
+
return this._client.post('/simulations/card_balance_inquiries', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CardBalanceInquiryCreateParams {
|
|
27
|
+
/**
|
|
28
|
+
* The balance amount in cents. The account balance will be used if not provided.
|
|
29
|
+
*/
|
|
30
|
+
balance?: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The identifier of the Card to be authorized.
|
|
34
|
+
*/
|
|
35
|
+
card_id?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Forces a card decline with a specific reason. No real time decision will be
|
|
39
|
+
* sent.
|
|
40
|
+
*
|
|
41
|
+
* - `account_closed` - The account has been closed.
|
|
42
|
+
* - `card_not_active` - The Card was not active.
|
|
43
|
+
* - `card_canceled` - The Card has been canceled.
|
|
44
|
+
* - `physical_card_not_active` - The Physical Card was not active.
|
|
45
|
+
* - `entity_not_active` - The account's entity was not active.
|
|
46
|
+
* - `group_locked` - The account was inactive.
|
|
47
|
+
* - `insufficient_funds` - The Card's Account did not have a sufficient available
|
|
48
|
+
* balance.
|
|
49
|
+
* - `cvv2_mismatch` - The given CVV2 did not match the card's value.
|
|
50
|
+
* - `pin_mismatch` - The given PIN did not match the card's value.
|
|
51
|
+
* - `card_expiration_mismatch` - The given expiration date did not match the
|
|
52
|
+
* card's value. Only applies when a CVV2 is present.
|
|
53
|
+
* - `transaction_not_allowed` - The attempted card transaction is not allowed per
|
|
54
|
+
* Increase's terms.
|
|
55
|
+
* - `breaches_limit` - The transaction was blocked by a Limit.
|
|
56
|
+
* - `webhook_declined` - Your application declined the transaction via webhook.
|
|
57
|
+
* - `webhook_timed_out` - Your application webhook did not respond without the
|
|
58
|
+
* required timeout.
|
|
59
|
+
* - `declined_by_stand_in_processing` - Declined by stand-in processing.
|
|
60
|
+
* - `invalid_physical_card` - The card read had an invalid CVV, dCVV, or
|
|
61
|
+
* authorization request cryptogram.
|
|
62
|
+
* - `missing_original_authorization` - The original card authorization for this
|
|
63
|
+
* incremental authorization does not exist.
|
|
64
|
+
* - `failed_3ds_authentication` - The transaction was declined because the 3DS
|
|
65
|
+
* authentication failed.
|
|
66
|
+
* - `suspected_card_testing` - The transaction was suspected to be used by a card
|
|
67
|
+
* tester to test for valid card numbers.
|
|
68
|
+
* - `suspected_fraud` - The transaction was suspected to be fraudulent. Please
|
|
69
|
+
* reach out to support@increase.com for more information.
|
|
70
|
+
*/
|
|
71
|
+
decline_reason?:
|
|
72
|
+
| 'account_closed'
|
|
73
|
+
| 'card_not_active'
|
|
74
|
+
| 'card_canceled'
|
|
75
|
+
| 'physical_card_not_active'
|
|
76
|
+
| 'entity_not_active'
|
|
77
|
+
| 'group_locked'
|
|
78
|
+
| 'insufficient_funds'
|
|
79
|
+
| 'cvv2_mismatch'
|
|
80
|
+
| 'pin_mismatch'
|
|
81
|
+
| 'card_expiration_mismatch'
|
|
82
|
+
| 'transaction_not_allowed'
|
|
83
|
+
| 'breaches_limit'
|
|
84
|
+
| 'webhook_declined'
|
|
85
|
+
| 'webhook_timed_out'
|
|
86
|
+
| 'declined_by_stand_in_processing'
|
|
87
|
+
| 'invalid_physical_card'
|
|
88
|
+
| 'missing_original_authorization'
|
|
89
|
+
| 'failed_3ds_authentication'
|
|
90
|
+
| 'suspected_card_testing'
|
|
91
|
+
| 'suspected_fraud';
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The identifier of the Digital Wallet Token to be authorized.
|
|
95
|
+
*/
|
|
96
|
+
digital_wallet_token_id?: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The identifier of the Event Subscription to use. If provided, will override the
|
|
100
|
+
* default real time event subscription. Because you can only create one real time
|
|
101
|
+
* decision event subscription, you can use this field to route events to any
|
|
102
|
+
* specified event subscription for testing purposes.
|
|
103
|
+
*/
|
|
104
|
+
event_subscription_id?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
108
|
+
* is transacting with.
|
|
109
|
+
*/
|
|
110
|
+
merchant_acceptor_id?: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
114
|
+
* card is transacting with.
|
|
115
|
+
*/
|
|
116
|
+
merchant_category_code?: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The city the merchant resides in.
|
|
120
|
+
*/
|
|
121
|
+
merchant_city?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The country the merchant resides in.
|
|
125
|
+
*/
|
|
126
|
+
merchant_country?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
130
|
+
*/
|
|
131
|
+
merchant_descriptor?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The state the merchant resides in.
|
|
135
|
+
*/
|
|
136
|
+
merchant_state?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Fields specific to a given card network.
|
|
140
|
+
*/
|
|
141
|
+
network_details?: CardBalanceInquiryCreateParams.NetworkDetails;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The risk score generated by the card network. For Visa this is the Visa Advanced
|
|
145
|
+
* Authorization risk score, from 0 to 99, where 99 is the riskiest.
|
|
146
|
+
*/
|
|
147
|
+
network_risk_score?: number;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The identifier of the Physical Card to be authorized.
|
|
151
|
+
*/
|
|
152
|
+
physical_card_id?: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The terminal identifier (commonly abbreviated as TID) of the terminal the card
|
|
156
|
+
* is transacting with.
|
|
157
|
+
*/
|
|
158
|
+
terminal_id?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export namespace CardBalanceInquiryCreateParams {
|
|
162
|
+
/**
|
|
163
|
+
* Fields specific to a given card network.
|
|
164
|
+
*/
|
|
165
|
+
export interface NetworkDetails {
|
|
166
|
+
/**
|
|
167
|
+
* Fields specific to the Visa network.
|
|
168
|
+
*/
|
|
169
|
+
visa: NetworkDetails.Visa;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export namespace NetworkDetails {
|
|
173
|
+
/**
|
|
174
|
+
* Fields specific to the Visa network.
|
|
175
|
+
*/
|
|
176
|
+
export interface Visa {
|
|
177
|
+
/**
|
|
178
|
+
* The reason code for the stand-in processing.
|
|
179
|
+
*
|
|
180
|
+
* - `issuer_error` - Increase failed to process the authorization in a timely
|
|
181
|
+
* manner.
|
|
182
|
+
* - `invalid_physical_card` - The physical card read had an invalid CVV, dCVV, or
|
|
183
|
+
* authorization request cryptogram.
|
|
184
|
+
* - `invalid_cardholder_authentication_verification_value` - The 3DS cardholder
|
|
185
|
+
* authentication verification value was invalid.
|
|
186
|
+
* - `internal_visa_error` - An internal Visa error occurred. Visa uses this reason
|
|
187
|
+
* code for certain expected occurrences as well, such as Application Transaction
|
|
188
|
+
* Counter (ATC) replays.
|
|
189
|
+
* - `merchant_transaction_advisory_service_authentication_required` - The merchant
|
|
190
|
+
* has enabled Visa's Transaction Advisory Service and requires further
|
|
191
|
+
* authentication to perform the transaction. In practice this is often utilized
|
|
192
|
+
* at fuel pumps to tell the cardholder to see the cashier.
|
|
193
|
+
* - `payment_fraud_disruption_acquirer_block` - The transaction was blocked by
|
|
194
|
+
* Visa's Payment Fraud Disruption service due to fraudulent Acquirer behavior,
|
|
195
|
+
* such as card testing.
|
|
196
|
+
* - `other` - An unspecific reason for stand-in processing.
|
|
197
|
+
*/
|
|
198
|
+
stand_in_processing_reason?:
|
|
199
|
+
| 'issuer_error'
|
|
200
|
+
| 'invalid_physical_card'
|
|
201
|
+
| 'invalid_cardholder_authentication_verification_value'
|
|
202
|
+
| 'internal_visa_error'
|
|
203
|
+
| 'merchant_transaction_advisory_service_authentication_required'
|
|
204
|
+
| 'payment_fraud_disruption_acquirer_block'
|
|
205
|
+
| 'other';
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export declare namespace CardBalanceInquiries {
|
|
211
|
+
export { type CardBalanceInquiryCreateParams as CardBalanceInquiryCreateParams };
|
|
212
|
+
}
|
|
@@ -17,6 +17,7 @@ export {
|
|
|
17
17
|
type CardAuthorizationCreateResponse,
|
|
18
18
|
type CardAuthorizationCreateParams,
|
|
19
19
|
} from './card-authorizations';
|
|
20
|
+
export { CardBalanceInquiries, type CardBalanceInquiryCreateParams } from './card-balance-inquiries';
|
|
20
21
|
export { CardDisputes, type CardDisputeActionParams } from './card-disputes';
|
|
21
22
|
export { CardFuelConfirmations, type CardFuelConfirmationCreateParams } from './card-fuel-confirmations';
|
|
22
23
|
export { CardIncrements, type CardIncrementCreateParams } from './card-increments';
|
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
CardAuthorizationCreateResponse,
|
|
24
24
|
CardAuthorizations,
|
|
25
25
|
} from './card-authorizations';
|
|
26
|
+
import * as CardBalanceInquiriesAPI from './card-balance-inquiries';
|
|
27
|
+
import { CardBalanceInquiries, CardBalanceInquiryCreateParams } from './card-balance-inquiries';
|
|
26
28
|
import * as CardDisputesAPI from './card-disputes';
|
|
27
29
|
import { CardDisputeActionParams, CardDisputes } from './card-disputes';
|
|
28
30
|
import * as CardFuelConfirmationsAPI from './card-fuel-confirmations';
|
|
@@ -97,6 +99,8 @@ export class Simulations extends APIResource {
|
|
|
97
99
|
cardAuthorizations: CardAuthorizationsAPI.CardAuthorizations = new CardAuthorizationsAPI.CardAuthorizations(
|
|
98
100
|
this._client,
|
|
99
101
|
);
|
|
102
|
+
cardBalanceInquiries: CardBalanceInquiriesAPI.CardBalanceInquiries =
|
|
103
|
+
new CardBalanceInquiriesAPI.CardBalanceInquiries(this._client);
|
|
100
104
|
cardAuthorizationExpirations: CardAuthorizationExpirationsAPI.CardAuthorizationExpirations =
|
|
101
105
|
new CardAuthorizationExpirationsAPI.CardAuthorizationExpirations(this._client);
|
|
102
106
|
cardSettlements: CardSettlementsAPI.CardSettlements = new CardSettlementsAPI.CardSettlements(this._client);
|
|
@@ -145,6 +149,7 @@ export class Simulations extends APIResource {
|
|
|
145
149
|
Simulations.InterestPayments = InterestPayments;
|
|
146
150
|
Simulations.AccountTransfers = AccountTransfers;
|
|
147
151
|
Simulations.CardAuthorizations = CardAuthorizations;
|
|
152
|
+
Simulations.CardBalanceInquiries = CardBalanceInquiries;
|
|
148
153
|
Simulations.CardAuthorizationExpirations = CardAuthorizationExpirations;
|
|
149
154
|
Simulations.CardSettlements = CardSettlements;
|
|
150
155
|
Simulations.CardReversals = CardReversals;
|
|
@@ -187,6 +192,11 @@ export declare namespace Simulations {
|
|
|
187
192
|
type CardAuthorizationCreateParams as CardAuthorizationCreateParams,
|
|
188
193
|
};
|
|
189
194
|
|
|
195
|
+
export {
|
|
196
|
+
CardBalanceInquiries as CardBalanceInquiries,
|
|
197
|
+
type CardBalanceInquiryCreateParams as CardBalanceInquiryCreateParams,
|
|
198
|
+
};
|
|
199
|
+
|
|
190
200
|
export {
|
|
191
201
|
CardAuthorizationExpirations as CardAuthorizationExpirations,
|
|
192
202
|
type CardAuthorizationExpirationCreateParams as CardAuthorizationExpirationCreateParams,
|
|
@@ -1192,6 +1192,8 @@ export namespace Transaction {
|
|
|
1192
1192
|
* voucher authorization, where funds are credited to the cardholder.
|
|
1193
1193
|
* - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
|
|
1194
1194
|
* from an ATM or a point of sale.
|
|
1195
|
+
* - `balance_inquiry` - A balance inquiry transaction is used to check the balance
|
|
1196
|
+
* of an account associated with a card.
|
|
1195
1197
|
* - `unknown` - The processing category is unknown.
|
|
1196
1198
|
*/
|
|
1197
1199
|
processing_category:
|
|
@@ -1203,6 +1205,7 @@ export namespace Transaction {
|
|
|
1203
1205
|
| 'quasi_cash'
|
|
1204
1206
|
| 'refund'
|
|
1205
1207
|
| 'cash_disbursement'
|
|
1208
|
+
| 'balance_inquiry'
|
|
1206
1209
|
| 'unknown';
|
|
1207
1210
|
|
|
1208
1211
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.379.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.379.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.379.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.379.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|