chargebee 2.7.5 → 2.7.6
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 +43 -0
- data/LICENSE +1 -1
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/addon.rb +1 -1
- data/lib/chargebee/models/credit_note.rb +3 -3
- data/lib/chargebee/models/credit_note_estimate.rb +1 -1
- data/lib/chargebee/models/customer.rb +14 -1
- data/lib/chargebee/models/invoice.rb +5 -5
- data/lib/chargebee/models/invoice_estimate.rb +1 -1
- data/lib/chargebee/models/model.rb +14 -14
- data/lib/chargebee/models/order.rb +8 -0
- data/lib/chargebee/models/payment_intent.rb +2 -2
- data/lib/chargebee/models/plan.rb +2 -1
- data/lib/chargebee/models/quote.rb +21 -5
- data/lib/chargebee/models/quote_line_group.rb +4 -3
- data/lib/chargebee/models/subscription.rb +4 -3
- data/lib/chargebee/models/transaction.rb +1 -1
- data/lib/chargebee/result.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d1697ee7e0779a671fed4f4f6c77100785fcf04
|
|
4
|
+
data.tar.gz: cee6253ca4e7dff1e75d9898f409516fa2b9c9ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f925f2914c34a272ef96042a33449ef827082b0da3c67553381d1ae1699f08dcbf68abaf723d07f70b02505666c2791deea7dd3ba06e69e852fcf5628116ddc1
|
|
7
|
+
data.tar.gz: 6bee679cda91c92e4b45950a5d32fcda834bfa7d5538c884333d7f461cc20bbe22d8988bfcd7f492fc60298116d7329cc5231c79dc408c4e0ba2182293ee19ef
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
### v2.7.6 (2020-07-15)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
* New attributes show_description_in_invoices, show_description_in_quotes have been added in Addon, Plan resource
|
|
5
|
+
* New input parameters show_description_in_invoices, show_description_in_quotes have been added for create_an_addon, update_an_addon, create_a_plan, update_a_plan apis
|
|
6
|
+
* New attribute create_reason_code has been added in Credit notes resource
|
|
7
|
+
* Attribute reason_code is made optional in the Credit notes resource
|
|
8
|
+
* New filter parameter create_reason_code is added in list_credit_notes api
|
|
9
|
+
* New input parameter refund_reason_code has been added in Credit notes' Refund, Record a refund apis
|
|
10
|
+
* Sub-resources parent_account_access and child_account_access have been added in Customer resource
|
|
11
|
+
* New attribute use_default_hierarchy_settings has been added in Customer resource
|
|
12
|
+
* New endpoint update_hierarchy_settings has been added in Customer resource
|
|
13
|
+
* New input parameters use_default_hierarchy_settings, parent_account_access, child_account_access have been added in link_a_customer api
|
|
14
|
+
* New input parameter invoice_notes, coupon_ids, invoice[subscription_id], charges[taxable], charges[tax_profile_id], charges[avalara_tax_code], charges[taxjar_product_code] has been added to create_invoice_estimate api
|
|
15
|
+
* New input param cancel_reason_code has been added to export_revenue_recognition_reports, export_deferred_revenue_reports, export_subscriptions, export_credit_notes apis
|
|
16
|
+
* New input param coupon_ids has been added to checkout_new_subscription, checkout_existing_subscription apis
|
|
17
|
+
* Input param subscription_coupon has been deprecated in checkout_new_subscription, checkout_existing_subscription apis
|
|
18
|
+
* New attribute void_reason_code has been added to the Invoice resource
|
|
19
|
+
* Attribute cn_reason_code has been made optional in applied_credits, adjustment_credit_notes, issued_credit_notes, linked_credit_note sub-resources
|
|
20
|
+
* New attribute cn_create_reason_code has been added in applied_credits, adjustment_credit_notes, issued_credit_notes, linked_credit_note sub-resources
|
|
21
|
+
* New input parameter subscription_id, invoice_note, remove_general_note, coupon_ids, charges[taxable], charges[tax_profile_id], charges[avalara_tax_code], charges[taxjar_product_code] have been added to create_an_invoice api
|
|
22
|
+
* Input parameter coupon is deprecated from create_an_invoice api
|
|
23
|
+
* New filter parameter void_reason_code has been added to list_invoices api
|
|
24
|
+
* New input parameter invoice_note, remove_general_note, notes_to_remove[entity_type], notes_to_remove[entity_id] have been added to close_a_pending_invoice api
|
|
25
|
+
* New input parameter void_reason_code has been added to void_an_invoice api
|
|
26
|
+
* New input parameter credit_note[create_reason_code] has been added to refund_an_invoice, record_refund_for_an_invoice api
|
|
27
|
+
* New endpoints import_an_order and delete_an_imported_order have been added to Order resource
|
|
28
|
+
* New filter parameter exclude_deleted_credit_notes has been added to list_orders api
|
|
29
|
+
* New attribute payment_method_type has been added to payment_intent resource and active_payment_attempt sub-resource
|
|
30
|
+
* New input parameter payment_method_type has been added to create_a_payment_intent, update_a_payment_intent api
|
|
31
|
+
* New attributes version, contract_term_start, contract_term_end, contract_term_termination_fee have been added to Quotes resource
|
|
32
|
+
* New endpoints edit_create_subscription_quote, edit_update_subscription_quote, edit_one_time_quote, extend_expiry_date have beed added to Quotes resource
|
|
33
|
+
* New input parameters contract_term[action_at_term_end], contract_term[cancellation_cutoff_period], subscription[contract_term_billing_cycle_on_renewal] have been added to create_a_quote_for_a_new_subscription, create_a_quote_for_update_subscription apis
|
|
34
|
+
* New attribute version has been added to quote_line_group sub-resource
|
|
35
|
+
* New attribute cancel_reason_code has been added to Subscriptions resource
|
|
36
|
+
* New filter parameter cancel_reason_code has been added to list_subscriptions, cancel_a_subscription apis
|
|
37
|
+
* New input parameter contract_term_billing_cycle_on_renewal has been added to import_a_subscription, import_subscription_for_customer apis
|
|
38
|
+
* New input parameter event_based_addon has been added to cancel_a_subscription api
|
|
39
|
+
* New filter parameter is_voided has been added to list_unbilled_charges api
|
|
40
|
+
* New event_types MRR_UPDATED, ORDER_DELETED have been added
|
|
41
|
+
* New values SOFORT, BANCONTACT have been added to the payment_method_types enum
|
|
42
|
+
* New attributes entity_type_description has been added to the line_items sub-resource
|
|
43
|
+
|
|
1
44
|
### v2.7.5 (2020-04-03)
|
|
2
45
|
* * *
|
|
3
46
|
|
data/LICENSE
CHANGED
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.7.
|
|
8
|
-
s.date = '2020-
|
|
7
|
+
s.version = '2.7.6'
|
|
8
|
+
s.date = '2020-07-15'
|
|
9
9
|
|
|
10
10
|
s.summary = "Ruby client for Chargebee API."
|
|
11
11
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
data/lib/chargebee.rb
CHANGED
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
|
10
10
|
:tax_code, :taxjar_product_code, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type,
|
|
11
11
|
:sku, :accounting_code, :accounting_category1, :accounting_category2, :is_shippable, :shipping_frequency_period,
|
|
12
12
|
:shipping_frequency_period_unit, :resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id,
|
|
13
|
-
:meta_data, :tiers
|
|
13
|
+
:meta_data, :tiers, :show_description_in_invoices, :show_description_in_quotes
|
|
14
14
|
|
|
15
15
|
# OPERATIONS
|
|
16
16
|
#-----------
|
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
|
2
2
|
class CreditNote < 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, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :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 LinkedRefund < Model
|
|
29
|
-
attr_accessor :txn_id, :applied_amount, :applied_at, :txn_status, :txn_date, :txn_amount
|
|
29
|
+
attr_accessor :txn_id, :applied_amount, :applied_at, :txn_status, :txn_date, :txn_amount, :refund_reason_code
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
class Allocation < Model
|
|
@@ -38,7 +38,7 @@ module ChargeBee
|
|
|
38
38
|
:amount_available, :refunded_at, :voided_at, :resource_version, :updated_at, :sub_total, :sub_total_in_local_currency,
|
|
39
39
|
:total_in_local_currency, :local_currency_code, :round_off_amount, :fractional_correction, :line_items,
|
|
40
40
|
:discounts, :line_item_discounts, :line_item_tiers, :taxes, :line_item_taxes, :linked_refunds,
|
|
41
|
-
:allocations, :deleted
|
|
41
|
+
:allocations, :deleted, :create_reason_code
|
|
42
42
|
|
|
43
43
|
# OPERATIONS
|
|
44
44
|
#-----------
|
|
@@ -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, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class Discount < Model
|
|
@@ -25,6 +25,14 @@ module ChargeBee
|
|
|
25
25
|
attr_accessor :parent_id, :payment_owner_id, :invoice_owner_id
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
class ParentAccountAccess < Model
|
|
29
|
+
attr_accessor :portal_edit_child_subscriptions, :portal_download_child_invoices, :send_subscription_emails, :send_invoice_emails, :send_payment_emails
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
class ChildAccountAccess < Model
|
|
33
|
+
attr_accessor :portal_edit_subscriptions, :portal_download_invoices, :send_subscription_emails, :send_invoice_emails, :send_payment_emails
|
|
34
|
+
end
|
|
35
|
+
|
|
28
36
|
attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
|
|
29
37
|
:net_term_days, :vat_number_validated_time, :vat_number_status, :allow_direct_debit, :is_location_valid,
|
|
30
38
|
:created_at, :created_from_ip, :exemption_details, :taxability, :entity_code, :exempt_number,
|
|
@@ -33,7 +41,8 @@ module ChargeBee
|
|
|
33
41
|
:backup_payment_source_id, :billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes,
|
|
34
42
|
:preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
|
|
35
43
|
:balances, :meta_data, :deleted, :registered_for_gst, :customer_type, :business_customer_without_vat_number,
|
|
36
|
-
:client_profile_id, :relationship
|
|
44
|
+
:client_profile_id, :relationship, :use_default_hierarchy_settings, :parent_account_access,
|
|
45
|
+
:child_account_access
|
|
37
46
|
|
|
38
47
|
# OPERATIONS
|
|
39
48
|
#-----------
|
|
@@ -134,5 +143,9 @@ module ChargeBee
|
|
|
134
143
|
Request.send('get', uri_path("customers",id.to_s,"hierarchy"), params, env, headers)
|
|
135
144
|
end
|
|
136
145
|
|
|
146
|
+
def self.update_hierarchy_settings(id, params={}, env=nil, headers={})
|
|
147
|
+
Request.send('post', uri_path("customers",id.to_s,"update_hierarchy_settings"), params, env, headers)
|
|
148
|
+
end
|
|
149
|
+
|
|
137
150
|
end # ~Customer
|
|
138
151
|
end # ~ChargeBee
|
|
@@ -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, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class Discount < Model
|
|
@@ -34,15 +34,15 @@ module ChargeBee
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
class AppliedCredit < Model
|
|
37
|
-
attr_accessor :cn_id, :applied_amount, :applied_at, :cn_reason_code, :cn_date, :cn_status
|
|
37
|
+
attr_accessor :cn_id, :applied_amount, :applied_at, :cn_reason_code, :cn_create_reason_code, :cn_date, :cn_status
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
class AdjustmentCreditNote < Model
|
|
41
|
-
attr_accessor :cn_id, :cn_reason_code, :cn_date, :cn_total, :cn_status
|
|
41
|
+
attr_accessor :cn_id, :cn_reason_code, :cn_create_reason_code, :cn_date, :cn_total, :cn_status
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
class IssuedCreditNote < Model
|
|
45
|
-
attr_accessor :cn_id, :cn_reason_code, :cn_date, :cn_total, :cn_status
|
|
45
|
+
attr_accessor :cn_id, :cn_reason_code, :cn_create_reason_code, :cn_date, :cn_total, :cn_status
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
class LinkedOrder < Model
|
|
@@ -69,7 +69,7 @@ module ChargeBee
|
|
|
69
69
|
:expected_payment_date, :amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts,
|
|
70
70
|
:taxes, :line_item_taxes, :line_item_tiers, :linked_payments, :dunning_attempts, :applied_credits,
|
|
71
71
|
:adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address,
|
|
72
|
-
:payment_owner, :deleted
|
|
72
|
+
:payment_owner, :void_reason_code, :deleted
|
|
73
73
|
|
|
74
74
|
# OPERATIONS
|
|
75
75
|
#-----------
|
|
@@ -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, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class Discount < Model
|
|
@@ -21,20 +21,20 @@ module ChargeBee
|
|
|
21
21
|
instance_eval do
|
|
22
22
|
values.each do |k, v|
|
|
23
23
|
set_val = nil
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
next if v.is_a?(Hash) && @dependant_types[k] != nil
|
|
25
|
+
|
|
26
|
+
set_val = if v.is_a?(Hash)
|
|
27
|
+
(@sub_types[k] != nil) ? @sub_types[k].construct(v) : v
|
|
28
|
+
elsif v.is_a?(Array)
|
|
29
|
+
if @sub_types[k] != nil
|
|
30
|
+
v.map { |item| @sub_types[k].construct(item)}
|
|
31
|
+
else
|
|
32
|
+
v
|
|
33
|
+
end
|
|
34
|
+
else
|
|
35
|
+
v
|
|
36
|
+
end
|
|
37
|
+
|
|
38
38
|
instance_variable_set("@#{k}", set_val)
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -45,6 +45,10 @@ module ChargeBee
|
|
|
45
45
|
Request.send('post', uri_path("orders",id.to_s), params, env, headers)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
def self.import_order(params, env=nil, headers={})
|
|
49
|
+
Request.send('post', uri_path("orders","import_order"), params, env, headers)
|
|
50
|
+
end
|
|
51
|
+
|
|
48
52
|
def self.assign_order_number(id, env=nil, headers={})
|
|
49
53
|
Request.send('post', uri_path("orders",id.to_s,"assign_order_number"), {}, env, headers)
|
|
50
54
|
end
|
|
@@ -65,6 +69,10 @@ module ChargeBee
|
|
|
65
69
|
Request.send('get', uri_path("orders",id.to_s), {}, env, headers)
|
|
66
70
|
end
|
|
67
71
|
|
|
72
|
+
def self.delete(id, env=nil, headers={})
|
|
73
|
+
Request.send('post', uri_path("orders",id.to_s,"delete"), {}, env, headers)
|
|
74
|
+
end
|
|
75
|
+
|
|
68
76
|
def self.list(params={}, env=nil, headers={})
|
|
69
77
|
Request.send_list_request('get', uri_path("orders"), params, env, headers)
|
|
70
78
|
end
|
|
@@ -2,11 +2,11 @@ module ChargeBee
|
|
|
2
2
|
class PaymentIntent < Model
|
|
3
3
|
|
|
4
4
|
class PaymentAttempt < Model
|
|
5
|
-
attr_accessor :id, :status, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at
|
|
5
|
+
attr_accessor :id, :status, :payment_method_type, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
|
|
9
|
-
:created_at, :modified_at, :customer_id, :gateway, :active_payment_attempt
|
|
9
|
+
:payment_method_type, :created_at, :modified_at, :customer_id, :gateway, :active_payment_attempt
|
|
10
10
|
|
|
11
11
|
# OPERATIONS
|
|
12
12
|
#-----------
|
|
@@ -24,7 +24,8 @@ module ChargeBee
|
|
|
24
24
|
:avalara_transaction_type, :avalara_service_type, :sku, :accounting_code, :accounting_category1,
|
|
25
25
|
:accounting_category2, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
|
|
26
26
|
:resource_version, :updated_at, :giftable, :claim_url, :invoice_notes, :taxable, :tax_profile_id,
|
|
27
|
-
:meta_data, :tiers, :applicable_addons, :attached_addons, :event_based_addons
|
|
27
|
+
:meta_data, :tiers, :applicable_addons, :attached_addons, :event_based_addons, :show_description_in_invoices,
|
|
28
|
+
:show_description_in_quotes
|
|
28
29
|
|
|
29
30
|
# OPERATIONS
|
|
30
31
|
#-----------
|
|
@@ -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, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class Discount < Model
|
|
@@ -30,10 +30,10 @@ module ChargeBee
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
attr_accessor :id, :name, :po_number, :customer_id, :subscription_id, :invoice_id, :status,
|
|
33
|
-
:operation_type, :vat_number, :price_type, :valid_till, :date, :
|
|
34
|
-
:
|
|
35
|
-
:
|
|
36
|
-
:shipping_address, :billing_address
|
|
33
|
+
:operation_type, :vat_number, :price_type, :valid_till, :date, :total_payable, :charge_on_acceptance,
|
|
34
|
+
:sub_total, :total, :credits_applied, :amount_paid, :amount_due, :version, :resource_version,
|
|
35
|
+
:updated_at, :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :currency_code,
|
|
36
|
+
:notes, :shipping_address, :billing_address, :contract_term_start, :contract_term_end, :contract_term_termination_fee
|
|
37
37
|
|
|
38
38
|
# OPERATIONS
|
|
39
39
|
#-----------
|
|
@@ -46,14 +46,26 @@ module ChargeBee
|
|
|
46
46
|
Request.send('post', uri_path("customers",id.to_s,"create_subscription_quote"), params, env, headers)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
def self.edit_create_sub_for_customer_quote(id, params, env=nil, headers={})
|
|
50
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_create_subscription_quote"), params, env, headers)
|
|
51
|
+
end
|
|
52
|
+
|
|
49
53
|
def self.update_subscription_quote(params, env=nil, headers={})
|
|
50
54
|
Request.send('post', uri_path("quotes","update_subscription_quote"), params, env, headers)
|
|
51
55
|
end
|
|
52
56
|
|
|
57
|
+
def self.edit_update_subscription_quote(id, params={}, env=nil, headers={})
|
|
58
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_update_subscription_quote"), params, env, headers)
|
|
59
|
+
end
|
|
60
|
+
|
|
53
61
|
def self.create_for_onetime_charges(params, env=nil, headers={})
|
|
54
62
|
Request.send('post', uri_path("quotes","create_for_onetime_charges"), params, env, headers)
|
|
55
63
|
end
|
|
56
64
|
|
|
65
|
+
def self.edit_one_time_quote(id, params={}, env=nil, headers={})
|
|
66
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_one_time_quote"), params, env, headers)
|
|
67
|
+
end
|
|
68
|
+
|
|
57
69
|
def self.list(params={}, env=nil, headers={})
|
|
58
70
|
Request.send_list_request('get', uri_path("quotes"), params, env, headers)
|
|
59
71
|
end
|
|
@@ -70,6 +82,10 @@ module ChargeBee
|
|
|
70
82
|
Request.send('post', uri_path("quotes",id.to_s,"update_status"), params, env, headers)
|
|
71
83
|
end
|
|
72
84
|
|
|
85
|
+
def self.extend_expiry_date(id, params, env=nil, headers={})
|
|
86
|
+
Request.send('post', uri_path("quotes",id.to_s,"extend_expiry_date"), params, env, headers)
|
|
87
|
+
end
|
|
88
|
+
|
|
73
89
|
def self.delete(id, params={}, env=nil, headers={})
|
|
74
90
|
Request.send('post', uri_path("quotes",id.to_s,"delete"), params, env, headers)
|
|
75
91
|
end
|
|
@@ -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, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
5
|
+
attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class Discount < Model
|
|
@@ -21,8 +21,9 @@ module ChargeBee
|
|
|
21
21
|
attr_accessor :line_item_id, :tax_name, :tax_rate, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code, :tax_amount_in_local_currency, :local_currency_code
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
attr_accessor :id, :sub_total, :total, :credits_applied, :amount_paid, :amount_due,
|
|
25
|
-
:billing_cycle_number, :line_items, :discounts, :line_item_discounts, :taxes,
|
|
24
|
+
attr_accessor :version, :id, :sub_total, :total, :credits_applied, :amount_paid, :amount_due,
|
|
25
|
+
:charge_event, :billing_cycle_number, :line_items, :discounts, :line_item_discounts, :taxes,
|
|
26
|
+
:line_item_taxes
|
|
26
27
|
|
|
27
28
|
# OPERATIONS
|
|
28
29
|
#-----------
|
|
@@ -35,9 +35,10 @@ module ChargeBee
|
|
|
35
35
|
:remaining_billing_cycles, :po_number, :created_at, :started_at, :activated_at, :gift_id, :contract_term_billing_cycle_on_renewal,
|
|
36
36
|
:override_relationship, :pause_date, :resume_date, :cancelled_at, :cancel_reason, :affiliate_token,
|
|
37
37
|
:created_from_ip, :resource_version, :updated_at, :has_scheduled_changes, :payment_source_id,
|
|
38
|
-
:auto_collection, :due_invoices_count, :due_since,
|
|
39
|
-
:
|
|
40
|
-
:referral_info, :invoice_notes, :meta_data, :deleted,
|
|
38
|
+
:auto_collection, :due_invoices_count, :due_since,
|
|
39
|
+
:total_dues, :mrr, :exchange_rate, :base_currency_code, :addons, :event_based_addons, :charged_event_based_addons,
|
|
40
|
+
:coupon, :coupons, :shipping_address, :referral_info, :invoice_notes, :meta_data, :deleted,
|
|
41
|
+
:contract_term, :cancel_reason_code
|
|
41
42
|
|
|
42
43
|
# OPERATIONS
|
|
43
44
|
#-----------
|
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class LinkedCreditNote < Model
|
|
9
|
-
attr_accessor :cn_id, :applied_amount, :applied_at, :cn_reason_code, :cn_date, :cn_total, :cn_status, :cn_reference_invoice_id
|
|
9
|
+
attr_accessor :cn_id, :applied_amount, :applied_at, :cn_reason_code, :cn_create_reason_code, :cn_date, :cn_total, :cn_status, :cn_reference_invoice_id
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
class LinkedRefund < Model
|
data/lib/chargebee/result.rb
CHANGED
|
@@ -18,7 +18,7 @@ module ChargeBee
|
|
|
18
18
|
|
|
19
19
|
def customer()
|
|
20
20
|
customer = get(:customer, Customer,
|
|
21
|
-
{:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :relationship => Customer::Relationship});
|
|
21
|
+
{:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :relationship => Customer::Relationship, :parent_account_access => Customer::ParentAccountAccess, :child_account_access => Customer::ChildAccountAccess});
|
|
22
22
|
return customer;
|
|
23
23
|
end
|
|
24
24
|
|
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.7.
|
|
4
|
+
version: 2.7.6
|
|
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: 2020-
|
|
12
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json_pure
|