chargebee 2.52.0 → 2.53.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +139 -0
- data/Gemfile.lock +1 -1
- data/README.md +5 -2
- data/chargebee.gemspec +3 -2
- data/lib/chargebee/models/addon.rb +1 -1
- data/lib/chargebee/models/credit_note.rb +7 -3
- data/lib/chargebee/models/credit_note_estimate.rb +2 -2
- data/lib/chargebee/models/differential_price.rb +1 -1
- data/lib/chargebee/models/invoice.rb +7 -3
- data/lib/chargebee/models/invoice_estimate.rb +7 -3
- data/lib/chargebee/models/item.rb +2 -2
- data/lib/chargebee/models/item_price.rb +1 -1
- data/lib/chargebee/models/omnichannel_subscription_item.rb +13 -2
- data/lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb +19 -0
- data/lib/chargebee/models/plan.rb +1 -1
- data/lib/chargebee/models/quote.rb +2 -2
- data/lib/chargebee/models/quote_line_group.rb +1 -1
- data/lib/chargebee/models/quoted_charge.rb +1 -1
- data/lib/chargebee/models/quoted_subscription.rb +1 -1
- data/lib/chargebee/models/ramp.rb +1 -1
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/models/unbilled_charge.rb +1 -1
- data/lib/chargebee/result.rb +16 -9
- data/lib/chargebee.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc7ae6fa418541a17819b2f3f17c05527339818e
|
4
|
+
data.tar.gz: 68b28958287871b970be4b4d8a81f588e9de5c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c02b3c034d1e44bc03baae7f8f5d5cbddb9342e30315dfd0c2a53d692dbce84f1470c8f795e666f20e22932d303b0433cc4cf69b4cd9ea710aaf0225a02e0965
|
7
|
+
data.tar.gz: b16894f31f916c52d18b830f21f5bcd2c69e7c7d93f43b9ba8b7f4aa4b6acba5591b52f5b6452457b71c64c41f14201e3c66cb2e0bf244c197dd9667d2bc20d9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,142 @@
|
|
1
|
+
### v2.53.0 (2025-04-23)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
### New Resources:
|
5
|
+
* OmnichannelSubscriptionItemScheduledChange has been added.
|
6
|
+
|
7
|
+
### New Attributes:
|
8
|
+
* pricing_type has been added to DifferentialPrice#Tier.
|
9
|
+
* package_size has been added to DifferentialPrice#Tier.
|
10
|
+
* pricing_type has been added to ItemPrice#Tier.
|
11
|
+
* package_size has been added to ItemPrice#Tier.
|
12
|
+
* pricing_type has been added to Addon#Tier.
|
13
|
+
* package_size has been added to Addon#Tier.
|
14
|
+
* pricing_type has been added to Plan#Tier.
|
15
|
+
* package_size has been added to Plan#Tier.
|
16
|
+
* pricing_type has been added to CreditNote#LineItemTier.
|
17
|
+
* package_size has been added to CreditNote#LineItemTier.
|
18
|
+
* pricing_type has been added to CreditNoteEstimate#LineItemTier.
|
19
|
+
* package_size has been added to CreditNoteEstimate#LineItemTier.
|
20
|
+
* pricing_type has been added to DifferentialPrice#Tier.
|
21
|
+
* package_size has been added to DifferentialPrice#Tier.
|
22
|
+
* pricing_type has been added to Invoice#LineItemTier.
|
23
|
+
* package_size has been added to Invoice#LineItemTier.
|
24
|
+
* pricing_type has been added to InvoiceEstimate#LineItemTier.
|
25
|
+
* package_size has been added to InvoiceEstimate#LineItemTier.
|
26
|
+
* pricing_type has been added to Quote#LineItemTier.
|
27
|
+
* package_size has been added to Quote#LineItemTier.
|
28
|
+
* pricing_type has been added to QuotedCharge#LineItemTier.
|
29
|
+
* package_size has been added to QuotedCharge#LineItemTier.
|
30
|
+
* pricing_type has been added to QuotedSubscription#LineItemTier.
|
31
|
+
* package_size has been added to QuotedSubscription#LineItemTier.
|
32
|
+
* pricing_type has been added to Ramp#ItemTier.
|
33
|
+
* package_size has been added to Ramp#ItemTier.
|
34
|
+
* pricing_type has been added to Subscription#ItemTier.
|
35
|
+
* package_size has been added to Subscription#ItemTier.
|
36
|
+
* pricing_type has been added to UnbilledCharges#Tier.
|
37
|
+
* package_size has been added to UnbilledCharges#Tier.
|
38
|
+
* metered has been added to CreditNote#LineItem.
|
39
|
+
* metered has been added to CreditNoteEstimate#LineItem.
|
40
|
+
* metered has been added to Invoice#LineItem.
|
41
|
+
* metered has been added to Quote#LineItem.
|
42
|
+
* metered has been added to QuoteLineGroup#LineItem.
|
43
|
+
* usage_percentage has been changed to percentage in CreditNote#LineItem.
|
44
|
+
* usage_percentage has been changed to percentage in CreditNoteEstimate#LineItem.
|
45
|
+
* usage_percentage has been changed to percentage in Invoice#LineItem.
|
46
|
+
* usage_percentage has been changed to percentage in Quote#LineItem.
|
47
|
+
* usage_percentage has been changed to percentage in QuoteLineGroup#LineItem.
|
48
|
+
* line_item_addresses has been added to CreditNote.
|
49
|
+
* line_item_addresses has been added to Invoices.
|
50
|
+
* line_item_addresses has been added to InvoiceEstimate.
|
51
|
+
* has_scheduled_changes has been added on OmnichannelSubscriptionItem.
|
52
|
+
* item_parent_id_at_source has been added to OmnichannelSubscriptionItem.
|
53
|
+
* auto_renew_status has been added to OmnichannelSubscriptionItem.
|
54
|
+
* upcoming_renewal has been added to OmnichannelSubscriptionItem.
|
55
|
+
* is_percentage_pricing has been added to Item.
|
56
|
+
|
57
|
+
### New Action:
|
58
|
+
* listOmniSubItemScheduleChanges has been added to OmnichannelSubscriptionItem.
|
59
|
+
|
60
|
+
### Optional Attribute:
|
61
|
+
* price_currency has been made optional from requried in OmnichannelTransaction.
|
62
|
+
* price_units has been made optional from requried in OmnichannelTransaction.
|
63
|
+
* price_nanos has been made optional from requried in OmnichannelTransaction.
|
64
|
+
* transacted_at has been made optional from requried in OmnichannelTransaction.
|
65
|
+
|
66
|
+
### New Input Params:
|
67
|
+
* item_tiers[pricing_type] has been added to DifferentialPrice#CreateInputParam.
|
68
|
+
* item_tiers[package_size] has been added to DifferentialPrice#CreateInputParam.
|
69
|
+
* item_tiers[pricing_type] has been added to ItemPrice#CreateInputParam.
|
70
|
+
* item_tiers[package_size] has been added to ItemPrice#CreateInputParam.
|
71
|
+
* tiers[pricing_type] has been added to DifferentialPrice#CreateInputParam.
|
72
|
+
* tiers[package_size] has been added to DifferentialPrice#CreateInputParam.
|
73
|
+
* item_tiers[pricing_type] has been added to Estimate#CreateSubItemEstimateRequestInputParam.
|
74
|
+
* item_tiers[package_size] has been added to Estimate#CreateSubItemEstimateRequestInputParam.
|
75
|
+
* item_tiers[pricing_type] has been added to Estimate#CreateSubItemForCustomerRequestInputParam.
|
76
|
+
* item_tiers[package_size] has been added to Estimate#CreateSubItemForCustomerRequestInputParam.
|
77
|
+
* item_tiers[pricing_type] has been added to Estimate#UpdateSubscriptionForItemsRequestInputParam.
|
78
|
+
* item_tiers[package_size] has been added to Estimate#UpdateSubscriptionForItemsRequestInputParam.
|
79
|
+
* item_tiers[pricing_type] has been added to Estimate#CreateInvoiceForItemsRequestInputParam.
|
80
|
+
* item_tiers[package_size] has been added to Estimate#CreateInvoiceForItemsRequestInputParam.
|
81
|
+
* item_tiers[pricing_type] has been added to Estimate#CheckoutNewForItemsRequestInputParam.
|
82
|
+
* item_tiers[package_size] has been added to Estimate#CheckoutNewForItemsRequestInputParam.
|
83
|
+
* item_tiers[pricing_type] has been added to Estimate#CheckoutOneTimeForItemsRequestInputParam.
|
84
|
+
* item_tiers[package_size] has been added to Estimate#CheckoutOneTimeForItemsRequestInputParam.
|
85
|
+
* item_tiers[pricing_type] has been added to Estimate#CheckoutExistingForItemsRequestInputParam.
|
86
|
+
* item_tiers[package_size] has been added to Estimate#CheckoutExistingForItemsRequestInputParam.
|
87
|
+
* item_tiers[pricing_type] has been added to Invoice#CreateForChargeItemsAndChargesRequestInputParam.
|
88
|
+
* item_tiers[package_size] has been added to Invoice#CreateForChargeItemsAndChargesRequestInputParam.
|
89
|
+
* item_tiers[pricing_type] has been added to Invoice#CreateForChargeItemRequestInputParam.
|
90
|
+
* item_tiers[package_size] has been added to Invoice#CreateForChargeItemRequestInputParam.
|
91
|
+
* item_tiers[pricing_type] has been added to Invoice#AddChargeItemRequestInputParam.
|
92
|
+
* item_tiers[package_size] has been added to Invoice#AddChargeItemRequestInputParam.
|
93
|
+
* item_tiers[pricing_type] has been added to Quote#CreateSubItemsForCustomerQuoteRequestInputParam.
|
94
|
+
* item_tiers[package_size] has been added to Quote#CreateSubItemsForCustomerQuoteRequestInputParam.
|
95
|
+
* item_tiers[pricing_type] has been added to Quote#EditCreateSubCustomerQuoteForItemsRequestInputParam.
|
96
|
+
* item_tiers[package_size] has been added to Quote#EditCreateSubCustomerQuoteForItemsRequestInputParam.
|
97
|
+
* item_tiers[pricing_type] has been added to Quote#UpdateSubscriptionQuoteForItemsRequestInputParam.
|
98
|
+
* item_tiers[package_size] has been added to Quote#UpdateSubscriptionQuoteForItemsRequestInputParam.
|
99
|
+
* item_tiers[pricing_type] has been added to Quote#EditUpdateSubscriptionQuoteForItemsRequestInputParam.
|
100
|
+
* item_tiers[package_size] has been added to Quote#EditUpdateSubscriptionQuoteForItemsRequestInputParam.
|
101
|
+
* item_tiers[pricing_type] has been added to Quote#CreateForChargeItemsAndChargesRequestInputParam.
|
102
|
+
* item_tiers[package_size] has been added to Quote#CreateForChargeItemsAndChargesRequestInputParam.
|
103
|
+
* item_tiers[pricing_type] has been added to Quote#EditForChargeItemsAndChargesRequestInputParam.
|
104
|
+
* item_tiers[package_size] has been added to Quote#EditForChargeItemsAndChargesRequestInputParam.
|
105
|
+
* item_tiers[pricing_type] has been added to Ramp#CreateForSubscriptionRequestInputParam.
|
106
|
+
* item_tiers[package_size] has been added to Ramp#CreateForSubscriptionRequestInputParam.
|
107
|
+
* item_tiers[pricing_type] has been added to Ramp#UpdateRequestInputParam.
|
108
|
+
* item_tiers[package_size] has been added to Ramp#UpdateRequestInputParam.
|
109
|
+
* item_tiers[pricing_type] has been added to Subscription#CreateWithItemsRequestInputParam.
|
110
|
+
* item_tiers[package_size] has been added to Subscription#CreateWithItemsRequestInputParam.
|
111
|
+
* item_tiers[pricing_type] has been added to Subscription#UpdateForItemsRequestInputParam.
|
112
|
+
* item_tiers[package_size] has been added to Subscription#UpdateForItemsRequestInputParam.
|
113
|
+
* item_tiers[pricing_type] has been added to Subscription#ImportForItemsRequestInputParam.
|
114
|
+
* item_tiers[package_size] has been added to Subscription#ImportForItemsRequestInputParam.
|
115
|
+
* item_tiers[pricing_type] has been added to UnbilledCharged#CreateRequestInputParam.
|
116
|
+
* item_tiers[package_size] has been added to UnbilledCharged#CreateRequestInputParam.
|
117
|
+
* billing_address has been added to Estimate#CreateInvoiceForItemsRequestInputParam.
|
118
|
+
* google_play_store[purchase_token] has been added to RecordedPurchase#CreateRequestInputParam.
|
119
|
+
* is_percentage_pricing has been added to Item#CreateRequest.
|
120
|
+
* include_deleted has been added to PaymentSource#ListRequest.
|
121
|
+
|
122
|
+
### New Enums:
|
123
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_CHANGE has been added to EntityType#Enum.
|
124
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_CHANGE_SCHEDULED has been added to EventType#Enum.
|
125
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_CHANGE_REMOVED has been added to EventType#Enum.
|
126
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_REACTIVATED has been added to EventType#Enum.
|
127
|
+
* GOOGLE_PLAY_STORE has been added to OminchannelSubscription#SourceEnum.
|
128
|
+
* SPECIFIC_DATE has been added to ContractTermCancelOption.
|
129
|
+
* END_OF_SUBSCRIPTION_BILLING_TERM has been added to ContractTermCancelOption.
|
130
|
+
* PAYSTACK has been added to GatewayEnum.
|
131
|
+
* PricingType Enum has been added.
|
132
|
+
* JP_MORGAN has been added to GatewayEnum.
|
133
|
+
|
134
|
+
### Deprecated Enums:
|
135
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_DOWNGRADE_SCHEDULED has been deprecated from EntityType#Enum.
|
136
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_DOWNGRADE_REMOVED has been deprecated from EntityType#Enum.
|
137
|
+
* REFUNDED_DUE_TO_APP_ISSUE has been added to OmnichannelSubscriptionItem#CancellationReasonEnum.
|
138
|
+
* REFUNDED_FOR_OTHER_REASON has been added to OmnichannelSubscriptionItem#CancellationReasonEnum.
|
139
|
+
|
1
140
|
### v2.52.0 (2025-04-11)
|
2
141
|
* * *
|
3
142
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,9 +3,12 @@
|
|
3
3
|
[](https://rubygems.org/gems/chargebee)
|
4
4
|
[](https://rubygems.org/gems/chargebee)
|
5
5
|
|
6
|
-
This is the Ruby
|
6
|
+
This is the official Ruby library for integrating with Chargebee.
|
7
7
|
|
8
|
-
|
8
|
+
- 📘 For a complete reference of available APIs, check out our [API Documentation](https://apidocs.chargebee.com/docs/api/?lang=ruby).
|
9
|
+
- 🧪 To explore and test API capabilities interactively, head over to our [API Explorer](https://api-explorer.chargebee.com).
|
10
|
+
|
11
|
+
> Note: Chargebee now supports two API versions - [V1](https://apidocs.chargebee.com/docs/api/v1) and [V2](https://apidocs.chargebee.com/docs/api), of which V2 is the latest release and all future developments will happen in V2. This library is for <b>API version V2</b>. If you’re looking for V1, head to [chargebee-v1 branch](https://github.com/chargebee/chargebee-ruby/tree/chargebee-v1).
|
9
12
|
|
10
13
|
## Installation
|
11
14
|
|
data/chargebee.gemspec
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
s.required_ruby_version = '>= 1.9.3'
|
6
6
|
s.name = 'chargebee'
|
7
|
-
s.version = '2.
|
8
|
-
s.date = '2025-04-
|
7
|
+
s.version = '2.53.0'
|
8
|
+
s.date = '2025-04-23'
|
9
9
|
s.summary = "Ruby client for Chargebee API."
|
10
10
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
11
11
|
s.metadata = {
|
@@ -89,6 +89,7 @@ Gem::Specification.new do |s|
|
|
89
89
|
lib/chargebee/models/non_subscription.rb
|
90
90
|
lib/chargebee/models/omnichannel_subscription.rb
|
91
91
|
lib/chargebee/models/omnichannel_subscription_item.rb
|
92
|
+
lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb
|
92
93
|
lib/chargebee/models/omnichannel_transaction.rb
|
93
94
|
lib/chargebee/models/order.rb
|
94
95
|
lib/chargebee/models/payment_intent.rb
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class Addon < Model
|
3
3
|
|
4
4
|
class Tier < Model
|
5
|
-
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
5
|
+
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size
|
6
6
|
end
|
7
7
|
|
8
8
|
class TaxProvidersField < Model
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class LineItem < Model
|
9
|
-
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :
|
9
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :metered, :percentage, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
10
10
|
end
|
11
11
|
|
12
12
|
class Discount < Model
|
@@ -18,7 +18,7 @@ module ChargeBee
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class LineItemTier < Model
|
21
|
-
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal
|
21
|
+
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
|
22
22
|
end
|
23
23
|
|
24
24
|
class Tax < Model
|
@@ -53,6 +53,10 @@ module ChargeBee
|
|
53
53
|
attr_accessor :country, :registration_number
|
54
54
|
end
|
55
55
|
|
56
|
+
class LineItemAddress < Model
|
57
|
+
attr_accessor :line_item_id, :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
58
|
+
end
|
59
|
+
|
56
60
|
attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
|
57
61
|
:status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
|
58
62
|
:amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
|
@@ -60,7 +64,7 @@ module ChargeBee
|
|
60
64
|
:round_off_amount, :fractional_correction, :line_items, :discounts, :line_item_discounts, :line_item_tiers,
|
61
65
|
:taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate,
|
62
66
|
:create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address,
|
63
|
-
:site_details_at_creation, :tax_origin
|
67
|
+
:site_details_at_creation, :tax_origin, :line_item_addresses
|
64
68
|
|
65
69
|
# OPERATIONS
|
66
70
|
#-----------
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class CreditNoteEstimate < Model
|
3
3
|
|
4
4
|
class LineItem < Model
|
5
|
-
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :metered, :percentage, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
@@ -22,7 +22,7 @@ module ChargeBee
|
|
22
22
|
end
|
23
23
|
|
24
24
|
class LineItemTier < Model
|
25
|
-
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal
|
25
|
+
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
|
26
26
|
end
|
27
27
|
|
28
28
|
attr_accessor :reference_invoice_id, :type, :price_type, :currency_code, :sub_total, :total,
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class DifferentialPrice < Model
|
3
3
|
|
4
4
|
class Tier < Model
|
5
|
-
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
5
|
+
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size
|
6
6
|
end
|
7
7
|
|
8
8
|
class ParentPeriod < Model
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class Invoice < Model
|
3
3
|
|
4
4
|
class LineItem < Model
|
5
|
-
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :metered, :percentage, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
@@ -26,7 +26,7 @@ module ChargeBee
|
|
26
26
|
end
|
27
27
|
|
28
28
|
class LineItemTier < Model
|
29
|
-
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal
|
29
|
+
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
|
30
30
|
end
|
31
31
|
|
32
32
|
class LinkedPayment < Model
|
@@ -81,6 +81,10 @@ module ChargeBee
|
|
81
81
|
attr_accessor :country, :registration_number
|
82
82
|
end
|
83
83
|
|
84
|
+
class LineItemAddress < Model
|
85
|
+
attr_accessor :line_item_id, :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
86
|
+
end
|
87
|
+
|
84
88
|
attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
|
85
89
|
:price_type, :date, :due_date, :net_term_days, :exchange_rate, :currency_code, :total, :amount_paid,
|
86
90
|
:amount_adjusted, :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status,
|
@@ -92,7 +96,7 @@ module ChargeBee
|
|
92
96
|
:applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address,
|
93
97
|
:statement_descriptor, :billing_address, :einvoice, :payment_owner, :void_reason_code, :deleted,
|
94
98
|
:tax_category, :vat_number_prefix, :channel, :business_entity_id, :site_details_at_creation,
|
95
|
-
:tax_origin
|
99
|
+
:tax_origin, :line_item_addresses
|
96
100
|
|
97
101
|
# OPERATIONS
|
98
102
|
#-----------
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class InvoiceEstimate < Model
|
3
3
|
|
4
4
|
class LineItem < Model
|
5
|
-
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :metered, :percentage, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
@@ -18,7 +18,7 @@ module ChargeBee
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class LineItemTier < Model
|
21
|
-
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal
|
21
|
+
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
|
22
22
|
end
|
23
23
|
|
24
24
|
class LineItemCredit < Model
|
@@ -29,9 +29,13 @@ module ChargeBee
|
|
29
29
|
attr_accessor :line_item_id, :discount_type, :coupon_id, :entity_id, :discount_amount
|
30
30
|
end
|
31
31
|
|
32
|
+
class LineItemAddress < Model
|
33
|
+
attr_accessor :line_item_id, :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
34
|
+
end
|
35
|
+
|
32
36
|
attr_accessor :recurring, :price_type, :currency_code, :sub_total, :total, :credits_applied,
|
33
37
|
:amount_paid, :amount_due, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_tiers,
|
34
|
-
:line_item_credits, :line_item_discounts, :round_off_amount, :customer_id
|
38
|
+
:line_item_credits, :line_item_discounts, :round_off_amount, :customer_id, :line_item_addresses
|
35
39
|
|
36
40
|
# OPERATIONS
|
37
41
|
#-----------
|
@@ -16,8 +16,8 @@ module ChargeBee
|
|
16
16
|
attr_accessor :id, :name, :external_name, :description, :status, :resource_version, :updated_at,
|
17
17
|
:item_family_id, :type, :is_shippable, :is_giftable, :redirect_url, :enabled_for_checkout, :enabled_in_portal,
|
18
18
|
:included_in_mrr, :item_applicability, :gift_claim_redirect_url, :unit, :metered, :usage_calculation,
|
19
|
-
:archived_at, :channel, :applicable_items, :bundle_items, :bundle_configuration,
|
20
|
-
:deleted, :business_entity_id
|
19
|
+
:is_percentage_pricing, :archived_at, :channel, :applicable_items, :bundle_items, :bundle_configuration,
|
20
|
+
:metadata, :deleted, :business_entity_id
|
21
21
|
|
22
22
|
# OPERATIONS
|
23
23
|
#-----------
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class ItemPrice < Model
|
3
3
|
|
4
4
|
class Tier < Model
|
5
|
-
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
5
|
+
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size
|
6
6
|
end
|
7
7
|
|
8
8
|
class TaxDetail < Model
|
@@ -1,11 +1,22 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class OmnichannelSubscriptionItem < Model
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
class UpcomingRenewal < Model
|
5
|
+
attr_accessor :price_currency, :price_units, :price_nanos
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :id, :item_id_at_source, :item_parent_id_at_source, :status, :auto_renew_status,
|
9
|
+
:current_term_start, :current_term_end, :expired_at, :expiration_reason, :cancelled_at, :cancellation_reason,
|
10
|
+
:grace_period_expires_at, :has_scheduled_changes, :resource_version, :upcoming_renewal
|
6
11
|
|
7
12
|
# OPERATIONS
|
8
13
|
#-----------
|
9
14
|
|
15
|
+
def self.list_omni_sub_item_schedule_changes(id, params={}, env=nil, headers={})
|
16
|
+
jsonKeys = {
|
17
|
+
}
|
18
|
+
Request.send('get', uri_path("omnichannel_subscription_items",id.to_s,"scheduled_changes"), params, env, headers,nil, false, jsonKeys)
|
19
|
+
end
|
20
|
+
|
10
21
|
end # ~OmnichannelSubscriptionItem
|
11
22
|
end # ~ChargeBee
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class OmnichannelSubscriptionItemScheduledChange < Model
|
3
|
+
|
4
|
+
class CurrentState < Model
|
5
|
+
attr_accessor :item_id_at_source
|
6
|
+
end
|
7
|
+
|
8
|
+
class ScheduledState < Model
|
9
|
+
attr_accessor :item_id_at_source
|
10
|
+
end
|
11
|
+
|
12
|
+
attr_accessor :id, :omnichannel_subscription_item_id, :scheduled_at, :change_type, :created_at,
|
13
|
+
:modified_at, :resource_version, :current_state, :scheduled_state
|
14
|
+
|
15
|
+
# OPERATIONS
|
16
|
+
#-----------
|
17
|
+
|
18
|
+
end # ~OmnichannelSubscriptionItemScheduledChange
|
19
|
+
end # ~ChargeBee
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class Plan < Model
|
3
3
|
|
4
4
|
class Tier < Model
|
5
|
-
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
5
|
+
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size
|
6
6
|
end
|
7
7
|
|
8
8
|
class TaxProvidersField < Model
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class Quote < Model
|
3
3
|
|
4
4
|
class LineItem < Model
|
5
|
-
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :metered, :percentage, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
@@ -22,7 +22,7 @@ module ChargeBee
|
|
22
22
|
end
|
23
23
|
|
24
24
|
class LineItemTier < Model
|
25
|
-
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal
|
25
|
+
attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
|
26
26
|
end
|
27
27
|
|
28
28
|
class ShippingAddress < Model
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class QuoteLineGroup < Model
|
3
3
|
|
4
4
|
class LineItem < Model
|
5
|
-
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :metered, :percentage, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
@@ -14,7 +14,7 @@ module ChargeBee
|
|
14
14
|
end
|
15
15
|
|
16
16
|
class ItemTier < Model
|
17
|
-
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
|
17
|
+
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size, :index
|
18
18
|
end
|
19
19
|
|
20
20
|
class Coupon < Model
|
@@ -18,7 +18,7 @@ module ChargeBee
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class ItemTier < Model
|
21
|
-
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
|
21
|
+
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size, :index
|
22
22
|
end
|
23
23
|
|
24
24
|
class QuotedContractTerm < Model
|
@@ -18,7 +18,7 @@ module ChargeBee
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class ItemTier < Model
|
21
|
-
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
|
21
|
+
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size, :index
|
22
22
|
end
|
23
23
|
|
24
24
|
class StatusTransitionReason < Model
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class ItemTier < Model
|
9
|
-
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
|
9
|
+
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :pricing_type, :package_size, :index
|
10
10
|
end
|
11
11
|
|
12
12
|
class ChargedItem < Model
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class UnbilledCharge < Model
|
3
3
|
|
4
4
|
class Tier < Model
|
5
|
-
attr_accessor :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal
|
5
|
+
attr_accessor :starting_unit, :ending_unit, :quantity_used, :unit_amount, :starting_unit_in_decimal, :ending_unit_in_decimal, :quantity_used_in_decimal, :unit_amount_in_decimal, :pricing_type, :package_size
|
6
6
|
end
|
7
7
|
|
8
8
|
attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
|
data/lib/chargebee/result.rb
CHANGED
@@ -106,7 +106,7 @@ module ChargeBee
|
|
106
106
|
|
107
107
|
def invoice()
|
108
108
|
invoice = get(:invoice, Invoice,
|
109
|
-
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation, :tax_origin => Invoice::TaxOrigin});
|
109
|
+
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation, :tax_origin => Invoice::TaxOrigin, :line_item_addresses => Invoice::LineItemAddress});
|
110
110
|
return invoice;
|
111
111
|
end
|
112
112
|
|
@@ -128,7 +128,7 @@ module ChargeBee
|
|
128
128
|
|
129
129
|
def credit_note()
|
130
130
|
credit_note = get(:credit_note, CreditNote,
|
131
|
-
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :site_details_at_creation => CreditNote::SiteDetailsAtCreation, :tax_origin => CreditNote::TaxOrigin});
|
131
|
+
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :site_details_at_creation => CreditNote::SiteDetailsAtCreation, :tax_origin => CreditNote::TaxOrigin, :line_item_addresses => CreditNote::LineItemAddress});
|
132
132
|
return credit_note;
|
133
133
|
end
|
134
134
|
|
@@ -167,13 +167,13 @@ module ChargeBee
|
|
167
167
|
estimate.init_dependant(@response[:estimate], :subscription_estimate,
|
168
168
|
{:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
|
169
169
|
estimate.init_dependant(@response[:estimate], :invoice_estimate,
|
170
|
-
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_credits => InvoiceEstimate::LineItemCredit, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
|
170
|
+
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_credits => InvoiceEstimate::LineItemCredit, :line_item_discounts => InvoiceEstimate::LineItemDiscount, :line_item_addresses => InvoiceEstimate::LineItemAddress});
|
171
171
|
estimate.init_dependant(@response[:estimate], :next_invoice_estimate,
|
172
|
-
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_credits => InvoiceEstimate::LineItemCredit, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
|
172
|
+
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_credits => InvoiceEstimate::LineItemCredit, :line_item_discounts => InvoiceEstimate::LineItemDiscount, :line_item_addresses => InvoiceEstimate::LineItemAddress});
|
173
173
|
estimate.init_dependant_list(@response[:estimate], :subscription_estimates,
|
174
174
|
{:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
|
175
175
|
estimate.init_dependant_list(@response[:estimate], :invoice_estimates,
|
176
|
-
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_credits => InvoiceEstimate::LineItemCredit, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
|
176
|
+
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_credits => InvoiceEstimate::LineItemCredit, :line_item_discounts => InvoiceEstimate::LineItemDiscount, :line_item_addresses => InvoiceEstimate::LineItemAddress});
|
177
177
|
estimate.init_dependant_list(@response[:estimate], :payment_schedule_estimates,
|
178
178
|
{:schedule_entries => PaymentScheduleEstimate::ScheduleEntry});
|
179
179
|
estimate.init_dependant_list(@response[:estimate], :credit_note_estimates,
|
@@ -450,7 +450,7 @@ module ChargeBee
|
|
450
450
|
omnichannel_subscription = get(:omnichannel_subscription, OmnichannelSubscription, {},
|
451
451
|
{:omnichannel_subscription_items => OmnichannelSubscriptionItem});
|
452
452
|
omnichannel_subscription.init_dependant_list(@response[:omnichannel_subscription], :omnichannel_subscription_items,
|
453
|
-
{});
|
453
|
+
{:upcoming_renewal => OmnichannelSubscriptionItem::UpcomingRenewal});
|
454
454
|
return omnichannel_subscription;
|
455
455
|
end
|
456
456
|
|
@@ -460,7 +460,8 @@ module ChargeBee
|
|
460
460
|
end
|
461
461
|
|
462
462
|
def omnichannel_subscription_item()
|
463
|
-
omnichannel_subscription_item = get(:omnichannel_subscription_item, OmnichannelSubscriptionItem
|
463
|
+
omnichannel_subscription_item = get(:omnichannel_subscription_item, OmnichannelSubscriptionItem,
|
464
|
+
{:upcoming_renewal => OmnichannelSubscriptionItem::UpcomingRenewal});
|
464
465
|
return omnichannel_subscription_item;
|
465
466
|
end
|
466
467
|
|
@@ -480,6 +481,12 @@ module ChargeBee
|
|
480
481
|
return usage_event;
|
481
482
|
end
|
482
483
|
|
484
|
+
def omnichannel_subscription_item_scheduled_change()
|
485
|
+
omnichannel_subscription_item_scheduled_change = get(:omnichannel_subscription_item_scheduled_change, OmnichannelSubscriptionItemScheduledChange,
|
486
|
+
{:current_state => OmnichannelSubscriptionItemScheduledChange::CurrentState, :scheduled_state => OmnichannelSubscriptionItemScheduledChange::ScheduledState});
|
487
|
+
return omnichannel_subscription_item_scheduled_change;
|
488
|
+
end
|
489
|
+
|
483
490
|
def advance_invoice_schedules()
|
484
491
|
advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
|
485
492
|
{:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
|
@@ -494,7 +501,7 @@ module ChargeBee
|
|
494
501
|
|
495
502
|
def invoices()
|
496
503
|
invoices = get_list(:invoices, Invoice,
|
497
|
-
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation, :tax_origin => Invoice::TaxOrigin});
|
504
|
+
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation, :tax_origin => Invoice::TaxOrigin, :line_item_addresses => Invoice::LineItemAddress});
|
498
505
|
return invoices;
|
499
506
|
end
|
500
507
|
|
@@ -506,7 +513,7 @@ module ChargeBee
|
|
506
513
|
|
507
514
|
def credit_notes()
|
508
515
|
credit_notes = get_list(:credit_notes, CreditNote,
|
509
|
-
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :site_details_at_creation => CreditNote::SiteDetailsAtCreation, :tax_origin => CreditNote::TaxOrigin});
|
516
|
+
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :site_details_at_creation => CreditNote::SiteDetailsAtCreation, :tax_origin => CreditNote::TaxOrigin, :line_item_addresses => CreditNote::LineItemAddress});
|
510
517
|
return credit_notes;
|
511
518
|
end
|
512
519
|
|
data/lib/chargebee.rb
CHANGED
@@ -85,11 +85,12 @@ require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_ite
|
|
85
85
|
require File.dirname(__FILE__) + '/chargebee/models/configuration'
|
86
86
|
require File.dirname(__FILE__) + '/chargebee/models/usage_event'
|
87
87
|
require File.dirname(__FILE__) + '/chargebee/models/rule'
|
88
|
+
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_item_scheduled_change'
|
88
89
|
|
89
90
|
|
90
91
|
module ChargeBee
|
91
92
|
|
92
|
-
VERSION = '2.
|
93
|
+
VERSION = '2.53.0'
|
93
94
|
|
94
95
|
@@default_env = nil
|
95
96
|
@@verify_ca_certs = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.53.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajaraman S
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-04-
|
12
|
+
date: 2025-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cgi
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- lib/chargebee/models/non_subscription.rb
|
131
131
|
- lib/chargebee/models/omnichannel_subscription.rb
|
132
132
|
- lib/chargebee/models/omnichannel_subscription_item.rb
|
133
|
+
- lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb
|
133
134
|
- lib/chargebee/models/omnichannel_transaction.rb
|
134
135
|
- lib/chargebee/models/order.rb
|
135
136
|
- lib/chargebee/models/payment_intent.rb
|