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
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface CreditNoteEstimate {
|
|
6
|
-
reference_invoice_id: string;
|
|
7
|
-
type: 'adjustment' | 'refundable';
|
|
8
|
-
price_type: PriceTypeEnum;
|
|
9
|
-
currency_code: string;
|
|
10
|
-
sub_total: number;
|
|
11
|
-
total: number;
|
|
12
|
-
amount_allocated: number;
|
|
13
|
-
amount_available: number;
|
|
14
|
-
line_items?: CreditNoteEstimate.LineItem[];
|
|
15
|
-
discounts?: CreditNoteEstimate.Discount[];
|
|
16
|
-
taxes?: CreditNoteEstimate.Tax[];
|
|
17
|
-
line_item_taxes?: CreditNoteEstimate.LineItemTax[];
|
|
18
|
-
line_item_discounts?: CreditNoteEstimate.LineItemDiscount[];
|
|
19
|
-
line_item_tiers?: CreditNoteEstimate.LineItemTier[];
|
|
20
|
-
round_off_amount?: number;
|
|
21
|
-
customer_id?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export namespace CreditNoteEstimate {
|
|
25
|
-
export interface LineItem {
|
|
26
|
-
id?: string;
|
|
27
|
-
subscription_id?: string;
|
|
28
|
-
date_from: number;
|
|
29
|
-
date_to: number;
|
|
30
|
-
unit_amount: number;
|
|
31
|
-
quantity?: number;
|
|
32
|
-
amount?: number;
|
|
33
|
-
pricing_model?:
|
|
34
|
-
| 'flat_fee'
|
|
35
|
-
| 'per_unit'
|
|
36
|
-
| 'tiered'
|
|
37
|
-
| 'volume'
|
|
38
|
-
| 'stairstep';
|
|
39
|
-
is_taxed: boolean;
|
|
40
|
-
tax_amount?: number;
|
|
41
|
-
tax_rate?: number;
|
|
42
|
-
unit_amount_in_decimal?: string;
|
|
43
|
-
quantity_in_decimal?: string;
|
|
44
|
-
amount_in_decimal?: string;
|
|
45
|
-
discount_amount?: number;
|
|
46
|
-
item_level_discount_amount?: number;
|
|
47
|
-
usage_percentage?: string;
|
|
48
|
-
reference_line_item_id?: string;
|
|
49
|
-
description: string;
|
|
50
|
-
entity_description?: string;
|
|
51
|
-
entity_type:
|
|
52
|
-
| 'adhoc'
|
|
53
|
-
| 'plan_item_price'
|
|
54
|
-
| 'addon_item_price'
|
|
55
|
-
| 'charge_item_price'
|
|
56
|
-
| 'plan_setup'
|
|
57
|
-
| 'plan'
|
|
58
|
-
| 'addon';
|
|
59
|
-
tax_exempt_reason?:
|
|
60
|
-
| 'tax_not_configured'
|
|
61
|
-
| 'region_non_taxable'
|
|
62
|
-
| 'export'
|
|
63
|
-
| 'customer_exempt'
|
|
64
|
-
| 'product_exempt'
|
|
65
|
-
| 'zero_rated'
|
|
66
|
-
| 'reverse_charge'
|
|
67
|
-
| 'high_value_physical_goods'
|
|
68
|
-
| 'zero_value_item'
|
|
69
|
-
| 'tax_not_configured_external_provider';
|
|
70
|
-
entity_id?: string;
|
|
71
|
-
customer_id?: string;
|
|
72
|
-
}
|
|
73
|
-
export interface Discount {
|
|
74
|
-
amount: number;
|
|
75
|
-
description?: string;
|
|
76
|
-
entity_type:
|
|
77
|
-
| 'item_level_coupon'
|
|
78
|
-
| 'document_level_coupon'
|
|
79
|
-
| 'promotional_credits'
|
|
80
|
-
| 'prorated_credits'
|
|
81
|
-
| 'item_level_discount'
|
|
82
|
-
| 'document_level_discount';
|
|
83
|
-
entity_id?: string;
|
|
84
|
-
coupon_set_code?: string;
|
|
85
|
-
}
|
|
86
|
-
export interface Tax {
|
|
87
|
-
name: string;
|
|
88
|
-
amount: number;
|
|
89
|
-
description?: string;
|
|
90
|
-
}
|
|
91
|
-
export interface LineItemTax {
|
|
92
|
-
line_item_id?: string;
|
|
93
|
-
tax_name: string;
|
|
94
|
-
tax_rate: number;
|
|
95
|
-
date_to?: number;
|
|
96
|
-
date_from?: number;
|
|
97
|
-
prorated_taxable_amount?: number;
|
|
98
|
-
is_partial_tax_applied?: boolean;
|
|
99
|
-
is_non_compliance_tax?: boolean;
|
|
100
|
-
taxable_amount: number;
|
|
101
|
-
tax_amount: number;
|
|
102
|
-
tax_juris_type?:
|
|
103
|
-
| 'country'
|
|
104
|
-
| 'federal'
|
|
105
|
-
| 'state'
|
|
106
|
-
| 'county'
|
|
107
|
-
| 'city'
|
|
108
|
-
| 'special'
|
|
109
|
-
| 'unincorporated'
|
|
110
|
-
| 'other';
|
|
111
|
-
tax_juris_name?: string;
|
|
112
|
-
tax_juris_code?: string;
|
|
113
|
-
tax_amount_in_local_currency?: number;
|
|
114
|
-
local_currency_code?: string;
|
|
115
|
-
}
|
|
116
|
-
export interface LineItemDiscount {
|
|
117
|
-
line_item_id: string;
|
|
118
|
-
discount_type:
|
|
119
|
-
| 'item_level_coupon'
|
|
120
|
-
| 'document_level_coupon'
|
|
121
|
-
| 'promotional_credits'
|
|
122
|
-
| 'prorated_credits'
|
|
123
|
-
| 'item_level_discount'
|
|
124
|
-
| 'document_level_discount';
|
|
125
|
-
coupon_id?: string;
|
|
126
|
-
entity_id?: string;
|
|
127
|
-
discount_amount: number;
|
|
128
|
-
}
|
|
129
|
-
export interface LineItemTier {
|
|
130
|
-
line_item_id?: string;
|
|
131
|
-
starting_unit: number;
|
|
132
|
-
ending_unit?: number;
|
|
133
|
-
quantity_used: number;
|
|
134
|
-
unit_amount: number;
|
|
135
|
-
starting_unit_in_decimal?: string;
|
|
136
|
-
ending_unit_in_decimal?: string;
|
|
137
|
-
quantity_used_in_decimal?: string;
|
|
138
|
-
unit_amount_in_decimal?: string;
|
|
139
|
-
}
|
|
140
|
-
// REQUEST PARAMS
|
|
141
|
-
//---------------
|
|
142
|
-
}
|
|
143
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface Currency {
|
|
6
|
-
id?: string;
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
forex_type?: 'manual' | 'auto';
|
|
9
|
-
currency_code?: string;
|
|
10
|
-
is_base_currency?: boolean;
|
|
11
|
-
manual_exchange_rate?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export namespace Currency {
|
|
15
|
-
export class CurrencyResource {
|
|
16
|
-
list(
|
|
17
|
-
headers?: ChargebeeRequestHeader,
|
|
18
|
-
): Promise<ChargebeeResponse<ListResponse>>;
|
|
19
|
-
|
|
20
|
-
retrieve(
|
|
21
|
-
site_currency_id: string,
|
|
22
|
-
headers?: ChargebeeRequestHeader,
|
|
23
|
-
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
24
|
-
|
|
25
|
-
create(
|
|
26
|
-
input: CreateInputParam,
|
|
27
|
-
headers?: ChargebeeRequestHeader,
|
|
28
|
-
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
29
|
-
|
|
30
|
-
update(
|
|
31
|
-
site_currency_id: string,
|
|
32
|
-
input: UpdateInputParam,
|
|
33
|
-
headers?: ChargebeeRequestHeader,
|
|
34
|
-
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
35
|
-
|
|
36
|
-
addSchedule(
|
|
37
|
-
site_currency_id: string,
|
|
38
|
-
input: AddScheduleInputParam,
|
|
39
|
-
headers?: ChargebeeRequestHeader,
|
|
40
|
-
): Promise<ChargebeeResponse<AddScheduleResponse>>;
|
|
41
|
-
|
|
42
|
-
removeSchedule(
|
|
43
|
-
site_currency_id: string,
|
|
44
|
-
headers?: ChargebeeRequestHeader,
|
|
45
|
-
): Promise<ChargebeeResponse<RemoveScheduleResponse>>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface ListResponse {
|
|
49
|
-
currency: Currency;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface RetrieveResponse {
|
|
53
|
-
currency: Currency;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface CreateResponse {
|
|
57
|
-
currency: Currency;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface UpdateResponse {
|
|
61
|
-
currency: Currency;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface AddScheduleResponse {
|
|
65
|
-
scheduled_at: number;
|
|
66
|
-
currency: Currency;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface RemoveScheduleResponse {
|
|
70
|
-
scheduled_at: number;
|
|
71
|
-
currency: Currency;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// REQUEST PARAMS
|
|
75
|
-
//---------------
|
|
76
|
-
|
|
77
|
-
export interface CreateInputParam {
|
|
78
|
-
currency_code: string;
|
|
79
|
-
forex_type: 'manual' | 'auto';
|
|
80
|
-
manual_exchange_rate?: string;
|
|
81
|
-
}
|
|
82
|
-
export interface UpdateInputParam {
|
|
83
|
-
forex_type: 'manual' | 'auto';
|
|
84
|
-
manual_exchange_rate?: string;
|
|
85
|
-
}
|
|
86
|
-
export interface AddScheduleInputParam {
|
|
87
|
-
manual_exchange_rate: string;
|
|
88
|
-
schedule_at: number;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|