chargebee 2.28.0 → 2.30.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 +54 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +3 -2
- data/lib/chargebee/models/addon.rb +3 -2
- data/lib/chargebee/models/credit_note.rb +1 -1
- data/lib/chargebee/models/csv_tax_rule.rb +19 -0
- data/lib/chargebee/models/invoice.rb +1 -1
- data/lib/chargebee/models/model.rb +1 -1
- data/lib/chargebee/models/payment_source.rb +1 -1
- data/lib/chargebee/models/quote.rb +2 -2
- data/lib/chargebee/result.rb +5 -0
- 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: 244d02a55f14671695dfddc05ad167abd9e52d46
|
|
4
|
+
data.tar.gz: 96affd59534c4a4494ca8d645698d09bf818018a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbc9d49396efe6d75e2e709e4c5a3c4b6fb1e40def13559d1356df66e3edb501bb3f6ba4bf15485a402cf93cc5c6fd38ef6dae7e40b94a2dd93fa15c71a75624
|
|
7
|
+
data.tar.gz: bcd01bddf107f925e7243005501fd48490e3d77018fe1a1398ac2bb4e625c3cf215f22cadde0d006c68db9b89c8b083ece267cc3065e5f2bc930b6394889eedc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
### v2.30.0 (2023-09-05)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
#### New Resource:
|
|
5
|
+
* CsvTaxRule has been added.
|
|
6
|
+
|
|
7
|
+
#### New attributes:
|
|
8
|
+
* direct_debit_scheme has been added to the PaymentSource#PaymentSourceBankAccount resource.
|
|
9
|
+
|
|
10
|
+
#### New Enum :
|
|
11
|
+
* DirectDebitSchemeEnum has been added.
|
|
12
|
+
* Tax1JurisTypeEnum has been added.
|
|
13
|
+
* Tax2JurisTypeEnum has been added.
|
|
14
|
+
* Tax3JurisTypeEnum has been added.
|
|
15
|
+
* Tax4JurisTypeEnum has been added.
|
|
16
|
+
|
|
17
|
+
#### New Input parameters:
|
|
18
|
+
* avalara_tax_code, hsn_code, taxjar_product_code has been added to Invoice#AddChargeRequest.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### v2.29.0 (2023-07-31)
|
|
22
|
+
* * *
|
|
23
|
+
|
|
24
|
+
#### Fixes:
|
|
25
|
+
* Fixed URI Encoder issue.
|
|
26
|
+
|
|
27
|
+
#### New Attributes:
|
|
28
|
+
* tax_category has been added to the CreditNote, Quote and Invoice resource.
|
|
29
|
+
* proration_type has been added in Addon resource.
|
|
30
|
+
|
|
31
|
+
#### New Enum values:
|
|
32
|
+
* tax has been added to EntityType enum in Invoice resource.
|
|
33
|
+
* payment_source_locally_deleted has been added to EventType.
|
|
34
|
+
|
|
35
|
+
#### New Input parameters:
|
|
36
|
+
|
|
37
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#CreateRequest in Subscritpion resource.
|
|
38
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#CreateForCustomerRequest in Subscritpion resource.
|
|
39
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#CreateWithItemsRequest in Subscritpion resource.
|
|
40
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#UpdateRequest in Subscritpion resource.
|
|
41
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#UpdateForItemsRequest in Subscritpion resource.
|
|
42
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#ImportSubscriptionRequest in Subscritpion resource.
|
|
43
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#ImportForCustomerRequest in Subscritpion resource.
|
|
44
|
+
* CouponId and CouponApplyTill has been added to Subscritpion#ImportForItemsRequest in Subscritpion resource.
|
|
45
|
+
* cancel_reason_code has been added to Subscritpion#ImportForItemsRequest in Subscritpion resource.
|
|
46
|
+
* proration_type has been added in addon#createRequest and addon#UpdateRequest in Addon resource.
|
|
47
|
+
* addons[proration_type] has been added in Estimate#UpdateSubscriptionRequest in Estimate resource.
|
|
48
|
+
* addons[proration_type] has been added in Subscription#UpdateRequest in Subscritpion resource.
|
|
49
|
+
|
|
50
|
+
#### New Enum Class:
|
|
51
|
+
* ProrationType enum has been added to addon resource.
|
|
52
|
+
* ProrationType enum has been added.
|
|
53
|
+
|
|
54
|
+
|
|
1
55
|
### v2.28.0 (2023-06-30)
|
|
2
56
|
* * *
|
|
3
57
|
|
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.30.0'
|
|
8
|
+
s.date = '2023-09-05'
|
|
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
|
|
@@ -10,8 +10,9 @@ module ChargeBee
|
|
|
10
10
|
:tax_code, :hsn_code, :taxjar_product_code, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type,
|
|
11
11
|
:sku, :accounting_code, :accounting_category1, :accounting_category2, :accounting_category3,
|
|
12
12
|
:accounting_category4, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
|
|
13
|
-
:resource_version, :updated_at, :price_in_decimal, :included_in_mrr, :channel, :
|
|
14
|
-
:taxable, :tax_profile_id, :meta_data, :tiers, :show_description_in_invoices,
|
|
13
|
+
:resource_version, :updated_at, :price_in_decimal, :included_in_mrr, :channel, :proration_type,
|
|
14
|
+
:invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers, :show_description_in_invoices,
|
|
15
|
+
:show_description_in_quotes
|
|
15
16
|
|
|
16
17
|
# OPERATIONS
|
|
17
18
|
#-----------
|
|
@@ -50,7 +50,7 @@ module ChargeBee
|
|
|
50
50
|
:amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
|
|
51
51
|
:channel, :einvoice, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code,
|
|
52
52
|
:round_off_amount, :fractional_correction, :line_items, :discounts, :line_item_discounts, :line_item_tiers,
|
|
53
|
-
:taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :local_currency_exchange_rate,
|
|
53
|
+
:taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate,
|
|
54
54
|
:create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address
|
|
55
55
|
|
|
56
56
|
# OPERATIONS
|
|
@@ -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
|
|
@@ -74,7 +74,7 @@ module ChargeBee
|
|
|
74
74
|
:amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts, :taxes,
|
|
75
75
|
:line_item_taxes, :line_item_tiers, :linked_payments, :dunning_attempts, :applied_credits, :adjustment_credit_notes,
|
|
76
76
|
:issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address, :einvoice,
|
|
77
|
-
:payment_owner, :void_reason_code, :deleted, :vat_number_prefix, :channel, :business_entity_id
|
|
77
|
+
:payment_owner, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel, :business_entity_id
|
|
78
78
|
|
|
79
79
|
# OPERATIONS
|
|
80
80
|
#-----------
|
|
@@ -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)}"
|
|
61
61
|
end
|
|
62
62
|
return url
|
|
63
63
|
end
|
|
@@ -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
|
|
@@ -37,8 +37,8 @@ module ChargeBee
|
|
|
37
37
|
:operation_type, :vat_number, :price_type, :valid_till, :date, :total_payable, :charge_on_acceptance,
|
|
38
38
|
:sub_total, :total, :credits_applied, :amount_paid, :amount_due, :version, :resource_version,
|
|
39
39
|
:updated_at, :vat_number_prefix, :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes,
|
|
40
|
-
:line_item_tiers, :currency_code, :notes, :shipping_address, :billing_address,
|
|
41
|
-
:contract_term_end, :contract_term_termination_fee, :business_entity_id
|
|
40
|
+
:line_item_tiers, :tax_category, :currency_code, :notes, :shipping_address, :billing_address,
|
|
41
|
+
:contract_term_start, :contract_term_end, :contract_term_termination_fee, :business_entity_id
|
|
42
42
|
|
|
43
43
|
# OPERATIONS
|
|
44
44
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
|
@@ -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.30.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-05 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
|