chargebee 2.20.0 → 2.21.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 597fc1a63786c913dce021f6543a34b18fdfdf37
4
- data.tar.gz: dea300a96633c90cfebbae706332980f4776dc4e
3
+ metadata.gz: a221fbbe6d982ce79673e411063d99b938af834f
4
+ data.tar.gz: 412e79aa14676421a24fefb8525392c077d38a8d
5
5
  SHA512:
6
- metadata.gz: 5f16dbd970124daae33798ad87861980f38c42f41abca2245df0cdc5d7a7eb1219d607c558bc8ec38d34bc9db17ccb43517338a81541a38a23d0b8f53638d931
7
- data.tar.gz: cbed4282a3c1047eb7d276f02425f64832d700efd4be156b51631f6d2f27548633c55cff630d3af0b6b19d3414e45112fe964366ec209a18e54f868bd9ed0c07
6
+ metadata.gz: 74abdeff2a994c1ad33e26b89ba8703148ba87d1ce5c9d87119a8b1d5418a00bc96a037e8f4455fbc770ad6f2dc736a224d22e71cd4e658576d2c13334a31099
7
+ data.tar.gz: 1f98345ae5d8eed7cfdb9befb956775a89a953f2741e3e225c73a848c6909fe43abf5cef9caa55335ac589d1e1714ed04fc73d672bc4d6ed7271ad33e93175e0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ### v2.21.0 (2022-11-10)
2
+ * * *
3
+
4
+ #### New endpoints:
5
+ * credit_notes#import_credit_note has been added to the credit_notes resource.
6
+ * subscriptions#import_unbilled_charges has been added to the subscriptions resource.
7
+
8
+ #### New attributes:
9
+ * shipped_at parameter has been added to the orders#list_orders API.
10
+
11
+ #### Added input parameters:
12
+ * voided_at and void_reason_code have been added to the invoices#import_invoice API.
13
+
14
+ #### New attributes:
15
+ * business_entity_id has been added to the orders resource.
16
+
17
+ #### New Enum values:
18
+ * registered has been added to the status enum in credit_note_einvoice and invoice_einvoice subresources.
19
+ * type enum has been added to the subscription_discount subresource.
20
+ * subscription_entitlements_created has been added to the event_type enum.
21
+
22
+
1
23
  ### v2.20.0 (2022-09-20)
2
24
 
3
25
  #### New Resource:
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.20.0'
8
- s.date = '2022-09-20'
7
+ s.version = '2.21.0'
8
+ s.date = '2022-11-10'
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
 
@@ -53,7 +53,6 @@ Gem::Specification.new do |s|
53
53
  lib/chargebee/models/credit_note_estimate.rb
54
54
  lib/chargebee/models/customer.rb
55
55
  lib/chargebee/models/differential_price.rb
56
- lib/chargebee/models/discount.rb
57
56
  lib/chargebee/models/download.rb
58
57
  lib/chargebee/models/entitlement_override.rb
59
58
  lib/chargebee/models/estimate.rb
@@ -92,5 +92,9 @@ module ChargeBee
92
92
  Request.send('post', uri_path("credit_notes",id.to_s,"resend_einvoice"), {}, env, headers)
93
93
  end
94
94
 
95
+ def self.import_credit_note(params, env=nil, headers={})
96
+ Request.send('post', uri_path("credit_notes","import_credit_note"), params, env, headers)
97
+ end
98
+
95
99
  end # ~CreditNote
96
100
  end # ~ChargeBee
@@ -31,7 +31,7 @@ module ChargeBee
31
31
  Request.send('get', uri_path("item_prices",id.to_s), {}, env, headers)
32
32
  end
33
33
 
34
- def self.update(id, params={}, env=nil, headers={})
34
+ def self.update(id, params, env=nil, headers={})
35
35
  Request.send('post', uri_path("item_prices",id.to_s), params, env, headers)
36
36
  end
37
37
 
@@ -37,7 +37,7 @@ module ChargeBee
37
37
  :delivered_at, :shipped_at, :resource_version, :updated_at, :cancelled_at, :resent_status, :is_resent,
38
38
  :original_order_id, :order_line_items, :shipping_address, :billing_address, :discount, :sub_total,
39
39
  :total, :line_item_taxes, :line_item_discounts, :linked_credit_notes, :deleted, :currency_code,
40
- :is_gifted, :gift_note, :gift_id, :resend_reason, :resent_orders
40
+ :is_gifted, :gift_note, :gift_id, :resend_reason, :resent_orders, :business_entity_id
41
41
 
42
42
  # OPERATIONS
43
43
  #-----------
@@ -42,7 +42,7 @@ module ChargeBee
42
42
  end
43
43
 
44
44
  class Discount < Model
45
- attr_accessor :id, :invoice_name, :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
45
+ 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
46
46
  end
47
47
 
48
48
  attr_accessor :id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price, :setup_fee, :billing_period,
@@ -167,6 +167,10 @@ module ChargeBee
167
167
  Request.send('post', uri_path("subscriptions",id.to_s,"import_contract_term"), params, env, headers)
168
168
  end
169
169
 
170
+ def self.import_unbilled_charges(id, params, env=nil, headers={})
171
+ Request.send('post', uri_path("subscriptions",id.to_s,"import_unbilled_charges"), params, env, headers)
172
+ end
173
+
170
174
  def self.import_for_items(id, params, env=nil, headers={})
171
175
  Request.send('post', uri_path("customers",id.to_s,"import_for_items"), params, env, headers)
172
176
  end
data/lib/chargebee.rb CHANGED
@@ -53,7 +53,7 @@ require File.dirname(__FILE__) + '/chargebee/models/usage.rb'
53
53
 
54
54
  module ChargeBee
55
55
 
56
- VERSION = '2.20.0'
56
+ VERSION = '2.21.0'
57
57
 
58
58
  @@default_env = nil
59
59
  @@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.20.0
4
+ version: 2.21.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: 2022-09-20 00:00:00.000000000 Z
12
+ date: 2022-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -129,7 +129,6 @@ files:
129
129
  - lib/chargebee/models/credit_note_estimate.rb
130
130
  - lib/chargebee/models/customer.rb
131
131
  - lib/chargebee/models/differential_price.rb
132
- - lib/chargebee/models/discount.rb
133
132
  - lib/chargebee/models/download.rb
134
133
  - lib/chargebee/models/entitlement_override.rb
135
134
  - lib/chargebee/models/estimate.rb
@@ -1,12 +0,0 @@
1
- module ChargeBee
2
- class Discount < Model
3
-
4
- attr_accessor :id, :invoice_name, :percentage, :amount, :currency_code, :duration_type, :period,
5
- :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count,
6
- :coupon_id, :index
7
-
8
- # OPERATIONS
9
- #-----------
10
-
11
- end # ~Discount
12
- end # ~ChargeBee