chargebee 3.12.0-beta.1 → 3.12.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 +57 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +75 -4
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +75 -4
- package/package.json +1 -1
- package/types/core.d.ts +8 -1
- package/types/index.d.ts +8 -0
- package/types/resources/Comment.d.ts +4 -0
- package/types/resources/CreditNote.d.ts +83 -76
- package/types/resources/Customer.d.ts +1 -0
- package/types/resources/CustomerEntitlement.d.ts +1 -0
- package/types/resources/Discount.d.ts +2 -1
- package/types/resources/Estimate.d.ts +4 -0
- package/types/resources/HostedPage.d.ts +3 -0
- package/types/resources/ImpactedCustomer.d.ts +19 -0
- package/types/resources/Invoice.d.ts +86 -79
- package/types/resources/OmnichannelOneTimeOrder.d.ts +62 -0
- package/types/resources/OmnichannelOneTimeOrderItem.d.ts +20 -0
- package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
- package/types/resources/PricingPageSession.d.ts +2 -0
- package/types/resources/PromotionalCredit.d.ts +1 -0
- package/types/resources/Purchase.d.ts +2 -0
- package/types/resources/Quote.d.ts +6 -0
- package/types/resources/QuotedCharge.d.ts +5 -0
- package/types/resources/RecordedPurchase.d.ts +6 -0
- package/types/resources/Subscription.d.ts +9 -2
- package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +9 -0
- package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +9 -0
- package/types/resources/UsageFile.d.ts +8 -8
- package/types/resources/WebhookEndpoint.d.ts +98 -0
|
@@ -22,22 +22,22 @@ declare module 'chargebee' {
|
|
|
22
22
|
|
|
23
23
|
export namespace UsageFile {
|
|
24
24
|
export class UsageFileResource {
|
|
25
|
-
|
|
26
|
-
input:
|
|
25
|
+
uploadUrl(
|
|
26
|
+
input: UploadUrlInputParam,
|
|
27
27
|
headers?: ChargebeeRequestHeader,
|
|
28
|
-
): Promise<ChargebeeResponse<
|
|
28
|
+
): Promise<ChargebeeResponse<UploadUrlResponse>>;
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
processingStatus(
|
|
31
31
|
usage_file_id: string,
|
|
32
32
|
headers?: ChargebeeRequestHeader,
|
|
33
|
-
): Promise<ChargebeeResponse<
|
|
33
|
+
): Promise<ChargebeeResponse<ProcessingStatusResponse>>;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface
|
|
36
|
+
export interface UploadUrlResponse {
|
|
37
37
|
usage_file: UsageFile;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export interface
|
|
40
|
+
export interface ProcessingStatusResponse {
|
|
41
41
|
usage_file: UsageFile;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -48,7 +48,7 @@ declare module 'chargebee' {
|
|
|
48
48
|
// REQUEST PARAMS
|
|
49
49
|
//---------------
|
|
50
50
|
|
|
51
|
-
export interface
|
|
51
|
+
export interface UploadUrlInputParam {
|
|
52
52
|
file_name: string;
|
|
53
53
|
mime_type: string;
|
|
54
54
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 WebhookEndpoint {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
send_card_resource?: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
primary_url: boolean;
|
|
12
|
+
api_version: 'v1' | 'v2';
|
|
13
|
+
chargebee_response_schema_type?: ChargebeeResponseSchemaTypeEnum;
|
|
14
|
+
enabled_events?: EventTypeEnum[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export namespace WebhookEndpoint {
|
|
18
|
+
export class WebhookEndpointResource {
|
|
19
|
+
create(
|
|
20
|
+
input: CreateInputParam,
|
|
21
|
+
headers?: ChargebeeRequestHeader,
|
|
22
|
+
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
23
|
+
|
|
24
|
+
update(
|
|
25
|
+
webhook_endpoint_id: string,
|
|
26
|
+
input?: UpdateInputParam,
|
|
27
|
+
headers?: ChargebeeRequestHeader,
|
|
28
|
+
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
29
|
+
|
|
30
|
+
retrieve(
|
|
31
|
+
webhook_endpoint_id: string,
|
|
32
|
+
headers?: ChargebeeRequestHeader,
|
|
33
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
34
|
+
|
|
35
|
+
delete(
|
|
36
|
+
webhook_endpoint_id: string,
|
|
37
|
+
headers?: ChargebeeRequestHeader,
|
|
38
|
+
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
39
|
+
|
|
40
|
+
list(
|
|
41
|
+
input?: ListInputParam,
|
|
42
|
+
headers?: ChargebeeRequestHeader,
|
|
43
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface CreateResponse {
|
|
47
|
+
webhook_endpoint: WebhookEndpoint;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface UpdateResponse {
|
|
51
|
+
webhook_endpoint: WebhookEndpoint;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface RetrieveResponse {
|
|
55
|
+
webhook_endpoint: WebhookEndpoint;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface DeleteResponse {
|
|
59
|
+
webhook_endpoint: WebhookEndpoint;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface ListResponse {
|
|
63
|
+
list: { webhook_endpoint: WebhookEndpoint }[];
|
|
64
|
+
next_offset?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// REQUEST PARAMS
|
|
68
|
+
//---------------
|
|
69
|
+
|
|
70
|
+
export interface CreateInputParam {
|
|
71
|
+
name: string;
|
|
72
|
+
api_version?: 'v1' | 'v2';
|
|
73
|
+
url: string;
|
|
74
|
+
primary_url?: boolean;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
basic_auth_password?: string;
|
|
77
|
+
basic_auth_username?: string;
|
|
78
|
+
send_card_resource?: boolean;
|
|
79
|
+
chargebee_response_schema_type?: ChargebeeResponseSchemaTypeEnum;
|
|
80
|
+
enabled_events?: EventTypeEnum[];
|
|
81
|
+
}
|
|
82
|
+
export interface UpdateInputParam {
|
|
83
|
+
name?: string;
|
|
84
|
+
api_version?: 'v1' | 'v2';
|
|
85
|
+
url?: string;
|
|
86
|
+
primary_url?: boolean;
|
|
87
|
+
send_card_resource?: boolean;
|
|
88
|
+
basic_auth_password?: string;
|
|
89
|
+
basic_auth_username?: string;
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
enabled_events?: EventTypeEnum[];
|
|
92
|
+
}
|
|
93
|
+
export interface ListInputParam {
|
|
94
|
+
limit?: number;
|
|
95
|
+
offset?: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|