chargebee 2.38.1 → 2.39.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +58 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +4 -2
- data/lib/chargebee/models/business_entity.rb +18 -0
- data/lib/chargebee/models/business_entity_transfer.rb +11 -0
- data/lib/chargebee/models/credit_note.rb +6 -1
- data/lib/chargebee/models/entitlement_override.rb +2 -1
- data/lib/chargebee/models/invoice.rb +5 -1
- data/lib/chargebee/result.rb +15 -10
- data/lib/chargebee.rb +3 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: febec613dcb696d64ff571a2eb8792a05c767821
|
4
|
+
data.tar.gz: 36286b11714bdf543122ed585f23b4181e6bb348
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ef53ba3d7f301127b123967a07b1e2d87c68a472c8df5352ec078d3830a20baad4dd3960ae9d5d7ed0dda2fe56d2a2579e89e23d286e472a3c797b14930a8e9
|
7
|
+
data.tar.gz: 25290bf87ea32fe60092468e9595afa5029286005a28143684b0908b69e92176d318cae8dce7ca8b3ad80e0cd4bf54a4411a4a5b7b51d44124625d8b3a084710
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,61 @@
|
|
1
|
+
### v2.39.1 (2024-05-28)
|
2
|
+
* * *
|
3
|
+
* Ruby chargebee.rb Import Issue - bugfix
|
4
|
+
|
5
|
+
### v2.39.0 (2024-05-28)
|
6
|
+
* * *
|
7
|
+
|
8
|
+
#### New resources:
|
9
|
+
* BusinessEntity has been added.
|
10
|
+
* BusinessEntity Transfer has been added.
|
11
|
+
|
12
|
+
|
13
|
+
#### New Enum values:
|
14
|
+
* NUVEI has been added in Gateway enum.
|
15
|
+
|
16
|
+
|
17
|
+
#### New Attributes:
|
18
|
+
* site_details_at_creation has been added to CreditNote.
|
19
|
+
* site_details_at_creation has been added to Invoice.
|
20
|
+
|
21
|
+
|
22
|
+
#### New Input parameters:
|
23
|
+
* tax_providers_fields[provider_name] has been added to Addon#CreateRequest, Addon#UpdateRequest.
|
24
|
+
* tax_providers_fields[field_id] has been added to Addon#CreateRequest, Addon#UpdateRequest.
|
25
|
+
* tax_providers_fields[field_value] has been added to Addon#CreateRequest, #UpdateRequest.
|
26
|
+
|
27
|
+
* tax_providers_fields[provider_name] has been added to Customer#CreateRequest, Customer#UpdateRequest, Customer#MoveRequest.
|
28
|
+
* tax_providers_fields[field_id] has been added to Customer#CreateRequest, Customer#UpdateRequest, Customer#MoveRequest.
|
29
|
+
* tax_providers_fields[field_value] has been added to Customer#CreateRequest, Customer#UpdateRequest, Customer#MoveRequest..
|
30
|
+
|
31
|
+
* tax_providers_fields[provider_name] has been added to Estimate#CreateSubscriptionRequest, Estimate#CreateSubItemEstimateRequest, Estimate#CreateInvoiceRequest, CreateInvoiceForItemsRequest.
|
32
|
+
* tax_providers_fields[field_id] has been added to Estimate#CreateSubscriptionRequest, Estimate#CreateSubItemEstimateRequest, Estimate#CreateInvoiceRequest, CreateInvoiceForItemsRequest.
|
33
|
+
* tax_providers_fields[field_value] has been added to Estimate#CreateSubscriptionRequest, Estimate#CreateSubItemEstimateRequest, Estimate#CreateInvoiceRequest, CreateInvoiceForItemsRequest.
|
34
|
+
|
35
|
+
* tax_providers_fields[provider_name] has been added to Invoice#CreateRequest, Invoice#CreateForChargeItemsAndChargesRequest, Invoice#ChargeRequest.
|
36
|
+
* tax_providers_fields[field_id] has been added to Invoice#CreateRequest, Invoice#CreateForChargeItemsAndChargesRequest, Invoice#ChargeRequest.
|
37
|
+
* tax_providers_fields[field_value] has been added to Invoice#CreateRequest, Invoice#CreateForChargeItemsAndChargesRequest, Invoice#ChargeRequest.
|
38
|
+
|
39
|
+
* tax_providers_fields[provider_name] has been added to ItemPrice#CreateRequest, ItemPrice#UpdateRequest.
|
40
|
+
* tax_providers_fields[field_id] has been added to ItemPrice#CreateRequest, ItemPrice#UpdateRequest.
|
41
|
+
* tax_providers_fields[field_value] has been added to ItemPrice#CreateRequest, ItemPrice#UpdateRequest.
|
42
|
+
|
43
|
+
* tax_providers_fields[provider_name] has been added to Plan#CreateRequest, Plan#UpdateRequest.
|
44
|
+
* tax_providers_fields[field_id] has been added to Plan#CreateRequest, Plan#UpdateRequest.
|
45
|
+
* tax_providers_fields[field_value] has been added to Plan#CreateRequest, Plan#UpdateRequest.
|
46
|
+
|
47
|
+
* tax_providers_fields[provider_name] has been added to Quote#EditOneTimeQuoteRequest, Quote#CreateForOnetimeChargesRequest, Quote#CreateForChargeItemsAndChargesRequest, Quote#EditForChargeItemsAndChargesRequest.
|
48
|
+
* tax_providers_fields[field_id] has been added to Quote#EditOneTimeQuoteRequest, Quote#CreateForOnetimeChargesRequest, Quote#CreateForChargeItemsAndChargesRequest, Quote#EditForChargeItemsAndChargesRequest.
|
49
|
+
* tax_providers_fields[field_value] has been added to Quote#EditOneTimeQuoteRequest, Quote#CreateForOnetimeChargesRequest, Quote#CreateForChargeItemsAndChargesRequest, Quote#EditForChargeItemsAndChargesRequest.
|
50
|
+
|
51
|
+
* tax_providers_fields[provider_name] has been added to UnbilledCharge#CreateUnbilledChargeRequest, UnbilledCharge#CreateRequest.
|
52
|
+
* tax_providers_fields[field_id] has been added to UnbilledCharge#CreateUnbilledChargeRequest, UnbilledCharge#CreateRequest.
|
53
|
+
* tax_providers_fields[field_value] has been added to UnbilledCharge#CreateUnbilledChargeRequest, UnbilledCharge#CreateRequest.
|
54
|
+
|
55
|
+
* line_items[entity_type] has been added to CreditNote#CreateRequest.
|
56
|
+
* line_items[entity_id] has been added to CreditNote#CreateRequest.
|
57
|
+
|
58
|
+
|
1
59
|
### v2.38.1 (2024-05-02)
|
2
60
|
* * *
|
3
61
|
|
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 = '2024-05-
|
7
|
+
s.version = '2.39.1'
|
8
|
+
s.date = '2024-05-28'
|
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 = {
|
@@ -47,6 +47,8 @@ Gem::Specification.new do |s|
|
|
47
47
|
lib/chargebee/models/advance_invoice_schedule.rb
|
48
48
|
lib/chargebee/models/attached_item.rb
|
49
49
|
lib/chargebee/models/attribute.rb
|
50
|
+
lib/chargebee/models/business_entity.rb
|
51
|
+
lib/chargebee/models/business_entity_transfer.rb
|
50
52
|
lib/chargebee/models/card.rb
|
51
53
|
lib/chargebee/models/comment.rb
|
52
54
|
lib/chargebee/models/contact.rb
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class BusinessEntity < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :name, :status, :deleted, :created_at, :resource_version, :updated_at
|
5
|
+
|
6
|
+
# OPERATIONS
|
7
|
+
#-----------
|
8
|
+
|
9
|
+
def self.create_transfers(params, env=nil, headers={})
|
10
|
+
Request.send('post', uri_path("business_entities","transfers"), params, env, headers)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.get_transfers(params={}, env=nil, headers={})
|
14
|
+
Request.send('get', uri_path("business_entities","transfers"), params, env, headers)
|
15
|
+
end
|
16
|
+
|
17
|
+
end # ~BusinessEntity
|
18
|
+
end # ~ChargeBee
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class BusinessEntityTransfer < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :resource_type, :resource_id, :active_resource_id, :destination_business_entity_id,
|
5
|
+
:source_business_entity_id, :reason_code, :created_at
|
6
|
+
|
7
|
+
# OPERATIONS
|
8
|
+
#-----------
|
9
|
+
|
10
|
+
end # ~BusinessEntityTransfer
|
11
|
+
end # ~ChargeBee
|
@@ -45,13 +45,18 @@ module ChargeBee
|
|
45
45
|
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
46
46
|
end
|
47
47
|
|
48
|
+
class SiteDetailsAtCreation < Model
|
49
|
+
attr_accessor :timezone, :organization_address
|
50
|
+
end
|
51
|
+
|
48
52
|
attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
|
49
53
|
:status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
|
50
54
|
:amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
|
51
55
|
:channel, :einvoice, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code,
|
52
56
|
:round_off_amount, :fractional_correction, :line_items, :discounts, :line_item_discounts, :line_item_tiers,
|
53
57
|
:taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate,
|
54
|
-
:create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address
|
58
|
+
:create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address,
|
59
|
+
:site_details_at_creation
|
55
60
|
|
56
61
|
# OPERATIONS
|
57
62
|
#-----------
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class EntitlementOverride < Model
|
3
3
|
|
4
|
-
attr_accessor :id, :entity_id, :entity_type, :feature_id, :feature_name, :value, :name, :expires_at
|
4
|
+
attr_accessor :id, :entity_id, :entity_type, :feature_id, :feature_name, :value, :name, :expires_at,
|
5
|
+
:effective_from, :schedule_status
|
5
6
|
|
6
7
|
# OPERATIONS
|
7
8
|
#-----------
|
@@ -69,6 +69,10 @@ module ChargeBee
|
|
69
69
|
attr_accessor :id, :reference_number, :status, :message
|
70
70
|
end
|
71
71
|
|
72
|
+
class SiteDetailsAtCreation < Model
|
73
|
+
attr_accessor :timezone, :organization_address
|
74
|
+
end
|
75
|
+
|
72
76
|
attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
|
73
77
|
:price_type, :date, :due_date, :net_term_days, :exchange_rate, :currency_code, :total, :amount_paid,
|
74
78
|
:amount_adjusted, :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status,
|
@@ -79,7 +83,7 @@ module ChargeBee
|
|
79
83
|
:line_item_taxes, :line_item_tiers, :linked_payments, :dunning_attempts, :applied_credits, :adjustment_credit_notes,
|
80
84
|
:issued_credit_notes, :linked_orders, :notes, :shipping_address, :statement_descriptor, :billing_address,
|
81
85
|
:einvoice, :payment_owner, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel,
|
82
|
-
:business_entity_id
|
86
|
+
:business_entity_id, :site_details_at_creation
|
83
87
|
|
84
88
|
# OPERATIONS
|
85
89
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -59,6 +59,11 @@ module ChargeBee
|
|
59
59
|
return contact;
|
60
60
|
end
|
61
61
|
|
62
|
+
def business_entity_transfer()
|
63
|
+
business_entity_transfer = get(:business_entity_transfer, BusinessEntityTransfer);
|
64
|
+
return business_entity_transfer;
|
65
|
+
end
|
66
|
+
|
62
67
|
def token()
|
63
68
|
token = get(:token, Token);
|
64
69
|
return token;
|
@@ -92,7 +97,7 @@ module ChargeBee
|
|
92
97
|
|
93
98
|
def invoice()
|
94
99
|
invoice = get(:invoice, Invoice,
|
95
|
-
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice});
|
100
|
+
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
|
96
101
|
return invoice;
|
97
102
|
end
|
98
103
|
|
@@ -108,7 +113,7 @@ module ChargeBee
|
|
108
113
|
|
109
114
|
def credit_note()
|
110
115
|
credit_note = get(:credit_note, CreditNote,
|
111
|
-
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress});
|
116
|
+
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :site_details_at_creation => CreditNote::SiteDetailsAtCreation});
|
112
117
|
return credit_note;
|
113
118
|
end
|
114
119
|
|
@@ -361,16 +366,16 @@ module ChargeBee
|
|
361
366
|
return in_app_subscription;
|
362
367
|
end
|
363
368
|
|
364
|
-
def non_subscription()
|
365
|
-
non_subscription = get(:non_subscription, NonSubscription);
|
366
|
-
return non_subscription;
|
367
|
-
end
|
368
|
-
|
369
369
|
def entitlement_override()
|
370
370
|
entitlement_override = get(:entitlement_override, EntitlementOverride);
|
371
371
|
return entitlement_override;
|
372
372
|
end
|
373
373
|
|
374
|
+
def business_entity()
|
375
|
+
business_entity = get(:business_entity, BusinessEntity);
|
376
|
+
return business_entity;
|
377
|
+
end
|
378
|
+
|
374
379
|
def purchase()
|
375
380
|
purchase = get(:purchase, Purchase);
|
376
381
|
return purchase;
|
@@ -419,7 +424,7 @@ module ChargeBee
|
|
419
424
|
|
420
425
|
def invoices()
|
421
426
|
invoices = get_list(:invoices, Invoice,
|
422
|
-
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice});
|
427
|
+
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
|
423
428
|
return invoices;
|
424
429
|
end
|
425
430
|
|
@@ -429,9 +434,9 @@ module ChargeBee
|
|
429
434
|
return differential_prices;
|
430
435
|
end
|
431
436
|
|
432
|
-
def credit_notes()
|
437
|
+
def credit_notes()
|
433
438
|
credit_notes = get_list(:credit_notes, CreditNote,
|
434
|
-
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress});
|
439
|
+
{:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress, :site_details_at_creation => CreditNote::SiteDetailsAtCreation});
|
435
440
|
return credit_notes;
|
436
441
|
end
|
437
442
|
|
data/lib/chargebee.rb
CHANGED
@@ -70,10 +70,12 @@ require File.dirname(__FILE__) + '/chargebee/models/non_subscription.rb'
|
|
70
70
|
require File.dirname(__FILE__) + '/chargebee/models/price_variant'
|
71
71
|
require File.dirname(__FILE__) + '/chargebee/models/installment_detail'
|
72
72
|
require File.dirname(__FILE__) + '/chargebee/models/ramp'
|
73
|
+
require File.dirname(__FILE__) + '/chargebee/models/business_entity'
|
74
|
+
require File.dirname(__FILE__) + '/chargebee/models/business_entity_transfer'
|
73
75
|
|
74
76
|
module ChargeBee
|
75
77
|
|
76
|
-
VERSION = '2.
|
78
|
+
VERSION = '2.39.1'
|
77
79
|
|
78
80
|
@@default_env = nil
|
79
81
|
@@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.
|
4
|
+
version: 2.39.1
|
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: 2024-05-
|
12
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -120,6 +120,8 @@ files:
|
|
120
120
|
- lib/chargebee/models/advance_invoice_schedule.rb
|
121
121
|
- lib/chargebee/models/attached_item.rb
|
122
122
|
- lib/chargebee/models/attribute.rb
|
123
|
+
- lib/chargebee/models/business_entity.rb
|
124
|
+
- lib/chargebee/models/business_entity_transfer.rb
|
123
125
|
- lib/chargebee/models/card.rb
|
124
126
|
- lib/chargebee/models/comment.rb
|
125
127
|
- lib/chargebee/models/contact.rb
|