chargebee 2.27.0 → 2.28.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a71e6c217fdd4316a5090721f0effe7f5d5322b8
4
- data.tar.gz: 5a29c6d4e6824262bacf5632d910a650ee21e6e0
3
+ metadata.gz: 05f9c3ec4f1ff2e33d378f56a27e511d0b399528
4
+ data.tar.gz: 2b719615782c37002f70d6f63e2458d89f841374
5
5
  SHA512:
6
- metadata.gz: 4bf709864327f3e7c0688ea36132a1b2a42add682d2f1ba4dfca6b4ad254403a540bb0886a5c4163d86993b6dbc99f655bc6e9611a3d8f1b326f8564b2493f49
7
- data.tar.gz: 18383b2cb668d33f4fad8d4aee114b34a41fbfe6ec9cd2a5bfd2b95def7525f8e193019668d52a006f002bf48517a3791c1be0fd60074ded6a586c0eab0ceed7
6
+ metadata.gz: 5fc5b20f9d95df510c6b2323840c1b8db2788d0cb8bb88ab8444d8879b9ff49856150193d597a1264c8e5682a3d319c558adae4f802fcb13401f140991703d22
7
+ data.tar.gz: e6a3eccd9fa61cd526023a4cd01ba7b8a85e91082821a02f38335116f3e8b6041121b7ef364946949f393fcd9510fa541eb38b6230703ed8f3db3239d515a195
data/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ ### v2.28.0 (2023-06-30)
2
+ * * *
3
+
4
+ #### New endpoints:
5
+ * ViewVoucher#ViewVoucherRequest has been added to the HostedPage resource.
6
+ * InvoiceListPaymentReferenceNumbers#InvoiceListPaymentReferenceNumbersRequest has been added to the Invoice resource.
7
+
8
+ #### New Resource:
9
+ * PaymentReferenceNumber has been added.
10
+
11
+ #### New attributes:
12
+ * local_currency_exchange_rate has been added to the CreditNote and Invoice resource.
13
+
14
+ #### New Enum values:
15
+ * view_voucher has been added to Type enum in HostedPage resource.
16
+ * paused has been added in StoreStatus enum in InAppSubscription resource.
17
+ * metrics_global and windcave has been added in Gateway enum.
18
+
19
+
20
+ #### New Input parameters:
21
+ * payment_initiator has been added to Customers#CollectPaymentRequest.
22
+ * payment_initiator has been added to Invoice#CreateRequest.
23
+ * payment_initiator has been added to Invoice#ChargeRequest.
24
+ * payment_initiator has been added to Invoice#ChargeAddonRequest.
25
+ * payment_initiator has been added to Invoice#CollectPaymentRequest.
26
+ * payment_initiator has been added to Subscription#CreateRequest.
27
+ * payment_initiator has been added to Invoice#CreateForChargeItemRequest.
28
+ * payment_initiator has been added to Subscription#CreateForCustomerRequest.
29
+ * payment_initiator has been added to Subscription#CreateWithItemsRequest.
30
+ * payment_initiator has been added to Subscription#UpdateForItemsRequest.
31
+ * payment_initiator has been added to Subscription#ReactivateRequest.
32
+ * payment_initiator has been added to Subscription#ResumeRequest.
33
+ * payment_reference_numbers[id] has been added to Invoice#ImportInvoiceRequest.
34
+ * payment_reference_numbers[type] has been added to Invoice#ImportInvoiceRequest.
35
+ * payment_reference_numbers[number] has been added to Invoice#ImportInvoiceRequest.
36
+
37
+
1
38
  ### v2.27.0 (2023-05-31)
2
39
  * * *
3
40
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.27.0)
4
+ chargebee (2.28.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.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Chargebee Ruby Client Library - API V2
2
2
 
3
- [![gem](https://img.shields.io/gem/v/chargebee.svg?maxAge=2592000)](https://rubygems.org/gems/chargebee)
4
- [![gem](https://img.shields.io/gem/dtv/chargebee.svg?maxAge=2592000)](https://rubygems.org/gems/chargebee)
3
+ [![gem](https://img.shields.io/gem/v/chargebee.svg?maxAge=2)](https://rubygems.org/gems/chargebee)
4
+ [![gem](https://img.shields.io/gem/dtv/chargebee.svg?maxAge=2)](https://rubygems.org/gems/chargebee)
5
5
 
6
6
  This is the Ruby Library for integrating with Chargebee. Sign up for a Chargebee account [here](https://www.chargebee.com).
7
7
 
data/chargebee.gemspec CHANGED
@@ -4,10 +4,13 @@ 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.27.0'
8
- s.date = '2023-05-31'
7
+ s.version = '2.28.0'
8
+ s.date = '2023-06-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
+ s.metadata = {
12
+ "changelog_uri" => "https://github.com/chargebee/chargebee-ruby/blob/master/CHANGELOG.md"
13
+ }
11
14
 
12
15
  s.authors = ['Rajaraman S', 'Thiyagarajan T']
13
16
  s.email = ['rr@chargebee.com', 'thiyagu@chargebee.com']
@@ -76,6 +79,7 @@ Gem::Specification.new do |s|
76
79
  lib/chargebee/models/non_subscription.rb
77
80
  lib/chargebee/models/order.rb
78
81
  lib/chargebee/models/payment_intent.rb
82
+ lib/chargebee/models/payment_reference_number.rb
79
83
  lib/chargebee/models/payment_source.rb
80
84
  lib/chargebee/models/payment_voucher.rb
81
85
  lib/chargebee/models/plan.rb
@@ -50,8 +50,8 @@ 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, :create_reason_code, :vat_number_prefix,
54
- :business_entity_id, :shipping_address, :billing_address
53
+ :taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :local_currency_exchange_rate,
54
+ :create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address
55
55
 
56
56
  # OPERATIONS
57
57
  #-----------
@@ -53,7 +53,7 @@ module ChargeBee
53
53
  # OPERATIONS
54
54
  #-----------
55
55
 
56
- def self.create(params, env=nil, headers={})
56
+ def self.create(params={}, env=nil, headers={})
57
57
  Request.send('post', uri_path("customers"), params, env, headers)
58
58
  end
59
59
 
@@ -65,7 +65,7 @@ module ChargeBee
65
65
  Request.send('get', uri_path("customers",id.to_s), {}, env, headers)
66
66
  end
67
67
 
68
- def self.update(id, params, env=nil, headers={})
68
+ def self.update(id, params={}, env=nil, headers={})
69
69
  Request.send('post', uri_path("customers",id.to_s), params, env, headers)
70
70
  end
71
71
 
@@ -102,5 +102,9 @@ module ChargeBee
102
102
  Request.send('post', uri_path("hosted_pages","events"), params, env, headers)
103
103
  end
104
104
 
105
+ def self.view_voucher(params, env=nil, headers={})
106
+ Request.send('post', uri_path("hosted_pages","view_voucher"), params, env, headers)
107
+ end
108
+
105
109
  end # ~HostedPage
106
110
  end # ~ChargeBee
@@ -69,12 +69,12 @@ module ChargeBee
69
69
  :price_type, :date, :due_date, :net_term_days, :exchange_rate, :currency_code, :total, :amount_paid,
70
70
  :amount_adjusted, :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status,
71
71
  :next_retry_at, :voided_at, :resource_version, :updated_at, :sub_total, :sub_total_in_local_currency,
72
- :total_in_local_currency, :local_currency_code, :tax, :first_invoice, :new_sales_amount, :has_advance_charges,
73
- :term_finalized, :is_gifted, :generated_at, :expected_payment_date, :amount_to_collect, :round_off_amount,
74
- :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :line_item_tiers, :linked_payments,
75
- :dunning_attempts, :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders,
76
- :notes, :shipping_address, :billing_address, :einvoice, :payment_owner, :void_reason_code, :deleted,
77
- :vat_number_prefix, :channel, :business_entity_id
72
+ :total_in_local_currency, :local_currency_code, :tax, :local_currency_exchange_rate, :first_invoice,
73
+ :new_sales_amount, :has_advance_charges, :term_finalized, :is_gifted, :generated_at, :expected_payment_date,
74
+ :amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts, :taxes,
75
+ :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, :vat_number_prefix, :channel, :business_entity_id
78
78
 
79
79
  # OPERATIONS
80
80
  #-----------
@@ -147,6 +147,10 @@ module ChargeBee
147
147
  Request.send('get', uri_path("invoices",id.to_s,"download_einvoice"), {}, env, headers)
148
148
  end
149
149
 
150
+ def self.list_payment_reference_numbers(params={}, env=nil, headers={})
151
+ Request.send('get', uri_path("invoices","payment_reference_numbers"), params, env, headers)
152
+ end
153
+
150
154
  def self.add_charge(id, params, env=nil, headers={})
151
155
  Request.send('post', uri_path("invoices",id.to_s,"add_charge"), params, env, headers)
152
156
  end
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class PaymentReferenceNumber < Model
3
+
4
+ attr_accessor :id, :type, :number, :invoice_id
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~PaymentReferenceNumber
10
+ end # ~ChargeBee
@@ -96,6 +96,11 @@ module ChargeBee
96
96
  return invoice;
97
97
  end
98
98
 
99
+ def payment_reference_number()
100
+ payment_reference_number = get(:payment_reference_number, PaymentReferenceNumber);
101
+ return payment_reference_number;
102
+ end
103
+
99
104
  def tax_withheld()
100
105
  tax_withheld = get(:tax_withheld, TaxWithheld);
101
106
  return tax_withheld;
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.27.0'
71
+ VERSION = '2.28.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.27.0
4
+ version: 2.28.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-05-31 00:00:00.000000000 Z
12
+ date: 2023-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -152,6 +152,7 @@ files:
152
152
  - lib/chargebee/models/non_subscription.rb
153
153
  - lib/chargebee/models/order.rb
154
154
  - lib/chargebee/models/payment_intent.rb
155
+ - lib/chargebee/models/payment_reference_number.rb
155
156
  - lib/chargebee/models/payment_source.rb
156
157
  - lib/chargebee/models/payment_voucher.rb
157
158
  - lib/chargebee/models/plan.rb
@@ -188,7 +189,8 @@ files:
188
189
  homepage: https://apidocs.chargebee.com/api/docs?lang=ruby
189
190
  licenses:
190
191
  - MIT
191
- metadata: {}
192
+ metadata:
193
+ changelog_uri: https://github.com/chargebee/chargebee-ruby/blob/master/CHANGELOG.md
192
194
  post_install_message:
193
195
  rdoc_options:
194
196
  - --charset=UTF-8