chargebee 2.7.6 → 2.7.7

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: 0d1697ee7e0779a671fed4f4f6c77100785fcf04
4
- data.tar.gz: cee6253ca4e7dff1e75d9898f409516fa2b9c9ed
3
+ metadata.gz: 0a86afbbccc98cebdfdf122d9e43b6e29e9e07b2
4
+ data.tar.gz: 08657bbdabfacc738bf5e9349334f63631d7b4da
5
5
  SHA512:
6
- metadata.gz: f925f2914c34a272ef96042a33449ef827082b0da3c67553381d1ae1699f08dcbf68abaf723d07f70b02505666c2791deea7dd3ba06e69e852fcf5628116ddc1
7
- data.tar.gz: 6bee679cda91c92e4b45950a5d32fcda834bfa7d5538c884333d7f461cc20bbe22d8988bfcd7f492fc60298116d7329cc5231c79dc408c4e0ba2182293ee19ef
6
+ metadata.gz: 79ebacdc410d7016ca2ec274f97fc09ca99e1faebbb953c39b8a595d7c18f7aa7bcfb6782414b54acd38cc445fcab0219297c4b0af69cc9297004634096aabe4
7
+ data.tar.gz: 16db58b42afde1518519a32a8e71309703bfb20cf2cd1be4971902a21e8d55b7b5db6c3d7a490be6fcf03f8749e2592c385b90b92cc428b78f1d9d71ae6e600a
@@ -1,3 +1,31 @@
1
+ ### v2.7.7 (2020-09-09)
2
+ * * *
3
+
4
+ * New input parameter currency_code is added in list_addons, list_coupons, list_plans, export_plans, export_addons, export_coupons apis
5
+ * New attributes powered_by has been added in card resource
6
+ * New input parameters subscription[free_period], subscription[free_period_unit] have been added in create_subscription_estimate, create_subscription_for_a_customer_estimate, update_subscription_estimate apis
7
+ * Input parameter invoice[customer_id] is made optional in create_invoice_estimate api
8
+ * Input parameter customer_id is made optional in create_an_invoice
9
+ * Attribute created_at in dunning_attempts is made optional in the invoice resource
10
+ * New attributes free_period and free_period_unit have been added in the Subscription resource
11
+ * New enum type free_period_unit has been added with the values:
12
+ DAY,
13
+ WEEK,
14
+ MONTH,
15
+ YEAR
16
+ * New enum type powered_by has been added in card resource with the values:
17
+ IDEAL,
18
+ SOFORT,
19
+ BANCONTACT,
20
+ GIROPAY,
21
+ NOT_APPLICABLE
22
+ * New endpoint import_contract_term has been added to the subscription resource
23
+ * Attributes status, amount and date inside the linked_payment are made optional in the transaction resource
24
+ * New endpoint delete has been added to the virtual_bank_account resource
25
+ * New values GIROPAY and DOTPAY have been added to the payment_method_types enum
26
+ * New values PAYMENT_SOURCE_EXPIRING and PAYMENT_SOURCE_EXPIRED have been added to the event_type enums
27
+ * New value PAYPAL has been added to the gateway enum
28
+
1
29
  ### v2.7.6 (2020-07-15)
2
30
  * * *
3
31
 
@@ -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.7.6'
8
- s.date = '2020-07-15'
7
+ s.version = '2.7.7'
8
+ s.date = '2020-09-09'
9
9
 
10
10
  s.summary = "Ruby client for Chargebee API."
11
11
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
@@ -47,7 +47,7 @@ require File.dirname(__FILE__) + '/chargebee/models/payment_intent.rb'
47
47
 
48
48
  module ChargeBee
49
49
 
50
- VERSION = '2.7.6'
50
+ VERSION = '2.7.7'
51
51
 
52
52
  @@default_env = nil
53
53
  @@verify_ca_certs = true
@@ -4,7 +4,8 @@ module ChargeBee
4
4
  attr_accessor :payment_source_id, :status, :gateway, :gateway_account_id, :ref_tx_id, :first_name,
5
5
  :last_name, :iin, :last4, :card_type, :funding_type, :expiry_month, :expiry_year, :issuing_country,
6
6
  :billing_addr1, :billing_addr2, :billing_city, :billing_state_code, :billing_state, :billing_country,
7
- :billing_zip, :created_at, :resource_version, :updated_at, :ip_address, :customer_id, :masked_number
7
+ :billing_zip, :created_at, :resource_version, :updated_at, :ip_address, :powered_by, :customer_id,
8
+ :masked_number
8
9
 
