chargebee 3.0.0 → 3.0.2
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 +9 -0
- package/README.md +5 -5
- package/cjs/environment.js +1 -1
- package/esm/environment.js +1 -1
- package/package.json +1 -1
- package/types/core.d.ts +574 -0
- package/types/index.d.ts +167 -0
- package/types/resources/Address.d.ts +71 -0
- package/types/resources/AdvanceInvoiceSchedule.d.ts +29 -0
- package/types/resources/AttachedItem.d.ts +114 -0
- package/types/resources/Attribute.d.ts +9 -0
- package/types/resources/BusinessEntity.d.ts +64 -0
- package/types/resources/BusinessEntityTransfer.d.ts +15 -0
- package/types/resources/Card.d.ts +171 -0
- package/types/resources/Comment.d.ts +89 -0
- package/types/resources/Contact.d.ts +16 -0
- package/types/resources/ContractTerm.d.ts +19 -0
- package/types/resources/Coupon.d.ts +314 -0
- package/types/resources/CouponCode.d.ts +70 -0
- package/types/resources/CouponSet.d.ts +111 -0
- package/types/resources/CreditNote.d.ts +628 -0
- package/types/resources/CreditNoteEstimate.d.ts +143 -0
- package/types/resources/Currency.d.ts +91 -0
- package/types/resources/Customer.d.ts +962 -0
- package/types/resources/CustomerEntitlement.d.ts +36 -0
- package/types/resources/DifferentialPrice.d.ts +142 -0
- package/types/resources/Discount.d.ts +24 -0
- package/types/resources/Download.d.ts +10 -0
- package/types/resources/Entitlement.d.ts +66 -0
- package/types/resources/EntitlementOverride.d.ts +76 -0
- package/types/resources/Estimate.d.ts +1237 -0
- package/types/resources/Event.d.ts +81 -0
- package/types/resources/Export.d.ts +607 -0
- package/types/resources/Feature.d.ts +142 -0
- package/types/resources/GatewayErrorDetail.d.ts +20 -0
- package/types/resources/Gift.d.ts +296 -0
- package/types/resources/Hierarchy.d.ts +12 -0
- package/types/resources/HostedPage.d.ts +1112 -0
- package/types/resources/ImpactedItem.d.ts +20 -0
- package/types/resources/ImpactedItemPrice.d.ts +20 -0
- package/types/resources/ImpactedSubscription.d.ts +20 -0
- package/types/resources/InAppSubscription.d.ts +116 -0
- package/types/resources/Invoice.d.ts +1691 -0
- package/types/resources/InvoiceEstimate.d.ts +143 -0
- package/types/resources/Item.d.ts +204 -0
- package/types/resources/ItemEntitlement.d.ts +103 -0
- package/types/resources/ItemFamily.d.ts +89 -0
- package/types/resources/ItemPrice.d.ts +328 -0
- package/types/resources/Metadata.d.ts +8 -0
- package/types/resources/NonSubscription.d.ts +48 -0
- package/types/resources/Order.d.ts +586 -0
- package/types/resources/PaymentIntent.d.ts +178 -0
- package/types/resources/PaymentReferenceNumber.d.ts +11 -0
- package/types/resources/PaymentSchedule.d.ts +28 -0
- package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
- package/types/resources/PaymentScheduleScheme.d.ts +62 -0
- package/types/resources/PaymentSource.d.ts +529 -0
- package/types/resources/PaymentVoucher.d.ts +107 -0
- package/types/resources/PortalSession.d.ts +88 -0
- package/types/resources/PriceVariant.d.ts +112 -0
- package/types/resources/PricingPageSession.d.ts +130 -0
- package/types/resources/PromotionalCredit.d.ts +111 -0
- package/types/resources/Purchase.d.ts +202 -0
- package/types/resources/Quote.d.ts +1467 -0
- package/types/resources/QuoteLineGroup.d.ts +136 -0
- package/types/resources/QuotedCharge.d.ts +56 -0
- package/types/resources/QuotedSubscription.d.ts +114 -0
- package/types/resources/Ramp.d.ts +260 -0
- package/types/resources/ResourceMigration.d.ts +36 -0
- package/types/resources/SiteMigrationDetail.d.ts +46 -0
- package/types/resources/Subscription.d.ts +2443 -0
- package/types/resources/SubscriptionEntitlement.d.ts +79 -0
- package/types/resources/SubscriptionEstimate.d.ts +59 -0
- package/types/resources/TaxWithheld.d.ts +19 -0
- package/types/resources/ThirdPartyPaymentMethod.d.ts +11 -0
- package/types/resources/TimeMachine.d.ts +57 -0
- package/types/resources/Token.d.ts +19 -0
- package/types/resources/Transaction.d.ts +313 -0
- package/types/resources/UnbilledCharge.d.ts +209 -0
- package/types/resources/Usage.d.ts +113 -0
- package/types/resources/VirtualBankAccount.d.ts +125 -0
- package/types/resources/filter.d.ts +52 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface ImpactedItem {
|
|
6
|
+
count?: number;
|
|
7
|
+
download?: ImpactedItem.Download;
|
|
8
|
+
items?: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace ImpactedItem {
|
|
12
|
+
export interface Download {
|
|
13
|
+
download_url: string;
|
|
14
|
+
valid_till: number;
|
|
15
|
+
mime_type?: string;
|
|
16
|
+
}
|
|
17
|
+
// REQUEST PARAMS
|
|
18
|
+
//---------------
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface ImpactedItemPrice {
|
|
6
|
+
count?: number;
|
|
7
|
+
download?: ImpactedItemPrice.Download;
|
|
8
|
+
item_prices?: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace ImpactedItemPrice {
|
|
12
|
+
export interface Download {
|
|
13
|
+
download_url: string;
|
|
14
|
+
valid_till: number;
|
|
15
|
+
mime_type?: string;
|
|
16
|
+
}
|
|
17
|
+
// REQUEST PARAMS
|
|
18
|
+
//---------------
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface ImpactedSubscription {
|
|
6
|
+
count?: number;
|
|
7
|
+
download?: ImpactedSubscription.Download;
|
|
8
|
+
subscription_ids?: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace ImpactedSubscription {
|
|
12
|
+
export interface Download {
|
|
13
|
+
download_url: string;
|
|
14
|
+
valid_till: number;
|
|
15
|
+
mime_type?: string;
|
|
16
|
+
}
|
|
17
|
+
// REQUEST PARAMS
|
|
18
|
+
//---------------
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface InAppSubscription {
|
|
6
|
+
app_id: string;
|
|
7
|
+
subscription_id: string;
|
|
8
|
+
customer_id?: string;
|
|
9
|
+
plan_id?: string;
|
|
10
|
+
store_status?: 'in_trial' | 'active' | 'cancelled' | 'paused';
|
|
11
|
+
invoice_id?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export namespace InAppSubscription {
|
|
15
|
+
export class InAppSubscriptionResource {
|
|
16
|
+
processReceipt(
|
|
17
|
+
in_app_subscription_app_id: string,
|
|
18
|
+
input: ProcessReceiptInputParam,
|
|
19
|
+
headers?: ChargebeeRequestHeader,
|
|
20
|
+
): Promise<ChargebeeResponse<ProcessReceiptResponse>>;
|
|
21
|
+
|
|
22
|
+
importReceipt(
|
|
23
|
+
in_app_subscription_app_id: string,
|
|
24
|
+
input: ImportReceiptInputParam,
|
|
25
|
+
headers?: ChargebeeRequestHeader,
|
|
26
|
+
): Promise<ChargebeeResponse<ImportReceiptResponse>>;
|
|
27
|
+
|
|
28
|
+
importSubscription(
|
|
29
|
+
in_app_subscription_app_id: string,
|
|
30
|
+
input: ImportSubscriptionInputParam,
|
|
31
|
+
headers?: ChargebeeRequestHeader,
|
|
32
|
+
): Promise<ChargebeeResponse<ImportSubscriptionResponse>>;
|
|
33
|
+
|
|
34
|
+
retrieveStoreSubs(
|
|
35
|
+
in_app_subscription_app_id: string,
|
|
36
|
+
input: RetrieveStoreSubsInputParam,
|
|
37
|
+
headers?: ChargebeeRequestHeader,
|
|
38
|
+
): Promise<ChargebeeResponse<RetrieveStoreSubsResponse>>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ProcessReceiptResponse {
|
|
42
|
+
in_app_subscription: InAppSubscription;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ImportReceiptResponse {
|
|
46
|
+
in_app_subscriptions: InAppSubscription[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface ImportSubscriptionResponse {
|
|
50
|
+
in_app_subscription: InAppSubscription;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface RetrieveStoreSubsResponse {
|
|
54
|
+
in_app_subscriptions: InAppSubscription[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// REQUEST PARAMS
|
|
58
|
+
//---------------
|
|
59
|
+
|
|
60
|
+
export interface ProcessReceiptInputParam {
|
|
61
|
+
receipt: string;
|
|
62
|
+
product?: ProductProcessReceiptInputParam;
|
|
63
|
+
customer?: CustomerProcessReceiptInputParam;
|
|
64
|
+
}
|
|
65
|
+
export interface ImportReceiptInputParam {
|
|
66
|
+
receipt: string;
|
|
67
|
+
product?: ProductImportReceiptInputParam;
|
|
68
|
+
customer?: CustomerImportReceiptInputParam;
|
|
69
|
+
}
|
|
70
|
+
export interface ImportSubscriptionInputParam {
|
|
71
|
+
subscription?: SubscriptionImportSubscriptionInputParam;
|
|
72
|
+
customer?: CustomerImportSubscriptionInputParam;
|
|
73
|
+
}
|
|
74
|
+
export interface RetrieveStoreSubsInputParam {
|
|
75
|
+
receipt: string;
|
|
76
|
+
}
|
|
77
|
+
export interface CustomerProcessReceiptInputParam {
|
|
78
|
+
id?: string;
|
|
79
|
+
email?: string;
|
|
80
|
+
first_name?: string;
|
|
81
|
+
last_name?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface ProductProcessReceiptInputParam {
|
|
84
|
+
id: string;
|
|
85
|
+
currency_code: string;
|
|
86
|
+
price: number;
|
|
87
|
+
name?: string;
|
|
88
|
+
price_in_decimal?: string;
|
|
89
|
+
period?: string;
|
|
90
|
+
period_unit?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface CustomerImportReceiptInputParam {
|
|
94
|
+
id?: string;
|
|
95
|
+
email?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface ProductImportReceiptInputParam {
|
|
98
|
+
currency_code: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface CustomerImportSubscriptionInputParam {
|
|
102
|
+
id?: string;
|
|
103
|
+
email?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface SubscriptionImportSubscriptionInputParam {
|
|
106
|
+
id: string;
|
|
107
|
+
started_at: number;
|
|
108
|
+
term_start: number;
|
|
109
|
+
term_end: number;
|
|
110
|
+
product_id: string;
|
|
111
|
+
currency_code: string;
|
|
112
|
+
transaction_id: string;
|
|
113
|
+
is_trial?: boolean;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|