chargebee 2.46.0 → 2.47.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 +25 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +3 -2
- data/lib/chargebee/models/omnichannel_subscription.rb +2 -5
- data/lib/chargebee/models/omnichannel_subscription_item.rb +11 -0
- data/lib/chargebee/models/omnichannel_transaction.rb +1 -1
- data/lib/chargebee/models/recorded_purchase.rb +1 -1
- data/lib/chargebee/models/subscription.rb +6 -2
- data/lib/chargebee/result.rb +9 -2
- data/lib/chargebee.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6faa46d51fb6ea60406a763027cc3b76c7478ce4
|
4
|
+
data.tar.gz: 72dc97688118a2b2563c6e1de9a4e41d6ce80986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e54108ac52fb4bbd9463959f602d5fdbd5655a3e3b38665b7f420a027ed5c90bf30c4bd340ff270caddaa53666148e2b184ddc8e5a9758cf33f2b40cd92206f7
|
7
|
+
data.tar.gz: be4ad479e9ea815ea9f803065dcbb3822a352381fc38b8f553006a86f1ca9a76521170b1d2dbfe985864ee9e6ed8a58a3d2d7990e8ce92afb1194c1786969886
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
### v2.47.0 (2024-11-27)
|
2
|
+
|
3
|
+
#### New Resource:
|
4
|
+
* OmnichannelSubscriptionItem has been added.
|
5
|
+
|
6
|
+
#### New Attribute:
|
7
|
+
* resource_version has been added to OmnichannelSubscription.
|
8
|
+
* resource_version has been added to OmnichannelTransaction.
|
9
|
+
* resource_version has been added to RecordedPurchase.
|
10
|
+
|
11
|
+
#### New Input Parameters:
|
12
|
+
* limit has been added to OmnichannelSubscription#ListRequest.
|
13
|
+
* offset has been added to OmnichannelSubscription#ListRequest.
|
14
|
+
* customer_id has been added to OmnichannelSubscription#ListRequest.
|
15
|
+
* replace_coupon_list has been added to HostedPage#CheckoutExistingRequest.
|
16
|
+
* replace_coupon_list has been added to HostedPage#CheckoutExistingForItemsRequest.
|
17
|
+
* subscription[po_number] has been added to HostedPage#CheckoutNewForItemsRequest.
|
18
|
+
|
19
|
+
#### Removed Subresource:
|
20
|
+
* OmnichannelSubscriptionItem subresource has been removed from OmnichannelSubscription and is now a standalone resource.
|
21
|
+
|
22
|
+
#### Deprecated Attribute:
|
23
|
+
* metadata has been deprecated from subscription.
|
24
|
+
|
25
|
+
|
1
26
|
### v2.46.0 (2024-11-14)
|
2
27
|
* * *
|
3
28
|
|
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-11-
|
7
|
+
s.version = '2.47.0'
|
8
|
+
s.date = '2024-11-27'
|
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 = {
|
@@ -89,6 +89,7 @@ Gem::Specification.new do |s|
|
|
89
89
|
lib/chargebee/models/model.rb
|
90
90
|
lib/chargebee/models/non_subscription.rb
|
91
91
|
lib/chargebee/models/omnichannel_subscription.rb
|
92
|
+
lib/chargebee/models/omnichannel_subscription_item.rb
|
92
93
|
lib/chargebee/models/omnichannel_transaction.rb
|
93
94
|
lib/chargebee/models/order.rb
|
94
95
|
lib/chargebee/models/payment_intent.rb
|
@@ -1,11 +1,8 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class OmnichannelSubscription < Model
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :omnichannel_subscription_items
|
4
|
+
attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :resource_version,
|
5
|
+
:omnichannel_subscription_items
|
9
6
|
|
10
7
|
# OPERATIONS
|
11
8
|
#-----------
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class OmnichannelSubscriptionItem < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :item_id_at_source, :status, :current_term_start, :current_term_end, :expired_at,
|
5
|
+
:expiration_reason, :cancelled_at, :cancellation_reason, :resource_version
|
6
|
+
|
7
|
+
# OPERATIONS
|
8
|
+
#-----------
|
9
|
+
|
10
|
+
end # ~OmnichannelSubscriptionItem
|
11
|
+
end # ~ChargeBee
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
10
10
|
end
|
11
11
|
|
12
12
|
attr_accessor :id, :customer_id, :app_id, :source, :status, :omnichannel_transaction_id, :created_at,
|
13
|
-
:linked_omnichannel_subscriptions, :error_detail
|
13
|
+
:resource_version, :linked_omnichannel_subscriptions, :error_detail
|
14
14
|
|
15
15
|
# OPERATIONS
|
16
16
|
#-----------
|
@@ -56,9 +56,13 @@ module ChargeBee
|
|
56
56
|
:offline_payment_method, :channel, :net_term_days, :active_id, :subscription_items, :item_tiers,
|
57
57
|
:charged_items, :due_invoices_count, :due_since, :total_dues, :mrr, :arr, :exchange_rate, :base_currency_code,
|
58
58
|
:addons, :event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address,
|
59
|
-
:referral_info, :invoice_notes, :meta_data, :
|
59
|
+
:referral_info, :invoice_notes, :meta_data, :deleted, :changes_scheduled_at, :contract_term,
|
60
60
|
:cancel_reason_code, :free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices,
|
61
|
-
:discounts, :business_entity_id
|
61
|
+
:discounts, :business_entity_id, :metadata
|
62
|
+
def metadata
|
63
|
+
warn "[DEPRECATION] `metadata` is deprecated please use meta_data instead."
|
64
|
+
@metadata
|
65
|
+
end
|
62
66
|
|
63
67
|
# OPERATIONS
|
64
68
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -433,8 +433,10 @@ module ChargeBee
|
|
433
433
|
end
|
434
434
|
|
435
435
|
def omnichannel_subscription()
|
436
|
-
omnichannel_subscription = get(:omnichannel_subscription, OmnichannelSubscription,
|
437
|
-
{:omnichannel_subscription_items =>
|
436
|
+
omnichannel_subscription = get(:omnichannel_subscription, OmnichannelSubscription, {},
|
437
|
+
{:omnichannel_subscription_items => OmnichannelSubscriptionItem});
|
438
|
+
omnichannel_subscription.init_dependant_list(@response[:omnichannel_subscription], :omnichannel_subscription_items,
|
439
|
+
{});
|
438
440
|
return omnichannel_subscription;
|
439
441
|
end
|
440
442
|
|
@@ -443,6 +445,11 @@ module ChargeBee
|
|
443
445
|
return omnichannel_transaction;
|
444
446
|
end
|
445
447
|
|
448
|
+
def omnichannel_subscription_item()
|
449
|
+
omnichannel_subscription_item = get(:omnichannel_subscription_item, OmnichannelSubscriptionItem);
|
450
|
+
return omnichannel_subscription_item;
|
451
|
+
end
|
452
|
+
|
446
453
|
def recorded_purchase()
|
447
454
|
recorded_purchase = get(:recorded_purchase, RecordedPurchase,
|
448
455
|
{:linked_omnichannel_subscriptions => RecordedPurchase::LinkedOmnichannelSubscription, :error_detail => RecordedPurchase::ErrorDetail});
|
data/lib/chargebee.rb
CHANGED
@@ -81,12 +81,12 @@ require File.dirname(__FILE__) + '/chargebee/models/payment_schedule_estimate'
|
|
81
81
|
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription'
|
82
82
|
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_transaction'
|
83
83
|
require File.dirname(__FILE__) + '/chargebee/models/recorded_purchase'
|
84
|
-
|
84
|
+
require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription_item'
|
85
85
|
|
86
86
|
|
87
87
|
module ChargeBee
|
88
88
|
|
89
|
-
VERSION = '2.
|
89
|
+
VERSION = '2.47.0'
|
90
90
|
|
91
91
|
@@default_env = nil
|
92
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.47.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-11-
|
12
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/chargebee/models/model.rb
|
163
163
|
- lib/chargebee/models/non_subscription.rb
|
164
164
|
- lib/chargebee/models/omnichannel_subscription.rb
|
165
|
+
- lib/chargebee/models/omnichannel_subscription_item.rb
|
165
166
|
- lib/chargebee/models/omnichannel_transaction.rb
|
166
167
|
- lib/chargebee/models/order.rb
|
167
168
|
- lib/chargebee/models/payment_intent.rb
|