chargebee 2.58.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 +4 -4
- data/CHANGELOG.md +56 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +8 -2
- data/lib/chargebee/models/comment.rb +1 -1
- data/lib/chargebee/models/credit_note.rb +23 -23
- data/lib/chargebee/models/discount.rb +1 -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 +1 -1
- 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 +40 -6
- data/lib/chargebee.rb +4 -2
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
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,59 @@
|
|
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
|
+
|
1
57
|
### v2.58.0 (2025-07-18)
|
2
58
|
* * *
|
3
59
|
|
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 = {
|
@@ -76,6 +76,7 @@ Gem::Specification.new do |s|
|
|
76
76
|
lib/chargebee/models/gift.rb
|
77
77
|
lib/chargebee/models/hierarchy.rb
|
78
78
|
lib/chargebee/models/hosted_page.rb
|
79
|
+
lib/chargebee/models/impacted_customer.rb
|
79
80
|
lib/chargebee/models/impacted_item.rb
|
80
81
|
lib/chargebee/models/impacted_item_price.rb
|
81
82
|
lib/chargebee/models/impacted_subscription.rb
|
@@ -89,6 +90,8 @@ Gem::Specification.new do |s|
|
|
89
90
|
lib/chargebee/models/metadata.rb
|
90
91
|
lib/chargebee/models/model.rb
|
91
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
|
92
95
|
lib/chargebee/models/omnichannel_subscription.rb
|
93
96
|
lib/chargebee/models/omnichannel_subscription_item.rb
|
94
97
|
lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb
|
@@ -119,6 +122,8 @@ Gem::Specification.new do |s|
|
|
119
122
|
lib/chargebee/models/site_migration_detail.rb
|
120
123
|
lib/chargebee/models/subscription.rb
|
121
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
|
122
127
|
lib/chargebee/models/subscription_estimate.rb
|
123
128
|
lib/chargebee/models/tax_withheld.rb
|
124
129
|
lib/chargebee/models/third_party_payment_method.rb
|
@@ -130,6 +135,7 @@ Gem::Specification.new do |s|
|
|
130
135
|
lib/chargebee/models/usage_event.rb
|
131
136
|
lib/chargebee/models/usage_file.rb
|
132
137
|
lib/chargebee/models/virtual_bank_account.rb
|
138
|
+
lib/chargebee/models/webhook_endpoint.rb
|
133
139
|
lib/chargebee/nativeRequest.rb
|
134
140
|
lib/chargebee/request.rb
|
135
141
|
lib/chargebee/rest.rb
|
@@ -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
|
#-----------
|
@@ -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
|
|
@@ -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
|
#-----------
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
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
|
@@ -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,7 +197,7 @@ 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
|
|
@@ -479,10 +479,23 @@ module ChargeBee
|
|
479
479
|
|
480
480
|
def recorded_purchase()
|
481
481
|
recorded_purchase = get(:recorded_purchase, RecordedPurchase,
|
482
|
-
{: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});
|
483
483
|
return recorded_purchase;
|
484
484
|
end
|
485
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
|
+
|
486
499
|
def rule()
|
487
500
|
rule = get(:rule, Rule);
|
488
501
|
return rule;
|
@@ -510,6 +523,27 @@ module ChargeBee
|
|
510
523
|
return brand;
|
511
524
|
end
|
512
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
|
+
|
513
547
|
def advance_invoice_schedules()
|
514
548
|
advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
|
515
549
|
{:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
|
@@ -524,7 +558,7 @@ module ChargeBee
|
|
524
558
|
|
525
559
|
def invoices()
|
526
560
|
invoices = get_list(:invoices, Invoice,
|
527
|
-
{: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});
|
528
562
|
return invoices;
|
529
563
|
end
|
530
564
|
|
@@ -536,7 +570,7 @@ module ChargeBee
|
|
536
570
|
|
537
571
|
def credit_notes()
|
538
572
|
credit_notes = get_list(:credit_notes, CreditNote,
|
539
|
-
{:
|
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});
|
540
574
|
return credit_notes;
|
541
575
|
end
|
542
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,14 +1,14 @@
|
|
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
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cgi
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- lib/chargebee/models/gift.rb
|
117
117
|
- lib/chargebee/models/hierarchy.rb
|
118
118
|
- lib/chargebee/models/hosted_page.rb
|
119
|
+
- lib/chargebee/models/impacted_customer.rb
|
119
120
|
- lib/chargebee/models/impacted_item.rb
|
120
121
|
- lib/chargebee/models/impacted_item_price.rb
|
121
122
|
- lib/chargebee/models/impacted_subscription.rb
|
@@ -129,6 +130,8 @@ files:
|
|
129
130
|
- lib/chargebee/models/metadata.rb
|
130
131
|
- lib/chargebee/models/model.rb
|
131
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
|
132
135
|
- lib/chargebee/models/omnichannel_subscription.rb
|
133
136
|
- lib/chargebee/models/omnichannel_subscription_item.rb
|
134
137
|
- lib/chargebee/models/omnichannel_subscription_item_scheduled_change.rb
|
@@ -159,6 +162,8 @@ files:
|
|
159
162
|
- lib/chargebee/models/site_migration_detail.rb
|
160
163
|
- lib/chargebee/models/subscription.rb
|
161
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
|
162
167
|
- lib/chargebee/models/subscription_estimate.rb
|
163
168
|
- lib/chargebee/models/tax_withheld.rb
|
164
169
|
- lib/chargebee/models/third_party_payment_method.rb
|
@@ -170,6 +175,7 @@ files:
|
|
170
175
|
- lib/chargebee/models/usage_event.rb
|
171
176
|
- lib/chargebee/models/usage_file.rb
|
172
177
|
- lib/chargebee/models/virtual_bank_account.rb
|
178
|
+
- lib/chargebee/models/webhook_endpoint.rb
|
173
179
|
- lib/chargebee/nativeRequest.rb
|
174
180
|
- lib/chargebee/request.rb
|
175
181
|
- lib/chargebee/rest.rb
|