chargebee 2.25.3 → 2.26.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +55 -49
  3. package/lib/chargebee.js +1 -1
  4. package/package.json +1 -1
  5. package/types/core.d.ts +1 -0
  6. package/types/resources/Address.d.ts +245 -5
  7. package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
  8. package/types/resources/AttachedItem.d.ts +305 -13
  9. package/types/resources/Card.d.ts +485 -13
  10. package/types/resources/Comment.d.ts +177 -11
  11. package/types/resources/Contact.d.ts +54 -0
  12. package/types/resources/ContractTerm.d.ts +83 -0
  13. package/types/resources/Coupon.d.ts +665 -20
  14. package/types/resources/CouponCode.d.ts +56 -5
  15. package/types/resources/CouponSet.d.ts +224 -17
  16. package/types/resources/CreditNote.d.ts +1202 -44
  17. package/types/resources/CreditNoteEstimate.d.ts +75 -6
  18. package/types/resources/Customer.d.ts +2132 -73
  19. package/types/resources/DifferentialPrice.d.ts +266 -15
  20. package/types/resources/Discount.d.ts +107 -0
  21. package/types/resources/Download.d.ts +18 -0
  22. package/types/resources/EntitlementOverride.d.ts +101 -7
  23. package/types/resources/Estimate.d.ts +1181 -27
  24. package/types/resources/Event.d.ts +145 -8
  25. package/types/resources/Export.d.ts +703 -32
  26. package/types/resources/Feature.d.ts +356 -22
  27. package/types/resources/Gift.d.ts +351 -24
  28. package/types/resources/Hierarchy.d.ts +30 -0
  29. package/types/resources/HostedPage.d.ts +1212 -37
  30. package/types/resources/ImpactedItem.d.ts +41 -1
  31. package/types/resources/ImpactedSubscription.d.ts +36 -1
  32. package/types/resources/InAppSubscription.d.ts +636 -9
  33. package/types/resources/Invoice.d.ts +2293 -93
  34. package/types/resources/InvoiceEstimate.d.ts +75 -6
  35. package/types/resources/Item.d.ts +542 -16
  36. package/types/resources/ItemEntitlement.d.ts +172 -13
  37. package/types/resources/ItemFamily.d.ts +173 -15
  38. package/types/resources/ItemPrice.d.ts +971 -26
  39. package/types/resources/Media.d.ts +24 -0
  40. package/types/resources/NonSubscription.d.ts +51 -3
  41. package/types/resources/Order.d.ts +1224 -32
  42. package/types/resources/PaymentIntent.d.ts +318 -8
  43. package/types/resources/PaymentReferenceNumber.d.ts +24 -0
  44. package/types/resources/PaymentSource.d.ts +1259 -55
  45. package/types/resources/PaymentVoucher.d.ts +262 -14
  46. package/types/resources/PortalSession.d.ts +187 -10
  47. package/types/resources/PromotionalCredit.d.ts +351 -16
  48. package/types/resources/Purchase.d.ts +274 -5
  49. package/types/resources/Quote.d.ts +1595 -62
  50. package/types/resources/QuoteLineGroup.d.ts +134 -5
  51. package/types/resources/QuotedCharge.d.ts +63 -5
  52. package/types/resources/QuotedSubscription.d.ts +192 -5
  53. package/types/resources/ResourceMigration.d.ts +73 -3
  54. package/types/resources/SiteMigrationDetail.d.ts +98 -5
  55. package/types/resources/Subscription.d.ts +3462 -137
  56. package/types/resources/SubscriptionEntitlement.d.ts +116 -8
  57. package/types/resources/SubscriptionEstimate.d.ts +36 -2
  58. package/types/resources/TaxWithheld.d.ts +32 -0
  59. package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
  60. package/types/resources/TimeMachine.d.ts +99 -7
  61. package/types/resources/Token.d.ts +179 -7
  62. package/types/resources/Transaction.d.ts +597 -25
  63. package/types/resources/UnbilledCharge.d.ts +355 -14
  64. package/types/resources/Usage.d.ts +259 -13
  65. package/types/resources/VirtualBankAccount.d.ts +255 -17
