chargebee 2.37.1 → 2.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +60 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +5 -2
- data/lib/chargebee/models/addon.rb +5 -1
- data/lib/chargebee/models/customer.rb +6 -2
- data/lib/chargebee/models/export.rb +4 -0
- data/lib/chargebee/models/installment.rb +1 -1
- data/lib/chargebee/models/installment_config.rb +1 -1
- data/lib/chargebee/models/installment_detail.rb +14 -0
- data/lib/chargebee/models/invoice.rb +1 -1
- data/lib/chargebee/models/item_price.rb +9 -4
- data/lib/chargebee/models/payment_source.rb +6 -1
- data/lib/chargebee/models/plan.rb +6 -1
- data/lib/chargebee/models/price_variant.rb +35 -0
- data/lib/chargebee/models/ramp.rb +48 -0
- data/lib/chargebee/models/unbilled_charge.rb +1 -1
- data/lib/chargebee/result.rb +24 -6
- data/lib/chargebee.rb +5 -2
- 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: d57b0269a6b0c4fe1168f2fa4e9cd9fd6b4279ac
|
|
4
|
+
data.tar.gz: 827f40e47c08721455edfc9a8b94a491b27246e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c6f3d61534f515c0fe8bd4716f78ba989583c3b77ca27ad25310dd348ba9b50b3f715f0cea47c2413568d4f07565e75c121b0f2212f34eb5724aabe5697997c
|
|
7
|
+
data.tar.gz: 5c2e96990eb5d198c7cba2cd471325cf415de3b907b60289fc3cd770454f62a7574344a9ce441eb880b1a5c40d57a5b24eb51cd16fbf593955dcf6254ee18401
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,63 @@
|
|
|
1
|
+
### v2.38.1 (2024-05-02)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
#### Removed resources:
|
|
5
|
+
* Session has been removed.
|
|
6
|
+
|
|
7
|
+
### v2.38.0 (2024-04-30)
|
|
8
|
+
* * *
|
|
9
|
+
|
|
10
|
+
#### New resources:
|
|
11
|
+
* PriceVariant has been added.
|
|
12
|
+
* Ramp has been added.
|
|
13
|
+
* InstallmentDetail has been added.
|
|
14
|
+
* Session has been added.
|
|
15
|
+
* Ramp has been added.
|
|
16
|
+
|
|
17
|
+
#### New Enum values:
|
|
18
|
+
* INVOICE_INSTALLMENTS_CREATED has been added in EventType enum.
|
|
19
|
+
* INVOICE_INSTALLMENT_UPDATED has been added in EventType enum.
|
|
20
|
+
* INSTALLMENT_CONFIG_CREATED has been added in EventType enum.
|
|
21
|
+
* INSTALLMENT_CONFIG_DELETED has been added in EventType enum.
|
|
22
|
+
* RAMP_CREATED has been added in EventType enum.
|
|
23
|
+
* RAMP_DELETED has been added in EventType enum.
|
|
24
|
+
* RAMP_APPLIED has been added in EventType enum.
|
|
25
|
+
|
|
26
|
+
#### New Attributes:
|
|
27
|
+
* tax_providers_fields has been added to Addon resource.
|
|
28
|
+
* tax_providers_fields has been added to Customer resource.
|
|
29
|
+
* tax_providers_fields has been added to ItemPrice resource.
|
|
30
|
+
* tax_providers_fields has been added to Plan resource.
|
|
31
|
+
* resource_version has been added to Installment resource.
|
|
32
|
+
* resource_version has been added to InstallmentConfig resource.
|
|
33
|
+
* KlarnaPayNow has been added to PaymentSource resource.
|
|
34
|
+
* business_entity_id has been added to UnbilledCharge resource.
|
|
35
|
+
|
|
36
|
+
#### New Endpoints:
|
|
37
|
+
* Exports#PriceVariantsRequest has been added to Exports resource.
|
|
38
|
+
|
|
39
|
+
#### New Input parameters:
|
|
40
|
+
* changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionRequest.
|
|
41
|
+
* changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionForItemsRequest.
|
|
42
|
+
* contract_term[contract_start] has been added to Estimate#CreateSubItemEstimateRequest.
|
|
43
|
+
* contract_term[contract_start] has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
|
|
44
|
+
* contract_term[contract_start] has been added to Subscription#CreateWithItemsRequest.
|
|
45
|
+
* contract_term[contract_start] has been added to Subscription#UpdateForItemsRequest.
|
|
46
|
+
* price_variant_id has been added to ItemPrice#CreateRequest.
|
|
47
|
+
* price_variant_id has been added to ItemPrice#UpdateRequest.
|
|
48
|
+
* price_variant_id has been added to ItemPrice#ListRequest.
|
|
49
|
+
|
|
50
|
+
#### Removed attributes:
|
|
51
|
+
* additional_info has been removed from Invoice#StatmentDescriptor resource.
|
|
52
|
+
|
|
53
|
+
#### Removed Input parameters:
|
|
54
|
+
* additional_info has been removed from Subscription#CreateRequest.
|
|
55
|
+
* additional_info has been removed from Subscription#CreateForCustomerRequest.
|
|
56
|
+
* additional_info has been removed from Subscription#CreateWithItemsRequest.
|
|
57
|
+
* additional_info has been removed from Subscription#UpdateRequest.
|
|
58
|
+
* additional_info has been removed from Subscription#UpdateForItemsRequest.
|
|
59
|
+
* additional_info has been removed from Subscription#ReactivateRequest.
|
|
60
|
+
|
|
1
61
|
### v2.37.1 (2024-04-03)
|
|
2
62
|
* * *
|
|
3
63
|
|
data/Gemfile.lock
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.
|
|
8
|
-
s.date = '2024-
|
|
7
|
+
s.version = '2.38.1'
|
|
8
|
+
s.date = '2024-05-02'
|
|
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 = {
|
|
@@ -77,6 +77,7 @@ Gem::Specification.new do |s|
|
|
|
77
77
|
lib/chargebee/models/in_app_subscription.rb
|
|
78
78
|
lib/chargebee/models/installment.rb
|
|
79
79
|
lib/chargebee/models/installment_config.rb
|
|
80
|
+
lib/chargebee/models/installment_detail.rb
|
|
80
81
|
lib/chargebee/models/invoice.rb
|
|
81
82
|
lib/chargebee/models/invoice_estimate.rb
|
|
82
83
|
lib/chargebee/models/item.rb
|
|
@@ -92,12 +93,14 @@ Gem::Specification.new do |s|
|
|
|
92
93
|
lib/chargebee/models/payment_voucher.rb
|
|
93
94
|
lib/chargebee/models/plan.rb
|
|
94
95
|
lib/chargebee/models/portal_session.rb
|
|
96
|
+
lib/chargebee/models/price_variant.rb
|
|
95
97
|
lib/chargebee/models/promotional_credit.rb
|
|
96
98
|
lib/chargebee/models/purchase.rb
|
|
97
99
|
lib/chargebee/models/quote.rb
|
|
98
100
|
lib/chargebee/models/quote_line_group.rb
|
|
99
101
|
lib/chargebee/models/quoted_charge.rb
|
|
100
102
|
lib/chargebee/models/quoted_subscription.rb
|
|
103
|
+
lib/chargebee/models/ramp.rb
|
|
101
104
|
lib/chargebee/models/resource_migration.rb
|
|
102
105
|
lib/chargebee/models/site_migration_detail.rb
|
|
103
106
|
lib/chargebee/models/subscription.rb
|
|
@@ -5,13 +5,17 @@ module ChargeBee
|
|
|
5
5
|
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
+
class TaxProvidersField < Model
|
|
9
|
+
attr_accessor :provider_name, :field_id, :field_value
|
|
10
|
+
end
|
|
11
|
+
|
|
8
12
|
attr_accessor :id, :name, :invoice_name, :description, :pricing_model, :type, :charge_type,
|
|
9
13
|
:price, :currency_code, :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal,
|
|
10
14
|
:tax_code, :hsn_code, :taxjar_product_code, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type,
|
|
11
15
|
:sku, :accounting_code, :accounting_category1, :accounting_category2, :accounting_category3,
|
|
12
16
|
:accounting_category4, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
|
|
13
17
|
:resource_version, :updated_at, :price_in_decimal, :included_in_mrr, :channel, :proration_type,
|
|
14
|
-
:invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers, :show_description_in_invoices,
|
|
18
|
+
:invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers, :tax_providers_fields, :show_description_in_invoices,
|
|
15
19
|
:show_description_in_quotes
|
|
16
20
|
|
|
17
21
|
# OPERATIONS
|
|
@@ -25,6 +25,10 @@ module ChargeBee
|
|
|
25
25
|
attr_accessor :id, :value, :scheme, :standard
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
class TaxProvidersField < Model
|
|
29
|
+
attr_accessor :provider_name, :field_id, :field_value
|
|
30
|
+
end
|
|
31
|
+
|
|
28
32
|
class Relationship < Model
|
|
29
33
|
attr_accessor :parent_id, :payment_owner_id, :invoice_owner_id
|
|
30
34
|
end
|
|
@@ -45,8 +49,8 @@ module ChargeBee
|
|
|
45
49
|
:active_id, :card_status, :fraud_flag, :primary_payment_source_id, :backup_payment_source_id,
|
|
46
50
|
:billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes, :business_entity_id,
|
|
47
51
|
:preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
|
|
48
|
-
:balances, :entity_identifiers, :
|
|
49
|
-
:registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number,
|
|
52
|
+
:balances, :entity_identifiers, :tax_providers_fields, :is_einvoice_enabled, :einvoicing_method,
|
|
53
|
+
:meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number,
|
|
50
54
|
:client_profile_id, :relationship, :use_default_hierarchy_settings, :parent_account_access,
|
|
51
55
|
:child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard
|
|
52
56
|
|
|
@@ -104,5 +104,9 @@ end
|
|
|
104
104
|
Request.send('post', uri_path("exports","differential_prices"), params, env, headers)
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
+
def self.price_variants(params={}, env=nil, headers={})
|
|
108
|
+
Request.send('post', uri_path("exports","price_variants"), params, env, headers)
|
|
109
|
+
end
|
|
110
|
+
|
|
107
111
|
end # ~Export
|
|
108
112
|
end # ~ChargeBee
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class InstallmentDetail < Model
|
|
3
|
+
|
|
4
|
+
class Installment < Model
|
|
5
|
+
attr_accessor :id, :invoice_id, :date, :amount, :status, :created_at, :resource_version, :updated_at
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
attr_accessor :id, :invoice_id, :amount, :installments
|
|
9
|
+
|
|
10
|
+
# OPERATIONS
|
|
11
|
+
#-----------
|
|
12
|
+
|
|
13
|
+
end # ~InstallmentDetail
|
|
14
|
+
end # ~ChargeBee
|
|
@@ -9,16 +9,21 @@ module ChargeBee
|
|
|
9
9
|
attr_accessor :tax_profile_id, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type, :avalara_tax_code, :hsn_code, :taxjar_product_code
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
class TaxProvidersField < Model
|
|
13
|
+
attr_accessor :provider_name, :field_id, :field_value
|
|
14
|
+
end
|
|
15
|
+
|
|
12
16
|
class AccountingDetail < Model
|
|
13
17
|
attr_accessor :sku, :accounting_code, :accounting_category1, :accounting_category2, :accounting_category3, :accounting_category4
|
|
14
18
|
end
|
|
15
19
|
|
|
16
20
|
attr_accessor :id, :name, :item_family_id, :item_id, :description, :status, :external_name,
|
|
17
|
-
:proration_type, :pricing_model, :price, :price_in_decimal, :period, :currency_code,
|
|
18
|
-
:trial_period, :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit,
|
|
21
|
+
:price_variant_id, :proration_type, :pricing_model, :price, :price_in_decimal, :period, :currency_code,
|
|
22
|
+
:period_unit, :trial_period, :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit,
|
|
19
23
|
:billing_cycles, :free_quantity, :free_quantity_in_decimal, :channel, :resource_version, :updated_at,
|
|
20
|
-
:created_at, :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :
|
|
21
|
-
:metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices,
|
|
24
|
+
:created_at, :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :tax_providers_fields,
|
|
25
|
+
:accounting_detail, :metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices,
|
|
26
|
+
:show_description_in_quotes
|
|
22
27
|
|
|
23
28
|
# OPERATIONS
|
|
24
29
|
#-----------
|
|
@@ -33,13 +33,18 @@ module ChargeBee
|
|
|
33
33
|
attr_accessor :user_name
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
class KlarnaPayNow < Model
|
|
37
|
+
attr_accessor :email
|
|
38
|
+
end
|
|
39
|
+
|
|
36
40
|
class Mandate < Model
|
|
37
41
|
attr_accessor :id, :subscription_id, :created_at
|
|
38
42
|
end
|
|
39
43
|
|
|
40
44
|
attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
|
|
41
45
|
:status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account,
|
|
42
|
-
:boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :
|
|
46
|
+
:boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :klarna_pay_now, :mandates,
|
|
47
|
+
:deleted, :business_entity_id
|
|
43
48
|
|
|
44
49
|
# OPERATIONS
|
|
45
50
|
#-----------
|
|
@@ -5,6 +5,10 @@ module ChargeBee
|
|
|
5
5
|
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
+
class TaxProvidersField < Model
|
|
9
|
+
attr_accessor :provider_name, :field_id, :field_value
|
|
10
|
+
end
|
|
11
|
+
|
|
8
12
|
class ApplicableAddon < Model
|
|
9
13
|
attr_accessor :id
|
|
10
14
|
end
|
|
@@ -25,7 +29,8 @@ module ChargeBee
|
|
|
25
29
|
:accounting_category2, :accounting_category3, :accounting_category4, :is_shippable, :shipping_frequency_period,
|
|
26
30
|
:shipping_frequency_period_unit, :resource_version, :updated_at, :giftable, :claim_url, :free_quantity_in_decimal,
|
|
27
31
|
:price_in_decimal, :channel, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers,
|
|
28
|
-
:applicable_addons, :attached_addons, :event_based_addons, :show_description_in_invoices,
|
|
32
|
+
:tax_providers_fields, :applicable_addons, :attached_addons, :event_based_addons, :show_description_in_invoices,
|
|
33
|
+
:show_description_in_quotes
|
|
29
34
|
|
|
30
35
|
# OPERATIONS
|
|
31
36
|
#-----------
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class PriceVariant < Model
|
|
3
|
+
|
|
4
|
+
class Attribute < Model
|
|
5
|
+
attr_accessor :name, :value
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
attr_accessor :id, :name, :external_name, :description, :status, :created_at, :resource_version,
|
|
9
|
+
:updated_at, :archived_at, :attributes
|
|
10
|
+
|
|
11
|
+
# OPERATIONS
|
|
12
|
+
#-----------
|
|
13
|
+
|
|
14
|
+
def self.create(params, env=nil, headers={})
|
|
15
|
+
Request.send('post', uri_path("price_variants"), params, env, headers)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def self.retrieve(id, env=nil, headers={})
|
|
19
|
+
Request.send('get', uri_path("price_variants",id.to_s), {}, env, headers)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.update(id, params, env=nil, headers={})
|
|
23
|
+
Request.send('post', uri_path("price_variants",id.to_s), params, env, headers)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.delete(id, env=nil, headers={})
|
|
27
|
+
Request.send('post', uri_path("price_variants",id.to_s,"delete"), {}, env, headers)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def self.list(params={}, env=nil, headers={})
|
|
31
|
+
Request.send_list_request('get', uri_path("price_variants"), params, env, headers)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end # ~PriceVariant
|
|
35
|
+
end # ~ChargeBee
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class Ramp < Model
|
|
3
|
+
|
|
4
|
+
class ItemsToAdd < Model
|
|
5
|
+
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class ItemsToUpdate < Model
|
|
9
|
+
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class CouponsToAdd < Model
|
|
13
|
+
attr_accessor :coupon_id, :apply_till
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class DiscountsToAdd < Model
|
|
17
|
+
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at
|
|
18
|
+
end
|
|
19
|
+
|
|
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
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
attr_accessor :id, :description, :subscription_id, :effective_from, :status, :created_at, :resource_version,
|
|
25
|
+
:updated_at, :items_to_add, :items_to_update, :coupons_to_add, :discounts_to_add, :item_tiers,
|
|
26
|
+
:items_to_remove, :coupons_to_remove, :discounts_to_remove, :deleted
|
|
27
|
+
|
|
28
|
+
# OPERATIONS
|
|
29
|
+
#-----------
|
|
30
|
+
|
|
31
|
+
def self.create_for_subscription(id, params, env=nil, headers={})
|
|
32
|
+
Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def self.retrieve(id, env=nil, headers={})
|
|
36
|
+
Request.send('get', uri_path("ramps",id.to_s), {}, env, headers)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.delete(id, env=nil, headers={})
|
|
40
|
+
Request.send('post', uri_path("ramps",id.to_s,"delete"), {}, env, headers)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.list(params, env=nil, headers={})
|
|
44
|
+
Request.send_list_request('get', uri_path("ramps"), params, env, headers)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end # ~Ramp
|
|
48
|
+
end # ~ChargeBee
|
|
@@ -8,7 +8,7 @@ module ChargeBee
|
|
|
8
8
|
attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
|
|
9
9
|
:quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id,
|
|
10
10
|
:is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :updated_at,
|
|
11
|
-
:tiers, :is_advance_charge, :deleted
|
|
11
|
+
:tiers, :is_advance_charge, :business_entity_id, :deleted
|
|
12
12
|
|
|
13
13
|
# OPERATIONS
|
|
14
14
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
|
@@ -45,7 +45,7 @@ module ChargeBee
|
|
|
45
45
|
|
|
46
46
|
def customer()
|
|
47
47
|
customer = get(:customer, Customer,
|
|
48
|
-
{:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :entity_identifiers => Customer::EntityIdentifier, :relationship => Customer::Relationship, :parent_account_access => Customer::ParentAccountAccess, :child_account_access => Customer::ChildAccountAccess});
|
|
48
|
+
{:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :entity_identifiers => Customer::EntityIdentifier, :tax_providers_fields => Customer::TaxProvidersField, :relationship => Customer::Relationship, :parent_account_access => Customer::ParentAccountAccess, :child_account_access => Customer::ChildAccountAccess});
|
|
49
49
|
return customer;
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -66,7 +66,7 @@ module ChargeBee
|
|
|
66
66
|
|
|
67
67
|
def payment_source()
|
|
68
68
|
payment_source = get(:payment_source, PaymentSource,
|
|
69
|
-
{:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :mandates => PaymentSource::Mandate});
|
|
69
|
+
{:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :klarna_pay_now => PaymentSource::KlarnaPayNow, :mandates => PaymentSource::Mandate});
|
|
70
70
|
return payment_source;
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -187,13 +187,13 @@ module ChargeBee
|
|
|
187
187
|
|
|
188
188
|
def plan()
|
|
189
189
|
plan = get(:plan, Plan,
|
|
190
|
-
{:tiers => Plan::Tier, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
|
|
190
|
+
{:tiers => Plan::Tier, :tax_providers_fields => Plan::TaxProvidersField, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
|
|
191
191
|
return plan;
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
def addon()
|
|
195
195
|
addon = get(:addon, Addon,
|
|
196
|
-
{:tiers => Addon::Tier});
|
|
196
|
+
{:tiers => Addon::Tier, :tax_providers_fields => Addon::TaxProvidersField});
|
|
197
197
|
return addon;
|
|
198
198
|
end
|
|
199
199
|
|
|
@@ -288,6 +288,12 @@ module ChargeBee
|
|
|
288
288
|
return item;
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
+
def price_variant()
|
|
292
|
+
price_variant = get(:price_variant, PriceVariant,
|
|
293
|
+
{:attributes => PriceVariant::Attribute});
|
|
294
|
+
return price_variant;
|
|
295
|
+
end
|
|
296
|
+
|
|
291
297
|
def attribute()
|
|
292
298
|
attribute = get(:attribute, Attribute);
|
|
293
299
|
return attribute;
|
|
@@ -295,7 +301,7 @@ module ChargeBee
|
|
|
295
301
|
|
|
296
302
|
def item_price()
|
|
297
303
|
item_price = get(:item_price, ItemPrice,
|
|
298
|
-
{:tiers => ItemPrice::Tier, :tax_detail => ItemPrice::TaxDetail, :accounting_detail => ItemPrice::AccountingDetail});
|
|
304
|
+
{:tiers => ItemPrice::Tier, :tax_detail => ItemPrice::TaxDetail, :tax_providers_fields => ItemPrice::TaxProvidersField, :accounting_detail => ItemPrice::AccountingDetail});
|
|
299
305
|
return item_price;
|
|
300
306
|
end
|
|
301
307
|
|
|
@@ -376,6 +382,12 @@ module ChargeBee
|
|
|
376
382
|
return payment_voucher;
|
|
377
383
|
end
|
|
378
384
|
|
|
385
|
+
def ramp()
|
|
386
|
+
ramp = get(:ramp, Ramp,
|
|
387
|
+
{:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier});
|
|
388
|
+
return ramp;
|
|
389
|
+
end
|
|
390
|
+
|
|
379
391
|
def installment_config()
|
|
380
392
|
installment_config = get(:installment_config, InstallmentConfig,
|
|
381
393
|
{:installments => InstallmentConfig::Installment});
|
|
@@ -387,6 +399,12 @@ module ChargeBee
|
|
|
387
399
|
return installment;
|
|
388
400
|
end
|
|
389
401
|
|
|
402
|
+
def installment_detail()
|
|
403
|
+
installment_detail = get(:installment_detail, InstallmentDetail,
|
|
404
|
+
{:installments => InstallmentDetail::Installment});
|
|
405
|
+
return installment_detail;
|
|
406
|
+
end
|
|
407
|
+
|
|
390
408
|
def advance_invoice_schedules()
|
|
391
409
|
advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
|
|
392
410
|
{:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
|
|
@@ -411,7 +429,7 @@ module ChargeBee
|
|
|
411
429
|
return differential_prices;
|
|
412
430
|
end
|
|
413
431
|
|
|
414
|
-
def credit_notes()
|
|
432
|
+
def credit_notes()
|
|
415
433
|
credit_notes = get_list(:credit_notes, CreditNote,
|
|
416
434
|
{: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});
|
|
417
435
|
return credit_notes;
|
data/lib/chargebee.rb
CHANGED
|
@@ -31,6 +31,7 @@ require File.dirname(__FILE__) + '/chargebee/models/coupon_set'
|
|
|
31
31
|
require File.dirname(__FILE__) + '/chargebee/models/comment'
|
|
32
32
|
require File.dirname(__FILE__) + '/chargebee/models/portal_session'
|
|
33
33
|
require File.dirname(__FILE__) + '/chargebee/models/download'
|
|
34
|
+
require File.dirname(__FILE__) + '/chargebee/models/entitlement'
|
|
34
35
|
require File.dirname(__FILE__) + '/chargebee/models/site_migration_detail'
|
|
35
36
|
require File.dirname(__FILE__) + '/chargebee/models/resource_migration'
|
|
36
37
|
require File.dirname(__FILE__) + '/chargebee/models/payment_source'
|
|
@@ -66,10 +67,13 @@ require File.dirname(__FILE__) + '/chargebee/models/subscription_entitlement'
|
|
|
66
67
|
require File.dirname(__FILE__) + '/chargebee/models/tax_withheld.rb'
|
|
67
68
|
require File.dirname(__FILE__) + '/chargebee/models/token.rb'
|
|
68
69
|
require File.dirname(__FILE__) + '/chargebee/models/non_subscription.rb'
|
|
70
|
+
require File.dirname(__FILE__) + '/chargebee/models/price_variant'
|
|
71
|
+
require File.dirname(__FILE__) + '/chargebee/models/installment_detail'
|
|
72
|
+
require File.dirname(__FILE__) + '/chargebee/models/ramp'
|
|
69
73
|
|
|
70
74
|
module ChargeBee
|
|
71
75
|
|
|
72
|
-
VERSION = '2.
|
|
76
|
+
VERSION = '2.38.1'
|
|
73
77
|
|
|
74
78
|
@@default_env = nil
|
|
75
79
|
@@verify_ca_certs = true
|
|
@@ -96,7 +100,6 @@ module ChargeBee
|
|
|
96
100
|
@@ca_cert_path
|
|
97
101
|
end
|
|
98
102
|
|
|
99
|
-
|
|
100
103
|
def self.source(source)
|
|
101
104
|
@@user_agent = @@user_agent + ' ' + source unless source.nil?
|
|
102
105
|
end
|
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.38.1
|
|
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: 2024-
|
|
12
|
+
date: 2024-05-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json_pure
|
|
@@ -150,6 +150,7 @@ files:
|
|
|
150
150
|
- lib/chargebee/models/in_app_subscription.rb
|
|
151
151
|
- lib/chargebee/models/installment.rb
|
|
152
152
|
- lib/chargebee/models/installment_config.rb
|
|
153
|
+
- lib/chargebee/models/installment_detail.rb
|
|
153
154
|
- lib/chargebee/models/invoice.rb
|
|
154
155
|
- lib/chargebee/models/invoice_estimate.rb
|
|
155
156
|
- lib/chargebee/models/item.rb
|
|
@@ -165,12 +166,14 @@ files:
|
|
|
165
166
|
- lib/chargebee/models/payment_voucher.rb
|
|
166
167
|
- lib/chargebee/models/plan.rb
|
|
167
168
|
- lib/chargebee/models/portal_session.rb
|
|
169
|
+
- lib/chargebee/models/price_variant.rb
|
|
168
170
|
- lib/chargebee/models/promotional_credit.rb
|
|
169
171
|
- lib/chargebee/models/purchase.rb
|
|
170
172
|
- lib/chargebee/models/quote.rb
|
|
171
173
|
- lib/chargebee/models/quote_line_group.rb
|
|
172
174
|
- lib/chargebee/models/quoted_charge.rb
|
|
173
175
|
- lib/chargebee/models/quoted_subscription.rb
|
|
176
|
+
- lib/chargebee/models/ramp.rb
|
|
174
177
|
- lib/chargebee/models/resource_migration.rb
|
|
175
178
|
- lib/chargebee/models/site_migration_detail.rb
|
|
176
179
|
- lib/chargebee/models/subscription.rb
|