chargebee 2.28.0 → 2.30.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/.github/ISSUE_TEMPLATE/bug_report.yml +81 -0
- package/.github/ISSUE_TEMPLATE/config.yml +6 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +34 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +8 -0
- package/.github/workflows/greeting.yml +47 -0
- package/CHANGELOG.md +59 -0
- package/SECURITY.md +8 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +0 -14
- package/package.json +1 -1
- package/types/core.d.ts +4 -4
- package/types/resources/AttachedItem.d.ts +88 -88
- package/types/resources/Card.d.ts +68 -68
- package/types/resources/Comment.d.ts +50 -44
- package/types/resources/Coupon.d.ts +242 -207
- package/types/resources/CouponSet.d.ts +72 -68
- package/types/resources/CreditNote.d.ts +612 -236
- package/types/resources/Customer.d.ts +655 -513
- package/types/resources/DifferentialPrice.d.ts +99 -74
- package/types/resources/EntitlementOverride.d.ts +27 -12
- package/types/resources/Estimate.d.ts +450 -450
- package/types/resources/Event.d.ts +30 -12
- package/types/resources/Export.d.ts +200 -200
- package/types/resources/Feature.d.ts +66 -35
- package/types/resources/Gift.d.ts +54 -44
- package/types/resources/HostedPage.d.ts +381 -381
- package/types/resources/InAppSubscription.d.ts +94 -90
- package/types/resources/Invoice.d.ts +1242 -660
- package/types/resources/Item.d.ts +148 -142
- package/types/resources/ItemEntitlement.d.ts +36 -36
- package/types/resources/ItemFamily.d.ts +45 -45
- package/types/resources/ItemPrice.d.ts +317 -273
- package/types/resources/PaymentIntent.d.ts +60 -60
- package/types/resources/PaymentReferenceNumber.d.ts +1 -1
- package/types/resources/PaymentVoucher.d.ts +74 -59
- package/types/resources/PortalSession.d.ts +45 -20
- package/types/resources/PromotionalCredit.d.ts +68 -68
- package/types/resources/Purchase.d.ts +3 -3
- package/types/resources/Quote.d.ts +655 -366
- package/types/resources/QuoteLineGroup.d.ts +245 -0
- package/types/resources/QuotedCharge.d.ts +170 -0
- package/types/resources/QuotedSubscription.d.ts +219 -0
- package/types/resources/SiteMigrationDetail.d.ts +7 -7
- package/types/resources/Subscription.d.ts +1219 -932
- package/types/resources/SubscriptionEntitlement.d.ts +33 -12
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -1
- package/types/resources/TimeMachine.d.ts +15 -15
- package/types/resources/Token.d.ts +0 -116
- package/types/resources/Transaction.d.ts +229 -112
- package/types/resources/UnbilledCharge.d.ts +112 -67
- package/types/resources/Usage.d.ts +46 -47
- package/types/resources/VirtualBankAccount.d.ts +66 -66
- package/types/resources/Media.d.ts +0 -33
- package/types/resources/NonSubscription.d.ts +0 -65
|
@@ -78,8 +78,6 @@ declare module 'chargebee' {
|
|
|
78
78
|
}
|
|
79
79
|
export namespace SubscriptionEntitlement {
|
|
80
80
|
export class SubscriptionEntitlementResource {
|
|
81
|
-
set_subscription_entitlement_availability(subscription_id:string, input:SetSubscriptionEntitlementAvailabilityInputParam):ChargebeeRequest<SetSubscriptionEntitlementAvailabilityResponse>;
|
|
82
|
-
|
|
83
81
|
/**
|
|
84
82
|
* @description Retrieves the list of `subscription_entitlements` for the [subscription](/docs/api/subscriptions).
|
|
85
83
|
**Note:**
|
|
@@ -89,15 +87,13 @@ The `components` attribute is not returned for any of the `subscr
|
|
|
89
87
|
*/
|
|
90
88
|
|
|
91
89
|
subscription_entitlements_for_subscription(subscription_id:string, input?:SubscriptionEntitlementsForSubscriptionInputParam):ChargebeeRequest<SubscriptionEntitlementsForSubscriptionResponse>;
|
|
92
|
-
}
|
|
93
|
-
export interface SetSubscriptionEntitlementAvailabilityResponse {
|
|
94
|
-
subscription_entitlement:SubscriptionEntitlement;
|
|
95
|
-
}
|
|
96
|
-
export interface SetSubscriptionEntitlementAvailabilityInputParam {
|
|
97
90
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
91
|
+
/**
|
|
92
|
+
* @description Enables or disables specific `subscription_entitlements` for a subscription.
|
|
93
|
+
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
set_subscription_entitlement_availability(subscription_id:string, input:SetSubscriptionEntitlementAvailabilityInputParam):ChargebeeRequest<SetSubscriptionEntitlementAvailabilityResponse>;
|
|
101
97
|
}
|
|
102
98
|
export interface SubscriptionEntitlementsForSubscriptionResponse {
|
|
103
99
|
/**
|
|
@@ -123,19 +119,44 @@ The `components` attribute is not returned for any of the `subscr
|
|
|
123
119
|
export interface SubscriptionEntitlementsForSubscriptionInputParam {
|
|
124
120
|
[key : string]: any;
|
|
125
121
|
/**
|
|
126
|
-
* @description
|
|
122
|
+
* @description Retrieves the list of `subscription_entitlements` for the [subscription](/docs/api/subscriptions).
|
|
123
|
+
**Note:**
|
|
124
|
+
|
|
125
|
+
The `components` attribute is not returned for any of the `subscription_entitlements`. Use the retrieve operation(coming soon) to obtain the `components`.
|
|
127
126
|
|
|
128
127
|
*/
|
|
129
128
|
|
|
130
129
|
limit?:number;
|
|
131
130
|
|
|
132
131
|
/**
|
|
133
|
-
* @description
|
|
132
|
+
* @description Retrieves the list of `subscription_entitlements` for the [subscription](/docs/api/subscriptions).
|
|
133
|
+
**Note:**
|
|
134
|
+
|
|
135
|
+
The `components` attribute is not returned for any of the `subscription_entitlements`. Use the retrieve operation(coming soon) to obtain the `components`.
|
|
134
136
|
|
|
135
137
|
*/
|
|
136
138
|
|
|
137
139
|
offset?:string;
|
|
138
140
|
}
|
|
141
|
+
export interface SetSubscriptionEntitlementAvailabilityResponse {
|
|
142
|
+
subscription_entitlement:SubscriptionEntitlement;
|
|
143
|
+
}
|
|
144
|
+
export interface SetSubscriptionEntitlementAvailabilityInputParam {
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @description Specifies whether the `subscription_entitlements` are to be enabled or disabled.
|
|
148
|
+
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
is_enabled:boolean;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @description Parameters for subscription_entitlements
|
|
155
|
+
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
subscription_entitlements?:{feature_id:string}[];
|
|
159
|
+
}
|
|
139
160
|
export interface Component {
|
|
140
161
|
/**
|
|
141
162
|
* @description When a subscription entitlement has been explicitly overridden, this object contains the details of said override. An `entitlement_override` can be [temporary](/docs/api/entitlement_overrides#entitlement_override_expires_at) such that it expires at some point in time and is no longer returned.
|
|
@@ -10,7 +10,7 @@ declare module 'chargebee' {
|
|
|
10
10
|
type:Type;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* @description Name of the gateway this card is stored with. \* bluesnap - BlueSnap is a payment gateway. \* tco - 2Checkout is a payment gateway. \* first_data_global - First Data Global Gateway Virtual Terminal Account \* exact - Exact Payments is a payment gateway. \* bluepay - BluePay is a payment gateway. \* paypal_express_checkout - PayPal Express Checkout is a payment gateway. \* eway - eWAY Account is a payment gateway. \* paypal_payflow_pro - PayPal Payflow Pro is a payment gateway. \* razorpay - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc. \* global_payments - Global Payments is a payment service provider. \* amazon_payments - Amazon Payments is a payment service provider. \* not_applicable - Indicates that payment gateway is not applicable for this resource. \* checkout_com - Checkout.com is a payment gateway. \* adyen - Adyen is a payment gateway. \* braintree - Braintree is a payment gateway. \* nmi - NMI is a payment gateway. \* quickbooks - Intuit QuickBooks Payments gateway \* wepay - WePay is a payment gateway. \* worldpay - WorldPay is a payment gateway \* wirecard - WireCard Account is a payment service provider. \* chargebee_payments - Chargebee Payments gateway \* sage_pay - Sage Pay is a payment gateway. \* moneris_us - Moneris USA is a payment gateway. \* pin - Pin is a payment gateway \* authorize_net - Authorize.net is a payment gateway \* elavon - Elavon Virtual Merchant is a payment solution. \* paypal_pro - PayPal Pro Account is a payment gateway. \* orbital - Chase Paymentech(Orbital) is a payment gateway. \* paypal - PayPal Commerce is a payment gateway. \* beanstream - Bambora(formerly known as Beanstream) is a payment gateway. \* hdfc - HDFC Account is a payment gateway. \* ingenico_direct - Worldline Online Payments is a payment gateway. \* ogone - Ingenico ePayments (formerly known as Ogone) is a payment gateway. \* migs - MasterCard Internet Gateway Service payment gateway. \* stripe - Stripe is a payment gateway. \* vantiv - Vantiv is a payment gateway. \* moneris - Moneris is a payment gateway. \* chargebee - Chargebee test gateway. \* eway_rapid - eWAY Rapid is a payment gateway. \* gocardless - GoCardless is a payment service provider. \* mollie - Mollie is a payment gateway. \* paymill - PAYMILL is a payment gateway. \* balanced_payments - Balanced is a payment gateway \* cybersource - CyberSource is a payment gateway.
|
|
13
|
+
* @description Name of the gateway this card is stored with. \* ecentric - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities. \* bluesnap - BlueSnap is a payment gateway. \* tco - 2Checkout is a payment gateway. \* first_data_global - First Data Global Gateway Virtual Terminal Account \* exact - Exact Payments is a payment gateway. \* bluepay - BluePay is a payment gateway. \* paypal_express_checkout - PayPal Express Checkout is a payment gateway. \* eway - eWAY Account is a payment gateway. \* metrics_global - Metrics global is a leading payment service provider providing unified payment services in the US. \* paypal_payflow_pro - PayPal Payflow Pro is a payment gateway. \* razorpay - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc. \* global_payments - Global Payments is a payment service provider. \* amazon_payments - Amazon Payments is a payment service provider. \* not_applicable - Indicates that payment gateway is not applicable for this resource. \* windcave - Windcave provides an end to end payment processing solution in ANZ and other leading global markets. \* checkout_com - Checkout.com is a payment gateway. \* adyen - Adyen is a payment gateway. \* braintree - Braintree is a payment gateway. \* nmi - NMI is a payment gateway. \* quickbooks - Intuit QuickBooks Payments gateway \* wepay - WePay is a payment gateway. \* worldpay - WorldPay is a payment gateway \* wirecard - WireCard Account is a payment service provider. \* chargebee_payments - Chargebee Payments gateway \* sage_pay - Sage Pay is a payment gateway. \* moneris_us - Moneris USA is a payment gateway. \* pin - Pin is a payment gateway \* authorize_net - Authorize.net is a payment gateway \* elavon - Elavon Virtual Merchant is a payment solution. \* paypal_pro - PayPal Pro Account is a payment gateway. \* orbital - Chase Paymentech(Orbital) is a payment gateway. \* paypal - PayPal Commerce is a payment gateway. \* beanstream - Bambora(formerly known as Beanstream) is a payment gateway. \* hdfc - HDFC Account is a payment gateway. \* ingenico_direct - Worldline Online Payments is a payment gateway. \* ogone - Ingenico ePayments (formerly known as Ogone) is a payment gateway. \* migs - MasterCard Internet Gateway Service payment gateway. \* stripe - Stripe is a payment gateway. \* vantiv - Vantiv is a payment gateway. \* moneris - Moneris is a payment gateway. \* bank_of_america - Bank of America Gateway \* chargebee - Chargebee test gateway. \* eway_rapid - eWAY Rapid is a payment gateway. \* gocardless - GoCardless is a payment service provider. \* mollie - Mollie is a payment gateway. \* paymill - PAYMILL is a payment gateway. \* balanced_payments - Balanced is a payment gateway \* cybersource - CyberSource is a payment gateway.
|
|
14
14
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
@@ -62,49 +62,49 @@ declare module 'chargebee' {
|
|
|
62
62
|
retrieve(time_machine_name:string):ChargebeeRequest<RetrieveResponse>;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* @description
|
|
65
|
+
* @description Restart the time machine. This will clear the "customer" data like customer details, subscriptions, invoices, transactions. Also a time travel is initiated to travel back to specified genesis time.
|
|
66
|
+
|
|
67
|
+
**Note:** This API call is asynchronous. You need to check if the "start afresh" operation has completed by checking if the time travel status is **successful** by retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for time travel completion** function provided as a instance method in the library. Use method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **WaitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes.
|
|
66
68
|
|
|
67
69
|
*/
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
start_afresh(time_machine_name:string, input?:StartAfreshInputParam):ChargebeeRequest<StartAfreshResponse>;
|
|
70
72
|
|
|
71
73
|
/**
|
|
72
|
-
* @description
|
|
73
|
-
|
|
74
|
-
**Note:** This API call is asynchronous. You need to check if the "start afresh" operation has completed by checking if the time travel status is **successful** by retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for time travel completion** function provided as a instance method in the library. Use method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **WaitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes.
|
|
74
|
+
* @description Travel forward in time. This operation is **asynchronous** . You need to check if the "start afresh" operation has completed by checking if the time travel status is **successful** by retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests. Use method **waitForTimeTravelCompletion()** on the returned time_machine resource which will block until the time travel completes.
|
|
75
75
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
travel_forward(time_machine_name:string, input?:TravelForwardInputParam):ChargebeeRequest<TravelForwardResponse>;
|
|
79
79
|
}
|
|
80
80
|
export interface RetrieveResponse {
|
|
81
81
|
time_machine:TimeMachine;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export interface
|
|
84
|
+
export interface StartAfreshResponse {
|
|
85
85
|
time_machine:TimeMachine;
|
|
86
86
|
}
|
|
87
|
-
export interface
|
|
87
|
+
export interface StartAfreshInputParam {
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* @description The
|
|
90
|
+
* @description The genesis time to travel back as part of the reset operation. If not provided, then the travel is set to 6 months in the past.
|
|
91
|
+
**Note:** Can only be in the past.
|
|
91
92
|
|
|
92
93
|
*/
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
genesis_time?:number;
|
|
95
96
|
}
|
|
96
|
-
export interface
|
|
97
|
+
export interface TravelForwardResponse {
|
|
97
98
|
time_machine:TimeMachine;
|
|
98
99
|
}
|
|
99
|
-
export interface
|
|
100
|
+
export interface TravelForwardInputParam {
|
|
100
101
|
|
|
101
102
|
/**
|
|
102
|
-
* @description The
|
|
103
|
-
**Note:** Can only be in the past.
|
|
103
|
+
* @description The **time** to travel to. Should be between the 'current' destination time of the time machine and present time.
|
|
104
104
|
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
destination_time?:number;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
}
|
|
@@ -86,120 +86,4 @@ declare module 'chargebee' {
|
|
|
86
86
|
|
|
87
87
|
expired_at?:number;
|
|
88
88
|
}
|
|
89
|
-
export namespace Token {
|
|
90
|
-
export class TokenResource {
|
|
91
|
-
/**
|
|
92
|
-
* @description Generate a token using the one time token created by payment gateways for any specific payment method.
|
|
93
|
-
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
create_using_temp_token(input:CreateUsingTempTokenInputParam):ChargebeeRequest<CreateUsingTempTokenResponse>;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @description Generate a token that holds card related information.
|
|
100
|
-
|
|
101
|
-
*/
|
|
102
|
-
|
|
103
|
-
create_for_card(input?:CreateForCardInputParam):ChargebeeRequest<CreateForCardResponse>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @description Retrieve a token using token ID.
|
|
107
|
-
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
retrieve(cb_token_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
111
|
-
}
|
|
112
|
-
export interface CreateUsingTempTokenResponse {
|
|
113
|
-
token:Token;
|
|
114
|
-
}
|
|
115
|
-
export interface CreateUsingTempTokenInputParam {
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @description The gateway account to which the token is associated.
|
|
119
|
-
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
gateway_account_id?:string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @description Type of payment method of the token. \* google_pay - Payments made via Google Pay. \* apple_pay - Payments made via Apple Pay. \* unionpay - Payments made via UnionPay. \* ideal - Payments made via iDEAL. \* amazon_payments - Payments made via Amazon Payments. \* bancontact - Payments made via Bancontact Card. \* netbanking_emandates - Netbanking (eMandates) Payments. \* alipay - Payments made via Alipay. \* card - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \* dotpay - Payments made via Dotpay. \* giropay - Payments made via giropay. \* upi - UPI Payments. \* sofort - Payments made via Sofort. \* direct_debit - Represents bank account for which the direct debit or ACH agreement/mandate is created. \* generic - Payments made via Generic Payment Method. \* wechat_pay - Payments made via WeChat Pay. \* paypal_express_checkout - Payments made via PayPal Express Checkout.
|
|
126
|
-
|
|
127
|
-
*/
|
|
128
|
-
|
|
129
|
-
payment_method_type:PaymentMethodType;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @description Single-use token created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet, card details or direct debit. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.
|
|
133
|
-
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
id_at_vault:string;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @description Represents what type of object at gateway eg. "token" in case Stripe token and "source" in case of Stripe Source.
|
|
140
|
-
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
gw_obj_type?:string;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @description Used to derieve Bank Account Scheme by default will take site default currency.
|
|
147
|
-
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
currency_code?:string;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @description * `checkout_com`: While adding a new payment method using [permanent token](./payment_sources?#create_using_permanent_token) or passing raw card details to Checkout.com, `document` ID and `country_of_residence` are required to support payments through [dLocal](https://docs.checkout.com/payment-methods/cards/dlocal).
|
|
154
|
-
* `payer`: User related information.
|
|
155
|
-
* `country_of_residence`: This is required since the billing country associated with the user's payment method may not be the same as their country of residence. Hence the user's country of residence needs to be specified. The country code should be a [two-character ISO code](https://docs.checkout.com/resources/codes/country-codes).
|
|
156
|
-
* `document`: Document ID is the user's [identification number](https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents) based on their country.
|
|
157
|
-
* `bluesnap`: While passing raw card details to BlueSnap, if `fraud_session_id` is added, [additional validation](https://developers.bluesnap.com/docs/fraud-prevention) is performed to avoid fraudulent transactions.
|
|
158
|
-
* `fraud`: Fraud identification related information.
|
|
159
|
-
* `fraud_session_id`: Your [BlueSnap fraud session ID](https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector) required to perform anti-fraud validation.
|
|
160
|
-
* `braintree`: While passing raw card details to Braintree, your `fraud_merchant_id` and the user's `device_session_id` can be added to perform [additional validation](https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data) and avoid fraudulent transactions.
|
|
161
|
-
* `fraud`: Fraud identification related information.
|
|
162
|
-
* `device_session_id`: Session ID associated with the user's device.
|
|
163
|
-
* `fraud_merchant_id`: Your [merchant ID](https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data) for fraud detection.
|
|
164
|
-
* `chargebee_payments`: While passing raw card details to Chargebee Payments, if `fraud_session_id` is added, additional validation is performed to avoid fraudulent transactions.
|
|
165
|
-
* `fraud`: Fraud identification related information.
|
|
166
|
-
* `fraud_session_id`: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.
|
|
167
|
-
.
|
|
168
|
-
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
additional_information?:object;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @description Parameters for token_additional_detail
|
|
175
|
-
|
|
176
|
-
*/
|
|
177
|
-
|
|
178
|
-
token_additional_detail?:{expiry_month?:number,expiry_year?:number,first_name?:string,last_name?:string};
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @description Parameters for token_billing_address
|
|
182
|
-
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
|
-
token_billing_address?:{city?:string,country_code?:string,line1?:string,line2?:string,state?:string,state_code?:string,zip?:string};
|
|
186
|
-
}
|
|
187
|
-
export interface CreateForCardResponse {
|
|
188
|
-
token:Token;
|
|
189
|
-
}
|
|
190
|
-
export interface CreateForCardInputParam {
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @description Parameters for card
|
|
194
|
-
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
card?:{additional_information?:object,billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,card_type?:'discover' | 'bancontact' | 'other' | 'visa' | 'jcb' | 'diners_club' | 'mastercard' | 'not_applicable' | 'american_express',cvv?:string,expiry_month:number,expiry_year:number,first_name?:string,gateway_account_id?:string,last_name?:string,number:string};
|
|
198
|
-
}
|
|
199
|
-
export interface RetrieveResponse {
|
|
200
|
-
token:Token;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
89
|
}
|