chargebee 2.45.0 → 2.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +60 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +5 -2
- data/lib/chargebee/models/attached_item.rb +1 -1
- data/lib/chargebee/models/coupon.rb +5 -4
- data/lib/chargebee/models/differential_price.rb +1 -1
- data/lib/chargebee/models/item.rb +2 -1
- data/lib/chargebee/models/item_family.rb +1 -1
- data/lib/chargebee/models/item_price.rb +1 -1
- data/lib/chargebee/models/omnichannel_subscription.rb +26 -0
- data/lib/chargebee/models/omnichannel_transaction.rb +11 -0
- data/lib/chargebee/models/price_variant.rb +1 -1
- data/lib/chargebee/models/recorded_purchase.rb +27 -0
- data/lib/chargebee/result.rb +17 -0
- data/lib/chargebee.rb +5 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c0cce80dc54db94f1a7b6138751ab2653d66fd
|
4
|
+
data.tar.gz: 249627e284ea46d5666697acacb34c060326b7cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c89c552e4a27ac177cd59ef88ff197c2059f9876971922611350d787d87eddea51b12634a3a356e08b661cea9d0658d9f6a517f67d092a37857cb351253f8595
|
7
|
+
data.tar.gz: 1aacbfa93badb7b99f7a6b0b18dc2dd3109a999aeaa0efc8a697069f7a80284acbb0087a318f2425e33ee5343b79f83f2a2cdca3f8ba22b37d6cdc6c542f4f6f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,63 @@
|
|
1
|
+
### v2.46.0 (2024-11-14)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
#### New Resource:
|
5
|
+
* OmnichannelTransaction has been added.
|
6
|
+
* OmnichannelSubscription has been added.
|
7
|
+
* RecordedPurchase has been added.
|
8
|
+
|
9
|
+
|
10
|
+
#### New Attributes:
|
11
|
+
* business_entity_id has been added to AttachedItem.
|
12
|
+
* business_entity_id has been added to DifferentialPrice.
|
13
|
+
* business_entity_id has been added to Items.
|
14
|
+
* business_entity_id has been added to ItemFamily.
|
15
|
+
* business_entity_id has been added to ItemPrice.
|
16
|
+
* business_entity_id has been added to PriceVariant.
|
17
|
+
* valid_from has been added to coupon.
|
18
|
+
|
19
|
+
#### New Input Parameters:
|
20
|
+
* business_entity_id has been added to AttachedItem#CreateRequest.
|
21
|
+
* preferred_scheme has been added to Card#UpdateCardForCustomerRequest.
|
22
|
+
* valid_from has been added to Coupon#CreateForItem & Coupon#UpdateForItemsRequest.
|
23
|
+
* preferred_scheme has been added to Customer#CreateRequest & Customer#CollectPaymentRequest.
|
24
|
+
* business_entity_id has been added to DifferentialPrice#CreateRequest.
|
25
|
+
* preferred_scheme has been added to Invoice#CreateRequest & Invoice#CreateForChargeItemsAndChargesRequest.
|
26
|
+
* business_entity_id has been added to Items#CreateRequest.
|
27
|
+
* business_entity_id & include_site_level_resources have been added to Items#ListItemParams.
|
28
|
+
* business_entity_id has been added to ItemFamily#CreateRequest.
|
29
|
+
* business_entity_id & include_site_level_resources have been added to ItemFamily#ListItemFamilyParams.
|
30
|
+
* business_entity_id has been added to ItemPrice#CreateRequest.
|
31
|
+
* business_entity_id & include_site_level_resources have been added to ItemPrice#ListItemPriceParams.
|
32
|
+
* business_entity_id & include_site_level_resources have been added to PriceVariant#ListItemFamilyParams.
|
33
|
+
* business_entity_id has been added to PriceVariant#CreateRequest.
|
34
|
+
* business_entity_id & include_site_level_resources have been added to PriceVariant#ListPriceVariantParams.
|
35
|
+
* preferred_scheme has been added to Subscription#CreateRequest, Subscription#UpdateRequest.
|
36
|
+
* preferred_scheme Subscription#UpdateForItemsRequest, & Subscription#ImportSubscriptionRequest.
|
37
|
+
* business_entity_id & include_site_level_resources have been added to Export#ItemFamiliesRequest & Export#ItemsRequest.
|
38
|
+
* business_entity_id & include_site_level_resources have been added to Export#ItemPricesRequest Export#PriceVariantsRequest
|
39
|
+
* name & flexible_schedules[period] have been added to PaymentScheduleScheme#CreateRequest.
|
40
|
+
|
41
|
+
#### New Enum Values:
|
42
|
+
* FUTURE has been added to Coupon#StatusEnum.
|
43
|
+
* EXISTING_CUSTOMER & NEW_CUSTOMER have been added to Coupon#TypeEnum.
|
44
|
+
* LATE_FAILURE has added to Transation#LinkedPaymentEnum & Transation#StatusEnum.
|
45
|
+
* OMNICHANNEL_SUBSCRIPTION, has been added to EntityTypeEnum.
|
46
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM, has been added to EntityTypeEnum.
|
47
|
+
* OMNICHANNEL_TRANSACTION, has been added to EntityTypeEnum.
|
48
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_RENEWED, has been added to EventTypeEnum.
|
49
|
+
* OMNICHANNEL_SUBSCRIPTION_CREATED, has been added to EventTypeEnum.
|
50
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_DOWNGRADE_SCHEDULED, has been added to EventTypeEnum.
|
51
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_DOWNGRADE_REMOVED, has been added to EventTypeEnum.
|
52
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_DOWNGRADED, has been added to EventTypeEnum.
|
53
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_EXPIRED, has been added to EventTypeEnum.
|
54
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_CANCELLATION_SCHEDULED, has been added to EventTypeEnum.
|
55
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_CANCELLATION_REMOVED, has been added to EventTypeEnum.
|
56
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_RESUBSCRIBED, has been added to EventTypeEnum.
|
57
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_UPGRADED, has been added to EventTypeEnum.
|
58
|
+
* OMNICHANNEL_SUBSCRIPTION_ITEM_CANCELLED, has been added to EventTypeEnum.
|
59
|
+
|
60
|
+
|
1
61
|
### v2.45.0 (2024-10-17)
|
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.46.0'
|
8
|
+
s.date = '2024-11-14'
|
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 = {
|
@@ -88,6 +88,8 @@ Gem::Specification.new do |s|
|
|
88
88
|
lib/chargebee/models/metadata.rb
|
89
89
|
lib/chargebee/models/model.rb
|
90
90
|
lib/chargebee/models/non_subscription.rb
|
91
|
+
lib/chargebee/models/omnichannel_subscription.rb
|
92
|
+
lib/chargebee/models/omnichannel_transaction.rb
|
91
93
|
lib/chargebee/models/order.rb
|
92
94
|
lib/chargebee/models/payment_intent.rb
|
93
95
|
lib/chargebee/models/payment_reference_number.rb
|
@@ -107,6 +109,7 @@ Gem::Specification.new do |s|
|
|
107
109
|
lib/chargebee/models/quoted_charge.rb
|
108
110
|
lib/chargebee/models/quoted_subscription.rb
|
109
111
|
lib/chargebee/models/ramp.rb
|
112
|
+
lib/chargebee/models/recorded_purchase.rb
|
110
113
|
lib/chargebee/models/resource_migration.rb
|
111
114
|
lib/chargebee/models/site_migration_detail.rb
|
112
115
|
lib/chargebee/models/subscription.rb
|
@@ -3,7 +3,7 @@ module ChargeBee
|
|
3
3
|
|
4
4
|
attr_accessor :id, :parent_item_id, :item_id, :type, :status, :quantity, :quantity_in_decimal,
|
5
5
|
:billing_cycles, :charge_on_event, :charge_once, :created_at, :resource_version, :updated_at,
|
6
|
-
:channel
|
6
|
+
:channel, :business_entity_id
|
7
7
|
|
8
8
|
# OPERATIONS
|
9
9
|
#-----------
|
@@ -14,10 +14,11 @@ module ChargeBee
|
|
14
14
|
end
|
15
15
|
|
16
16
|
attr_accessor :id, :name, :invoice_name, :discount_type, :discount_percentage, :discount_amount,
|
17
|
-
:discount_quantity, :currency_code, :duration_type, :duration_month, :
|
18
|
-
:status, :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint,
|
19
|
-
:
|
20
|
-
:
|
17
|
+
:discount_quantity, :currency_code, :duration_type, :duration_month, :valid_from, :valid_till,
|
18
|
+
:max_redemptions, :status, :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint,
|
19
|
+
:created_at, :archived_at, :resource_version, :updated_at, :included_in_mrr, :period, :period_unit,
|
20
|
+
:plan_ids, :addon_ids, :item_constraints, :item_constraint_criteria, :redemptions, :invoice_notes,
|
21
|
+
:meta_data, :coupon_constraints
|
21
22
|
|
22
23
|
# OPERATIONS
|
23
24
|
#-----------
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
10
10
|
end
|
11
11
|
|
12
12
|
attr_accessor :id, :item_price_id, :parent_item_id, :price, :price_in_decimal, :status, :resource_version,
|
13
|
-
:updated_at, :created_at, :modified_at, :tiers, :currency_code, :parent_periods
|
13
|
+
:updated_at, :created_at, :modified_at, :tiers, :currency_code, :parent_periods, :business_entity_id
|
14
14
|
|
15
15
|
# OPERATIONS
|
16
16
|
#-----------
|
@@ -16,7 +16,8 @@ module ChargeBee
|
|
16
16
|
attr_accessor :id, :name, :external_name, :description, :status, :resource_version, :updated_at,
|
17
17
|
:item_family_id, :type, :is_shippable, :is_giftable, :redirect_url, :enabled_for_checkout, :enabled_in_portal,
|
18
18
|
:included_in_mrr, :item_applicability, :gift_claim_redirect_url, :unit, :metered, :usage_calculation,
|
19
|
-
:archived_at, :channel, :applicable_items, :bundle_items, :bundle_configuration, :metadata
|
19
|
+
:archived_at, :channel, :applicable_items, :bundle_items, :bundle_configuration, :metadata,
|
20
|
+
:business_entity_id
|
20
21
|
|
21
22
|
# OPERATIONS
|
22
23
|
#-----------
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class ItemFamily < Model
|
3
3
|
|
4
|
-
attr_accessor :id, :name, :description, :status, :resource_version, :updated_at, :channel
|
4
|
+
attr_accessor :id, :name, :description, :status, :resource_version, :updated_at, :channel, :business_entity_id
|
5
5
|
|
6
6
|
# OPERATIONS
|
7
7
|
#-----------
|
@@ -23,7 +23,7 @@ module ChargeBee
|
|
23
23
|
:billing_cycles, :free_quantity, :free_quantity_in_decimal, :channel, :resource_version, :updated_at,
|
24
24
|
:created_at, :usage_accumulation_reset_frequency, :archived_at, :invoice_notes, :tiers, :is_taxable,
|
25
25
|
:tax_detail, :tax_providers_fields, :accounting_detail, :metadata, :item_type, :archivable,
|
26
|
-
:parent_item_id, :show_description_in_invoices, :show_description_in_quotes
|
26
|
+
:parent_item_id, :show_description_in_invoices, :show_description_in_quotes, :business_entity_id
|
27
27
|
|
28
28
|
# OPERATIONS
|
29
29
|
#-----------
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class OmnichannelSubscription < Model
|
3
|
+
|
4
|
+
class OmnichannelSubscriptionItem < Model
|
5
|
+
attr_accessor :id, :id_at_source, :status, :current_term_start, :current_term_end, :expired_at, :expiration_reason, :cancelled_at, :cancellation_reason
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :omnichannel_subscription_items
|
9
|
+
|
10
|
+
# OPERATIONS
|
11
|
+
#-----------
|
12
|
+
|
13
|
+
def self.retrieve(id, env=nil, headers={})
|
14
|
+
Request.send('get', uri_path("omnichannel_subscriptions",id.to_s), {}, env, headers)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.list(params={}, env=nil, headers={})
|
18
|
+
Request.send_list_request('get', uri_path("omnichannel_subscriptions"), params, env, headers)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.omnichannel_transactions_for_omnichannel_subscription(id, params={}, env=nil, headers={})
|
22
|
+
Request.send('get', uri_path("omnichannel_subscriptions",id.to_s,"omnichannel_transactions"), params, env, headers)
|
23
|
+
end
|
24
|
+
|
25
|
+
end # ~OmnichannelSubscription
|
26
|
+
end # ~ChargeBee
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class OmnichannelTransaction < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :id_at_source, :app_id, :price_currency, :price_units, :price_nanos, :type,
|
5
|
+
:transacted_at, :created_at
|
6
|
+
|
7
|
+
# OPERATIONS
|
8
|
+
#-----------
|
9
|
+
|
10
|
+
end # ~OmnichannelTransaction
|
11
|
+
end # ~ChargeBee
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
attr_accessor :id, :name, :external_name, :variant_group, :description, :status, :created_at,
|
9
|
-
:resource_version, :updated_at, :archived_at, :attributes
|
9
|
+
:resource_version, :updated_at, :archived_at, :attributes, :business_entity_id
|
10
10
|
|
11
11
|
# OPERATIONS
|
12
12
|
#-----------
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class RecordedPurchase < Model
|
3
|
+
|
4
|
+
class LinkedOmnichannelSubscription < Model
|
5
|
+
attr_accessor :omnichannel_subscription_id
|
6
|
+
end
|
7
|
+
|
8
|
+
class ErrorDetail < Model
|
9
|
+
attr_accessor :error_message
|
10
|
+
end
|
11
|
+
|
12
|
+
attr_accessor :id, :customer_id, :app_id, :source, :status, :omnichannel_transaction_id, :created_at,
|
13
|
+
:linked_omnichannel_subscriptions, :error_detail
|
14
|
+
|
15
|
+
# OPERATIONS
|
16
|
+
#-----------
|
17
|
+
|
18
|
+
def self.create(params, env=nil, headers={})
|
19
|
+
Request.send('post', uri_path("recorded_purchases"), params, env, headers)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.retrieve(id, env=nil, headers={})
|
23
|
+
Request.send('get', uri_path("recorded_purchases",id.to_s), {}, env, headers)
|
24
|
+
end
|
25
|
+
|
26
|
+
end # ~RecordedPurchase
|
27
|
+
end # ~ChargeBee
|
data/lib/chargebee/result.rb
CHANGED
@@ -432,6 +432,23 @@ module ChargeBee
|
|
432
432
|
return pricing_page_session;
|
433
433
|
end
|
434
434
|
|
435
|
+
def omnichannel_subscription()
|
436
|
+
omnichannel_subscription = get(:omnichannel_subscription, OmnichannelSubscription,
|
437
|
+
{:omnichannel_subscription_items => OmnichannelSubscription::OmnichannelSubscriptionItem});
|
438
|
+
return omnichannel_subscription;
|
439
|
+
end
|
440
|
+
|
441
|
+
def omnichannel_transaction()
|
442
|
+
omnichannel_transaction = get(:omnichannel_transaction, OmnichannelTransaction);
|
443
|
+
return omnichannel_transaction;
|
444
|
+
end
|
445
|
+
|
446
|
+
def recorded_purchase()
|
447
|
+
recorded_purchase = get(:recorded_purchase, RecordedPurchase,
|
448
|
+
{:linked_omnichannel_subscriptions => RecordedPurchase::LinkedOmnichannelSubscription, :error_detail => RecordedPurchase::ErrorDetail});
|
449
|
+
return recorded_purchase;
|
450
|
+
end
|
451
|
+
|
435
452
|
def advance_invoice_schedules()
|
436
453
|
advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
|
437
454
|
{:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
|
data/lib/chargebee.rb
CHANGED
@@ -78,11 +78,15 @@ require File.dirname(__FILE__) + '/chargebee/models/customer_entitlement'
|
|
78
78
|
require File.dirname(__FILE__) + '/chargebee/models/payment_schedule'
|
79
79
|
require File.dirname(__FILE__) + '/chargebee/models/payment_schedule_scheme'
|
80
80
|
require File.dirname(__FILE__) + '/chargebee/models/payment_schedule_estimate'
|
81
|
+
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription'
|
82
|
+
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_transaction'
|
83
|
+
require File.dirname(__FILE__) + '/chargebee/models/recorded_purchase'
|
84
|
+
|
81
85
|
|
82
86
|
|
83
87
|
module ChargeBee
|
84
88
|
|
85
|
-
VERSION = '2.
|
89
|
+
VERSION = '2.46.0'
|
86
90
|
|
87
91
|
@@default_env = nil
|
88
92
|
@@verify_ca_certs = true
|
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.46.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajaraman S
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -161,6 +161,8 @@ files:
|
|
161
161
|
- lib/chargebee/models/metadata.rb
|
162
162
|
- lib/chargebee/models/model.rb
|
163
163
|
- lib/chargebee/models/non_subscription.rb
|
164
|
+
- lib/chargebee/models/omnichannel_subscription.rb
|
165
|
+
- lib/chargebee/models/omnichannel_transaction.rb
|
164
166
|
- lib/chargebee/models/order.rb
|
165
167
|
- lib/chargebee/models/payment_intent.rb
|
166
168
|
- lib/chargebee/models/payment_reference_number.rb
|
@@ -180,6 +182,7 @@ files:
|
|
180
182
|
- lib/chargebee/models/quoted_charge.rb
|
181
183
|
- lib/chargebee/models/quoted_subscription.rb
|
182
184
|
- lib/chargebee/models/ramp.rb
|
185
|
+
- lib/chargebee/models/recorded_purchase.rb
|
183
186
|
- lib/chargebee/models/resource_migration.rb
|
184
187
|
- lib/chargebee/models/site_migration_detail.rb
|
185
188
|
- lib/chargebee/models/subscription.rb
|