chargebee 2.29.0 → 2.31.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 +40 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +3 -2
- data/lib/chargebee/models/csv_tax_rule.rb +19 -0
- data/lib/chargebee/models/payment_source.rb +6 -2
- data/lib/chargebee/models/quoted_charge.rb +1 -1
- data/lib/chargebee/models/quoted_subscription.rb +1 -1
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/result.rb +6 -1
- 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: 64f4251f26d17c34b6bebfc99dd71bfaefe2b500
|
4
|
+
data.tar.gz: 4a2e677272067e2a1a21e7750bfb4200ea7cb18a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc9700091cd6d512566218765d56e13fcd3e0b468e85bbdcce8e2037d6ae48c7a7f623f05da59f63c6910475f6157b73967544ebf2de16b458df8b2fd8135fd4
|
7
|
+
data.tar.gz: 5bfdccbb3e7eb2955e976178bf48aa9298ffe00aa7bf484e5eda794f2e4b85637d5dc132834205a324208d9b7c029a9f8014343bb6c25cd1bee9c72ad4916877
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,43 @@
|
|
1
|
+
### v2.31.0 (2023-09-26)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
#### New attributes:
|
5
|
+
* venmo has been added to the PaymentSource resource.
|
6
|
+
* proration_type has been added to the QuotedCharge, QuotedSubscription and Subscription resource.
|
7
|
+
|
8
|
+
#### New Enum values:
|
9
|
+
* ebanx has been added to Gateway.
|
10
|
+
* venmo has been added to Customer#TypeEnum.
|
11
|
+
* venmo has been added to PaymentMethodEnum.
|
12
|
+
* venmo has been added to PaymentMethodTypeEnum.
|
13
|
+
* venmo has been added to TypeEnum.
|
14
|
+
* venmo has been added to PaymentIntent#PaymentMethodTypeEnum.
|
15
|
+
|
16
|
+
#### New Input parameters:
|
17
|
+
* einvoicing_method has been added to HostedPage#CheckoutOneTimeForItemsRequest.
|
18
|
+
* einvoicing_method has been added to HostedPage#CheckoutNewForItemsRequest.
|
19
|
+
* additional_information has been added to PaymentSource#CardAdditionalInformation.
|
20
|
+
|
21
|
+
### v2.30.0 (2023-09-05)
|
22
|
+
* * *
|
23
|
+
|
24
|
+
#### New Resource:
|
25
|
+
* CsvTaxRule has been added.
|
26
|
+
|
27
|
+
#### New attributes:
|
28
|
+
* direct_debit_scheme has been added to the PaymentSource#PaymentSourceBankAccount resource.
|
29
|
+
|
30
|
+
#### New Enum :
|
31
|
+
* DirectDebitSchemeEnum has been added.
|
32
|
+
* Tax1JurisTypeEnum has been added.
|
33
|
+
* Tax2JurisTypeEnum has been added.
|
34
|
+
* Tax3JurisTypeEnum has been added.
|
35
|
+
* Tax4JurisTypeEnum has been added.
|
36
|
+
|
37
|
+
#### New Input parameters:
|
38
|
+
* avalara_tax_code, hsn_code, taxjar_product_code has been added to Invoice#AddChargeRequest.
|
39
|
+
|
40
|
+
|
1
41
|
### v2.29.0 (2023-07-31)
|
2
42
|
* * *
|
3
43
|
|
data/Gemfile.lock
CHANGED
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-
|
7
|
+
s.version = '2.31.0'
|
8
|
+
s.date = '2023-09-26'
|
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 = {
|
@@ -54,6 +54,7 @@ Gem::Specification.new do |s|
|
|
54
54
|
lib/chargebee/models/coupon_set.rb
|
55
55
|
lib/chargebee/models/credit_note.rb
|
56
56
|
lib/chargebee/models/credit_note_estimate.rb
|
57
|
+
lib/chargebee/models/csv_tax_rule.rb
|
57
58
|
lib/chargebee/models/customer.rb
|
58
59
|
lib/chargebee/models/differential_price.rb
|
59
60
|
lib/chargebee/models/discount.rb
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class CsvTaxRule < Model
|
3
|
+
|
4
|
+
attr_accessor :tax_profile_name, :country, :state, :zip_code, :zip_code_start, :zip_code_end,
|
5
|
+
:tax1_name, :tax1_rate, :tax1_juris_type, :tax1_juris_name, :tax1_juris_code, :tax2_name, :tax2_rate,
|
6
|
+
:tax2_juris_type, :tax2_juris_name, :tax2_juris_code, :tax3_name, :tax3_rate, :tax3_juris_type,
|
7
|
+
:tax3_juris_name, :tax3_juris_code, :tax4_name, :tax4_rate, :tax4_juris_type, :tax4_juris_name,
|
8
|
+
:tax4_juris_code, :status, :time_zone, :valid_from, :valid_till, :service_type, :rule_weight,
|
9
|
+
:overwrite
|
10
|
+
|
11
|
+
# OPERATIONS
|
12
|
+
#-----------
|
13
|
+
|
14
|
+
def self.create(params={}, env=nil, headers={})
|
15
|
+
Request.send('post', uri_path("csv_tax_rules"), params, env, headers)
|
16
|
+
end
|
17
|
+
|
18
|
+
end # ~CsvTaxRule
|
19
|
+
end # ~ChargeBee
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class BankAccount < Model
|
9
|
-
attr_accessor :last4, :name_on_account, :first_name, :last_name, :bank_name, :mandate_id, :account_type, :echeck_type, :account_holder_type, :email
|
9
|
+
attr_accessor :last4, :name_on_account, :first_name, :last_name, :direct_debit_scheme, :bank_name, :mandate_id, :account_type, :echeck_type, :account_holder_type, :email
|
10
10
|
end
|
11
11
|
|
12
12
|
class CustVoucherSource < Model
|
@@ -29,13 +29,17 @@ module ChargeBee
|
|
29
29
|
attr_accessor :email, :agreement_id
|
30
30
|
end
|
31
31
|
|
32
|
+
class Venmo < Model
|
33
|
+
attr_accessor :user_name
|
34
|
+
end
|
35
|
+
|
32
36
|
class Mandate < Model
|
33
37
|
attr_accessor :id, :subscription_id, :created_at
|
34
38
|
end
|
35
39
|
|
36
40
|
attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
|
37
41
|
:status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account,
|
38
|
-
:boleto, :billing_address, :amazon_payment, :upi, :paypal, :mandates, :deleted, :business_entity_id
|
42
|
+
:boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :mandates, :deleted, :business_entity_id
|
39
43
|
|
40
44
|
# OPERATIONS
|
41
45
|
#-----------
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class Addon < Model
|
9
|
-
attr_accessor :id, :quantity, :unit_price, :quantity_in_decimal, :unit_price_in_decimal, :service_period
|
9
|
+
attr_accessor :id, :quantity, :unit_price, :quantity_in_decimal, :unit_price_in_decimal, :proration_type, :service_period
|
10
10
|
end
|
11
11
|
|
12
12
|
class InvoiceItem < Model
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class QuotedSubscription < Model
|
3
3
|
|
4
4
|
class Addon < Model
|
5
|
-
attr_accessor :id, :quantity, :unit_price, :amount, :trial_end, :remaining_billing_cycles, :quantity_in_decimal, :unit_price_in_decimal, :amount_in_decimal
|
5
|
+
attr_accessor :id, :quantity, :unit_price, :amount, :trial_end, :remaining_billing_cycles, :quantity_in_decimal, :unit_price_in_decimal, :amount_in_decimal, :proration_type
|
6
6
|
end
|
7
7
|
|
8
8
|
class EventBasedAddon < Model
|
@@ -14,7 +14,7 @@ module ChargeBee
|
|
14
14
|
end
|
15
15
|
|
16
16
|
class Addon < Model
|
17
|
-
attr_accessor :id, :quantity, :unit_price, :amount, :trial_end, :remaining_billing_cycles, :quantity_in_decimal, :unit_price_in_decimal, :amount_in_decimal
|
17
|
+
attr_accessor :id, :quantity, :unit_price, :amount, :trial_end, :remaining_billing_cycles, :quantity_in_decimal, :unit_price_in_decimal, :amount_in_decimal, :proration_type
|
18
18
|
end
|
19
19
|
|
20
20
|
class EventBasedAddon < Model
|
data/lib/chargebee/result.rb
CHANGED
@@ -66,7 +66,7 @@ module ChargeBee
|
|
66
66
|
|
67
67
|
def payment_source()
|
68
68
|
payment_source = get(:payment_source, PaymentSource,
|
69
|
-
{:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :mandates => PaymentSource::Mandate});
|
69
|
+
{:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :mandates => PaymentSource::Mandate});
|
70
70
|
return payment_source;
|
71
71
|
end
|
72
72
|
|
@@ -355,6 +355,11 @@ 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
|
+
|
358
363
|
|
359
364
|
def unbilled_charges()
|
360
365
|
unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
|
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.31.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-
|
12
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- lib/chargebee/models/coupon_set.rb
|
128
128
|
- lib/chargebee/models/credit_note.rb
|
129
129
|
- lib/chargebee/models/credit_note_estimate.rb
|
130
|
+
- lib/chargebee/models/csv_tax_rule.rb
|
130
131
|
- lib/chargebee/models/customer.rb
|
131
132
|
- lib/chargebee/models/differential_price.rb
|
132
133
|
- lib/chargebee/models/discount.rb
|