chargebee 2.57.0 → 2.59.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 +5 -5
- data/CHANGELOG.md +84 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +10 -2
- data/lib/chargebee/models/billing_configuration.rb +14 -0
- data/lib/chargebee/models/brand.rb +10 -0
- data/lib/chargebee/models/comment.rb +1 -1
- data/lib/chargebee/models/credit_note.rb +23 -23
- data/lib/chargebee/models/customer.rb +7 -0
- data/lib/chargebee/models/discount.rb +1 -1
- data/lib/chargebee/models/hierarchy.rb +2 -1
- data/lib/chargebee/models/impacted_customer.rb +14 -0
- data/lib/chargebee/models/invoice.rb +32 -32
- data/lib/chargebee/models/omnichannel_one_time_order.rb +29 -0
- data/lib/chargebee/models/omnichannel_one_time_order_item.rb +11 -0
- data/lib/chargebee/models/promotional_credit.rb +1 -1
- data/lib/chargebee/models/quoted_charge.rb +5 -1
- data/lib/chargebee/models/quoted_ramp.rb +8 -4
- data/lib/chargebee/models/recorded_purchase.rb +5 -1
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/models/subscription_entitlements_created_detail.rb +10 -0
- data/lib/chargebee/models/subscription_entitlements_updated_detail.rb +10 -0
- data/lib/chargebee/models/usage_file.rb +4 -4
- data/lib/chargebee/models/webhook_endpoint.rb +52 -0
- data/lib/chargebee/result.rb +52 -7
- data/lib/chargebee.rb +4 -2
- metadata +23 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f294fc5b4d7c6044921a399948971ae385ca012018feb5cc91034bd7d346b6cc
|
4
|
+
data.tar.gz: 0a71d32bbca5599a4bfcf2a7cd58f27b28b3d05366bf9c3060e4c382e1cd7bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd8a206c2b24783720df6662e1fdb319934d3919217a3e43a8bbfd7fc5c093a85535287564039fefab447fa2a93f41c9e399d944474fad274a5b9b53e8a3042f
|
7
|
+
data.tar.gz: 16899d40e9c23dbcdd8fa1a71c46332d90ce8496fee18388721f47731743d5914fe10023569eecfbce705906e1d643d55b373b0da38e9344a605393c4258b28e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,87 @@
|
|
1
|
+
### v2.59.0 (2025-07-18)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
### New Resources:
|
5
|
+
* WebhookEndpoints has been added.
|
6
|
+
* OmnichannelOneTimeOrder has been added.
|
7
|
+
* OmnichannelOneTimeOrderItem has been added.
|
8
|
+
|
9
|
+
### New Attributes:
|
10
|
+
* business_entity_id has been added to Comment.
|
11
|
+
* business_entity_id has been added to PromotionalCredit.
|
12
|
+
* quantity has been added to Discount.
|
13
|
+
* business_entity_id has been added to PromotionalCredit.
|
14
|
+
* coupon_applicability_mappings[] has been added to QuotedCharge.
|
15
|
+
* linked_omnichannel_one_time_orders[] has been added to RecordedPurchase.
|
16
|
+
* quantity has been added to Subscripiton#Discount.
|
17
|
+
|
18
|
+
### New Input Parameters:
|
19
|
+
* transaction[id] has been added to Customer#RecordExcessPaymentRequest.
|
20
|
+
* discounts[quantity][] has been added to Estimate#CreateSubItemEstimateRequest.
|
21
|
+
* consolidate_entitlements has been added to CustomerEntitlement#EntitlementsForCustomer.
|
22
|
+
* discounts[quantity][] has been added to Estimate#CreateSubItemEstimateRequest.
|
23
|
+
* discounts[quantity][] has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
|
24
|
+
* discounts[quantity][] has been added to Estimate#UpdateSubscriptionForItemsRequest.
|
25
|
+
* discounts[quantity][] has been added to Estimate#CreateInvoiceForItemsRequest.
|
26
|
+
* discounts[quantity][] has been added to HostedPage#CheckoutOneTimeForItemsRequest.
|
27
|
+
* discounts[quantity][] has been added to HostedPage#CheckoutNewForItemsRequest.
|
28
|
+
* discounts[quantity][] has been added to HostedPage#CheckoutExistingForItemsRequest.
|
29
|
+
* discounts[quantity][] has been added to PricingPageSession#CreateForNewSubscriptionRequest.
|
30
|
+
* discounts[quantity][] has been added to PricingPageSession#CreateForExistingSubscriptionRequest.
|
31
|
+
* discounts[quantity][] has been added to Purchase#CreateRequest.
|
32
|
+
* discounts[quantity][] has been added to Purchase#EstimateRequest.
|
33
|
+
* discounts[quantity][] has been added to Quote#CreateSubItemsForCustomerQuoteRequest.
|
34
|
+
* discounts[quantity][] has been added to Quote#EditCreateSubCustomerQuoteForItemsRequest.
|
35
|
+
* discounts[quantity][] has been added to Quote#UpdateSubscriptionQuoteForItemsRequest.
|
36
|
+
* discounts[quantity][] has been added to Quote#EditUpdateSubscriptionQuoteForItemsRequest.
|
37
|
+
* discounts[quantity][] has been added to Quote#CreateForChargeItemsAndChargesRequest.
|
38
|
+
* discounts[quantity][] has been added to Quote#EditForChargeItemsAndChargesRequest.
|
39
|
+
* discounts[quantity][] has been added to Subscription#CreateWithItemsRequest.
|
40
|
+
* discounts[quantity][] has been added to Subscription#UpdateForItemsRequest.
|
41
|
+
* discounts[quantity][] has been added to Subscription#ImportForItemsRequest.
|
42
|
+
* google_play_store[product_id] has been added to RecordedPurchase#CreateRequest.
|
43
|
+
* google_play_store[order_id] has been added to RecordedPurchase#CreateRequest.
|
44
|
+
|
45
|
+
### New Enums
|
46
|
+
* PAUSE has been added to OmnichannelSubscriptionItemScheduledChange#ChangeType.
|
47
|
+
* OFFER_QUANTITY has been added to Discount#Type.
|
48
|
+
* OFFER_QUANTITY has been added to Subscription#Discount#Type.
|
49
|
+
* OMNICHANNEL_ONE_TIME_ORDER has been added to EntityType.
|
50
|
+
* OMNICHANNEL_ONE_TIME_ORDER_ITEM has been added to EntityType.
|
51
|
+
* USAGE_FILE has been added to EntityType.
|
52
|
+
* OMNICHANNEL_ONE_TIME_ORDER_CREATED has been added to EventType.
|
53
|
+
* OMNICHANNEL_ONE_TIME_ORDER_ITEM_CANCELLED has been added to EventType.
|
54
|
+
* USAGE_FILE_INGESTED has been added to EventType.
|
55
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_PAUSE_SCHEDULED has been added to EventType.
|
56
|
+
|
57
|
+
### v2.58.0 (2025-07-18)
|
58
|
+
* * *
|
59
|
+
|
60
|
+
### New Resources:
|
61
|
+
* BillingConfiguration has been added.
|
62
|
+
* Brand has been added.
|
63
|
+
|
64
|
+
### New Attributes:
|
65
|
+
* has_children has been added to Hierarchy
|
66
|
+
* coupon_applicability_mappings has been added to QuotedRamp.
|
67
|
+
|
68
|
+
### New Endpoint:
|
69
|
+
* listHierarchyDetail has been added to Customer.
|
70
|
+
|
71
|
+
### New Input parameters:
|
72
|
+
* change_reason children has been added to Entitlement#CreateRequest.
|
73
|
+
* entitlements[apply_grandfathering] has been added to Entitlement#CreateRequest.
|
74
|
+
* replace_primary_payment_source has been added to Purchase#CreateRequest.
|
75
|
+
* omnichannel_subscription has been added to RecordedPurchase#CreateRequest.
|
76
|
+
* contract_term has been added to Subscription#RemoveScheduledCancellationRequest.
|
77
|
+
* contract_term_billing_cycle_on_renewal has been added to Subscription#RemoveScheduledCancellationRequest.
|
78
|
+
|
79
|
+
### New Enums:
|
80
|
+
* payconiq_by_bancontact has been added to PaymentMethodType.
|
81
|
+
* solidgate has been added to Gateway.
|
82
|
+
* solidgate has been added to PaymentMethod.
|
83
|
+
|
84
|
+
|
1
85
|
### v2.57.0 (2025-06-23)
|
2
86
|
* * *
|
3
87
|
|
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 = '2025-
|
7
|
+
s.version = '2.59.0'
|
8
|
+
s.date = '2025-08-21'
|
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 = {
|
@@ -45,6 +45,8 @@ Gem::Specification.new do |s|
|
|
45
45
|
lib/chargebee/models/advance_invoice_schedule.rb
|
46
46
|
lib/chargebee/models/attached_item.rb
|
47
47
|
lib/chargebee/models/attribute.rb
|
48
|
+
lib/chargebee/models/billing_configuration.rb
|
49
|
+
lib/chargebee/models/brand.rb
|
48
50
|
lib/chargebee/models/business_entity.rb
|
49
51
|
lib/chargebee/models/business_entity_transfer.rb
|
50
52
|
lib/chargebee/models/card.rb
|
@@ -74,6 +76,7 @@ Gem::Specification.new do |s|
|
|
74
76
|
lib/chargebee/models/gift.rb
|
75
77
|
lib/chargebee/models/hierarchy.rb
|
76
78
|
lib/chargebee/models/hosted_page.rb
|
79
|
+
lib/chargebee/models/impacted_customer.rb
|
77
80
|
lib/chargebee/models/impacted_item.rb
|
78
81
|
lib/chargebee/models/impacted_item_price.rb
|
79
82
|
lib/chargebee/models/impacted_subscription.rb
|
@@ -87,6 +90,8 @@ Gem::Specification.new do |s|
|
|
87
90
|
lib/chargebee/models/metadata.rb
|
88
91
|
lib/chargebee/models/model.rb
|
89
92
|
lib/chargebee/models/non_subscription.rb
|
93
|
+
lib/chargebee/models/omnichannel_one_time_order.rb
|
94
|
+
lib/chargebee/models/omnichannel_one_time_order_item.rb
|
90
95
|
lib/chargebee/models/omnichannel_subscription.rb
|
91
96
|
lib/chargebee/models/omnichannel_subscription_item.rb
|
92
97
|
lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb
|
@@ -117,6 +122,8 @@ Gem::Specification.new do |s|
|
|
117
122
|
lib/chargebee/models/site_migration_detail.rb
|
118
123
|
lib/chargebee/models/subscription.rb
|
119
124
|
lib/chargebee/models/subscription_entitlement.rb
|
125
|
+
lib/chargebee/models/subscription_entitlements_created_detail.rb
|
126
|
+
lib/chargebee/models/subscription_entitlements_updated_detail.rb
|
120
127
|
lib/chargebee/models/subscription_estimate.rb
|
121
128
|
lib/chargebee/models/tax_withheld.rb
|
122
129
|
lib/chargebee/models/third_party_payment_method.rb
|
@@ -128,6 +135,7 @@ Gem::Specification.new do |s|
|
|
128
135
|
lib/chargebee/models/usage_event.rb
|
129
136
|
lib/chargebee/models/usage_file.rb
|
130
137
|
lib/chargebee/models/virtual_bank_account.rb
|
138
|
+
lib/chargebee/models/webhook_endpoint.rb
|
131
139
|
lib/chargebee/nativeRequest.rb
|
132
140
|
lib/chargebee/request.rb
|
133
141
|
lib/chargebee/rest.rb
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class BillingConfiguration < Model
|
3
|
+
|
4
|
+
class BillingDate < Model
|
5
|
+
attr_accessor :start_date, :end_date
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :is_calendar_billing_enabled, :billing_dates
|
9
|
+
|
10
|
+
# OPERATIONS
|
11
|
+
#-----------
|
12
|
+
|
13
|
+
end # ~BillingConfiguration
|
14
|
+
end # ~ChargeBee
|
@@ -1,32 +1,36 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class CreditNote < Model
|
3
3
|
|
4
|
-
class Einvoice < Model
|
5
|
-
attr_accessor :id, :reference_number, :status, :message
|
6
|
-
end
|
7
|
-
|
8
4
|
class LineItem < Model
|
9
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, :is_percentage_pricing, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
10
6
|
end
|
11
7
|
|
12
|
-
class
|
13
|
-
attr_accessor :
|
8
|
+
class LineItemTier < Model
|
9
|
+
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
|
14
10
|
end
|
15
11
|
|
16
12
|
class LineItemDiscount < Model
|
17
13
|
attr_accessor :line_item_id, :discount_type, :coupon_id, :entity_id, :discount_amount
|
18
14
|
end
|
19
15
|
|
20
|
-
class
|
21
|
-
attr_accessor :line_item_id, :
|
16
|
+
class LineItemTax < Model
|
17
|
+
attr_accessor :line_item_id, :tax_name, :tax_rate, :date_to, :date_from, :prorated_taxable_amount, :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
|
18
|
+
end
|
19
|
+
|
20
|
+
class LineItemAddress < Model
|
21
|
+
attr_accessor :line_item_id, :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
22
|
+
end
|
23
|
+
|
24
|
+
class Discount < Model
|
25
|
+
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
|
22
26
|
end
|
23
27
|
|
24
28
|
class Tax < Model
|
25
29
|
attr_accessor :name, :amount, :description
|
26
30
|
end
|
27
31
|
|
28
|
-
class
|
29
|
-
attr_accessor :
|
32
|
+
class TaxOrigin < Model
|
33
|
+
attr_accessor :country, :registration_number
|
30
34
|
end
|
31
35
|
|
32
36
|
class LinkedRefund < Model
|
@@ -45,26 +49,22 @@ module ChargeBee
|
|
45
49
|
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
46
50
|
end
|
47
51
|
|
48
|
-
class
|
49
|
-
attr_accessor :
|
50
|
-
end
|
51
|
-
|
52
|
-
class TaxOrigin < Model
|
53
|
-
attr_accessor :country, :registration_number
|
52
|
+
class Einvoice < Model
|
53
|
+
attr_accessor :id, :reference_number, :status, :message
|
54
54
|
end
|
55
55
|
|
56
|
-
class
|
57
|
-
attr_accessor :
|
56
|
+
class SiteDetailsAtCreation < Model
|
57
|
+
attr_accessor :timezone, :organization_address
|
58
58
|
end
|
59
59
|
|
60
60
|
attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
|
61
61
|
:status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
|
62
62
|
:amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
|
63
|
-
:channel, :
|
64
|
-
:round_off_amount, :fractional_correction, :line_items, :
|
65
|
-
:
|
66
|
-
:
|
67
|
-
:
|
63
|
+
:channel, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code,
|
64
|
+
:round_off_amount, :fractional_correction, :line_items, :line_item_tiers, :line_item_discounts,
|
65
|
+
:line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin, :linked_refunds, :allocations,
|
66
|
+
:deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code, :vat_number_prefix,
|
67
|
+
:business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation
|
68
68
|
|
69
69
|
# OPERATIONS
|
70
70
|
#-----------
|
@@ -273,6 +273,13 @@ module ChargeBee
|
|
273
273
|
Request.send('get', uri_path("customers",id.to_s,"hierarchy"), params, env, headers,nil, false, jsonKeys, options)
|
274
274
|
end
|
275
275
|
|
276
|
+
def self.list_hierarchy_detail(id, params, env=nil, headers={})
|
277
|
+
jsonKeys = {
|
278
|
+
}
|
279
|
+
options = {}
|
280
|
+
Request.send('get', uri_path("customers",id.to_s,"hierarchy_detail"), params, env, headers,nil, false, jsonKeys, options)
|
281
|
+
end
|
282
|
+
|
276
283
|
def self.update_hierarchy_settings(id, params={}, env=nil, headers={})
|
277
284
|
jsonKeys = {
|
278
285
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Discount < Model
|
3
3
|
|
4
|
-
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :currency_code, :duration_type,
|
4
|
+
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :quantity, :currency_code, :duration_type,
|
5
5
|
:period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till,
|
6
6
|
:applied_count, :coupon_id, :index
|
7
7
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Hierarchy < Model
|
3
3
|
|
4
|
-
attr_accessor :customer_id, :parent_id, :payment_owner_id, :invoice_owner_id, :
|
4
|
+
attr_accessor :customer_id, :parent_id, :payment_owner_id, :invoice_owner_id, :has_children,
|
5
|
+
:children_ids
|
5
6
|
|
6
7
|
# OPERATIONS
|
7
8
|
#-----------
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class ImpactedCustomer < Model
|
3
|
+
|
4
|
+
class Download < Model
|
5
|
+
attr_accessor :download_url, :valid_till, :mime_type
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :action_type, :download
|
9
|
+
|
10
|
+
# OPERATIONS
|
11
|
+
#-----------
|
12
|
+
|
13
|
+
end # ~ImpactedCustomer
|
14
|
+
end # ~ChargeBee
|
@@ -5,18 +5,14 @@ module ChargeBee
|
|
5
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, :is_percentage_pricing, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
|
6
6
|
end
|
7
7
|
|
8
|
-
class
|
9
|
-
attr_accessor :
|
8
|
+
class LineItemTier < Model
|
9
|
+
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
|
10
10
|
end
|
11
11
|
|
12
12
|
class LineItemDiscount < Model
|
13
13
|
attr_accessor :line_item_id, :discount_type, :coupon_id, :entity_id, :discount_amount
|
14
14
|
end
|
15
15
|
|
16
|
-
class Tax < Model
|
17
|
-
attr_accessor :name, :amount, :description
|
18
|
-
end
|
19
|
-
|
20
16
|
class LineItemTax < Model
|
21
17
|
attr_accessor :line_item_id, :tax_name, :tax_rate, :date_to, :date_from, :prorated_taxable_amount, :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
18
|
end
|
@@ -25,8 +21,20 @@ module ChargeBee
|
|
25
21
|
attr_accessor :cn_id, :applied_amount, :line_item_id
|
26
22
|
end
|
27
23
|
|
28
|
-
class
|
29
|
-
attr_accessor :line_item_id, :
|
24
|
+
class LineItemAddress < Model
|
25
|
+
attr_accessor :line_item_id, :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
26
|
+
end
|
27
|
+
|
28
|
+
class Discount < Model
|
29
|
+
attr_accessor :amount, :description, :entity_type, :discount_type, :entity_id, :coupon_set_code
|
30
|
+
end
|
31
|
+
|
32
|
+
class Tax < Model
|
33
|
+
attr_accessor :name, :amount, :description
|
34
|
+
end
|
35
|
+
|
36
|
+
class TaxOrigin < Model
|
37
|
+
attr_accessor :country, :registration_number
|
30
38
|
end
|
31
39
|
|
32
40
|
class LinkedPayment < Model
|
@@ -61,14 +69,14 @@ module ChargeBee
|
|
61
69
|
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
|
62
70
|
end
|
63
71
|
|
64
|
-
class StatementDescriptor < Model
|
65
|
-
attr_accessor :id, :descriptor
|
66
|
-
end
|
67
|
-
|
68
72
|
class BillingAddress < Model
|
69
73
|
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
70
74
|
end
|
71
75
|
|
76
|
+
class StatementDescriptor < Model
|
77
|
+
attr_accessor :id, :descriptor
|
78
|
+
end
|
79
|
+
|
72
80
|
class Einvoice < Model
|
73
81
|
attr_accessor :id, :reference_number, :status, :message
|
74
82
|
end
|
@@ -77,26 +85,18 @@ module ChargeBee
|
|
77
85
|
attr_accessor :timezone, :organization_address
|
78
86
|
end
|
79
87
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
:
|
90
|
-
:
|
91
|
-
:
|
92
|
-
:total_in_local_currency, :local_currency_code, :tax, :local_currency_exchange_rate, :first_invoice,
|
93
|
-
:new_sales_amount, :has_advance_charges, :term_finalized, :is_gifted, :generated_at, :expected_payment_date,
|
94
|
-
:amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts, :taxes,
|
95
|
-
:line_item_taxes, :line_item_credits, :line_item_tiers, :linked_payments, :dunning_attempts,
|
96
|
-
:applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address,
|
97
|
-
:statement_descriptor, :billing_address, :einvoice, :payment_owner, :void_reason_code, :deleted,
|
98
|
-
:tax_category, :vat_number_prefix, :channel, :business_entity_id, :site_details_at_creation,
|
99
|
-
:tax_origin, :line_item_addresses
|
88
|
+
attr_accessor :id, :customer_id, :payment_owner, :subscription_id, :recurring, :status, :date,
|
89
|
+
:due_date, :net_term_days, :po_number, :vat_number, :price_type, :exchange_rate, :local_currency_exchange_rate,
|
90
|
+
:currency_code, :local_currency_code, :tax, :sub_total, :sub_total_in_local_currency, :total,
|
91
|
+
:total_in_local_currency, :amount_due, :amount_adjusted, :amount_paid, :paid_at, :write_off_amount,
|
92
|
+
:credits_applied, :dunning_status, :next_retry_at, :voided_at, :resource_version, :updated_at,
|
93
|
+
:first_invoice, :new_sales_amount, :has_advance_charges, :term_finalized, :is_gifted, :generated_at,
|
94
|
+
:expected_payment_date, :amount_to_collect, :round_off_amount, :line_items, :line_item_tiers,
|
95
|
+
:line_item_discounts, :line_item_taxes, :line_item_credits, :line_item_addresses, :discounts,
|
96
|
+
:taxes, :tax_origin, :linked_payments, :dunning_attempts, :applied_credits, :adjustment_credit_notes,
|
97
|
+
:issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address, :statement_descriptor,
|
98
|
+
:einvoice, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel, :business_entity_id,
|
99
|
+
:site_details_at_creation
|
100
100
|
|
101
101
|
# OPERATIONS
|
102
102
|
#-----------
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class OmnichannelOneTimeOrder < Model
|
3
|
+
|
4
|
+
class OmnichannelTransaction < Model
|
5
|
+
attr_accessor :id, :id_at_source, :app_id, :price_currency, :price_units, :price_nanos, :type, :transacted_at, :created_at, :resource_version
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :id, :app_id, :customer_id, :id_at_source, :origin, :source, :created_at, :resource_version,
|
9
|
+
:omnichannel_one_time_order_items, :purchase_transaction
|
10
|
+
|
11
|
+
# OPERATIONS
|
12
|
+
#-----------
|
13
|
+
|
14
|
+
def self.retrieve(id, env=nil, headers={})
|
15
|
+
jsonKeys = {
|
16
|
+
}
|
17
|
+
options = {}
|
18
|
+
Request.send('get', uri_path("omnichannel_one_time_orders",id.to_s), {}, env, headers,nil, false, jsonKeys, options)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.list(params={}, env=nil, headers={})
|
22
|
+
jsonKeys = {
|
23
|
+
}
|
24
|
+
options = {}
|
25
|
+
Request.send_list_request('get', uri_path("omnichannel_one_time_orders"), params, env, headers,nil, false, jsonKeys, options)
|
26
|
+
end
|
27
|
+
|
28
|
+
end # ~OmnichannelOneTimeOrder
|
29
|
+
end # ~ChargeBee
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class OmnichannelOneTimeOrderItem < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :item_id_at_source, :item_type_at_source, :quantity, :cancelled_at, :cancellation_reason,
|
5
|
+
:created_at, :resource_version
|
6
|
+
|
7
|
+
# OPERATIONS
|
8
|
+
#-----------
|
9
|
+
|
10
|
+
end # ~OmnichannelOneTimeOrderItem
|
11
|
+
end # ~ChargeBee
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class PromotionalCredit < Model
|
3
3
|
|
4
4
|
attr_accessor :id, :customer_id, :type, :amount_in_decimal, :amount, :currency_code, :description,
|
5
|
-
:credit_type, :reference, :closing_balance, :done_by, :created_at
|
5
|
+
:credit_type, :reference, :closing_balance, :done_by, :created_at, :business_entity_id
|
6
6
|
|
7
7
|
# OPERATIONS
|
8
8
|
#-----------
|
@@ -21,7 +21,11 @@ module ChargeBee
|
|
21
21
|
attr_accessor :coupon_id
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
class CouponApplicabilityMapping < Model
|
25
|
+
attr_accessor :coupon_id, :applicable_item_price_ids
|
26
|
+
end
|
27
|
+
|
28
|
+
attr_accessor :charges, :addons, :invoice_items, :item_tiers, :coupons, :coupon_applicability_mappings
|
25
29
|
|
26
30
|
# OPERATIONS
|
27
31
|
#-----------
|
@@ -2,18 +2,22 @@ module ChargeBee
|
|
2
2
|
class QuotedRamp < Model
|
3
3
|
|
4
4
|
class LineItem < Model
|
5
|
-
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :start_date, :end_date, :ramp_tier_id, :
|
5
|
+
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :start_date, :end_date, :ramp_tier_id, :discount_per_billing_cycle, :discount_per_billing_cycle_in_decimal, :item_level_discount_per_billing_cycle, :item_level_discount_per_billing_cycle_in_decimal, :amount_per_billing_cycle, :amount_per_billing_cycle_in_decimal, :net_amount_per_billing_cycle, :net_amount_per_billing_cycle_in_decimal
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
9
|
-
attr_accessor :id, :
|
9
|
+
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :duration_type, :entity_type, :entity_id, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :updated_at, :start_date, :end_date
|
10
10
|
end
|
11
11
|
|
12
12
|
class ItemTier < Model
|
13
|
-
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :ramp_tier_id
|
13
|
+
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :ramp_tier_id, :pricing_type, :package_size
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
class CouponApplicabilityMapping < Model
|
17
|
+
attr_accessor :coupon_id, :applicable_item_price_ids
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :id, :line_items, :discounts, :item_tiers, :coupon_applicability_mappings
|
17
21
|
|
18
22
|
# OPERATIONS
|
19
23
|
#-----------
|
@@ -5,12 +5,16 @@ module ChargeBee
|
|
5
5
|
attr_accessor :omnichannel_subscription_id
|
6
6
|
end
|
7
7
|
|
8
|
+
class LinkedOmnichannelOneTimeOrder < Model
|
9
|
+
attr_accessor :omnichannel_one_time_order_id
|
10
|
+
end
|
11
|
+
|
8
12
|
class ErrorDetail < Model
|
9
13
|
attr_accessor :error_message
|
10
14
|
end
|
11
15
|
|
12
16
|
attr_accessor :id, :customer_id, :app_id, :source, :status, :omnichannel_transaction_id, :created_at,
|
13
|
-
:resource_version, :linked_omnichannel_subscriptions, :error_detail
|
17
|
+
:resource_version, :linked_omnichannel_subscriptions, :linked_omnichannel_one_time_orders, :error_detail
|
14
18
|
|
15
19
|
# OPERATIONS
|
16
20
|
#-----------
|
@@ -46,7 +46,7 @@ module ChargeBee
|
|
46
46
|
end
|
47
47
|
|
48
48
|
class Discount < Model
|
49
|
-
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :currency_code, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count, :coupon_id, :index
|
49
|
+
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :quantity, :currency_code, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count, :coupon_id, :index
|
50
50
|
end
|
51
51
|
|
52
52
|
attr_accessor :id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price, :setup_fee, :billing_period,
|
@@ -12,18 +12,18 @@ module ChargeBee
|
|
12
12
|
# OPERATIONS
|
13
13
|
#-----------
|
14
14
|
|
15
|
-
def self.
|
15
|
+
def self.upload_url(params, env=nil, headers={})
|
16
16
|
jsonKeys = {
|
17
17
|
}
|
18
18
|
options = {}
|
19
|
-
Request.send('post', uri_path("usage_files","
|
19
|
+
Request.send('post', uri_path("usage_files","upload_url"), params, env, headers, "file-ingest", false, jsonKeys, options)
|
20
20
|
end
|
21
21
|
|
22
|
-
def self.
|
22
|
+
def self.processing_status(id, env=nil, headers={})
|
23
23
|
jsonKeys = {
|
24
24
|
}
|
25
25
|
options = {}
|
26
|
-
Request.send('get', uri_path("usage_files",id.to_s,"
|
26
|
+
Request.send('get', uri_path("usage_files",id.to_s,"processing_status"), {}, env, headers, "file-ingest", false, jsonKeys, options)
|
27
27
|
end
|
28
28
|
|
29
29
|
end # ~UsageFile
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class WebhookEndpoint < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :name, :url, :send_card_resource, :disabled, :primary_url, :api_version,
|
5
|
+
:chargebee_response_schema_type, :enabled_events
|
6
|
+
|
7
|
+
# OPERATIONS
|
8
|
+
#-----------
|
9
|
+
|
10
|
+
def self.create(params, env=nil, headers={})
|
11
|
+
jsonKeys = {
|
12
|
+
}
|
13
|
+
options = {
|
14
|
+
:isIdempotent => true
|
15
|
+
}
|
16
|
+
Request.send('post', uri_path("webhook_endpoints"), params, env, headers,nil, false, jsonKeys, options)
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.update(id, params={}, env=nil, headers={})
|
20
|
+
jsonKeys = {
|
21
|
+
}
|
22
|
+
options = {
|
23
|
+
:isIdempotent => true
|
24
|
+
}
|
25
|
+
Request.send('post', uri_path("webhook_endpoints",id.to_s), params, env, headers,nil, false, jsonKeys, options)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.retrieve(id, env=nil, headers={})
|
29
|
+
jsonKeys = {
|
30
|
+
}
|
31
|
+
options = {}
|
32
|
+
Request.send('get', uri_path("webhook_endpoints",id.to_s), {}, env, headers,nil, false, jsonKeys, options)
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.delete(id, env=nil, headers={})
|
36
|
+
jsonKeys = {
|
37
|
+
}
|
38
|
+
options = {
|
39
|
+
:isIdempotent => true
|
40
|
+
}
|
41
|
+
Request.send('post', uri_path("webhook_endpoints",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options)
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.list(params={}, env=nil, headers={})
|
45
|
+
jsonKeys = {
|
46
|
+
}
|
47
|
+
options = {}
|
48
|
+
Request.send_list_request('get', uri_path("webhook_endpoints"), params, env, headers,nil, false, jsonKeys, options)
|
49
|
+
end
|
50
|
+
|
51
|
+
end # ~WebhookEndpoint
|
52
|
+
end # ~ChargeBee
|
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, :
|
109
|
+
{:line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :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, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
|
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
|
-
{:
|
131
|
+
{:line_items => CreditNote::LineItem, :line_item_tiers => CreditNote::LineItemTier, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_taxes => CreditNote::LineItemTax, :line_item_addresses => CreditNote::LineItemAddress, :discounts => CreditNote::Discount, :taxes => CreditNote::Tax, :tax_origin => CreditNote::TaxOrigin, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :einvoice => CreditNote::Einvoice, :site_details_at_creation => CreditNote::SiteDetailsAtCreation});
|
132
132
|
return credit_note;
|
133
133
|
end
|
134
134
|
|
@@ -197,16 +197,22 @@ module ChargeBee
|
|
197
197
|
|
198
198
|
def quoted_charge()
|
199
199
|
quoted_charge = get(:quoted_charge, QuotedCharge,
|
200
|
-
{:charges => QuotedCharge::Charge, :addons => QuotedCharge::Addon, :invoice_items => QuotedCharge::InvoiceItem, :item_tiers => QuotedCharge::ItemTier, :coupons => QuotedCharge::Coupon});
|
200
|
+
{:charges => QuotedCharge::Charge, :addons => QuotedCharge::Addon, :invoice_items => QuotedCharge::InvoiceItem, :item_tiers => QuotedCharge::ItemTier, :coupons => QuotedCharge::Coupon, :coupon_applicability_mappings => QuotedCharge::CouponApplicabilityMapping});
|
201
201
|
return quoted_charge;
|
202
202
|
end
|
203
203
|
|
204
204
|
def quoted_ramp()
|
205
205
|
quoted_ramp = get(:quoted_ramp, QuotedRamp,
|
206
|
-
{:line_items => QuotedRamp::LineItem, :discounts => QuotedRamp::Discount, :item_tiers => QuotedRamp::ItemTier});
|
206
|
+
{:line_items => QuotedRamp::LineItem, :discounts => QuotedRamp::Discount, :item_tiers => QuotedRamp::ItemTier, :coupon_applicability_mappings => QuotedRamp::CouponApplicabilityMapping});
|
207
207
|
return quoted_ramp;
|
208
208
|
end
|
209
209
|
|
210
|
+
def billing_configuration()
|
211
|
+
billing_configuration = get(:billing_configuration, BillingConfiguration,
|
212
|
+
{:billing_dates => BillingConfiguration::BillingDate});
|
213
|
+
return billing_configuration;
|
214
|
+
end
|
215
|
+
|
210
216
|
def quote_line_group()
|
211
217
|
quote_line_group = get(:quote_line_group, QuoteLineGroup,
|
212
218
|
{:line_items => QuoteLineGroup::LineItem, :discounts => QuoteLineGroup::Discount, :line_item_discounts => QuoteLineGroup::LineItemDiscount, :taxes => QuoteLineGroup::Tax, :line_item_taxes => QuoteLineGroup::LineItemTax});
|
@@ -473,10 +479,23 @@ module ChargeBee
|
|
473
479
|
|
474
480
|
def recorded_purchase()
|
475
481
|
recorded_purchase = get(:recorded_purchase, RecordedPurchase,
|
476
|
-
{:linked_omnichannel_subscriptions => RecordedPurchase::LinkedOmnichannelSubscription, :error_detail => RecordedPurchase::ErrorDetail});
|
482
|
+
{:linked_omnichannel_subscriptions => RecordedPurchase::LinkedOmnichannelSubscription, :linked_omnichannel_one_time_orders => RecordedPurchase::LinkedOmnichannelOneTimeOrder, :error_detail => RecordedPurchase::ErrorDetail});
|
477
483
|
return recorded_purchase;
|
478
484
|
end
|
479
485
|
|
486
|
+
def omnichannel_one_time_order()
|
487
|
+
omnichannel_one_time_order = get(:omnichannel_one_time_order, OmnichannelOneTimeOrder, {},
|
488
|
+
{:omnichannel_one_time_order_items => OmnichannelOneTimeOrderItem});
|
489
|
+
omnichannel_one_time_order.init_dependant_list(@response[:omnichannel_one_time_order], :omnichannel_one_time_order_items,
|
490
|
+
{});
|
491
|
+
return omnichannel_one_time_order;
|
492
|
+
end
|
493
|
+
|
494
|
+
def omnichannel_one_time_order_item()
|
495
|
+
omnichannel_one_time_order_item = get(:omnichannel_one_time_order_item, OmnichannelOneTimeOrderItem);
|
496
|
+
return omnichannel_one_time_order_item;
|
497
|
+
end
|
498
|
+
|
480
499
|
def rule()
|
481
500
|
rule = get(:rule, Rule);
|
482
501
|
return rule;
|
@@ -499,6 +518,32 @@ module ChargeBee
|
|
499
518
|
return usage_file;
|
500
519
|
end
|
501
520
|
|
521
|
+
def brand()
|
522
|
+
brand = get(:brand, Brand);
|
523
|
+
return brand;
|
524
|
+
end
|
525
|
+
|
526
|
+
def webhook_endpoint()
|
527
|
+
webhook_endpoint = get(:webhook_endpoint, WebhookEndpoint);
|
528
|
+
return webhook_endpoint;
|
529
|
+
end
|
530
|
+
|
531
|
+
def impacted_customer()
|
532
|
+
impacted_customer = get(:impacted_customer, ImpactedCustomer,
|
533
|
+
{:download => ImpactedCustomer::Download});
|
534
|
+
return impacted_customer;
|
535
|
+
end
|
536
|
+
|
537
|
+
def subscription_entitlements_updated_detail()
|
538
|
+
subscription_entitlements_updated_detail = get(:subscription_entitlements_updated_detail, SubscriptionEntitlementsUpdatedDetail);
|
539
|
+
return subscription_entitlements_updated_detail;
|
540
|
+
end
|
541
|
+
|
542
|
+
def subscription_entitlements_created_detail()
|
543
|
+
subscription_entitlements_created_detail = get(:subscription_entitlements_created_detail, SubscriptionEntitlementsCreatedDetail);
|
544
|
+
return subscription_entitlements_created_detail;
|
545
|
+
end
|
546
|
+
|
502
547
|
def advance_invoice_schedules()
|
503
548
|
advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
|
504
549
|
{:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
|
@@ -513,7 +558,7 @@ module ChargeBee
|
|
513
558
|
|
514
559
|
def invoices()
|
515
560
|
invoices = get_list(:invoices, Invoice,
|
516
|
-
{:line_items => Invoice::LineItem, :
|
561
|
+
{:line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :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, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
|
517
562
|
return invoices;
|
518
563
|
end
|
519
564
|
|
@@ -525,7 +570,7 @@ module ChargeBee
|
|
525
570
|
|
526
571
|
def credit_notes()
|
527
572
|
credit_notes = get_list(:credit_notes, CreditNote,
|
528
|
-
{:
|
573
|
+
{:line_items => CreditNote::LineItem, :line_item_tiers => CreditNote::LineItemTier, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_taxes => CreditNote::LineItemTax, :line_item_addresses => CreditNote::LineItemAddress, :discounts => CreditNote::Discount, :taxes => CreditNote::Tax, :tax_origin => CreditNote::TaxOrigin, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :einvoice => CreditNote::Einvoice, :site_details_at_creation => CreditNote::SiteDetailsAtCreation});
|
529
574
|
return credit_notes;
|
530
575
|
end
|
531
576
|
|
data/lib/chargebee.rb
CHANGED
@@ -88,11 +88,13 @@ require File.dirname(__FILE__) + '/chargebee/models/rule'
|
|
88
88
|
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_item_scheduled_change'
|
89
89
|
require File.dirname(__FILE__) + '/chargebee/models/usage_file'
|
90
90
|
require File.dirname(__FILE__) + '/chargebee/models/quoted_ramp'
|
91
|
-
|
91
|
+
require File.dirname(__FILE__) + '/chargebee/models/webhook_endpoint'
|
92
|
+
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_one_time_order'
|
93
|
+
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_one_time_order_item'
|
92
94
|
|
93
95
|
module ChargeBee
|
94
96
|
|
95
|
-
VERSION = '2.
|
97
|
+
VERSION = '2.59.0'
|
96
98
|
|
97
99
|
@@default_env = nil
|
98
100
|
@@verify_ca_certs = true
|
metadata
CHANGED
@@ -1,62 +1,61 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.59.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajaraman S
|
8
8
|
- Thiyagarajan T
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2025-
|
11
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: cgi
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- -
|
17
|
+
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: 0.1.0
|
21
|
-
- - <
|
20
|
+
- - "<"
|
22
21
|
- !ruby/object:Gem::Version
|
23
22
|
version: 1.0.0
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
27
26
|
requirements:
|
28
|
-
- -
|
27
|
+
- - ">="
|
29
28
|
- !ruby/object:Gem::Version
|
30
29
|
version: 0.1.0
|
31
|
-
- - <
|
30
|
+
- - "<"
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: 1.0.0
|
34
33
|
- !ruby/object:Gem::Dependency
|
35
34
|
name: rspec
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
|
-
- - ~>
|
37
|
+
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: 3.0.0
|
41
40
|
type: :development
|
42
41
|
prerelease: false
|
43
42
|
version_requirements: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
|
-
- - ~>
|
44
|
+
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: 3.0.0
|
48
47
|
- !ruby/object:Gem::Dependency
|
49
48
|
name: mocha
|
50
49
|
requirement: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
|
-
- -
|
51
|
+
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '0'
|
55
54
|
type: :development
|
56
55
|
prerelease: false
|
57
56
|
version_requirements: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
|
-
- -
|
58
|
+
- - ">="
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '0'
|
62
61
|
description: Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com.
|
@@ -66,8 +65,8 @@ email:
|
|
66
65
|
executables: []
|
67
66
|
extensions: []
|
68
67
|
extra_rdoc_files:
|
69
|
-
- README.md
|
70
68
|
- LICENSE
|
69
|
+
- README.md
|
71
70
|
files:
|
72
71
|
- CHANGELOG.md
|
73
72
|
- Gemfile
|
@@ -86,6 +85,8 @@ files:
|
|
86
85
|
- lib/chargebee/models/advance_invoice_schedule.rb
|
87
86
|
- lib/chargebee/models/attached_item.rb
|
88
87
|
- lib/chargebee/models/attribute.rb
|
88
|
+
- lib/chargebee/models/billing_configuration.rb
|
89
|
+
- lib/chargebee/models/brand.rb
|
89
90
|
- lib/chargebee/models/business_entity.rb
|
90
91
|
- lib/chargebee/models/business_entity_transfer.rb
|
91
92
|
- lib/chargebee/models/card.rb
|
@@ -115,6 +116,7 @@ files:
|
|
115
116
|
- lib/chargebee/models/gift.rb
|
116
117
|
- lib/chargebee/models/hierarchy.rb
|
117
118
|
- lib/chargebee/models/hosted_page.rb
|
119
|
+
- lib/chargebee/models/impacted_customer.rb
|
118
120
|
- lib/chargebee/models/impacted_item.rb
|
119
121
|
- lib/chargebee/models/impacted_item_price.rb
|
120
122
|
- lib/chargebee/models/impacted_subscription.rb
|
@@ -128,6 +130,8 @@ files:
|
|
128
130
|
- lib/chargebee/models/metadata.rb
|
129
131
|
- lib/chargebee/models/model.rb
|
130
132
|
- lib/chargebee/models/non_subscription.rb
|
133
|
+
- lib/chargebee/models/omnichannel_one_time_order.rb
|
134
|
+
- lib/chargebee/models/omnichannel_one_time_order_item.rb
|
131
135
|
- lib/chargebee/models/omnichannel_subscription.rb
|
132
136
|
- lib/chargebee/models/omnichannel_subscription_item.rb
|
133
137
|
- lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb
|
@@ -158,6 +162,8 @@ files:
|
|
158
162
|
- lib/chargebee/models/site_migration_detail.rb
|
159
163
|
- lib/chargebee/models/subscription.rb
|
160
164
|
- lib/chargebee/models/subscription_entitlement.rb
|
165
|
+
- lib/chargebee/models/subscription_entitlements_created_detail.rb
|
166
|
+
- lib/chargebee/models/subscription_entitlements_updated_detail.rb
|
161
167
|
- lib/chargebee/models/subscription_estimate.rb
|
162
168
|
- lib/chargebee/models/tax_withheld.rb
|
163
169
|
- lib/chargebee/models/third_party_payment_method.rb
|
@@ -169,6 +175,7 @@ files:
|
|
169
175
|
- lib/chargebee/models/usage_event.rb
|
170
176
|
- lib/chargebee/models/usage_file.rb
|
171
177
|
- lib/chargebee/models/virtual_bank_account.rb
|
178
|
+
- lib/chargebee/models/webhook_endpoint.rb
|
172
179
|
- lib/chargebee/nativeRequest.rb
|
173
180
|
- lib/chargebee/request.rb
|
174
181
|
- lib/chargebee/rest.rb
|
@@ -186,25 +193,22 @@ licenses:
|
|
186
193
|
- MIT
|
187
194
|
metadata:
|
188
195
|
changelog_uri: https://github.com/chargebee/chargebee-ruby/blob/master/CHANGELOG.md
|
189
|
-
post_install_message:
|
190
196
|
rdoc_options:
|
191
|
-
- --charset=UTF-8
|
197
|
+
- "--charset=UTF-8"
|
192
198
|
require_paths:
|
193
199
|
- lib
|
194
200
|
required_ruby_version: !ruby/object:Gem::Requirement
|
195
201
|
requirements:
|
196
|
-
- -
|
202
|
+
- - ">="
|
197
203
|
- !ruby/object:Gem::Version
|
198
204
|
version: 1.9.3
|
199
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
206
|
requirements:
|
201
|
-
- -
|
207
|
+
- - ">="
|
202
208
|
- !ruby/object:Gem::Version
|
203
209
|
version: '0'
|
204
210
|
requirements: []
|
205
|
-
|
206
|
-
rubygems_version: 2.4.5
|
207
|
-
signing_key:
|
211
|
+
rubygems_version: 3.6.7
|
208
212
|
specification_version: 2
|
209
213
|
summary: Ruby client for Chargebee API.
|
210
214
|
test_files:
|