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,9 +1,33 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
2
  declare module 'chargebee' {
3
3
  export interface Media {
4
+
5
+ /**
6
+ * @description The unique identifier for the media file. This is auto-generated by Chargebee.
7
+
8
+ */
9
+
4
10
  id:string;
11
+
12
+ /**
13
+ * @description The public URL for accessing the media file. This is auto-generated by Chargebee.
14
+
15
+ */
16
+
5
17
  url?:string;
18
+
19
+ /**
20
+ * @description The [alternative text](https://webaim.org/techniques/alttext/) for the image. Applicable only when the top-level &#x60;media_type&#x60; is &#x60;image&#x60;.
21
+
22
+ */
23
+
6
24
  alt_text?:string;
25
+
26
+ /**
27
+ * @description The [media type](https://en.wikipedia.org/wiki/Media_type) of the file.
28
+
29
+ */
30
+
7
31
  media_type?:string;
8
32
  }
9
33
  }
@@ -1,20 +1,68 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
2
  declare module 'chargebee' {
3
3
  export interface NonSubscription {
4
+
5
+ /**
6
+ * @description The unique immutable identifier of the invoice imported in Chargebee for which the receipt was sent.
7
+
8
+ */
9
+
4
10
  invoice_id:string;
11
+
12
+ /**
13
+ * @description The unique immutable identifier of the customer object to which the invoice belongs.
14
+
15
+ */
16
+
5
17
  customer_id?:string;
18
+
19
+ /**
20
+ * @description The [&#x60;subscription_item.item_price_id&#x60;](https://apidocs.chargebee.com/docs/api/subscriptions?prod_cat_ver&#x3D;2#subscription_item_tiers_item_price_id) where the &#x60;item_type&#x60; is &#x60;charge&#x60;.
21
+
22
+ */
23
+
6
24
  charge_id:string;
7
25
  }
8
26
  export namespace NonSubscription {
9
- export class NonSubscriptionResource {
27
+ export class NonSubscriptionResource {
28
+ /**
29
+ * @description This API is used to sync consumable, non-consumable, and non-renewing product payments in Chargebee.
30
+
31
+ */
32
+
10
33
  process_receipt(non_subscription_app_id:string, input:ProcessReceiptInputParam):ChargebeeRequest<ProcessReceiptResponse>;
11
34
  }
12
- export interface ProcessReceiptResponse {
13
- non_subscription:NonSubscription;
35
+ export interface ProcessReceiptResponse {
36
+ /**
37
+ * @description This API is used to sync consumable, non-consumable, and non-renewing product payments in Chargebee.
38
+
39
+ */
40
+
41
+ non_subscription:NonSubscription;
14
42
  }
15
43
  export interface ProcessReceiptInputParam {
44
+
45
+ /**
46
+ * @description **Google Play Store** : The purchase &#x60;token&#x60; taken from the Android device after successful creation of the in-app purchase.
47
+
48
+ **Apple App Store** : The Base64 encoded [App Store in-app purchase receipt](https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/validating_receipts_with_the_app_store?language&#x3D;objc#overview) taken from the Apple device after successful creation of the in-app purchase.
49
+
50
+ */
51
+
16
52
  receipt:string;
53
+
54
+ /**
55
+ * @description Parameters for product
56
+
57
+ */
58
+
17
59
  product?:{currency_code:string,id:string,name?:string,price:number,price_in_decimal?:string,type:'non_consumable' | 'consumable' | 'non_renewing_subscription'};
60
+
61
+ /**
62
+ * @description Parameters for customer
63
+
64
+ */
65
+
18
66
  customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
19
67
  }
20
68