chargebee 3.0.1 → 3.1.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 (86) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +16 -0
  4. package/esm/environment.js +1 -1
  5. package/esm/resources/api_endpoints.js +16 -0
  6. package/package.json +1 -1
  7. package/types/core.d.ts +588 -0
  8. package/types/index.d.ts +172 -0
  9. package/types/resources/Address.d.ts +71 -0
  10. package/types/resources/AdvanceInvoiceSchedule.d.ts +29 -0
  11. package/types/resources/AttachedItem.d.ts +116 -0
  12. package/types/resources/Attribute.d.ts +9 -0
  13. package/types/resources/BusinessEntity.d.ts +64 -0
  14. package/types/resources/BusinessEntityTransfer.d.ts +15 -0
  15. package/types/resources/Card.d.ts +172 -0
  16. package/types/resources/Comment.d.ts +92 -0
  17. package/types/resources/Contact.d.ts +16 -0
  18. package/types/resources/ContractTerm.d.ts +19 -0
  19. package/types/resources/Coupon.d.ts +329 -0
  20. package/types/resources/CouponCode.d.ts +70 -0
  21. package/types/resources/CouponSet.d.ts +111 -0
  22. package/types/resources/CreditNote.d.ts +629 -0
  23. package/types/resources/CreditNoteEstimate.d.ts +143 -0
  24. package/types/resources/Currency.d.ts +91 -0
  25. package/types/resources/Customer.d.ts +964 -0
  26. package/types/resources/CustomerEntitlement.d.ts +36 -0
  27. package/types/resources/DifferentialPrice.d.ts +144 -0
  28. package/types/resources/Discount.d.ts +24 -0
  29. package/types/resources/Download.d.ts +10 -0
  30. package/types/resources/Entitlement.d.ts +66 -0
  31. package/types/resources/EntitlementOverride.d.ts +76 -0
  32. package/types/resources/Estimate.d.ts +1237 -0
  33. package/types/resources/Event.d.ts +81 -0
  34. package/types/resources/Export.d.ts +615 -0
  35. package/types/resources/Feature.d.ts +142 -0
  36. package/types/resources/GatewayErrorDetail.d.ts +20 -0
  37. package/types/resources/Gift.d.ts +296 -0
  38. package/types/resources/Hierarchy.d.ts +12 -0
  39. package/types/resources/HostedPage.d.ts +1112 -0
  40. package/types/resources/ImpactedItem.d.ts +20 -0
  41. package/types/resources/ImpactedItemPrice.d.ts +20 -0
  42. package/types/resources/ImpactedSubscription.d.ts +20 -0
  43. package/types/resources/InAppSubscription.d.ts +116 -0
  44. package/types/resources/Invoice.d.ts +1695 -0
  45. package/types/resources/InvoiceEstimate.d.ts +143 -0
  46. package/types/resources/Item.d.ts +208 -0
  47. package/types/resources/ItemEntitlement.d.ts +103 -0
  48. package/types/resources/ItemFamily.d.ts +93 -0
  49. package/types/resources/ItemPrice.d.ts +332 -0
  50. package/types/resources/Metadata.d.ts +8 -0
  51. package/types/resources/NonSubscription.d.ts +48 -0
  52. package/types/resources/OmnichannelSubscription.d.ts +75 -0
  53. package/types/resources/OmnichannelTransaction.d.ts +16 -0
  54. package/types/resources/Order.d.ts +586 -0
  55. package/types/resources/PaymentIntent.d.ts +178 -0
  56. package/types/resources/PaymentReferenceNumber.d.ts +11 -0
  57. package/types/resources/PaymentSchedule.d.ts +28 -0
  58. package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
  59. package/types/resources/PaymentScheduleScheme.d.ts +67 -0
  60. package/types/resources/PaymentSource.d.ts +530 -0
  61. package/types/resources/PaymentVoucher.d.ts +107 -0
  62. package/types/resources/PortalSession.d.ts +88 -0
  63. package/types/resources/PriceVariant.d.ts +116 -0
  64. package/types/resources/PricingPageSession.d.ts +130 -0
  65. package/types/resources/PromotionalCredit.d.ts +111 -0
  66. package/types/resources/Purchase.d.ts +202 -0
  67. package/types/resources/Quote.d.ts +1467 -0
  68. package/types/resources/QuoteLineGroup.d.ts +136 -0
  69. package/types/resources/QuotedCharge.d.ts +56 -0
  70. package/types/resources/QuotedSubscription.d.ts +114 -0
  71. package/types/resources/Ramp.d.ts +260 -0
  72. package/types/resources/RecordedPurchase.d.ts +60 -0
  73. package/types/resources/ResourceMigration.d.ts +36 -0
  74. package/types/resources/SiteMigrationDetail.d.ts +46 -0
  75. package/types/resources/Subscription.d.ts +2447 -0
  76. package/types/resources/SubscriptionEntitlement.d.ts +79 -0
  77. package/types/resources/SubscriptionEstimate.d.ts +59 -0
  78. package/types/resources/TaxWithheld.d.ts +19 -0
  79. package/types/resources/ThirdPartyPaymentMethod.d.ts +11 -0
  80. package/types/resources/TimeMachine.d.ts +57 -0
  81. package/types/resources/Token.d.ts +19 -0
  82. package/types/resources/Transaction.d.ts +316 -0
  83. package/types/resources/UnbilledCharge.d.ts +209 -0
  84. package/types/resources/Usage.d.ts +113 -0
  85. package/types/resources/VirtualBankAccount.d.ts +125 -0
  86. package/types/resources/filter.d.ts +52 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,68 @@
