chargebee 3.0.0-beta.5 → 3.0.1
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 +6 -0
- package/README.md +9 -8
- package/cjs/environment.js +1 -1
- package/esm/environment.js +1 -1
- package/package.json +1 -1
- package/types/core.d.ts +0 -574
- package/types/index.d.ts +0 -167
- package/types/resources/Address.d.ts +0 -71
- package/types/resources/AdvanceInvoiceSchedule.d.ts +0 -29
- package/types/resources/AttachedItem.d.ts +0 -114
- package/types/resources/Attribute.d.ts +0 -9
- package/types/resources/BusinessEntity.d.ts +0 -64
- package/types/resources/BusinessEntityTransfer.d.ts +0 -15
- package/types/resources/Card.d.ts +0 -171
- package/types/resources/Comment.d.ts +0 -89
- package/types/resources/Contact.d.ts +0 -16
- package/types/resources/ContractTerm.d.ts +0 -19
- package/types/resources/Coupon.d.ts +0 -314
- package/types/resources/CouponCode.d.ts +0 -70
- package/types/resources/CouponSet.d.ts +0 -111
- package/types/resources/CreditNote.d.ts +0 -628
- package/types/resources/CreditNoteEstimate.d.ts +0 -143
- package/types/resources/Currency.d.ts +0 -91
- package/types/resources/Customer.d.ts +0 -962
- package/types/resources/CustomerEntitlement.d.ts +0 -36
- package/types/resources/DifferentialPrice.d.ts +0 -142
- package/types/resources/Discount.d.ts +0 -24
- package/types/resources/Download.d.ts +0 -10
- package/types/resources/Entitlement.d.ts +0 -66
- package/types/resources/EntitlementOverride.d.ts +0 -76
- package/types/resources/Estimate.d.ts +0 -1237
- package/types/resources/Event.d.ts +0 -81
- package/types/resources/Export.d.ts +0 -607
- package/types/resources/Feature.d.ts +0 -142
- package/types/resources/GatewayErrorDetail.d.ts +0 -20
- package/types/resources/Gift.d.ts +0 -296
- package/types/resources/Hierarchy.d.ts +0 -12
- package/types/resources/HostedPage.d.ts +0 -1112
- package/types/resources/ImpactedItem.d.ts +0 -20
- package/types/resources/ImpactedItemPrice.d.ts +0 -20
- package/types/resources/ImpactedSubscription.d.ts +0 -20
- package/types/resources/InAppSubscription.d.ts +0 -116
- package/types/resources/Invoice.d.ts +0 -1691
- package/types/resources/InvoiceEstimate.d.ts +0 -143
- package/types/resources/Item.d.ts +0 -204
- package/types/resources/ItemEntitlement.d.ts +0 -103
- package/types/resources/ItemFamily.d.ts +0 -89
- package/types/resources/ItemPrice.d.ts +0 -328
- package/types/resources/Metadata.d.ts +0 -8
- package/types/resources/NonSubscription.d.ts +0 -48
- package/types/resources/Order.d.ts +0 -586
- package/types/resources/PaymentIntent.d.ts +0 -178
- package/types/resources/PaymentReferenceNumber.d.ts +0 -11
- package/types/resources/PaymentSchedule.d.ts +0 -28
- package/types/resources/PaymentScheduleEstimate.d.ts +0 -25
- package/types/resources/PaymentScheduleScheme.d.ts +0 -62
- package/types/resources/PaymentSource.d.ts +0 -529
- package/types/resources/PaymentVoucher.d.ts +0 -107
- package/types/resources/PortalSession.d.ts +0 -88
- package/types/resources/PriceVariant.d.ts +0 -112
- package/types/resources/PricingPageSession.d.ts +0 -130
- package/types/resources/PromotionalCredit.d.ts +0 -111
- package/types/resources/Purchase.d.ts +0 -202
- package/types/resources/Quote.d.ts +0 -1467
- package/types/resources/QuoteLineGroup.d.ts +0 -136
- package/types/resources/QuotedCharge.d.ts +0 -56
- package/types/resources/QuotedSubscription.d.ts +0 -114
- package/types/resources/Ramp.d.ts +0 -260
- package/types/resources/ResourceMigration.d.ts +0 -36
- package/types/resources/SiteMigrationDetail.d.ts +0 -46
- package/types/resources/Subscription.d.ts +0 -2443
- package/types/resources/SubscriptionEntitlement.d.ts +0 -79
- package/types/resources/SubscriptionEstimate.d.ts +0 -59
- package/types/resources/TaxWithheld.d.ts +0 -19
- package/types/resources/ThirdPartyPaymentMethod.d.ts +0 -11
- package/types/resources/TimeMachine.d.ts +0 -57
- package/types/resources/Token.d.ts +0 -19
- package/types/resources/Transaction.d.ts +0 -313
- package/types/resources/UnbilledCharge.d.ts +0 -209
- package/types/resources/Usage.d.ts +0 -113
- package/types/resources/VirtualBankAccount.d.ts +0 -125
- package/types/resources/filter.d.ts +0 -52
package/types/index.d.ts
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
///<reference path='./resources/Address.d.ts' />
|
|
2
|
-
///<reference path='./resources/AdvanceInvoiceSchedule.d.ts' />
|
|
3
|
-
///<reference path='./resources/AttachedItem.d.ts' />
|
|
4
|
-
///<reference path='./resources/Attribute.d.ts' />
|
|
5
|
-
///<reference path='./resources/BusinessEntity.d.ts' />
|
|
6
|
-
///<reference path='./resources/BusinessEntityTransfer.d.ts' />
|
|
7
|
-
///<reference path='./resources/Card.d.ts' />
|
|
8
|
-
///<reference path='./resources/Comment.d.ts' />
|
|
9
|
-
///<reference path='./resources/Contact.d.ts' />
|
|
10
|
-
///<reference path='./resources/ContractTerm.d.ts' />
|
|
11
|
-
///<reference path='./resources/Coupon.d.ts' />
|
|
12
|
-
///<reference path='./resources/CouponCode.d.ts' />
|
|
13
|
-
///<reference path='./resources/CouponSet.d.ts' />
|
|
14
|
-
///<reference path='./resources/CreditNote.d.ts' />
|
|
15
|
-
///<reference path='./resources/CreditNoteEstimate.d.ts' />
|
|
16
|
-
///<reference path='./resources/Currency.d.ts' />
|
|
17
|
-
///<reference path='./resources/Customer.d.ts' />
|
|
18
|
-
///<reference path='./resources/CustomerEntitlement.d.ts' />
|
|
19
|
-
///<reference path='./resources/DifferentialPrice.d.ts' />
|
|
20
|
-
///<reference path='./resources/Discount.d.ts' />
|
|
21
|
-
///<reference path='./resources/Download.d.ts' />
|
|
22
|
-
///<reference path='./resources/Entitlement.d.ts' />
|
|
23
|
-
///<reference path='./resources/EntitlementOverride.d.ts' />
|
|
24
|
-
///<reference path='./resources/Estimate.d.ts' />
|
|
25
|
-
///<reference path='./resources/Event.d.ts' />
|
|
26
|
-
///<reference path='./resources/Export.d.ts' />
|
|
27
|
-
///<reference path='./resources/Feature.d.ts' />
|
|
28
|
-
///<reference path='./resources/GatewayErrorDetail.d.ts' />
|
|
29
|
-
///<reference path='./resources/Gift.d.ts' />
|
|
30
|
-
///<reference path='./resources/Hierarchy.d.ts' />
|
|
31
|
-
///<reference path='./resources/HostedPage.d.ts' />
|
|
32
|
-
///<reference path='./resources/ImpactedItem.d.ts' />
|
|
33
|
-
///<reference path='./resources/ImpactedItemPrice.d.ts' />
|
|
34
|
-
///<reference path='./resources/ImpactedSubscription.d.ts' />
|
|
35
|
-
///<reference path='./resources/InAppSubscription.d.ts' />
|
|
36
|
-
///<reference path='./resources/Invoice.d.ts' />
|
|
37
|
-
///<reference path='./resources/InvoiceEstimate.d.ts' />
|
|
38
|
-
///<reference path='./resources/Item.d.ts' />
|
|
39
|
-
///<reference path='./resources/ItemEntitlement.d.ts' />
|
|
40
|
-
///<reference path='./resources/ItemFamily.d.ts' />
|
|
41
|
-
///<reference path='./resources/ItemPrice.d.ts' />
|
|
42
|
-
///<reference path='./resources/Metadata.d.ts' />
|
|
43
|
-
///<reference path='./resources/NonSubscription.d.ts' />
|
|
44
|
-
///<reference path='./resources/Order.d.ts' />
|
|
45
|
-
///<reference path='./resources/PaymentIntent.d.ts' />
|
|
46
|
-
///<reference path='./resources/PaymentReferenceNumber.d.ts' />
|
|
47
|
-
///<reference path='./resources/PaymentSchedule.d.ts' />
|
|
48
|
-
///<reference path='./resources/PaymentScheduleEstimate.d.ts' />
|
|
49
|
-
///<reference path='./resources/PaymentScheduleScheme.d.ts' />
|
|
50
|
-
///<reference path='./resources/PaymentSource.d.ts' />
|
|
51
|
-
///<reference path='./resources/PaymentVoucher.d.ts' />
|
|
52
|
-
///<reference path='./resources/PortalSession.d.ts' />
|
|
53
|
-
///<reference path='./resources/PriceVariant.d.ts' />
|
|
54
|
-
///<reference path='./resources/PricingPageSession.d.ts' />
|
|
55
|
-
///<reference path='./resources/PromotionalCredit.d.ts' />
|
|
56
|
-
///<reference path='./resources/Purchase.d.ts' />
|
|
57
|
-
///<reference path='./resources/Quote.d.ts' />
|
|
58
|
-
///<reference path='./resources/QuoteLineGroup.d.ts' />
|
|
59
|
-
///<reference path='./resources/QuotedCharge.d.ts' />
|
|
60
|
-
///<reference path='./resources/QuotedSubscription.d.ts' />
|
|
61
|
-
///<reference path='./resources/Ramp.d.ts' />
|
|
62
|
-
///<reference path='./resources/ResourceMigration.d.ts' />
|
|
63
|
-
///<reference path='./resources/SiteMigrationDetail.d.ts' />
|
|
64
|
-
///<reference path='./resources/Subscription.d.ts' />
|
|
65
|
-
///<reference path='./resources/SubscriptionEntitlement.d.ts' />
|
|
66
|
-
///<reference path='./resources/SubscriptionEstimate.d.ts' />
|
|
67
|
-
///<reference path='./resources/TaxWithheld.d.ts' />
|
|
68
|
-
///<reference path='./resources/ThirdPartyPaymentMethod.d.ts' />
|
|
69
|
-
///<reference path='./resources/TimeMachine.d.ts' />
|
|
70
|
-
///<reference path='./resources/Token.d.ts' />
|
|
71
|
-
///<reference path='./resources/Transaction.d.ts' />
|
|
72
|
-
///<reference path='./resources/UnbilledCharge.d.ts' />
|
|
73
|
-
///<reference path='./resources/Usage.d.ts' />
|
|
74
|
-
///<reference path='./resources/VirtualBankAccount.d.ts' />
|
|
75
|
-
|
|
76
|
-
export type Config = {
|
|
77
|
-
/**
|
|
78
|
-
* @apiKey api key for the site.
|
|
79
|
-
*/
|
|
80
|
-
apiKey: string;
|
|
81
|
-
/**
|
|
82
|
-
* @site api site name.
|
|
83
|
-
*/
|
|
84
|
-
site: string;
|
|
85
|
-
/**
|
|
86
|
-
* @apiPath this value indicates the api version, default value is /api/v2.
|
|
87
|
-
*/
|
|
88
|
-
apiPath?: '/api/v2' | '/api/v1';
|
|
89
|
-
/**
|
|
90
|
-
* @timeout client side request timeout in milliseconds, default value is 80000ms.
|
|
91
|
-
*/
|
|
92
|
-
timeout?: number;
|
|
93
|
-
/**
|
|
94
|
-
* @port url port
|
|
95
|
-
*/
|
|
96
|
-
port?: number;
|
|
97
|
-
/**
|
|
98
|
-
* @timemachineWaitInMillis time interval at which two subsequent retrieve timemachine call in milliseconds, default value is 3000ms.
|
|
99
|
-
*/
|
|
100
|
-
timemachineWaitInMillis?: number;
|
|
101
|
-
/**
|
|
102
|
-
* @exportWaitInMillis time interval at which two subsequent retrieve export call in milliseconds, default value is 3000ms.
|
|
103
|
-
*/
|
|
104
|
-
exportWaitInMillis?: number;
|
|
105
|
-
/**
|
|
106
|
-
* @protocol http protocol, default value is https
|
|
107
|
-
*/
|
|
108
|
-
protocol?: 'https' | 'http';
|
|
109
|
-
/**
|
|
110
|
-
* @hostSuffix url host suffix, default value is .chargebee.com
|
|
111
|
-
*/
|
|
112
|
-
hostSuffix?: string;
|
|
113
|
-
};
|
|
114
|
-
declare module 'chargebee' {
|
|
115
|
-
export default class Chargebee {
|
|
116
|
-
constructor(config: Config);
|
|
117
|
-
address: Address.AddressResource;
|
|
118
|
-
attachedItem: AttachedItem.AttachedItemResource;
|
|
119
|
-
businessEntity: BusinessEntity.BusinessEntityResource;
|
|
120
|
-
card: Card.CardResource;
|
|
121
|
-
comment: Comment.CommentResource;
|
|
122
|
-
coupon: Coupon.CouponResource;
|
|
123
|
-
couponCode: CouponCode.CouponCodeResource;
|
|
124
|
-
couponSet: CouponSet.CouponSetResource;
|
|
125
|
-
creditNote: CreditNote.CreditNoteResource;
|
|
126
|
-
currency: Currency.CurrencyResource;
|
|
127
|
-
customer: Customer.CustomerResource;
|
|
128
|
-
customerEntitlement: CustomerEntitlement.CustomerEntitlementResource;
|
|
129
|
-
differentialPrice: DifferentialPrice.DifferentialPriceResource;
|
|
130
|
-
entitlement: Entitlement.EntitlementResource;
|
|
131
|
-
entitlementOverride: EntitlementOverride.EntitlementOverrideResource;
|
|
132
|
-
estimate: Estimate.EstimateResource;
|
|
133
|
-
event: Event.EventResource;
|
|
134
|
-
export: Export.ExportResource;
|
|
135
|
-
feature: Feature.FeatureResource;
|
|
136
|
-
gift: Gift.GiftResource;
|
|
137
|
-
hostedPage: HostedPage.HostedPageResource;
|
|
138
|
-
inAppSubscription: InAppSubscription.InAppSubscriptionResource;
|
|
139
|
-
invoice: Invoice.InvoiceResource;
|
|
140
|
-
item: Item.ItemResource;
|
|
141
|
-
itemEntitlement: ItemEntitlement.ItemEntitlementResource;
|
|
142
|
-
itemFamily: ItemFamily.ItemFamilyResource;
|
|
143
|
-
itemPrice: ItemPrice.ItemPriceResource;
|
|
144
|
-
nonSubscription: NonSubscription.NonSubscriptionResource;
|
|
145
|
-
order: Order.OrderResource;
|
|
146
|
-
paymentIntent: PaymentIntent.PaymentIntentResource;
|
|
147
|
-
paymentScheduleScheme: PaymentScheduleScheme.PaymentScheduleSchemeResource;
|
|
148
|
-
paymentSource: PaymentSource.PaymentSourceResource;
|
|
149
|
-
paymentVoucher: PaymentVoucher.PaymentVoucherResource;
|
|
150
|
-
portalSession: PortalSession.PortalSessionResource;
|
|
151
|
-
priceVariant: PriceVariant.PriceVariantResource;
|
|
152
|
-
pricingPageSession: PricingPageSession.PricingPageSessionResource;
|
|
153
|
-
promotionalCredit: PromotionalCredit.PromotionalCreditResource;
|
|
154
|
-
purchase: Purchase.PurchaseResource;
|
|
155
|
-
quote: Quote.QuoteResource;
|
|
156
|
-
ramp: Ramp.RampResource;
|
|
157
|
-
resourceMigration: ResourceMigration.ResourceMigrationResource;
|
|
158
|
-
siteMigrationDetail: SiteMigrationDetail.SiteMigrationDetailResource;
|
|
159
|
-
subscription: Subscription.SubscriptionResource;
|
|
160
|
-
subscriptionEntitlement: SubscriptionEntitlement.SubscriptionEntitlementResource;
|
|
161
|
-
timeMachine: TimeMachine.TimeMachineResource;
|
|
162
|
-
transaction: Transaction.TransactionResource;
|
|
163
|
-
unbilledCharge: UnbilledCharge.UnbilledChargeResource;
|
|
164
|
-
usage: Usage.UsageResource;
|
|
165
|
-
virtualBankAccount: VirtualBankAccount.VirtualBankAccountResource;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface Address {
|
|
6
|
-
label: string;
|
|
7
|
-
first_name?: string;
|
|
8
|
-
last_name?: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
company?: string;
|
|
11
|
-
phone?: string;
|
|
12
|
-
addr?: string;
|
|
13
|
-
extended_addr?: string;
|
|
14
|
-
extended_addr2?: string;
|
|
15
|
-
city?: string;
|
|
16
|
-
state_code?: string;
|
|
17
|
-
state?: string;
|
|
18
|
-
country?: string;
|
|
19
|
-
zip?: string;
|
|
20
|
-
validation_status?: ValidationStatusEnum;
|
|
21
|
-
subscription_id: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export namespace Address {
|
|
25
|
-
export class AddressResource {
|
|
26
|
-
retrieve(
|
|
27
|
-
input: RetrieveInputParam,
|
|
28
|
-
headers?: ChargebeeRequestHeader,
|
|
29
|
-
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
30
|
-
|
|
31
|
-
update(
|
|
32
|
-
input: UpdateInputParam,
|
|
33
|
-
headers?: ChargebeeRequestHeader,
|
|
34
|
-
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface RetrieveResponse {
|
|
38
|
-
address: Address;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface UpdateResponse {
|
|
42
|
-
address: Address;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// REQUEST PARAMS
|
|
46
|
-
//---------------
|
|
47
|
-
|
|
48
|
-
export interface RetrieveInputParam {
|
|
49
|
-
subscription_id: string;
|
|
50
|
-
label: string;
|
|
51
|
-
}
|
|
52
|
-
export interface UpdateInputParam {
|
|
53
|
-
subscription_id: string;
|
|
54
|
-
label: string;
|
|
55
|
-
first_name?: string;
|
|
56
|
-
last_name?: string;
|
|
57
|
-
email?: string;
|
|
58
|
-
company?: string;
|
|
59
|
-
phone?: string;
|
|
60
|
-
addr?: string;
|
|
61
|
-
extended_addr?: string;
|
|
62
|
-
extended_addr2?: string;
|
|
63
|
-
city?: string;
|
|
64
|
-
state_code?: string;
|
|
65
|
-
state?: string;
|
|
66
|
-
zip?: string;
|
|
67
|
-
country?: string;
|
|
68
|
-
validation_status?: ValidationStatusEnum;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface AdvanceInvoiceSchedule {
|
|
6
|
-
id: string;
|
|
7
|
-
schedule_type?: 'fixed_intervals' | 'specific_dates';
|
|
8
|
-
fixed_interval_schedule?: AdvanceInvoiceSchedule.FixedIntervalSchedule;
|
|
9
|
-
specific_dates_schedule?: AdvanceInvoiceSchedule.SpecificDatesSchedule;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export namespace AdvanceInvoiceSchedule {
|
|
13
|
-
export interface FixedIntervalSchedule {
|
|
14
|
-
end_schedule_on?: EndScheduleOnEnum;
|
|
15
|
-
number_of_occurrences?: number;
|
|
16
|
-
days_before_renewal?: number;
|
|
17
|
-
end_date?: number;
|
|
18
|
-
created_at: number;
|
|
19
|
-
terms_to_charge?: number;
|
|
20
|
-
}
|
|
21
|
-
export interface SpecificDatesSchedule {
|
|
22
|
-
terms_to_charge?: number;
|
|
23
|
-
date?: number;
|
|
24
|
-
created_at: number;
|
|
25
|
-
}
|
|
26
|
-
// REQUEST PARAMS
|
|
27
|
-
//---------------
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
///<reference path='./filter.d.ts'/>
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface AttachedItem {
|
|
6
|
-
id: string;
|
|
7
|
-
parent_item_id: string;
|
|
8
|
-
item_id: string;
|
|
9
|
-
type: 'recommended' | 'mandatory' | 'optional';
|
|
10
|
-
status?: 'active' | 'archived' | 'deleted';
|
|
11
|
-
quantity?: number;
|
|
12
|
-
quantity_in_decimal?: string;
|
|
13
|
-
billing_cycles?: number;
|
|
14
|
-
charge_on_event: ChargeOnEventEnum;
|
|
15
|
-
charge_once: boolean;
|
|
16
|
-
created_at: number;
|
|
17
|
-
resource_version?: number;
|
|
18
|
-
updated_at?: number;
|
|
19
|
-
channel?: ChannelEnum;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export namespace AttachedItem {
|
|
23
|
-
export class AttachedItemResource {
|
|
24
|
-
create(
|
|
25
|
-
item_id: string,
|
|
26
|
-
input: CreateInputParam,
|
|
27
|
-
headers?: ChargebeeRequestHeader,
|
|
28
|
-
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
29
|
-
|
|
30
|
-
update(
|
|
31
|
-
attached_item_id: string,
|
|
32
|
-
input: UpdateInputParam,
|
|
33
|
-
headers?: ChargebeeRequestHeader,
|
|
34
|
-
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
35
|
-
|
|
36
|
-
retrieve(
|
|
37
|
-
attached_item_id: string,
|
|
38
|
-
input: RetrieveInputParam,
|
|
39
|
-
headers?: ChargebeeRequestHeader,
|
|
40
|
-
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
41
|
-
|
|
42
|
-
delete(
|
|
43
|
-
attached_item_id: string,
|
|
44
|
-
input: DeleteInputParam,
|
|
45
|
-
headers?: ChargebeeRequestHeader,
|
|
46
|
-
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
47
|
-
|
|
48
|
-
list(
|
|
49
|
-
item_id: string,
|
|
50
|
-
input?: ListInputParam,
|
|
51
|
-
headers?: ChargebeeRequestHeader,
|
|
52
|
-
): Promise<ChargebeeResponse<ListResponse>>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface CreateResponse {
|
|
56
|
-
attached_item: AttachedItem;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface UpdateResponse {
|
|
60
|
-
attached_item: AttachedItem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface RetrieveResponse {
|
|
64
|
-
attached_item: AttachedItem;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface DeleteResponse {
|
|
68
|
-
attached_item: AttachedItem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface ListResponse {
|
|
72
|
-
list: { attached_item: AttachedItem }[];
|
|
73
|
-
next_offset?: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// REQUEST PARAMS
|
|
77
|
-
//---------------
|
|
78
|
-
|
|
79
|
-
export interface CreateInputParam {
|
|
80
|
-
item_id: string;
|
|
81
|
-
type?: 'recommended' | 'mandatory' | 'optional';
|
|
82
|
-
billing_cycles?: number;
|
|
83
|
-
quantity?: number;
|
|
84
|
-
quantity_in_decimal?: string;
|
|
85
|
-
charge_on_event?: ChargeOnEventEnum;
|
|
86
|
-
charge_once?: boolean;
|
|
87
|
-
}
|
|
88
|
-
export interface UpdateInputParam {
|
|
89
|
-
parent_item_id: string;
|
|
90
|
-
type?: 'recommended' | 'mandatory' | 'optional';
|
|
91
|
-
billing_cycles?: number;
|
|
92
|
-
quantity?: number;
|
|
93
|
-
quantity_in_decimal?: string;
|
|
94
|
-
charge_on_event?: ChargeOnEventEnum;
|
|
95
|
-
charge_once?: boolean;
|
|
96
|
-
}
|
|
97
|
-
export interface RetrieveInputParam {
|
|
98
|
-
parent_item_id: string;
|
|
99
|
-
}
|
|
100
|
-
export interface DeleteInputParam {
|
|
101
|
-
parent_item_id: string;
|
|
102
|
-
}
|
|
103
|
-
export interface ListInputParam {
|
|
104
|
-
limit?: number;
|
|
105
|
-
offset?: string;
|
|
106
|
-
id?: filter.String;
|
|
107
|
-
item_id?: filter.String;
|
|
108
|
-
type?: filter.Enum;
|
|
109
|
-
item_type?: filter.Enum;
|
|
110
|
-
charge_on_event?: filter.Enum;
|
|
111
|
-
updated_at?: filter.Timestamp;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
///<reference path='./filter.d.ts'/>
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface BusinessEntity {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
status: 'active' | 'inactive';
|
|
9
|
-
deleted: boolean;
|
|
10
|
-
created_at: number;
|
|
11
|
-
resource_version?: number;
|
|
12
|
-
updated_at?: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export namespace BusinessEntity {
|
|
16
|
-
export class BusinessEntityResource {
|
|
17
|
-
createTransfers(
|
|
18
|
-
input: CreateTransfersInputParam,
|
|
19
|
-
headers?: ChargebeeRequestHeader,
|
|
20
|
-
): Promise<ChargebeeResponse<CreateTransfersResponse>>;
|
|
21
|
-
|
|
22
|
-
getTransfers(
|
|
23
|
-
input?: GetTransfersInputParam,
|
|
24
|
-
headers?: ChargebeeRequestHeader,
|
|
25
|
-
): Promise<ChargebeeResponse<GetTransfersResponse>>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface CreateTransfersResponse {
|
|
29
|
-
business_entity_transfer: BusinessEntityTransfer;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface GetTransfersResponse {
|
|
33
|
-
list: { business_entity_transfer: BusinessEntityTransfer }[];
|
|
34
|
-
next_offset?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// REQUEST PARAMS
|
|
38
|
-
//---------------
|
|
39
|
-
|
|
40
|
-
export interface CreateTransfersInputParam {
|
|
41
|
-
active_resource_ids: string[];
|
|
42
|
-
destination_business_entity_ids: string[] /**
|
|
43
|
-
* @deprecated Please refer API docs to use other attributes
|
|
44
|
-
*/;
|
|
45
|
-
|
|
46
|
-
source_business_entity_ids?: string[] /**
|
|
47
|
-
* @deprecated Please refer API docs to use other attributes
|
|
48
|
-
*/;
|
|
49
|
-
|
|
50
|
-
resource_types: string[];
|
|
51
|
-
reason_codes: string[];
|
|
52
|
-
}
|
|
53
|
-
export interface GetTransfersInputParam {
|
|
54
|
-
limit?: number;
|
|
55
|
-
offset?: string;
|
|
56
|
-
resource_type?: filter.String;
|
|
57
|
-
resource_id?: filter.String;
|
|
58
|
-
active_resource_id?: filter.String;
|
|
59
|
-
created_at?: filter.Timestamp;
|
|
60
|
-
'sort_by[asc]'?: string;
|
|
61
|
-
'sort_by[desc]'?: string;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface BusinessEntityTransfer {
|
|
6
|
-
id: string;
|
|
7
|
-
resource_type: 'customer' | 'subscription';
|
|
8
|
-
resource_id: string;
|
|
9
|
-
active_resource_id: string;
|
|
10
|
-
destination_business_entity_id: string;
|
|
11
|
-
source_business_entity_id: string;
|
|
12
|
-
reason_code: 'correction';
|
|
13
|
-
created_at: number;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface Card {
|
|
6
|
-
payment_source_id: string;
|
|
7
|
-
status: 'valid' | 'expiring' | 'expired';
|
|
8
|
-
gateway: GatewayEnum;
|
|
9
|
-
gateway_account_id?: string;
|
|
10
|
-
ref_tx_id?: string;
|
|
11
|
-
first_name?: string;
|
|
12
|
-
last_name?: string;
|
|
13
|
-
iin: string;
|
|
14
|
-
last4: string;
|
|
15
|
-
card_type?:
|
|
16
|
-
| 'visa'
|
|
17
|
-
| 'mastercard'
|
|
18
|
-
| 'american_express'
|
|
19
|
-
| 'discover'
|
|
20
|
-
| 'jcb'
|
|
21
|
-
| 'diners_club'
|
|
22
|
-
| 'bancontact'
|
|
23
|
-
| 'cmr_falabella'
|
|
24
|
-
| 'tarjeta_naranja'
|
|
25
|
-
| 'nativa'
|
|
26
|
-
| 'cencosud'
|
|
27
|
-
| 'cabal'
|
|
28
|
-
| 'argencard'
|
|
29
|
-
| 'elo'
|
|
30
|
-
| 'hipercard'
|
|
31
|
-
| 'carnet'
|
|
32
|
-
| 'rupay'
|
|
33
|
-
| 'maestro'
|
|
34
|
-
| 'dankort'
|
|
35
|
-
| 'cartes_bancaires'
|
|
36
|
-
| 'other'
|
|
37
|
-
| 'not_applicable';
|
|
38
|
-
funding_type:
|
|
39
|
-
| 'credit'
|
|
40
|
-
| 'debit'
|
|
41
|
-
| 'prepaid'
|
|
42
|
-
| 'not_known'
|
|
43
|
-
| 'not_applicable';
|
|
44
|
-
expiry_month: number;
|
|
45
|
-
expiry_year: number;
|
|
46
|
-
issuing_country?: string;
|
|
47
|
-
billing_addr1?: string;
|
|
48
|
-
billing_addr2?: string;
|
|
49
|
-
billing_city?: string;
|
|
50
|
-
billing_state_code?: string;
|
|
51
|
-
billing_state?: string;
|
|
52
|
-
billing_country?: string;
|
|
53
|
-
billing_zip?: string;
|
|
54
|
-
created_at: number;
|
|
55
|
-
resource_version?: number;
|
|
56
|
-
updated_at?: number;
|
|
57
|
-
ip_address?: string;
|
|
58
|
-
powered_by?:
|
|
59
|
-
| 'ideal'
|
|
60
|
-
| 'sofort'
|
|
61
|
-
| 'bancontact'
|
|
62
|
-
| 'giropay'
|
|
63
|
-
| 'card'
|
|
64
|
-
| 'latam_local_card'
|
|
65
|
-
| 'not_applicable';
|
|
66
|
-
customer_id: string;
|
|
67
|
-
masked_number?: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export namespace Card {
|
|
71
|
-
export class CardResource {
|
|
72
|
-
retrieve(
|
|
73
|
-
customer_id: string,
|
|
74
|
-
headers?: ChargebeeRequestHeader,
|
|
75
|
-
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
76
|
-
|
|
77
|
-
updateCardForCustomer(
|
|
78
|
-
customer_id: string,
|
|
79
|
-
input: UpdateCardForCustomerInputParam,
|
|
80
|
-
headers?: ChargebeeRequestHeader,
|
|
81
|
-
): Promise<ChargebeeResponse<UpdateCardForCustomerResponse>>;
|
|
82
|
-
|
|
83
|
-
switchGatewayForCustomer(
|
|
84
|
-
customer_id: string,
|
|
85
|
-
input: SwitchGatewayForCustomerInputParam,
|
|
86
|
-
headers?: ChargebeeRequestHeader,
|
|
87
|
-
): Promise<ChargebeeResponse<SwitchGatewayForCustomerResponse>>;
|
|
88
|
-
|
|
89
|
-
copyCardForCustomer(
|
|
90
|
-
customer_id: string,
|
|
91
|
-
input: CopyCardForCustomerInputParam,
|
|
92
|
-
headers?: ChargebeeRequestHeader,
|
|
93
|
-
): Promise<ChargebeeResponse<CopyCardForCustomerResponse>>;
|
|
94
|
-
|
|
95
|
-
deleteCardForCustomer(
|
|
96
|
-
customer_id: string,
|
|
97
|
-
headers?: ChargebeeRequestHeader,
|
|
98
|
-
): Promise<ChargebeeResponse<DeleteCardForCustomerResponse>>;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface RetrieveResponse {
|
|
102
|
-
card: Card;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface UpdateCardForCustomerResponse {
|
|
106
|
-
customer: Customer;
|
|
107
|
-
card: Card;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface SwitchGatewayForCustomerResponse {
|
|
111
|
-
customer: Customer;
|
|
112
|
-
card: Card;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export interface CopyCardForCustomerResponse {
|
|
116
|
-
third_party_payment_method: ThirdPartyPaymentMethod;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface DeleteCardForCustomerResponse {
|
|
120
|
-
customer: Customer;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// REQUEST PARAMS
|
|
124
|
-
//---------------
|
|
125
|
-
|
|
126
|
-
export interface UpdateCardForCustomerInputParam {
|
|
127
|
-
/**
|
|
128
|
-
* @deprecated Please refer API docs to use other attributes
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
gateway?: GatewayEnum;
|
|
132
|
-
gateway_account_id?: string;
|
|
133
|
-
tmp_token?: string;
|
|
134
|
-
first_name?: string;
|
|
135
|
-
last_name?: string;
|
|
136
|
-
number: string;
|
|
137
|
-
expiry_month: number;
|
|
138
|
-
expiry_year: number;
|
|
139
|
-
cvv?: string;
|
|
140
|
-
billing_addr1?: string;
|
|
141
|
-
billing_addr2?: string;
|
|
142
|
-
billing_city?: string;
|
|
143
|
-
billing_state_code?: string;
|
|
144
|
-
billing_state?: string;
|
|
145
|
-
billing_zip?: string;
|
|
146
|
-
billing_country?: string /**
|
|
147
|
-
* @deprecated Please refer API docs to use other attributes
|
|
148
|
-
*/;
|
|
149
|
-
|
|
150
|
-
ip_address?: string;
|
|
151
|
-
customer?: CustomerUpdateCardForCustomerInputParam;
|
|
152
|
-
}
|
|
153
|
-
export interface SwitchGatewayForCustomerInputParam {
|
|
154
|
-
/**
|
|
155
|
-
* @deprecated Please refer API docs to use other attributes
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
gateway?: GatewayEnum;
|
|
159
|
-
gateway_account_id: string;
|
|
160
|
-
}
|
|
161
|
-
export interface CopyCardForCustomerInputParam {
|
|
162
|
-
gateway_account_id: string;
|
|
163
|
-
}
|
|
164
|
-
export interface CustomerUpdateCardForCustomerInputParam {
|
|
165
|
-
/**
|
|
166
|
-
* @deprecated Please refer API docs to use other attributes
|
|
167
|
-
*/
|
|
168
|
-
vat_number?: string;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|