9
10
  # OPERATIONS
10
11
  #-----------
@@ -47,7 +47,7 @@ module ChargeBee
47
47
  Request.send('post', uri_path("estimates","gift_subscription"), params, env, headers)
48
48
  end
49
49
 
50
- def self.create_invoice(params, env=nil, headers={})
50
+ def self.create_invoice(params={}, env=nil, headers={})
51
51
  Request.send('post', uri_path("estimates","create_invoice"), params, env, headers)
52
52
  end
53
53
 
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class Hierarchy < Model
3
3
 
4
- attr_accessor :parent_id, :payment_owner_id, :invoice_owner_id, :customer_id, :children_ids
4
+ attr_accessor :customer_id, :parent_id, :payment_owner_id, :invoice_owner_id, :children_ids
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -74,7 +74,7 @@ module ChargeBee
74
74
  # OPERATIONS
75
75
  #-----------
76
76
 
77
- def self.create(params, env=nil, headers={})
77
+ def self.create(params={}, env=nil, headers={})
78
78
  Request.send('post', uri_path("invoices"), params, env, headers)
79
79
  end
80
80
 
@@ -38,7 +38,7 @@ module ChargeBee
38
38
  :auto_collection, :due_invoices_count, :due_since,
39
39
  :total_dues, :mrr, :exchange_rate, :base_currency_code, :addons, :event_based_addons, :charged_event_based_addons,
40
40
  :coupon, :coupons, :shipping_address, :referral_info, :invoice_notes, :meta_data, :deleted,
41
- :contract_term, :cancel_reason_code
41
+ :contract_term, :cancel_reason_code, :free_period, :free_period_unit
42
42
 
43
43
  # OPERATIONS
44
44
  #-----------
@@ -91,10 +91,6 @@ module ChargeBee
91
91
  Request.send('post', uri_path("subscriptions",id.to_s,"change_term_end"), params, env, headers)
92
92
  end
93
93
 
94
- def self.cancel(id, params={}, env=nil, headers={})
95
- Request.send('post', uri_path("subscriptions",id.to_s,"cancel"), params, env, headers)
96
- end
97
-
98
94
  def self.reactivate(id, params={}, env=nil, headers={})
99
95
  Request.send('post', uri_path("subscriptions",id.to_s,"reactivate"), params, env, headers)
100
96
  end
@@ -119,6 +115,10 @@ module ChargeBee
119
115
  Request.send('post', uri_path("customers",id.to_s,"import_subscription"), params, env, headers)
120
116
  end
121
117
 
118
+ def self.import_contract_term(id, params={}, env=nil, headers={})
119
+ Request.send('post', uri_path("subscriptions",id.to_s,"import_contract_term"), params, env, headers)
120
+ end
121
+
122
122
  def self.override_billing_profile(id, params={}, env=nil, headers={})
123
123
  Request.send('post', uri_path("subscriptions",id.to_s,"override_billing_profile"), params, env, headers)
124
124
  end
@@ -131,6 +131,10 @@ module ChargeBee
131
131
  Request.send('post', uri_path("subscriptions",id.to_s,"pause"), params, env, headers)
132
132
  end
133
133
 
134
+ def self.cancel(id, params={}, env=nil, headers={})
135
+ Request.send('post', uri_path("subscriptions",id.to_s,"cancel"), params, env, headers)
136
+ end
137
+
134
138
  def self.resume(id, params={}, env=nil, headers={})
135
139
  Request.send('post', uri_path("subscriptions",id.to_s,"resume"), params, env, headers)
136
140
  end
@@ -24,6 +24,10 @@ module ChargeBee
24
24
  Request.send_list_request('get', uri_path("virtual_bank_accounts"), params, env, headers)
25
25
  end
26
26
 
27
+ def self.delete(id, env=nil, headers={})
28
+ Request.send('post', uri_path("virtual_bank_accounts",id.to_s,"delete"), {}, env, headers)
29
+ end
30
+
27
31
  def self.delete_local(id, env=nil, headers={})
28
32
  Request.send('post', uri_path("virtual_bank_accounts",id.to_s,"delete_local"), {}, env, headers)
29
33
  end
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.7.6
4
+ version: 2.7.7
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: 2020-07-15 00:00:00.000000000 Z
12
+ date: 2020-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure