chargebee 2.31.1 → 2.33.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: d37ea625e5a4d88572994a5bb068275cc9cdac0b
4
- data.tar.gz: 3c53db3993c9df8bc3c4caf2fbae82ff4698d35e
3
+ metadata.gz: c6db0cf1fa6d27d9811bf9f1bc349f881472d714
4
+ data.tar.gz: 5847634a85f9c1c1425f7030c14e1a87d624d6b1
5
5
  SHA512:
6
- metadata.gz: 29ba26e14427489f8793bab92f3c903a5b6c6c47e9557853cfb8cb248faef71e35e71077524ade60e82165b6c3aa373bea697a6c5ada616c2c86522eb802a761
7
- data.tar.gz: 010fd1a83c7da71d75f24db40e6e6549a554c5af0855c0fe90c305f8945dc2358b426336bf2f83a3c99a0055b8d15b3188afdd87f71c043e57edf03896171ab1
6
+ metadata.gz: b7ccc0f75bbecb3992f4632372051a40222068ebf053dc481f1a6b20f92651a7d1bea19e6e34c02edeb343c3a4caf66165cc5db1da2aeaa5d924a5546e610140
7
+ data.tar.gz: a2be218a7df4f31f91369d3b7c97d3e4ff7c7ccc3201ea182d06e26a152d9b60b4dc3630fa7a8b418254e102bac6790d3136b5df2c2c329ae3f85ec47d14c48d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,62 @@
1
+ ### v2.33.0 (2023-11-30)
2
+ * * *
3
+
4
+ #### New Enum values:
5
+ * swiss_reference has been added to PaymentReferenceNumber#TypeEnum.
6
+
7
+ #### New Input parameters:
8
+ * subscription[po_number] has been added to Quote#EditCreateSubForCustomerQuoteRequest in Quote resource.
9
+ * subscription[po_number] has been added to Quote#EditCreateSubCustomerQuoteForItemsRequest in Quote resource.
10
+
11
+ * * *
12
+
13
+ ### v2.32.0 (2023-10-31)
14
+ * * *
15
+
16
+ #### New attributes:
17
+ * statement_descriptor has been added to invoice resource.
18
+ * source has been added to the Hosted_Pages resource.
19
+
20
+ #### New Enum values:
21
+ * pay_com has been added to Gateway.
22
+ * pay_to, faster_payments, sepa_instant_transfer has been added to Customer#TypeEnum.
23
+ * pay_to, faster_payments, sepa_instant_transfer has been added to PaymentMethodEnum.
24
+ * pay_to, faster_payments, sepa_instant_transfer has been added to PaymentMethodTypeEnum.
25
+ * pay_to, faster_payments, sepa_instant_transfer has been added to TypeEnum.
26
+ * pay_to, faster_payments, sepa_instant_transfer, amazon_payments has been added to PaymentIntent#PaymentMethodTypeEnum.
27
+
28
+ #### New Input parameters:
29
+ * source has been added to HostedPage#CheckoutOneTimeForItemsRequest.
30
+ * source has been added to HostedPage#CheckoutNewForItemsRequest.
31
+ * source has been added to HostedPage#CheckoutExistingForItemsRequest.
32
+ * statement_descriptor_descriptor has been added to Invoice#CreateRequest.
33
+ * statement_descriptor_descriptor has been added to Invoice#CreateForChargeItemsAndChargesRequest.
34
+ * statement_descriptor_descriptor has been added to Invoice#UpdateDetailsRequest.
35
+ * statement_descriptor_additional_info has been added to Invoice#CreateRequest.
36
+ * statement_descriptor_additional_info has been added to Invoice#CreateForChargeItemsAndChargesRequest.
37
+ * statement_descriptor_additional_info has been added to Invoice#UpdateDetailsRequest.
38
+ * statement_descriptor_descriptor has been added to Subscription#CreateRequest.
39
+ * statement_descriptor_descriptor has been added to Subscription#CreateForCustomerRequest.
40
+ * statement_descriptor_descriptor has been added to Subscription#CreateWithItemsRequest.
41
+ * statement_descriptor_descriptor has been added to Subscription#UpdateRequest.
42
+ * statement_descriptor_descriptor has been added to Subscription#UpdateForItemsRequest.
43
+ * statement_descriptor_descriptor has been added to Subscription#ReactivateRequest.
44
+ * statement_descriptor_additional_info has been added to Subscription#CreateRequest.
45
+ * statement_descriptor_additional_info has been added to Subscription#CreateForCustomerRequest.
46
+ * statement_descriptor_additional_info has been added to Subscription#CreateWithItemsRequest.
47
+ * statement_descriptor_additional_info has been added to Subscription#UpdateRequest.
48
+ * statement_descriptor_additional_info has been added to Subscription#UpdateForItemsRequest.
49
+ * statement_descriptor_additional_info has been added to Subscription#ReactivateRequest.
50
+
51
+ #### Updates to old parameters:
52
+ * duration_type, discount_type in coupons has been made optional.
53
+ * proration_type in addons is now supported.
54
+ * csv_tax_rule has been removed.
55
+ * Tax1JurisTypeEnum has been removed.
56
+ * Tax2JurisTypeEnum has been removed.
57
+ * Tax3JurisTypeEnum has been removed.
58
+ * Tax4JurisTypeEnum has been removed.
59
+
1
60
  ### v2.31.1 (2023-10-09)
2
61
  * * *
3
62
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.31.1)
4
+ chargebee (2.33.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.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.1'
8
- s.date = '2023-10-09'
7
+ s.version = '2.33.0'
8
+ s.date = '2023-11-30'
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, :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
  #-----------
@@ -92,7 +92,7 @@ module ChargeBee
92
92
 
93
93
  def invoice()
94
94
  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, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice});
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});
96
96
  return invoice;
97
97
  end
98
98
 
@@ -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});
@@ -393,7 +387,7 @@ module ChargeBee
393
387
 
394
388
  def invoices()
395
389
  invoices = get_list(:invoices, Invoice,
396
- {: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, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice});
390
+ {: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});
397
391
  return invoices;
398
392
  end
399
393
 
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.1'
71
+ VERSION = '2.33.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.1
4
+ version: 2.33.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-09 00:00:00.000000000 Z
12
+ date: 2023-11-30 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