@@ -1,29 +1,122 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
2
  declare module 'chargebee' {
3
3
  export interface SiteMigrationDetail {
4
+
5
+ /**
6
+ * @description Id of the entity in this site.
7
+
8
+ */
9
+
4
10
  entity_id:string;
11
+
12
+ /**
13
+ * @description Site name to which the record is moved in/out.
14
+
15
+ */
16
+
5
17
  other_site_name:string;
18
+
19
+ /**
20
+ * @description Entity Id of the record in the other site.
21
+
22
+ */
23
+
6
24
  entity_id_at_other_site:string;
25
+
26
+ /**
27
+ * @description Date in which the record is copied
28
+
29
+ */
30
+
7
31
  migrated_at:number;
32
+
33
+ /**
34
+ * @description Entity Type of the record \* order - Entity that represents an order \* customer - Entity that represents a customer \* invoice - Invoice description \* subscription - Entity that represents a subscription of a customer \* transaction - Entity that represents a transaction. \* credit_note - Credit note description
35
+
36
+ */
37
+
8
38
  entity_type:'credit_note' | 'subscription' | 'invoice' | 'transaction' | 'customer' | 'order';
39
+
40
+ /**
41
+ * @description Status of the migration \* moving_out - Moving out from one cb site to another \* moved_in - Moved in from another cb site \* moved_out - Moved out from one cb site to another
42
+
43
+ */
44
+
9
45
  status:'moving_out' | 'moved_in' | 'moved_out';
10
46
  }
11
47
  export namespace SiteMigrationDetail {
12
- export class SiteMigrationDetailResource {
48
+ export class SiteMigrationDetailResource {
49
+ /**
50
+ * @description This endpoint lists the site migration details.
51
+
52
+ */
53
+
13
54
  list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
14
55
  }
15
- export interface ListResponse {
16
- list:{site_migration_detail:SiteMigrationDetail}[];
17
- next_offset?:string;
56
+ export interface ListResponse {
57
+ /**
58
+ * @description This endpoint lists the site migration details.
59
+
60
+ */
61
+
62
+ list:{site_migration_detail:SiteMigrationDetail}[];
63
+
64
+ /**
65
+ * @description This endpoint lists the site migration details.
66
+
67
+ */
68
+
69
+ next_offset?:string;
18
70
  }
19
71
  export interface ListInputParam {
20
- [key : string]: any;
72
+ [key : string]: any;
73
+ /**
74
+ * @description The number of resources to be returned.
75
+
76
+ */
77
+
21
78
  limit?:number;
79
+
80
+ /**
81
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \&#x60;offset\&#x60; to the value of \&#x60;next_offset\&#x60; obtained in the previous iteration of the API call.
82
+
83
+ */
84
+
22
85
  offset?:string;
86
+
87
+ /**
88
+ * @description Entity Id of the record in the other site.
89
+
90
+ */
91
+
23
92
  entity_id_at_other_site?:{is?:string,is_not?:string,starts_with?:string};
93
+
94
+ /**
95
+ * @description Site name to which the record is moved in/out.
96
+
97
+ */
98
+
24
99
  other_site_name?:{is?:string,is_not?:string,starts_with?:string};
100
+
101
+ /**
102
+ * @description Id of the entity in this site.
103
+
104
+ */
105
+
25
106
  entity_id?:{is?:string,is_not?:string,starts_with?:string};
107
+
108
+ /**
109
+ * @description Entity Type of the record
110
+
111
+ */
112
+
26
113
  entity_type?:{in?:string,is?:'credit_note' | 'subscription' | 'invoice' | 'transaction' | 'customer' | 'order',is_not?:'credit_note' | 'subscription' | 'invoice' | 'transaction' | 'customer' | 'order',not_in?:string};
114
+
115
+ /**
116
+ * @description Status of the migration
117
+
118
+ */
119
+
27
120
  status?:{in?:string,is?:'moving_out' | 'moved_in' | 'moved_out',is_not?:'moving_out' | 'moved_in' | 'moved_out',not_in?:string};
28
121
  }
29
122