chargebee 3.0.0-beta.4 → 3.0.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 (84) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +4 -3
  3. package/cjs/environment.js +1 -1
  4. package/cjs/util.js +1 -1
  5. package/esm/environment.js +1 -1
  6. package/esm/util.js +1 -1
  7. package/package.json +1 -1
  8. package/types/core.d.ts +0 -564
  9. package/types/index.d.ts +0 -167
  10. package/types/resources/Address.d.ts +0 -71
  11. package/types/resources/AdvanceInvoiceSchedule.d.ts +0 -29
  12. package/types/resources/AttachedItem.d.ts +0 -114
  13. package/types/resources/Attribute.d.ts +0 -9
  14. package/types/resources/BusinessEntity.d.ts +0 -64
  15. package/types/resources/BusinessEntityTransfer.d.ts +0 -15
  16. package/types/resources/Card.d.ts +0 -171
  17. package/types/resources/Comment.d.ts +0 -89
  18. package/types/resources/Contact.d.ts +0 -16
  19. package/types/resources/ContractTerm.d.ts +0 -19
  20. package/types/resources/Coupon.d.ts +0 -314
  21. package/types/resources/CouponCode.d.ts +0 -70
  22. package/types/resources/CouponSet.d.ts +0 -111
  23. package/types/resources/CreditNote.d.ts +0 -628
  24. package/types/resources/CreditNoteEstimate.d.ts +0 -143
  25. package/types/resources/Currency.d.ts +0 -91
  26. package/types/resources/Customer.d.ts +0 -962
  27. package/types/resources/CustomerEntitlement.d.ts +0 -36
  28. package/types/resources/DifferentialPrice.d.ts +0 -142
  29. package/types/resources/Discount.d.ts +0 -24
  30. package/types/resources/Download.d.ts +0 -10
  31. package/types/resources/Entitlement.d.ts +0 -66
  32. package/types/resources/EntitlementOverride.d.ts +0 -76
  33. package/types/resources/Estimate.d.ts +0 -1237
  34. package/types/resources/Event.d.ts +0 -81
  35. package/types/resources/Export.d.ts +0 -607
  36. package/types/resources/Feature.d.ts +0 -142
  37. package/types/resources/GatewayErrorDetail.d.ts +0 -20
  38. package/types/resources/Gift.d.ts +0 -296
  39. package/types/resources/Hierarchy.d.ts +0 -12
  40. package/types/resources/HostedPage.d.ts +0 -1112
  41. package/types/resources/ImpactedItem.d.ts +0 -20
  42. package/types/resources/ImpactedItemPrice.d.ts +0 -20
  43. package/types/resources/ImpactedSubscription.d.ts +0 -20
  44. package/types/resources/InAppSubscription.d.ts +0 -116
  45. package/types/resources/Invoice.d.ts +0 -1691
  46. package/types/resources/InvoiceEstimate.d.ts +0 -143
  47. package/types/resources/Item.d.ts +0 -204
  48. package/types/resources/ItemEntitlement.d.ts +0 -103
  49. package/types/resources/ItemFamily.d.ts +0 -89
  50. package/types/resources/ItemPrice.d.ts +0 -328
  51. package/types/resources/Metadata.d.ts +0 -8
  52. package/types/resources/NonSubscription.d.ts +0 -48
  53. package/types/resources/Order.d.ts +0 -586
  54. package/types/resources/PaymentIntent.d.ts +0 -178
  55. package/types/resources/PaymentReferenceNumber.d.ts +0 -11
  56. package/types/resources/PaymentSchedule.d.ts +0 -28
  57. package/types/resources/PaymentScheduleEstimate.d.ts +0 -25
  58. package/types/resources/PaymentScheduleScheme.d.ts +0 -62
  59. package/types/resources/PaymentSource.d.ts +0 -529
  60. package/types/resources/PaymentVoucher.d.ts +0 -107
  61. package/types/resources/PortalSession.d.ts +0 -88
  62. package/types/resources/PriceVariant.d.ts +0 -112
  63. package/types/resources/PricingPageSession.d.ts +0 -130
  64. package/types/resources/PromotionalCredit.d.ts +0 -111
  65. package/types/resources/Purchase.d.ts +0 -202
  66. package/types/resources/Quote.d.ts +0 -1467
  67. package/types/resources/QuoteLineGroup.d.ts +0 -136
  68. package/types/resources/QuotedCharge.d.ts +0 -56
  69. package/types/resources/QuotedSubscription.d.ts +0 -114
  70. package/types/resources/Ramp.d.ts +0 -260
  71. package/types/resources/ResourceMigration.d.ts +0 -36
  72. package/types/resources/SiteMigrationDetail.d.ts +0 -46
  73. package/types/resources/Subscription.d.ts +0 -2443
  74. package/types/resources/SubscriptionEntitlement.d.ts +0 -79
  75. package/types/resources/SubscriptionEstimate.d.ts +0 -59
  76. package/types/resources/TaxWithheld.d.ts +0 -19
  77. package/types/resources/ThirdPartyPaymentMethod.d.ts +0 -11
  78. package/types/resources/TimeMachine.d.ts +0 -57
  79. package/types/resources/Token.d.ts +0 -19
  80. package/types/resources/Transaction.d.ts +0 -313
  81. package/types/resources/UnbilledCharge.d.ts +0 -209
  82. package/types/resources/Usage.d.ts +0 -113
  83. package/types/resources/VirtualBankAccount.d.ts +0 -125
  84. package/types/resources/filter.d.ts +0 -52
@@ -1,20 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }
@@ -1,116 +0,0 @@
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
- }