chargebee 3.18.0 → 3.20.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +57 -1
  2. package/README.md +1 -1
  3. package/cjs/environment.js +1 -1
  4. package/cjs/resources/api_endpoints.js +0 -13
  5. package/cjs/resources/webhook/eventType.js +1 -0
  6. package/esm/environment.js +1 -1
  7. package/esm/resources/api_endpoints.js +0 -13
  8. package/esm/resources/webhook/eventType.js +1 -0
  9. package/package.json +1 -1
  10. package/types/core.d.ts +20 -3
  11. package/types/index.d.ts +0 -7
  12. package/types/resources/Content.d.ts +0 -5
  13. package/types/resources/Coupon.d.ts +1 -0
  14. package/types/resources/CreditNote.d.ts +8 -1
  15. package/types/resources/Customer.d.ts +14 -2
  16. package/types/resources/Einvoice.d.ts +8 -1
  17. package/types/resources/EntitlementOverride.d.ts +5 -0
  18. package/types/resources/Estimate.d.ts +14 -2
  19. package/types/resources/Event.d.ts +1 -0
  20. package/types/resources/Export.d.ts +1 -0
  21. package/types/resources/Gift.d.ts +14 -2
  22. package/types/resources/HostedPage.d.ts +1 -0
  23. package/types/resources/Invoice.d.ts +22 -3
  24. package/types/resources/ItemPrice.d.ts +0 -18
  25. package/types/resources/OmnichannelSubscription.d.ts +5 -0
  26. package/types/resources/PaymentIntent.d.ts +35 -5
  27. package/types/resources/PaymentSource.d.ts +7 -1
  28. package/types/resources/PricingPageSession.d.ts +1 -1
  29. package/types/resources/Purchase.d.ts +7 -1
  30. package/types/resources/Subscription.d.ts +51 -7
  31. package/types/resources/WebhookEvent.d.ts +9 -12
  32. package/types/resources/BusinessEntityChange.d.ts +0 -16
  33. package/types/resources/Product.d.ts +0 -135
  34. package/types/resources/SalesOrder.d.ts +0 -153
  35. package/types/resources/UsageReminderInfo.d.ts +0 -9
  36. package/types/resources/Variant.d.ts +0 -116
@@ -1,116 +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 Variant {
6
- id?: string;
7
- name: string;
8
- external_name?: string;
9
- description?: string;
10
- sku?: string;
11
- deleted: boolean;
12
- product_id: string;
13
- status?: 'active' | 'inactive';
14
- created_at: number;
15
- resource_version?: number;
16
- updated_at?: number;
17
- option_values?: Variant.OptionValue[];
18
- metadata?: any;
19
- }
20
-
21
- export namespace Variant {
22
- export class VariantResource {
23
- createProductVariant(
24
- product_id: string,
25
- input: CreateProductVariantInputParam,
26
- headers?: ChargebeeRequestHeader,
27
- ): Promise<ChargebeeResponse<CreateProductVariantResponse>>;
28
-
29
- retrieve(
30
- product_variant_id: string,
31
- headers?: ChargebeeRequestHeader,
32
- ): Promise<ChargebeeResponse<RetrieveResponse>>;
33
-
34
- update(
35
- product_variant_id: string,
36
- input?: UpdateInputParam,
37
- headers?: ChargebeeRequestHeader,
38
- ): Promise<ChargebeeResponse<UpdateResponse>>;
39
-
40
- delete(
41
- product_variant_id: string,
42
- headers?: ChargebeeRequestHeader,
43
- ): Promise<ChargebeeResponse<DeleteResponse>>;
44
-
45
- listProductVariants(
46
- product_id: string,
47
- input?: ListProductVariantsInputParam,
48
- headers?: ChargebeeRequestHeader,
49
- ): Promise<ChargebeeResponse<ListProductVariantsResponse>>;
50
- }
51
-
52
- export interface CreateProductVariantResponse {
53
- variant: Variant;
54
- }
55
-
56
- export interface RetrieveResponse {
57
- variant: Variant;
58
- }
59
-
60
- export interface UpdateResponse {
61
- variant: Variant;
62
- }
63
-
64
- export interface DeleteResponse {
65
- variant: Variant;
66
- }
67
-
68
- export interface ListProductVariantsResponse {
69
- list: { variant: Variant }[];
70
- next_offset?: string;
71
- }
72
-
73
- export interface OptionValue {
74
- name?: string;
75
- value?: string;
76
- }
77
- // REQUEST PARAMS
78
- //---------------
79
-
80
- export interface CreateProductVariantInputParam {
81
- id?: string;
82
- name: string;
83
- external_name?: string;
84
- description?: string;
85
- sku?: string;
86
- metadata?: any;
87
- status?: 'active' | 'inactive';
88
- option_values?: OptionValuesCreateProductVariantInputParam[];
89
- }
90
- export interface UpdateInputParam {
91
- name?: string;
92
- description?: string;
93
- status?: 'active' | 'inactive';
94
- external_name?: string;
95
- sku?: string;
96
- metadata?: any;
97
- }
98
- export interface ListProductVariantsInputParam {
99
- limit?: number;
100
- offset?: string;
101
- include_deleted?: boolean;
102
- id?: filter.String;
103
- name?: filter.String;
104
- sku?: filter.String;
105
- status?: filter.Enum;
106
- updated_at?: filter.Timestamp;
107
- created_at?: filter.Timestamp;
108
- 'sort_by[asc]'?: string;
109
- 'sort_by[desc]'?: string;
110
- }
111
- export interface OptionValuesCreateProductVariantInputParam {
112
- name: string;
113
- value: string;
114
- }
115
- }
116
- }