chargebee 2.16.0 → 2.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/chargebee.gemspec +5 -2
- data/lib/chargebee/models/addon.rb +1 -1
- data/lib/chargebee/models/credit_note.rb +3 -2
- data/lib/chargebee/models/credit_note_estimate.rb +1 -1
- data/lib/chargebee/models/customer.rb +6 -5
- data/lib/chargebee/models/entitlement_override.rb +1 -6
- data/lib/chargebee/models/estimate.rb +2 -2
- data/lib/chargebee/models/hosted_page.rb +6 -2
- data/lib/chargebee/models/impacted_item.rb +14 -0
- data/lib/chargebee/models/impacted_subscription.rb +14 -0
- data/lib/chargebee/models/invoice.rb +2 -2
- data/lib/chargebee/models/invoice_estimate.rb +1 -1
- data/lib/chargebee/models/item_entitlement.rb +1 -5
- data/lib/chargebee/models/payment_intent.rb +1 -1
- data/lib/chargebee/models/payment_source.rb +1 -1
- data/lib/chargebee/models/plan.rb +1 -1
- data/lib/chargebee/models/purchase.rb +18 -0
- data/lib/chargebee/models/quote.rb +2 -2
- data/lib/chargebee/models/quote_line_group.rb +1 -1
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/models/subscription_entitlement.rb +2 -6
- data/lib/chargebee/models/transaction.rb +1 -1
- data/lib/chargebee/result.rb +23 -6
- data/lib/chargebee.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e6e95db66864efd299e96eda68304c07b587fb
|
4
|
+
data.tar.gz: 2ef8f249d2f102e142f6c4fa7b562b53be51f318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40fa38ae24cba51b64b07a3daa2626bc599efbe04c18258ce81c607aeec5205cede94f2094a3e4998dabe2643c4f31954fa7918c32c65e1bf8cd9b5f4a2d10ce
|
7
|
+
data.tar.gz: b6c913a7f1c9f42c2c6806ac2164bc6113888501a28edb928b29d220dfbdb2d6e191c36c533ca03a67c82d46ad10db815bcd90bac6a05eb468cce6c9bcf5fe12
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
### v2.17.0 (2022-07-18)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
### Fixes:
|
5
|
+
* Fixed Status Enum related issues
|
6
|
+
* Fixed EmbeddedResource related issues
|
7
|
+
|
8
|
+
#### New endpoints:
|
9
|
+
* hostedpage#PreCancel has been added to the hostedpage resource.
|
10
|
+
|
11
|
+
#### New attributes:
|
12
|
+
* business_entity_id have been added to the CreditNote, Customer,HostedPage, Invoice, PaymentIntent, Quote, Subscription and Transaction resources.
|
13
|
+
* coupon_set_code have been added to the CreditNote, CreditNoteEstimate, Invoice, InvoiceEstimate, Quote and QuoteLineGroup resources.
|
14
|
+
* List of SubscriptionEstimate have been added to Estimate resource.
|
15
|
+
|
16
|
+
#### New Resource:
|
17
|
+
* ImpactedSubscription, ImpactedItem, Purchase have been added.
|
18
|
+
|
19
|
+
#### New Enum values:
|
20
|
+
* direct_debit has been added to payment_method_type enum.
|
21
|
+
* bancontact, not_applicable added to payment_source_card_brand enum.
|
22
|
+
* business_entity added to entity_type Enum
|
23
|
+
* business_entity_created, business_entity_updated, business_entity_deleted, purchase_created added to event_type Enum
|
24
|
+
* chargebee_payments added to gateway Enum
|
25
|
+
|
26
|
+
|
1
27
|
### v2.16.0 (2022-05-23)
|
2
28
|
* * *
|
3
29
|
|
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 = '2022-
|
7
|
+
s.version = '2.17.0'
|
8
|
+
s.date = '2022-07-18'
|
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
|
|
@@ -60,6 +60,8 @@ Gem::Specification.new do |s|
|
|
60
60
|
lib/chargebee/models/gift.rb
|
61
61
|
lib/chargebee/models/hierarchy.rb
|
62
62
|
lib/chargebee/models/hosted_page.rb
|
63
|
+
lib/chargebee/models/impacted_item.rb
|
64
|
+
lib/chargebee/models/impacted_subscription.rb
|
63
65
|
lib/chargebee/models/invoice.rb
|
64
66
|
lib/chargebee/models/invoice_estimate.rb
|
65
67
|
lib/chargebee/models/item.rb
|
@@ -73,6 +75,7 @@ Gem::Specification.new do |s|
|
|
73
75
|
lib/chargebee/models/plan.rb
|
74
76
|
lib/chargebee/models/portal_session.rb
|
75
77
|
lib/chargebee/models/promotional_credit.rb
|
78
|
+
lib/chargebee/models/purchase.rb
|
76
79
|
lib/chargebee/models/quote.rb
|
77
80
|
lib/chargebee/models/quote_line_group.rb
|
78
81
|
lib/chargebee/models/quoted_charge.rb
|
@@ -20,7 +20,7 @@ module ChargeBee
|
|
20
20
|
Request.send('post', uri_path("addons"), params, env, headers)
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.update(id, params
|
23
|
+
def self.update(id, params, env=nil, headers={})
|
24
24
|
Request.send('post', uri_path("addons",id.to_s), params, env, headers)
|
25
25
|
end
|
26
26
|
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
10
10
|
end
|
11
11
|
|
12
12
|
class Discount < Model
|
13
|
-
attr_accessor :amount, :description, :entity_type, :entity_id
|
13
|
+
attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
|
14
14
|
end
|
15
15
|
|
16
16
|
class LineItemDiscount < Model
|
@@ -42,7 +42,8 @@ module ChargeBee
|
|
42
42
|
:amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
|
43
43
|
:channel, :einvoice, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code,
|
44
44
|
:round_off_amount, :fractional_correction, :line_items, :discounts, :line_item_discounts, :line_item_tiers,
|
45
|
-
:taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :create_reason_code, :vat_number_prefix
|
45
|
+
:taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :create_reason_code, :vat_number_prefix,
|
46
|
+
:business_entity_id
|
46
47
|
|
47
48
|
# OPERATIONS
|
48
49
|
#-----------
|
@@ -43,11 +43,12 @@ module ChargeBee
|
|
43
43
|
:exempt_number, :resource_version, :updated_at, :locale, :billing_date, :billing_date_mode,
|
44
44
|
:billing_day_of_week, :billing_day_of_week_mode, :pii_cleared, :auto_close_invoices, :channel,
|
45
45
|
:card_status, :fraud_flag, :primary_payment_source_id, :backup_payment_source_id, :billing_address,
|
46
|
-
:referral_urls, :contacts, :payment_method, :invoice_notes, :
|
47
|
-
:unbilled_charges, :refundable_credits, :excess_payments, :balances, :entity_identifiers,
|
48
|
-
:meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type,
|
49
|
-
:client_profile_id, :relationship, :use_default_hierarchy_settings,
|
50
|
-
:child_account_access, :vat_number_prefix, :entity_identifier_scheme,
|
46
|
+
:referral_urls, :contacts, :payment_method, :invoice_notes, :business_entity_id, :preferred_currency_code,
|
47
|
+
:promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments, :balances, :entity_identifiers,
|
48
|
+
:is_einvoice_enabled, :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type,
|
49
|
+
:business_customer_without_vat_number, :client_profile_id, :relationship, :use_default_hierarchy_settings,
|
50
|
+
:parent_account_access, :child_account_access, :vat_number_prefix, :entity_identifier_scheme,
|
51
|
+
:entity_identifier_standard
|
51
52
|
|
52
53
|
# OPERATIONS
|
53
54
|
#-----------
|
@@ -1,12 +1,7 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class EntitlementOverride < Model
|
3
3
|
|
4
|
-
|
5
|
-
attr_accessor
|
6
|
-
end
|
7
|
-
|
8
|
-
attr_accessor :id, :entity_id, :entity_type, :feature_id, :feature_name, :value, :name, :expires_at,
|
9
|
-
:embedded
|
4
|
+
attr_accessor :id, :entity_id, :entity_type, :feature_id, :feature_name, :value, :name, :expires_at
|
10
5
|
|
11
6
|
# OPERATIONS
|
12
7
|
#-----------
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Estimate < Model
|
3
3
|
|
4
|
-
attr_accessor :created_at, :subscription_estimate, :
|
5
|
-
:credit_note_estimates, :unbilled_charge_estimates
|
4
|
+
attr_accessor :created_at, :subscription_estimate, :subscription_estimates, :invoice_estimate,
|
5
|
+
:invoice_estimates, :next_invoice_estimate, :credit_note_estimates, :unbilled_charge_estimates
|
6
6
|
|
7
7
|
# OPERATIONS
|
8
8
|
#-----------
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class HostedPage < Model
|
3
3
|
|
4
4
|
attr_accessor :id, :type, :url, :state, :failure_reason, :pass_thru_content, :embed, :created_at,
|
5
|
-
:expires_at, :updated_at, :resource_version, :checkout_info
|
5
|
+
:expires_at, :updated_at, :resource_version, :checkout_info, :business_entity_id
|
6
6
|
|
7
7
|
class Content < Result
|
8
8
|
end
|
@@ -26,7 +26,7 @@ module ChargeBee
|
|
26
26
|
Request.send('post', uri_path("hosted_pages","checkout_one_time"), params, env, headers)
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.checkout_one_time_for_items(params
|
29
|
+
def self.checkout_one_time_for_items(params, env=nil, headers={})
|
30
30
|
Request.send('post', uri_path("hosted_pages","checkout_one_time_for_items"), params, env, headers)
|
31
31
|
end
|
32
32
|
|
@@ -94,5 +94,9 @@ module ChargeBee
|
|
94
94
|
Request.send_list_request('get', uri_path("hosted_pages"), params, env, headers)
|
95
95
|
end
|
96
96
|
|
97
|
+
def self.pre_cancel(params, env=nil, headers={})
|
98
|
+
Request.send('post', uri_path("hosted_pages","pre_cancel"), params, env, headers)
|
99
|
+
end
|
100
|
+
|
97
101
|
end # ~HostedPage
|
98
102
|
end # ~ChargeBee
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class ImpactedItem < Model
|
3
|
+
|
4
|
+
class Download < Model
|
5
|
+
attr_accessor :download_url, :valid_till, :mime_type
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :count, :download, :items
|
9
|
+
|
10
|
+
# OPERATIONS
|
11
|
+
#-----------
|
12
|
+
|
13
|
+
end # ~ImpactedItem
|
14
|
+
end # ~ChargeBee
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class ImpactedSubscription < Model
|
3
|
+
|
4
|
+
class Download < Model
|
5
|
+
attr_accessor :download_url, :valid_till, :mime_type
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :count, :download, :subscription_ids
|
9
|
+
|
10
|
+
# OPERATIONS
|
11
|
+
#-----------
|
12
|
+
|
13
|
+
end # ~ImpactedSubscription
|
14
|
+
end # ~ChargeBee
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
9
|
-
attr_accessor :amount, :description, :entity_type, :entity_id
|
9
|
+
attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
|
10
10
|
end
|
11
11
|
|
12
12
|
class LineItemDiscount < Model
|
@@ -74,7 +74,7 @@ module ChargeBee
|
|
74
74
|
:line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :line_item_tiers, :linked_payments,
|
75
75
|
:dunning_attempts, :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders,
|
76
76
|
:notes, :shipping_address, :billing_address, :einvoice, :payment_owner, :void_reason_code, :deleted,
|
77
|
-
:vat_number_prefix, :channel
|
77
|
+
:vat_number_prefix, :channel, :business_entity_id
|
78
78
|
|
79
79
|
# OPERATIONS
|
80
80
|
#-----------
|
@@ -1,11 +1,7 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class ItemEntitlement < Model
|
3
3
|
|
4
|
-
|
5
|
-
attr_accessor
|
6
|
-
end
|
7
|
-
|
8
|
-
attr_accessor :id, :item_id, :item_type, :feature_id, :feature_name, :value, :name, :embedded
|
4
|
+
attr_accessor :id, :item_id, :item_type, :feature_id, :feature_name, :value, :name
|
9
5
|
|
10
6
|
# OPERATIONS
|
11
7
|
#-----------
|
@@ -7,7 +7,7 @@ module ChargeBee
|
|
7
7
|
|
8
8
|
attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
|
9
9
|
:payment_method_type, :success_url, :failure_url, :created_at, :modified_at, :resource_version,
|
10
|
-
:updated_at, :customer_id, :gateway, :active_payment_attempt
|
10
|
+
:updated_at, :customer_id, :gateway, :active_payment_attempt, :business_entity_id
|
11
11
|
|
12
12
|
# OPERATIONS
|
13
13
|
#-----------
|
@@ -27,7 +27,7 @@ module ChargeBee
|
|
27
27
|
|
28
28
|
attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
|
29
29
|
:status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account,
|
30
|
-
:amazon_payment, :upi, :paypal, :mandates, :deleted
|
30
|
+
:amazon_payment, :upi, :paypal, :mandates, :deleted, :business_entity_id
|
31
31
|
|
32
32
|
# OPERATIONS
|
33
33
|
#-----------
|
@@ -34,7 +34,7 @@ module ChargeBee
|
|
34
34
|
Request.send('post', uri_path("plans"), params, env, headers)
|
35
35
|
end
|
36
36
|
|
37
|
-
def self.update(id, params
|
37
|
+
def self.update(id, params, env=nil, headers={})
|
38
38
|
Request.send('post', uri_path("plans",id.to_s), params, env, headers)
|
39
39
|
end
|
40
40
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class Purchase < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :customer_id, :created_at, :modified_at, :subscription_ids, :invoice_ids
|
5
|
+
|
6
|
+
# OPERATIONS
|
7
|
+
#-----------
|
8
|
+
|
9
|
+
def self.create(params, env=nil, headers={})
|
10
|
+
Request.send('post', uri_path("purchases"), params, env, headers)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.estimate(params, env=nil, headers={})
|
14
|
+
Request.send('post', uri_path("purchases","estimate"), params, env, headers)
|
15
|
+
end
|
16
|
+
|
17
|
+
end # ~Purchase
|
18
|
+
end # ~ChargeBee
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
9
|
-
attr_accessor :amount, :description, :entity_type, :entity_id
|
9
|
+
attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
|
10
10
|
end
|
11
11
|
|
12
12
|
class LineItemDiscount < Model
|
@@ -38,7 +38,7 @@ module ChargeBee
|
|
38
38
|
:sub_total, :total, :credits_applied, :amount_paid, :amount_due, :version, :resource_version,
|
39
39
|
:updated_at, :vat_number_prefix, :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes,
|
40
40
|
:line_item_tiers, :currency_code, :notes, :shipping_address, :billing_address, :contract_term_start,
|
41
|
-
:contract_term_end, :contract_term_termination_fee
|
41
|
+
:contract_term_end, :contract_term_termination_fee, :business_entity_id
|
42
42
|
|
43
43
|
# OPERATIONS
|
44
44
|
#-----------
|
@@ -53,7 +53,7 @@ module ChargeBee
|
|
53
53
|
:due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code, :addons,
|
54
54
|
:event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address, :referral_info,
|
55
55
|
:invoice_notes, :meta_data, :metadata, :deleted, :changes_scheduled_at, :contract_term, :cancel_reason_code,
|
56
|
-
:free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices
|
56
|
+
:free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices, :business_entity_id
|
57
57
|
|
58
58
|
# OPERATIONS
|
59
59
|
#-----------
|
@@ -2,15 +2,11 @@ module ChargeBee
|
|
2
2
|
class SubscriptionEntitlement < Model
|
3
3
|
|
4
4
|
class Component < Model
|
5
|
-
attr_accessor
|
6
|
-
end
|
7
|
-
|
8
|
-
class EmbeddedResource < Model
|
9
|
-
attr_accessor
|
5
|
+
attr_accessor :entitlement_overrides
|
10
6
|
end
|
11
7
|
|
12
8
|
attr_accessor :id, :subscription_id, :feature_id, :feature_name, :feature_unit, :value, :name,
|
13
|
-
:is_overridden, :is_enabled, :expires_at, :components
|
9
|
+
:is_overridden, :is_enabled, :expires_at, :components
|
14
10
|
|
15
11
|
# OPERATIONS
|
16
12
|
#-----------
|
@@ -23,7 +23,7 @@ module ChargeBee
|
|
23
23
|
:error_code, :error_text, :voided_at, :resource_version, :updated_at, :fraud_reason, :amount_unused,
|
24
24
|
:masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
|
25
25
|
:amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
|
26
|
-
:linked_payments, :deleted, :iin, :last4, :merchant_reference_id
|
26
|
+
:linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id
|
27
27
|
|
28
28
|
# OPERATIONS
|
29
29
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -117,13 +117,15 @@ module ChargeBee
|
|
117
117
|
|
118
118
|
def estimate()
|
119
119
|
estimate = get(:estimate, Estimate, {},
|
120
|
-
{:subscription_estimate => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :invoice_estimates => InvoiceEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate, :unbilled_charge_estimates => UnbilledCharge});
|
120
|
+
{:subscription_estimate => SubscriptionEstimate, :subscription_estimates => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :invoice_estimates => InvoiceEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate, :unbilled_charge_estimates => UnbilledCharge});
|
121
121
|
estimate.init_dependant(@response[:estimate], :subscription_estimate,
|
122
122
|
{:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
|
123
123
|
estimate.init_dependant(@response[:estimate], :invoice_estimate,
|
124
124
|
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
|
125
125
|
estimate.init_dependant(@response[:estimate], :next_invoice_estimate,
|
126
126
|
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
|
127
|
+
estimate.init_dependant_list(@response[:estimate], :subscription_estimates,
|
128
|
+
{:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
|
127
129
|
estimate.init_dependant_list(@response[:estimate], :invoice_estimates,
|
128
130
|
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
|
129
131
|
estimate.init_dependant_list(@response[:estimate], :credit_note_estimates,
|
@@ -278,24 +280,39 @@ module ChargeBee
|
|
278
280
|
return feature;
|
279
281
|
end
|
280
282
|
|
283
|
+
def impacted_subscription()
|
284
|
+
impacted_subscription = get(:impacted_subscription, ImpactedSubscription,
|
285
|
+
{:download => ImpactedSubscription::Download});
|
286
|
+
return impacted_subscription;
|
287
|
+
end
|
288
|
+
|
289
|
+
def impacted_item()
|
290
|
+
impacted_item = get(:impacted_item, ImpactedItem,
|
291
|
+
{:download => ImpactedItem::Download});
|
292
|
+
return impacted_item;
|
293
|
+
end
|
294
|
+
|
281
295
|
def subscription_entitlement()
|
282
296
|
subscription_entitlement = get(:subscription_entitlement, SubscriptionEntitlement,
|
283
|
-
{:component => SubscriptionEntitlement::Component
|
297
|
+
{:component => SubscriptionEntitlement::Component});
|
284
298
|
return subscription_entitlement;
|
285
299
|
end
|
286
300
|
|
287
301
|
def item_entitlement()
|
288
|
-
item_entitlement = get(:item_entitlement, ItemEntitlement
|
289
|
-
{:embedded_resource => ItemEntitlement::EmbeddedResource});
|
302
|
+
item_entitlement = get(:item_entitlement, ItemEntitlement);
|
290
303
|
return item_entitlement;
|
291
304
|
end
|
292
305
|
|
293
306
|
def entitlement_override()
|
294
|
-
entitlement_override = get(:entitlement_override, EntitlementOverride
|
295
|
-
{:embedded_resource => EntitlementOverride::EmbeddedResource});
|
307
|
+
entitlement_override = get(:entitlement_override, EntitlementOverride);
|
296
308
|
return entitlement_override;
|
297
309
|
end
|
298
310
|
|
311
|
+
def purchase()
|
312
|
+
purchase = get(:purchase, Purchase);
|
313
|
+
return purchase;
|
314
|
+
end
|
315
|
+
|
299
316
|
|
300
317
|
def unbilled_charges()
|
301
318
|
unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
|
data/lib/chargebee.rb
CHANGED
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.17.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: 2022-
|
12
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -136,6 +136,8 @@ files:
|
|
136
136
|
- lib/chargebee/models/gift.rb
|
137
137
|
- lib/chargebee/models/hierarchy.rb
|
138
138
|
- lib/chargebee/models/hosted_page.rb
|
139
|
+
- lib/chargebee/models/impacted_item.rb
|
140
|
+
- lib/chargebee/models/impacted_subscription.rb
|
139
141
|
- lib/chargebee/models/invoice.rb
|
140
142
|
- lib/chargebee/models/invoice_estimate.rb
|
141
143
|
- lib/chargebee/models/item.rb
|
@@ -149,6 +151,7 @@ files:
|
|
149
151
|
- lib/chargebee/models/plan.rb
|
150
152
|
- lib/chargebee/models/portal_session.rb
|
151
153
|
- lib/chargebee/models/promotional_credit.rb
|
154
|
+
- lib/chargebee/models/purchase.rb
|
152
155
|
- lib/chargebee/models/quote.rb
|
153
156
|
- lib/chargebee/models/quote_line_group.rb
|
154
157
|
- lib/chargebee/models/quoted_charge.rb
|