chargebee 3.34.0 → 3.35.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 +172 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +174 -2
- package/cjs/resources/webhook/eventType.js +23 -1
- package/cjs/schema/business_entity.schema.js +28 -2
- package/cjs/schema/collections_payment_promise.schema.js +43 -0
- package/cjs/schema/comment.schema.js +2 -0
- package/cjs/schema/coupon.schema.js +1 -1
- package/cjs/schema/credit_note.schema.js +1 -0
- package/cjs/schema/credit_unit.schema.js +2 -2
- package/cjs/schema/einvoice.schema.js +2 -2
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/estimate.schema.js +4 -4
- package/cjs/schema/event.schema.js +104 -4
- package/cjs/schema/export.schema.js +7 -7
- package/cjs/schema/hosted_page.schema.js +2 -2
- package/cjs/schema/index.js +3 -0
- package/cjs/schema/invoice.schema.js +24 -4
- package/cjs/schema/item.schema.js +1 -1
- package/cjs/schema/item_family.schema.js +1 -1
- package/cjs/schema/item_price.schema.js +1 -1
- package/cjs/schema/ledger_account_balance.schema.js +11 -2
- package/cjs/schema/ledger_operation.schema.js +2 -2
- package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
- package/cjs/schema/omnichannel_subscription.schema.js +18 -10
- package/cjs/schema/payment_source.schema.js +15 -0
- package/cjs/schema/price_ramp.schema.js +88 -0
- package/cjs/schema/price_variant.schema.js +1 -1
- package/cjs/schema/purchase.schema.js +6 -0
- package/cjs/schema/quote.schema.js +6 -6
- package/cjs/schema/ramp.schema.js +10 -6
- package/cjs/schema/retry_segment.schema.js +12 -0
- package/cjs/schema/subscription.schema.js +4 -4
- package/cjs/schema/usage.schema.js +5 -0
- package/cjs/schema/usage_summary.schema.js +1 -0
- package/cjs/schema/webhook_endpoint.schema.js +46 -2
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +174 -2
- package/esm/resources/webhook/eventType.js +23 -1
- package/esm/schema/business_entity.schema.js +27 -1
- package/esm/schema/collections_payment_promise.schema.js +40 -0
- package/esm/schema/comment.schema.js +2 -0
- package/esm/schema/coupon.schema.js +1 -1
- package/esm/schema/credit_note.schema.js +1 -0
- package/esm/schema/credit_unit.schema.js +2 -2
- package/esm/schema/einvoice.schema.js +2 -2
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/estimate.schema.js +4 -4
- package/esm/schema/event.schema.js +104 -4
- package/esm/schema/export.schema.js +7 -7
- package/esm/schema/hosted_page.schema.js +2 -2
- package/esm/schema/index.js +3 -0
- package/esm/schema/invoice.schema.js +23 -3
- package/esm/schema/item.schema.js +1 -1
- package/esm/schema/item_family.schema.js +1 -1
- package/esm/schema/item_price.schema.js +1 -1
- package/esm/schema/ledger_account_balance.schema.js +10 -1
- package/esm/schema/ledger_operation.schema.js +2 -2
- package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
- package/esm/schema/omnichannel_subscription.schema.js +18 -10
- package/esm/schema/payment_source.schema.js +15 -0
- package/esm/schema/price_ramp.schema.js +85 -0
- package/esm/schema/price_variant.schema.js +1 -1
- package/esm/schema/purchase.schema.js +6 -0
- package/esm/schema/quote.schema.js +6 -6
- package/esm/schema/ramp.schema.js +10 -6
- package/esm/schema/retry_segment.schema.js +9 -0
- package/esm/schema/subscription.schema.js +4 -4
- package/esm/schema/usage.schema.js +5 -0
- package/esm/schema/usage_summary.schema.js +1 -0
- package/esm/schema/webhook_endpoint.schema.js +46 -2
- package/package.json +1 -1
- package/types/core.d.ts +53 -68
- package/types/index.d.ts +22 -1
- package/types/resources/BusinessEntity.d.ts +52 -0
- package/types/resources/Citation.d.ts +13 -0
- package/types/resources/CollectionsDispute.d.ts +24 -0
- package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
- package/types/resources/CollectionsReminderSequence.d.ts +35 -0
- package/types/resources/Comment.d.ts +2 -1
- package/types/resources/Content.d.ts +18 -1
- package/types/resources/CreditNote.d.ts +1 -0
- package/types/resources/CustomData.d.ts +14 -0
- package/types/resources/DraftEstimate.d.ts +13 -0
- package/types/resources/DraftRequest.d.ts +45 -0
- package/types/resources/EmailAttachment.d.ts +16 -0
- package/types/resources/EmailConversation.d.ts +18 -0
- package/types/resources/EmailLog.d.ts +1 -0
- package/types/resources/EmailMessage.d.ts +40 -0
- package/types/resources/Event.d.ts +23 -1
- package/types/resources/Execution.d.ts +12 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
- package/types/resources/GroupByAttribute.d.ts +15 -0
- package/types/resources/GroupByRecommendation.d.ts +10 -0
- package/types/resources/Invoice.d.ts +15 -0
- package/types/resources/ItemPrice.d.ts +1 -0
- package/types/resources/LedgerAccountBalance.d.ts +19 -0
- package/types/resources/Meter.d.ts +1 -0
- package/types/resources/MeteredFeature.d.ts +1 -0
- package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
- package/types/resources/OmnichannelSubscription.d.ts +6 -1
- package/types/resources/OmnichannelSubscriptionItem.d.ts +4 -1
- package/types/resources/PaymentSchedule.d.ts +1 -1
- package/types/resources/PaymentScheduleEstimate.d.ts +1 -1
- package/types/resources/PaymentSource.d.ts +19 -0
- package/types/resources/PreferenceVariant.d.ts +10 -0
- package/types/resources/PriceRamp.d.ts +113 -0
- package/types/resources/PrivateNote.d.ts +18 -0
- package/types/resources/Purchase.d.ts +6 -0
- package/types/resources/Ramp.d.ts +6 -0
- package/types/resources/RampInterval.d.ts +12 -0
- package/types/resources/RecordedPurchase.d.ts +5 -1
- package/types/resources/RetrySegment.d.ts +36 -0
- package/types/resources/Transaction.d.ts +4 -0
- package/types/resources/Usage.d.ts +6 -0
- package/types/resources/UsageSummary.d.ts +2 -0
- package/types/resources/WebhookEvent.d.ts +149 -5
- package/types/resources/AppliedBusinessRule.d.ts +0 -15
package/types/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
///<reference path='./resources/AdvanceInvoiceSchedule.d.ts' />
|
|
4
4
|
///<reference path='./resources/Alert.d.ts' />
|
|
5
5
|
///<reference path='./resources/AlertStatus.d.ts' />
|
|
6
|
-
///<reference path='./resources/AppliedBusinessRule.d.ts' />
|
|
7
6
|
///<reference path='./resources/AppliedRule.d.ts' />
|
|
8
7
|
///<reference path='./resources/ApplyRule.d.ts' />
|
|
9
8
|
///<reference path='./resources/AsyncResponse.d.ts' />
|
|
@@ -18,6 +17,10 @@
|
|
|
18
17
|
///<reference path='./resources/BusinessRuleset.d.ts' />
|
|
19
18
|
///<reference path='./resources/BusinessRulesetRule.d.ts' />
|
|
20
19
|
///<reference path='./resources/Card.d.ts' />
|
|
20
|
+
///<reference path='./resources/Citation.d.ts' />
|
|
21
|
+
///<reference path='./resources/CollectionsDispute.d.ts' />
|
|
22
|
+
///<reference path='./resources/CollectionsPaymentPromise.d.ts' />
|
|
23
|
+
///<reference path='./resources/CollectionsReminderSequence.d.ts' />
|
|
21
24
|
///<reference path='./resources/ColumnDefinition.d.ts' />
|
|
22
25
|
///<reference path='./resources/Comment.d.ts' />
|
|
23
26
|
///<reference path='./resources/Configuration.d.ts' />
|
|
@@ -31,6 +34,7 @@
|
|
|
31
34
|
///<reference path='./resources/CreditNoteEstimate.d.ts' />
|
|
32
35
|
///<reference path='./resources/CreditUnit.d.ts' />
|
|
33
36
|
///<reference path='./resources/Currency.d.ts' />
|
|
37
|
+
///<reference path='./resources/CustomData.d.ts' />
|
|
34
38
|
///<reference path='./resources/CustomDataSchema.d.ts' />
|
|
35
39
|
///<reference path='./resources/Customer.d.ts' />
|
|
36
40
|
///<reference path='./resources/CustomerEntitlement.d.ts' />
|
|
@@ -38,12 +42,18 @@
|
|
|
38
42
|
///<reference path='./resources/Discount.d.ts' />
|
|
39
43
|
///<reference path='./resources/Dispute.d.ts' />
|
|
40
44
|
///<reference path='./resources/Download.d.ts' />
|
|
45
|
+
///<reference path='./resources/DraftEstimate.d.ts' />
|
|
46
|
+
///<reference path='./resources/DraftRequest.d.ts' />
|
|
41
47
|
///<reference path='./resources/Einvoice.d.ts' />
|
|
48
|
+
///<reference path='./resources/EmailAttachment.d.ts' />
|
|
49
|
+
///<reference path='./resources/EmailConversation.d.ts' />
|
|
42
50
|
///<reference path='./resources/EmailLog.d.ts' />
|
|
51
|
+
///<reference path='./resources/EmailMessage.d.ts' />
|
|
43
52
|
///<reference path='./resources/Entitlement.d.ts' />
|
|
44
53
|
///<reference path='./resources/EntitlementOverride.d.ts' />
|
|
45
54
|
///<reference path='./resources/Estimate.d.ts' />
|
|
46
55
|
///<reference path='./resources/Event.d.ts' />
|
|
56
|
+
///<reference path='./resources/Execution.d.ts' />
|
|
47
57
|
///<reference path='./resources/Export.d.ts' />
|
|
48
58
|
///<reference path='./resources/Feature.d.ts' />
|
|
49
59
|
///<reference path='./resources/FilterCondition.d.ts' />
|
|
@@ -51,6 +61,8 @@
|
|
|
51
61
|
///<reference path='./resources/GatewayPaymentMethodToken.d.ts' />
|
|
52
62
|
///<reference path='./resources/Gift.d.ts' />
|
|
53
63
|
///<reference path='./resources/GrantBlock.d.ts' />
|
|
64
|
+
///<reference path='./resources/GroupByAttribute.d.ts' />
|
|
65
|
+
///<reference path='./resources/GroupByRecommendation.d.ts' />
|
|
54
66
|
///<reference path='./resources/Hierarchy.d.ts' />
|
|
55
67
|
///<reference path='./resources/HostedPage.d.ts' />
|
|
56
68
|
///<reference path='./resources/ImpactedCustomer.d.ts' />
|
|
@@ -92,8 +104,11 @@
|
|
|
92
104
|
///<reference path='./resources/PersonalizedOffer.d.ts' />
|
|
93
105
|
///<reference path='./resources/Plan.d.ts' />
|
|
94
106
|
///<reference path='./resources/PortalSession.d.ts' />
|
|
107
|
+
///<reference path='./resources/PreferenceVariant.d.ts' />
|
|
108
|
+
///<reference path='./resources/PriceRamp.d.ts' />
|
|
95
109
|
///<reference path='./resources/PriceVariant.d.ts' />
|
|
96
110
|
///<reference path='./resources/PricingPageSession.d.ts' />
|
|
111
|
+
///<reference path='./resources/PrivateNote.d.ts' />
|
|
97
112
|
///<reference path='./resources/PromotionalCredit.d.ts' />
|
|
98
113
|
///<reference path='./resources/PromotionalGrant.d.ts' />
|
|
99
114
|
///<reference path='./resources/Purchase.d.ts' />
|
|
@@ -105,8 +120,10 @@
|
|
|
105
120
|
///<reference path='./resources/QuotedRamp.d.ts' />
|
|
106
121
|
///<reference path='./resources/QuotedSubscription.d.ts' />
|
|
107
122
|
///<reference path='./resources/Ramp.d.ts' />
|
|
123
|
+
///<reference path='./resources/RampInterval.d.ts' />
|
|
108
124
|
///<reference path='./resources/RecordedPurchase.d.ts' />
|
|
109
125
|
///<reference path='./resources/ResourceMigration.d.ts' />
|
|
126
|
+
///<reference path='./resources/RetrySegment.d.ts' />
|
|
110
127
|
///<reference path='./resources/Rule.d.ts' />
|
|
111
128
|
///<reference path='./resources/SiteMigrationDetail.d.ts' />
|
|
112
129
|
///<reference path='./resources/Subscription.d.ts' />
|
|
@@ -296,6 +313,7 @@ declare module 'chargebee' {
|
|
|
296
313
|
businessRule: BusinessRule.BusinessRuleResource;
|
|
297
314
|
businessRuleset: BusinessRuleset.BusinessRulesetResource;
|
|
298
315
|
card: Card.CardResource;
|
|
316
|
+
collectionsPaymentPromise: CollectionsPaymentPromise.CollectionsPaymentPromiseResource;
|
|
299
317
|
comment: Comment.CommentResource;
|
|
300
318
|
configuration: Configuration.ConfigurationResource;
|
|
301
319
|
coupon: Coupon.CouponResource;
|
|
@@ -308,6 +326,7 @@ declare module 'chargebee' {
|
|
|
308
326
|
customerEntitlement: CustomerEntitlement.CustomerEntitlementResource;
|
|
309
327
|
differentialPrice: DifferentialPrice.DifferentialPriceResource;
|
|
310
328
|
dispute: Dispute.DisputeResource;
|
|
329
|
+
draftRequest: DraftRequest.DraftRequestResource;
|
|
311
330
|
einvoice: Einvoice.EinvoiceResource;
|
|
312
331
|
emailLog: EmailLog.EmailLogResource;
|
|
313
332
|
entitlement: Entitlement.EntitlementResource;
|
|
@@ -344,6 +363,7 @@ declare module 'chargebee' {
|
|
|
344
363
|
personalizedOffer: PersonalizedOffer.PersonalizedOfferResource;
|
|
345
364
|
plan: Plan.PlanResource;
|
|
346
365
|
portalSession: PortalSession.PortalSessionResource;
|
|
366
|
+
priceRamp: PriceRamp.PriceRampResource;
|
|
347
367
|
priceVariant: PriceVariant.PriceVariantResource;
|
|
348
368
|
pricingPageSession: PricingPageSession.PricingPageSessionResource;
|
|
349
369
|
promotionalCredit: PromotionalCredit.PromotionalCreditResource;
|
|
@@ -354,6 +374,7 @@ declare module 'chargebee' {
|
|
|
354
374
|
ramp: Ramp.RampResource;
|
|
355
375
|
recordedPurchase: RecordedPurchase.RecordedPurchaseResource;
|
|
356
376
|
resourceMigration: ResourceMigration.ResourceMigrationResource;
|
|
377
|
+
retrySegment: RetrySegment.RetrySegmentResource;
|
|
357
378
|
rule: Rule.RuleResource;
|
|
358
379
|
siteMigrationDetail: SiteMigrationDetail.SiteMigrationDetailResource;
|
|
359
380
|
subscription: Subscription.SubscriptionResource;
|
|
@@ -14,6 +14,27 @@ declare module 'chargebee' {
|
|
|
14
14
|
|
|
15
15
|
export namespace BusinessEntity {
|
|
16
16
|
export class BusinessEntityResource {
|
|
17
|
+
create(
|
|
18
|
+
input: CreateInputParam,
|
|
19
|
+
headers?: ChargebeeRequestHeader,
|
|
20
|
+
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
21
|
+
|
|
22
|
+
list(
|
|
23
|
+
input?: ListInputParam,
|
|
24
|
+
headers?: ChargebeeRequestHeader,
|
|
25
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
26
|
+
|
|
27
|
+
retrieve(
|
|
28
|
+
business_entity_id: string,
|
|
29
|
+
headers?: ChargebeeRequestHeader,
|
|
30
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
31
|
+
|
|
32
|
+
update(
|
|
33
|
+
business_entity_id: string,
|
|
34
|
+
input?: UpdateInputParam,
|
|
35
|
+
headers?: ChargebeeRequestHeader,
|
|
36
|
+
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
37
|
+
|
|
17
38
|
createTransfers(
|
|
18
39
|
input: CreateTransfersInputParam,
|
|
19
40
|
headers?: ChargebeeRequestHeader,
|
|
@@ -25,6 +46,23 @@ declare module 'chargebee' {
|
|
|
25
46
|
): Promise<ChargebeeResponse<GetTransfersResponse>>;
|
|
26
47
|
}
|
|
27
48
|
|
|
49
|
+
export interface CreateResponse {
|
|
50
|
+
business_entity: BusinessEntity;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ListResponse {
|
|
54
|
+
list: { business_entity: BusinessEntity }[];
|
|
55
|
+
next_offset?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface RetrieveResponse {
|
|
59
|
+
business_entity: BusinessEntity;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface UpdateResponse {
|
|
63
|
+
business_entity: BusinessEntity;
|
|
64
|
+
}
|
|
65
|
+
|
|
28
66
|
export interface CreateTransfersResponse {
|
|
29
67
|
business_entity_transfer: BusinessEntityTransfer;
|
|
30
68
|
}
|
|
@@ -37,6 +75,20 @@ declare module 'chargebee' {
|
|
|
37
75
|
// REQUEST PARAMS
|
|
38
76
|
//---------------
|
|
39
77
|
|
|
78
|
+
export interface CreateInputParam {
|
|
79
|
+
name: string;
|
|
80
|
+
status: 'active' | 'inactive';
|
|
81
|
+
}
|
|
82
|
+
export interface ListInputParam {
|
|
83
|
+
limit?: number;
|
|
84
|
+
offset?: string;
|
|
85
|
+
include_deleted?: boolean;
|
|
86
|
+
name?: filter.String;
|
|
87
|
+
}
|
|
88
|
+
export interface UpdateInputParam {
|
|
89
|
+
name?: string;
|
|
90
|
+
status?: 'active' | 'inactive';
|
|
91
|
+
}
|
|
40
92
|
export interface CreateTransfersInputParam {
|
|
41
93
|
active_resource_ids: string[];
|
|
42
94
|
destination_business_entity_ids: string[] /**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface Citation {
|
|
6
|
+
id: string;
|
|
7
|
+
param_name?: string;
|
|
8
|
+
author_name: string;
|
|
9
|
+
confidence_level?: 'low' | 'medium' | 'high' | 'not_provided';
|
|
10
|
+
created_at: number;
|
|
11
|
+
content: any;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface CollectionsDispute {
|
|
6
|
+
id: string;
|
|
7
|
+
customer_id: string;
|
|
8
|
+
invoice_id: string;
|
|
9
|
+
line_item_id?: string;
|
|
10
|
+
currency_code: string;
|
|
11
|
+
billed_amount: number;
|
|
12
|
+
claimed_deduction: number;
|
|
13
|
+
status: 'open' | 'resolved' | 'withdrawn';
|
|
14
|
+
dispute_reason_code: string;
|
|
15
|
+
resolved_reason_code?: string;
|
|
16
|
+
reason?: string;
|
|
17
|
+
opened_at: number;
|
|
18
|
+
resolved_at?: number;
|
|
19
|
+
created_at: number;
|
|
20
|
+
updated_at: number;
|
|
21
|
+
resource_version?: number;
|
|
22
|
+
undisputed_amount?: number;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 CollectionsPaymentPromise {
|
|
6
|
+
id: string;
|
|
7
|
+
customer_id: string;
|
|
8
|
+
invoice_id: string;
|
|
9
|
+
status: 'active' | 'fulfilled' | 'broken' | 'cancelled';
|
|
10
|
+
reason?: string;
|
|
11
|
+
promised_by?: string;
|
|
12
|
+
promised_on: number;
|
|
13
|
+
created_at: number;
|
|
14
|
+
updated_at: number;
|
|
15
|
+
resource_version?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export namespace CollectionsPaymentPromise {
|
|
19
|
+
export class CollectionsPaymentPromiseResource {
|
|
20
|
+
retrieve(
|
|
21
|
+
collections_payment_promise_id: string,
|
|
22
|
+
headers?: ChargebeeRequestHeader,
|
|
23
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
24
|
+
|
|
25
|
+
listCollectionsPaymentPromises(
|
|
26
|
+
input?: ListCollectionsPaymentPromisesInputParam,
|
|
27
|
+
headers?: ChargebeeRequestHeader,
|
|
28
|
+
): Promise<ChargebeeResponse<ListCollectionsPaymentPromisesResponse>>;
|
|
29
|
+
|
|
30
|
+
createCollectionsPaymentPromise(
|
|
31
|
+
input: CreateCollectionsPaymentPromiseInputParam,
|
|
32
|
+
headers?: ChargebeeRequestHeader,
|
|
33
|
+
): Promise<ChargebeeResponse<CreateCollectionsPaymentPromiseResponse>>;
|
|
34
|
+
|
|
35
|
+
updateCollectionsPaymentPromise(
|
|
36
|
+
collections_payment_promise_id: string,
|
|
37
|
+
input?: UpdateCollectionsPaymentPromiseInputParam,
|
|
38
|
+
headers?: ChargebeeRequestHeader,
|
|
39
|
+
): Promise<ChargebeeResponse<UpdateCollectionsPaymentPromiseResponse>>;
|
|
40
|
+
|
|
41
|
+
cancel(
|
|
42
|
+
collections_payment_promise_id: string,
|
|
43
|
+
headers?: ChargebeeRequestHeader,
|
|
44
|
+
): Promise<ChargebeeResponse<CancelResponse>>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface RetrieveResponse {
|
|
48
|
+
collections_payment_promise: CollectionsPaymentPromise;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ListCollectionsPaymentPromisesResponse {
|
|
52
|
+
list: { collections_payment_promise: CollectionsPaymentPromise }[];
|
|
53
|
+
next_offset?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface CreateCollectionsPaymentPromiseResponse {
|
|
57
|
+
collections_payment_promises: CollectionsPaymentPromise[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface UpdateCollectionsPaymentPromiseResponse {
|
|
61
|
+
collections_payment_promise: CollectionsPaymentPromise;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface CancelResponse {
|
|
65
|
+
collections_payment_promise: CollectionsPaymentPromise;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// REQUEST PARAMS
|
|
69
|
+
//---------------
|
|
70
|
+
|
|
71
|
+
export interface ListCollectionsPaymentPromisesInputParam {
|
|
72
|
+
limit?: number;
|
|
73
|
+
offset?: string;
|
|
74
|
+
customer_id?: filter.String;
|
|
75
|
+
invoice_id?: filter.String;
|
|
76
|
+
status?: filter.Enum;
|
|
77
|
+
}
|
|
78
|
+
export interface CreateCollectionsPaymentPromiseInputParam {
|
|
79
|
+
customer_id: string;
|
|
80
|
+
invoice_id?: string;
|
|
81
|
+
amount: number;
|
|
82
|
+
currency_code?: string;
|
|
83
|
+
promised_on: number;
|
|
84
|
+
reason?: string;
|
|
85
|
+
promised_by?: string;
|
|
86
|
+
}
|
|
87
|
+
export interface UpdateCollectionsPaymentPromiseInputParam {
|
|
88
|
+
promised_on?: number;
|
|
89
|
+
reason?: string;
|
|
90
|
+
promised_by?: string;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface CollectionsReminderSequence {
|
|
6
|
+
id: string;
|
|
7
|
+
invoice_id: string;
|
|
8
|
+
customer_id: string;
|
|
9
|
+
status: 'active' | 'completed' | 'paused' | 'failed';
|
|
10
|
+
paused_until?: number;
|
|
11
|
+
pause_note?: string;
|
|
12
|
+
started_at?: number;
|
|
13
|
+
completed_at?: number;
|
|
14
|
+
created_at: number;
|
|
15
|
+
updated_at: number;
|
|
16
|
+
resource_version?: number;
|
|
17
|
+
action_logs?: CollectionsReminderSequence.ActionLog[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export namespace CollectionsReminderSequence {
|
|
21
|
+
export interface ActionLog {
|
|
22
|
+
action_type: 'send_email';
|
|
23
|
+
status: 'completed' | 'scheduled' | 'skipped';
|
|
24
|
+
reason_code?:
|
|
25
|
+
| 'date_already_passed'
|
|
26
|
+
| 'before_invoice_date'
|
|
27
|
+
| 'trigger_event_not_received'
|
|
28
|
+
| 'sequence_paused';
|
|
29
|
+
executed_at?: number;
|
|
30
|
+
scheduled_at?: number;
|
|
31
|
+
}
|
|
32
|
+
// REQUEST PARAMS
|
|
33
|
+
//---------------
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -8,7 +8,6 @@ declare module 'chargebee' {
|
|
|
8
8
|
advance_invoice_schedule: AdvanceInvoiceSchedule;
|
|
9
9
|
alert: Alert;
|
|
10
10
|
alert_status: AlertStatus;
|
|
11
|
-
applied_business_rule: AppliedBusinessRule;
|
|
12
11
|
applied_rule: AppliedRule;
|
|
13
12
|
apply_rule: ApplyRule;
|
|
14
13
|
async_response: AsyncResponse;
|
|
@@ -23,6 +22,10 @@ declare module 'chargebee' {
|
|
|
23
22
|
business_ruleset: BusinessRuleset;
|
|
24
23
|
business_ruleset_rule: BusinessRulesetRule;
|
|
25
24
|
card: Card;
|
|
25
|
+
citation: Citation;
|
|
26
|
+
collections_dispute: CollectionsDispute;
|
|
27
|
+
collections_payment_promise: CollectionsPaymentPromise;
|
|
28
|
+
collections_reminder_sequence: CollectionsReminderSequence;
|
|
26
29
|
column_definition: ColumnDefinition;
|
|
27
30
|
comment: Comment;
|
|
28
31
|
configuration: Configuration;
|
|
@@ -36,6 +39,7 @@ declare module 'chargebee' {
|
|
|
36
39
|
credit_note_estimate: CreditNoteEstimate;
|
|
37
40
|
credit_unit: CreditUnit;
|
|
38
41
|
currency: Currency;
|
|
42
|
+
custom_data: CustomData;
|
|
39
43
|
custom_data_schema: CustomDataSchema;
|
|
40
44
|
customer: Customer;
|
|
41
45
|
customer_entitlement: CustomerEntitlement;
|
|
@@ -43,12 +47,18 @@ declare module 'chargebee' {
|
|
|
43
47
|
discount: Discount;
|
|
44
48
|
dispute: Dispute;
|
|
45
49
|
download: Download;
|
|
50
|
+
draft_estimate: DraftEstimate;
|
|
51
|
+
draft_request: DraftRequest;
|
|
46
52
|
einvoice: Einvoice;
|
|
53
|
+
email_attachment: EmailAttachment;
|
|
54
|
+
email_conversation: EmailConversation;
|
|
47
55
|
email_log: EmailLog;
|
|
56
|
+
email_message: EmailMessage;
|
|
48
57
|
entitlement: Entitlement;
|
|
49
58
|
entitlement_override: EntitlementOverride;
|
|
50
59
|
estimate: Estimate;
|
|
51
60
|
event: Event;
|
|
61
|
+
execution: Execution;
|
|
52
62
|
export: Export;
|
|
53
63
|
feature: Feature;
|
|
54
64
|
filter_condition: FilterCondition;
|
|
@@ -56,6 +66,8 @@ declare module 'chargebee' {
|
|
|
56
66
|
gateway_payment_method_token: GatewayPaymentMethodToken;
|
|
57
67
|
gift: Gift;
|
|
58
68
|
grant_block: GrantBlock;
|
|
69
|
+
group_by_attribute: GroupByAttribute;
|
|
70
|
+
group_by_recommendation: GroupByRecommendation;
|
|
59
71
|
hierarchy: Hierarchy;
|
|
60
72
|
hosted_page: HostedPage;
|
|
61
73
|
impacted_customer: ImpactedCustomer;
|
|
@@ -97,8 +109,11 @@ declare module 'chargebee' {
|
|
|
97
109
|
personalized_offer: PersonalizedOffer;
|
|
98
110
|
plan: Plan;
|
|
99
111
|
portal_session: PortalSession;
|
|
112
|
+
preference_variant: PreferenceVariant;
|
|
113
|
+
price_ramp: PriceRamp;
|
|
100
114
|
price_variant: PriceVariant;
|
|
101
115
|
pricing_page_session: PricingPageSession;
|
|
116
|
+
private_note: PrivateNote;
|
|
102
117
|
promotional_credit: PromotionalCredit;
|
|
103
118
|
promotional_grant: PromotionalGrant;
|
|
104
119
|
purchase: Purchase;
|
|
@@ -110,8 +125,10 @@ declare module 'chargebee' {
|
|
|
110
125
|
quoted_ramp: QuotedRamp;
|
|
111
126
|
quoted_subscription: QuotedSubscription;
|
|
112
127
|
ramp: Ramp;
|
|
128
|
+
ramp_interval: RampInterval;
|
|
113
129
|
recorded_purchase: RecordedPurchase;
|
|
114
130
|
resource_migration: ResourceMigration;
|
|
131
|
+
retry_segment: RetrySegment;
|
|
115
132
|
rule: Rule;
|
|
116
133
|
site_migration_detail: SiteMigrationDetail;
|
|
117
134
|
subscription: Subscription;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface CustomData {
|
|
6
|
+
entity_type: EntityTypeEnum;
|
|
7
|
+
id: string;
|
|
8
|
+
schema_id: string;
|
|
9
|
+
schema_values: string;
|
|
10
|
+
created_at: number;
|
|
11
|
+
modified_at: number;
|
|
12
|
+
updated_at?: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface DraftEstimate {
|
|
6
|
+
status: 'success' | 'failed';
|
|
7
|
+
http_status?: number;
|
|
8
|
+
created_at: number;
|
|
9
|
+
result?: any;
|
|
10
|
+
error_detail?: any;
|
|
11
|
+
revision_version?: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 DraftRequest {
|
|
6
|
+
id: string;
|
|
7
|
+
path_param?: string;
|
|
8
|
+
request_uri?: string;
|
|
9
|
+
operation_id: string;
|
|
10
|
+
status: 'open' | 'executed';
|
|
11
|
+
executed_at?: number;
|
|
12
|
+
created_at: number;
|
|
13
|
+
resource_version?: number;
|
|
14
|
+
updated_at: number;
|
|
15
|
+
current_revision?: DraftRequest.DraftRevision;
|
|
16
|
+
validations?: DraftRequest.Validation[];
|
|
17
|
+
has_comments?: boolean;
|
|
18
|
+
has_citations?: boolean;
|
|
19
|
+
executions?: DraftRequest.Execution[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace DraftRequest {
|
|
23
|
+
export interface DraftRevision {
|
|
24
|
+
version: number;
|
|
25
|
+
created_at: number;
|
|
26
|
+
payload?: object;
|
|
27
|
+
}
|
|
28
|
+
export interface Validation {
|
|
29
|
+
category?: string;
|
|
30
|
+
level?: string;
|
|
31
|
+
message?: string;
|
|
32
|
+
param_name?: string;
|
|
33
|
+
type?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface Execution {
|
|
36
|
+
status: 'success' | 'failed';
|
|
37
|
+
created_at: number;
|
|
38
|
+
result?: object;
|
|
39
|
+
error_detail?: object;
|
|
40
|
+
revision_version?: number;
|
|
41
|
+
}
|
|
42
|
+
// REQUEST PARAMS
|
|
43
|
+
//---------------
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface EmailAttachment {
|
|
6
|
+
id: string;
|
|
7
|
+
email_message_id?: string;
|
|
8
|
+
file_name?: string;
|
|
9
|
+
content_type?: string;
|
|
10
|
+
size_bytes?: number;
|
|
11
|
+
content_disposition?: string;
|
|
12
|
+
created_at: number;
|
|
13
|
+
updated_at: number;
|
|
14
|
+
resource_version?: number;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface EmailConversation {
|
|
6
|
+
id: string;
|
|
7
|
+
customer_id?: string;
|
|
8
|
+
mailbox_id?: string;
|
|
9
|
+
subject?: string;
|
|
10
|
+
last_message_preview?: string;
|
|
11
|
+
message_count: number;
|
|
12
|
+
status?: string;
|
|
13
|
+
last_message_at?: number;
|
|
14
|
+
created_at: number;
|
|
15
|
+
updated_at: number;
|
|
16
|
+
resource_version?: number;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface EmailMessage {
|
|
6
|
+
id: string;
|
|
7
|
+
email_conversation_id?: string;
|
|
8
|
+
message_type?: string;
|
|
9
|
+
author_type?: 'contact' | 'site_user' | 'agent' | 'other';
|
|
10
|
+
send_status?: 'pending' | 'sent' | 'failed';
|
|
11
|
+
content_html?: string;
|
|
12
|
+
content_text?: string;
|
|
13
|
+
created_at: number;
|
|
14
|
+
updated_at: number;
|
|
15
|
+
resource_version?: number;
|
|
16
|
+
mailbox_id?: string;
|
|
17
|
+
author_id?: string;
|
|
18
|
+
author_name?: string;
|
|
19
|
+
from_email?: string;
|
|
20
|
+
to_emails?: string[];
|
|
21
|
+
cc_emails?: string[];
|
|
22
|
+
attachments?: EmailMessage.Attachment[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace EmailMessage {
|
|
26
|
+
export interface Attachment {
|
|
27
|
+
id: string;
|
|
28
|
+
email_message_id?: string;
|
|
29
|
+
file_name?: string;
|
|
30
|
+
content_type?: string;
|
|
31
|
+
size_bytes?: number;
|
|
32
|
+
content_disposition?: string;
|
|
33
|
+
created_at: number;
|
|
34
|
+
updated_at: number;
|
|
35
|
+
resource_version?: number;
|
|
36
|
+
}
|
|
37
|
+
// REQUEST PARAMS
|
|
38
|
+
//---------------
|
|
39
|
+
}
|
|
40
|
+
}
|