1
+ ### v3.1.0 (2024-11-14)
2
+ * * *
3
+
4
+ #### New Resource:
5
+ * OmnichannelTransaction has been added.
6
+ * OmnichannelSubscription has been added.
7
+ * RecordedPurchase has been added.
8
+
9
+
10
+ #### New Attributes:
11
+ * business_entity_id has been added to AttachedItem.
12
+ * business_entity_id has been added to DifferentialPrice.
13
+ * business_entity_id has been added to Items.
14
+ * business_entity_id has been added to ItemFamily.
15
+ * business_entity_id has been added to ItemPrice.
16
+ * business_entity_id has been added to PriceVariant.
17
+ * valid_from has been added to coupon.
18
+
19
+ #### New Input Parameters:
20
+ * business_entity_id has been added to AttachedItem#CreateRequest.
21
+ * preferred_scheme has been added to Card#UpdateCardForCustomerRequest.
22
+ * valid_from has been added to Coupon#CreateForItem & Coupon#UpdateForItemsRequest.
23
+ * preferred_scheme has been added to Customer#CreateRequest & Customer#CollectPaymentRequest.
24
+ * business_entity_id has been added to DifferentialPrice#CreateRequest.
25
+ * preferred_scheme has been added to Invoice#CreateRequest & Invoice#CreateForChargeItemsAndChargesRequest.
26
+ * business_entity_id has been added to Items#CreateRequest.
27
+ * business_entity_id & include_site_level_resources have been added to Items#ListItemParams.
28
+ * business_entity_id has been added to ItemFamily#CreateRequest.
29
+ * business_entity_id & include_site_level_resources have been added to ItemFamily#ListItemFamilyParams.
30
+ * business_entity_id has been added to ItemPrice#CreateRequest.
31
+ * business_entity_id & include_site_level_resources have been added to ItemPrice#ListItemPriceParams.
32
+ * business_entity_id & include_site_level_resources have been added to PriceVariant#ListItemFamilyParams.
33
+ * business_entity_id has been added to PriceVariant#CreateRequest.
34
+ * business_entity_id & include_site_level_resources have been added to PriceVariant#ListPriceVariantParams.
35
+ * preferred_scheme has been added to Subscription#CreateRequest, Subscription#UpdateRequest.
36
+ * preferred_scheme Subscription#UpdateForItemsRequest, & Subscription#ImportSubscriptionRequest.
37
+ * business_entity_id & include_site_level_resources have been added to Export#ItemFamiliesRequest & Export#ItemsRequest.
38
+ * business_entity_id & include_site_level_resources have been added to Export#ItemPricesRequest Export#PriceVariantsRequest
39
+ * name & flexible_schedules[period] have been added to PaymentScheduleScheme#CreateRequest.
40
+
41
+ #### New Enum Values:
42
+ * FUTURE has been added to Coupon#StatusEnum.
43
+ * EXISTING_CUSTOMER & NEW_CUSTOMER have been added to Coupon#TypeEnum.
44
+ * LATE_FAILURE has added to Transation#LinkedPaymentEnum & Transation#StatusEnum.
45
+ * OMNICHANNEL_SUBSCRIPTION, has been added to EntityTypeEnum.
46
+ * OMNICHANNEL_SUBSCRIPTION_ITEM, has been added to EntityTypeEnum.
47
+ * OMNICHANNEL_TRANSACTION, has been added to EntityTypeEnum.
48
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_RENEWED, has been added to EventTypeEnum.
49
+ * OMNICHANNEL_SUBSCRIPTION_CREATED, has been added to EventTypeEnum.
50
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_DOWNGRADE_SCHEDULED, has been added to EventTypeEnum.
51
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_DOWNGRADE_REMOVED, has been added to EventTypeEnum.
52
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_DOWNGRADED, has been added to EventTypeEnum.
53
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_EXPIRED, has been added to EventTypeEnum.
54
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_CANCELLATION_SCHEDULED, has been added to EventTypeEnum.
55
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_CANCELLATION_REMOVED, has been added to EventTypeEnum.
56
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_RESUBSCRIBED, has been added to EventTypeEnum.
57
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_UPGRADED, has been added to EventTypeEnum.
58
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_CANCELLED, has been added to EventTypeEnum.
59
+
60
+ ## v3.0.2 (2024-11-09)
61
+
62
+ ### Bug fixes:
63
+ * Fix minor typo in .npmignore that caused the types folder to be missed. Resolves #55.
64
+
65
+
1
66
  ## v3.0.1 (2024-11-06)
