chargebee 2.31.0 → 2.32.0

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: 64f4251f26d17c34b6bebfc99dd71bfaefe2b500
4
- data.tar.gz: 4a2e677272067e2a1a21e7750bfb4200ea7cb18a
3
+ metadata.gz: b70c788f513a89f1f310fc5d1017f934849d2f58
4
+ data.tar.gz: 25a736e8ea91608f1148378d4da2793ee1b7be7f
5
5
  SHA512:
6
- metadata.gz: cc9700091cd6d512566218765d56e13fcd3e0b468e85bbdcce8e2037d6ae48c7a7f623f05da59f63c6910475f6157b73967544ebf2de16b458df8b2fd8135fd4
7
- data.tar.gz: 5bfdccbb3e7eb2955e976178bf48aa9298ffe00aa7bf484e5eda794f2e4b85637d5dc132834205a324208d9b7c029a9f8014343bb6c25cd1bee9c72ad4916877
6
+ metadata.gz: bc485f2ee3d16cd61c18e4918fc431ac98ee005481e37c876d5c070db85daac5656fb441b3ade8ed8ec7aae0240238b6334bdaabc3bd15dfc567346cacd03c03
7
+ data.tar.gz: 95870e29828912176d01647df380dcf17848e9a36460cf2ee91e4f9bb7ea04efe00a4796441834a28adfc65426c33220da3adb30c63c0236b00e003bdf8f5264
data/CHANGELOG.md CHANGED
@@ -1,3 +1,56 @@
1
+ ### v2.32.0 (2023-10-31)
2
+ * * *
3
+
4
+ #### New attributes:
5
+ * statement_descriptor has been added to invoice resource.
6
+ * source has been added to the Hosted_Pages resource.
7
+
8
+ #### New Enum values:
9
+ * pay_com has been added to Gateway.
10
+ * pay_to, faster_payments, sepa_instant_transfer has been added to Customer#TypeEnum.
11
+ * pay_to, faster_payments, sepa_instant_transfer has been added to PaymentMethodEnum.
12
+ * pay_to, faster_payments, sepa_instant_transfer has been added to PaymentMethodTypeEnum.
13
+ * pay_to, faster_payments, sepa_instant_transfer has been added to TypeEnum.
14
+ * pay_to, faster_payments, sepa_instant_transfer, amazon_payments has been added to PaymentIntent#PaymentMethodTypeEnum.
15
+
16
+ #### New Input parameters:
17
+ * source has been added to HostedPage#CheckoutOneTimeForItemsRequest.
18
+ * source has been added to HostedPage#CheckoutNewForItemsRequest.
19
+ * source has been added to HostedPage#CheckoutExistingForItemsRequest.
20
+ * statement_descriptor_descriptor has been added to Invoice#CreateRequest.
21
+ * statement_descriptor_descriptor has been added to Invoice#CreateForChargeItemsAndChargesRequest.
22
+ * statement_descriptor_descriptor has been added to Invoice#UpdateDetailsRequest.
23
+ * statement_descriptor_additional_info has been added to Invoice#CreateRequest.
24
+ * statement_descriptor_additional_info has been added to Invoice#CreateForChargeItemsAndChargesRequest.
25
+ * statement_descriptor_additional_info has been added to Invoice#UpdateDetailsRequest.
26
+ * statement_descriptor_descriptor has been added to Subscription#CreateRequest.
27
+ * statement_descriptor_descriptor has been added to Subscription#CreateForCustomerRequest.
28
+ * statement_descriptor_descriptor has been added to Subscription#CreateWithItemsRequest.
29
+ * statement_descriptor_descriptor has been added to Subscription#UpdateRequest.
30
+ * statement_descriptor_descriptor has been added to Subscription#UpdateForItemsRequest.
31
+ * statement_descriptor_descriptor has been added to Subscription#ReactivateRequest.
32
+ * statement_descriptor_additional_info has been added to Subscription#CreateRequest.
33
+ * statement_descriptor_additional_info has been added to Subscription#CreateForCustomerRequest.
34
+ * statement_descriptor_additional_info has been added to Subscription#CreateWithItemsRequest.
35
+ * statement_descriptor_additional_info has been added to Subscription#UpdateRequest.
36
+ * statement_descriptor_additional_info has been added to Subscription#UpdateForItemsRequest.
37
+ * statement_descriptor_additional_info has been added to Subscription#ReactivateRequest.
38
+
39
+ #### Updates to old parameters:
40
+ * duration_type, discount_type in coupons has been made optional.
41
+ * proration_type in addons is now supported.
42
+ * csv_tax_rule has been removed.
43
+ * Tax1JurisTypeEnum has been removed.
44
+ * Tax2JurisTypeEnum has been removed.
45
+ * Tax3JurisTypeEnum has been removed.
46
+ * Tax4JurisTypeEnum has been removed.
47
+
48
+ ### v2.31.1 (2023-10-09)
49
+ * * *
50
+
51
+ * Fixed URI encoded isue.
52
+
53
+
1
54
  ### v2.31.0 (2023-09-26)
