chargebee 2.31.1 → 2.32.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 +4 -4
- data/CHANGELOG.md +47 -0
- data/Gemfile.lock +1 -1
- data/README.rdoc +41 -0
- data/chargebee.gemspec +3 -2
- data/lib/chargebee/models/invoice.rb +7 -2
- data/lib/chargebee/result.rb +0 -6
- data/lib/chargebee.rb +1 -1
- 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: b70c788f513a89f1f310fc5d1017f934849d2f58
|
|
4
|
+
data.tar.gz: 25a736e8ea91608f1148378d4da2793ee1b7be7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc485f2ee3d16cd61c18e4918fc431ac98ee005481e37c876d5c070db85daac5656fb441b3ade8ed8ec7aae0240238b6334bdaabc3bd15dfc567346cacd03c03
|
|
7
|
+
data.tar.gz: 95870e29828912176d01647df380dcf17848e9a36460cf2ee91e4f9bb7ea04efe00a4796441834a28adfc65426c33220da3adb30c63c0236b00e003bdf8f5264
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
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
|
+
|
|
1
48
|
### v2.31.1 (2023-10-09)
|
|
2
49
|
* * *
|
|
3
50
|
|
data/Gemfile.lock
CHANGED
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.
|
|
8
|
-
s.date = '2023-10-
|
|
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 = {
|
|
@@ -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, :
|
|
77
|
-
:payment_owner, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel,
|
|
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
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
|
@@ -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
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.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-10-
|
|
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
|