2
67
  * Updated README.
3
68
 
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.0.1',
14
+ clientVersion: 'v3.1.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -1096,4 +1096,20 @@ exports.Endpoints = {
1096
1096
  false,
1097
1097
  ],
1098
1098
  ],
1099
+ omnichannelSubscription: [
1100
+ ['retrieve', 'GET', '/omnichannel_subscriptions', null, true],
1101
+ ['list', 'GET', '/omnichannel_subscriptions', null, false],
1102
+ [
1103
+ 'omnichannel_transactionsForOmnichannelSubscription',
1104
+ 'GET',
1105
+ '/omnichannel_subscriptions',
1106
+ '/omnichannel_transactions',
1107
+ true,
1108
+ ],
1109
+ ],
1110
+ omnichannelTransaction: [],
1111
+ recordedPurchase: [
1112
+ ['create', 'POST', '/recorded_purchases', null, false],
1113
+ ['retrieve', 'GET', '/recorded_purchases', null, true],
1114
+ ],
1099
1115
  };
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.0.1',
11
+ clientVersion: 'v3.1.0',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -1093,4 +1093,20 @@ export const Endpoints = {
1093
1093
  false,
1094
1094
  ],
1095
1095
  ],
1096
+ omnichannelSubscription: [
1097
+ ['retrieve', 'GET', '/omnichannel_subscriptions', null, true],
1098
+ ['list', 'GET', '/omnichannel_subscriptions', null, false],
1099
+ [
1100
+ 'omnichannel_transactionsForOmnichannelSubscription',
1101
+ 'GET',
1102
+ '/omnichannel_subscriptions',
1103
+ '/omnichannel_transactions',
1104
+ true,
1105
+ ],
1106
+ ],
1107
+ omnichannelTransaction: [],
1108
+ recordedPurchase: [
1109
+ ['create', 'POST', '/recorded_purchases', null, false],
1110
+ ['retrieve', 'GET', '/recorded_purchases', null, true],
1111
+ ],
1096
1112
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",