2
55
  * * *
3
56
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.31.0)
4
+ chargebee (2.32.0)
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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![gem](https://img.shields.io/gem/v/chargebee.svg?maxAge=2)](https://rubygems.org/gems/chargebee)
4
4
  [![gem](https://img.shields.io/gem/dtv/chargebee.svg?maxAge=2)](https://rubygems.org/gems/chargebee)
5
5
 
6
- This is the Ruby Library for integrating with Chargebee. Sign up for a Chargebee account [here](https://www.chargebee.com).
6
+ This is the Ruby Library for integrating with Chargebee. Sign up for a Chargebee account {here}[https://www.chargebee.com].
7
7
 
8
8
  Chargebee now supports two API versions - [V1](https://apidocs.chargebee.com/docs/api/v1) and [V2](https://apidocs.chargebee.com/docs/api), of which V2 is the latest release and all future developments will happen in V2. This library is for <b>API version V2</b>. If you’re looking for V1, head to [chargebee-v1 branch](https://github.com/chargebee/chargebee-ruby/tree/chargebee-v1).
9
9
 
data/README.rdoc ADDED
@@ -0,0 +1,41 @@
1
+ = Chargebee Ruby Client Library - API V2
2
+
3
+ {<img src="https://img.shields.io/gem/v/chargebee.svg?maxAge=2592000"/>}[https://rubygems.org/gems/chargebee]
4
+ {<img src="https://img.shields.io/gem/dtv/chargebee.svg?maxAge=2592000"/>}[https://rubygems.org/gems/chargebee]
5
+
6
+ This is the Ruby Library for integrating with Chargebee. Sign up for a Chargebee account {here}[https://www.chargebee.com].
7
+
8
+ Chargebee now supports two API versions - {V1}[https://apidocs.chargebee.com/docs/api/v1] and {V2}[https://apidocs.chargebee.com/docs/api], of which V2 is the latest release and all future developments will happen in V2. This library is for <b>API version V2</b>. If you’re looking for V1, head to {chargebee-v1 branch}[https://github.com/chargebee/chargebee-ruby/tree/chargebee-v1].
9
+
10
+ == Installation
11
+
12
+ Install the latest version of the gem with the following command...
13
+
14
+ $ sudo gem install chargebee -v '~>2'
15
+
16
+
17
+ == Requirements
18
+
19
+ * Ruby 1.9.3 or above.
20
+ * rest-client
21
+
22
+ == Documentation
23
+
24
+ For API reference see {here}[https://apidocs.chargebee.com/docs/api?lang=ruby]
25
+
26
+ == Usage
27
+
28
+ To create a new subscription:
29
+
30
+ ChargeBee.configure({:api_key => "your_api_key" , :site => "your_site"})
31
+ result = ChargeBee::Subscription.create({
32
+ :id => "sub_KyVqDh__dev__NTn4VZZ1",
33
+ :plan_id => "basic",
34
+ })
35
+ subscription = result.subscription
36
+ puts "created subscription is #{subscription}"
37
+
38
+ == License
39
+
40
+ See the LICENSE file.
41
+
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.31.0'
8
- s.date = '2023-09-26'
7
+ s.version = '2.32.0'
8
+ s.date = '2023-10-31'
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 = {
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.authors = ['Rajaraman S', 'Thiyagarajan T']
16
16
  s.email = ['rr@chargebee.com', 'thiyagu@chargebee.com']
17
- s.homepage = 'https://apidocs.chargebee.com/api/docs?lang=ruby'
17
+ s.homepage = 'https://apidocs.chargebee.com/docs/api?lang=ruby'
18
18
  s.license = 'MIT'
19
19
 
20
20
  s.require_paths = %w[lib]
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
35
35
  Gemfile.lock
36
36
  LICENSE
37
37
  README.md
38
+ README.rdoc
38
39
  Rakefile
39
40
  chargebee.gemspec
40
41
  lib/chargebee.rb
@@ -57,6 +57,10 @@ module ChargeBee
57
57
  attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
58
58
  end
59
59
 
60
+ class StatementDescriptor < Model
61
+ attr_accessor :id, :descriptor, :additional_info
62
+ end
63
+
60
64
  class BillingAddress < Model
61
65
  attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
62
66
  end
@@ -73,8 +77,9 @@ module ChargeBee
73
77
  :new_sales_amount, :has_advance_charges, :term_finalized, :is_gifted, :generated_at, :expected_payment_date,
74
78
  :amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts, :taxes,
75
79
  :line_item_taxes, :line_item_tiers, :linked_payments, :dunning_attempts, :applied_credits, :adjustment_credit_notes,
76
- :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address, :einvoice,
77
- :payment_owner, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel, :business_entity_id
80
+ :issued_credit_notes, :linked_orders, :notes, :shipping_address, :statement_descriptor, :billing_address,
81
+ :einvoice, :payment_owner, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel,
82
+ :business_entity_id
78
83
 
79
84
  # OPERATIONS
80
85
  #-----------
@@ -57,7 +57,7 @@ module ChargeBee
57
57
  if(path.nil? || path.strip.length < 1)
58
58
  raise "Id is empty or nil"
59
59
  end
60
- url = "#{url}/#{CGI.escape(path.strip)}"
60
+ url = "#{url}/#{CGI.escape(path.strip).gsub("%2F", "/")}"
61
61
  end
62
62
  return url
63
63
  end
@@ -355,12 +355,6 @@ module ChargeBee
355
355
  return payment_voucher;
356
356
  end
357
357
 
358
- def csv_tax_rule()
359
- csv_tax_rule = get(:csv_tax_rule, CsvTaxRule);
360
- return csv_tax_rule;
361
- end
362
-
363
-
364
358
  def unbilled_charges()
365
359
  unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
366
360
  {:tiers => UnbilledCharge::Tier});
data/lib/chargebee.rb CHANGED
@@ -68,7 +68,7 @@ require File.dirname(__FILE__) + '/chargebee/models/token.rb'
68
68
 
69
69
  module ChargeBee
70
70
 
71
- VERSION = '2.31.0'
71
+ VERSION = '2.32.0'
72
72
 
73
73
  @@default_env = nil
74
74
  @@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.31.0
4
+ version: 2.32.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: 2023-09-26 00:00:00.000000000 Z
12
+ date: 2023-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -108,6 +108,7 @@ files:
108
108
  - Gemfile.lock
109
109
  - LICENSE
110
110
  - README.md
111
+ - README.rdoc
111
112
  - Rakefile
112
113
  - chargebee.gemspec
113
114
  - lib/chargebee.rb
@@ -187,7 +188,7 @@ files:
187
188
  - spec/errors_spec.rb
188
189
  - spec/sample_response.rb
189
190
  - spec/spec_helper.rb
190
- homepage: https://apidocs.chargebee.com/api/docs?lang=ruby
191
+ homepage: https://apidocs.chargebee.com/docs/api?lang=ruby
191
192
  licenses:
192
193
  - MIT
193
194
  metadata: