chargebee 2.44.0 → 2.44.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44da361071398b749b3cfe048a50212229dc63d5
4
- data.tar.gz: 61146139b6c738cdec5dfd56365896c0ab8ebcc6
3
+ metadata.gz: 3621b2495d5b64a5507c2cdd14d16971bf3e763b
4
+ data.tar.gz: 49fc6659643194faadec24341e5796ab8c1d7215
5
5
  SHA512:
6
- metadata.gz: 2d3d45972fb75a39b58c075ede16dd7478a883b7aff76777434bbe7b803f25d4f31aee680f44898fbcab524943b6a23761f326a5af414aeb2445bc92c69c8a3a
7
- data.tar.gz: 9f0ebf9ce1b70a1d5d59c0f7001a02701bc9aacf1a5dbbbfecb1eb766321c02e90084cb6286a6cd41716525f9e31b3265d2d2a9d646f9c5f0d2e546babcac890
6
+ metadata.gz: 578e9cdb85549a4078c8260822c377c7f728db26d3ad207c639a6e7082209b4197a9d569cbb8cca0bf30295883a61a71578ee8a3e2d77252344585e852329f20
7
+ data.tar.gz: 384b676a1a73e51ae91de6a6ba9378088586ba3b642470080ee6025a6129106cc3d44b4f4b35f841c928ae9e77cb0b9516b7da6e8dd805ecfd0ddd56557f42f2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### v2.44.1 (2024-10-03)
2
+ * * *
3
+
4
+ #### Bug Fixes:
5
+ * metadata field not working bug fixed.
6
+ * meta_data field not working bug fixed.
7
+
1
8
  ### v2.44.0 (2024-09-19)
2
9
  * * *
3
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.44.0)
4
+ chargebee (2.44.1)
5
5
  cgi (>= 0.1.0, < 1.0.0)
6
6
  json_pure (~> 2.1)
7
7
  rest-client (>= 1.8, <= 2.0.2)
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.44.0'
8
- s.date = '2024-09-19'
7
+ s.version = '2.44.1'
8
+ s.date = '2024-10-03'
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 = {
@@ -6,7 +6,9 @@ module ChargeBee
6
6
  case value
7
7
  when Hash
8
8
  value.each do |k, v|
9
- if(v.kind_of? Hash or v.kind_of? Array)
9
+ if k == :metadata or k == :meta_data # metadata is encoded as a JSON string instead of URL-encoded.
10
+ serialized.merge!({k.to_s => as_str(v)})
11
+ elsif(v.kind_of? Hash or v.kind_of? Array)
10
12
  serialized.merge!(serialize(v, k))
11
13
  else
12
14
  key = "#{(prefix!=nil) ? prefix:''}#{(prefix!=nil) ? '['+k.to_s+']' : k}#{(idx != nil) ? '['+idx.to_s+']':''}"
@@ -17,7 +19,7 @@ module ChargeBee
17
19
  value.each_with_index do |v, i|
18
20
  serialized.merge!(serialize(v, prefix, i))
19
21
  end
20
- else
22
+ else
21
23
  if(idx != nil and prefix != nil)
22
24
  key = "#{prefix}[#{idx.to_s}]"
23
25
  serialized.merge!({key => as_str(value)})
data/lib/chargebee.rb CHANGED
@@ -80,7 +80,7 @@ require File.dirname(__FILE__) + '/chargebee/models/payment_schedule_scheme'
80
80
 
81
81
  module ChargeBee
82
82
 
83
- VERSION = '2.44.0'
83
+ VERSION = '2.44.1'
84
84
 
85
85
  @@default_env = nil
86
86
  @@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.44.0
4
+ version: 2.44.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-19 00:00:00.000000000 Z
12
+ date: 2024-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure