chargebee 2.22.1 → 2.24.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: c5a7c5444eef8f778ac71564329902bb4d3c07b7
4
- data.tar.gz: f93a82253589e893326644a85ab11e08e36283a4
3
+ metadata.gz: 0a9362e4ef388e73d2664362adfc29ad58156c08
4
+ data.tar.gz: 813149625fe51364a45da1c0e8fd97bd78ceb818
5
5
  SHA512:
6
- metadata.gz: 71ef6a9a6647bce6cf2b03e4e8caa164dcdd058cc03ed340052893d8a8ebf0f817d95d28bae1174ff1a6e4c06f627229d1e7ac6e848338dcb4441166a3b4018c
7
- data.tar.gz: 128a887dc89956e44e6c2d355270968ff99250e8bb488356f7e956fdf7688687506b8d2c34ba15b6f75dece6f8024c20cb6f70e1220b8cba3512f7b9c90ceff7
6
+ metadata.gz: 65f7645d7b39d76d4c234828616995ddb03159978a0cf542b2732cafb81dab70923ee50d41c1ac893294197faff4870a729191702ee9578f6d9ecaa21e662b44
7
+ data.tar.gz: 90c6412b8612dd53ad6a1d4c7eb54a4da0067e81aacb6814531329c27ebdf82c03d50ec853c8f29e834e0a76802cb44f03455218bc72687c5a50b40902682dc6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,58 @@
1
+ ### v2.24.0 (2023-03-24)
2
+ * * *
3
+
4
+ #### Fixes:
5
+ * Fixed list_discounts subscriptions API error.
6
+
7
+ #### New Attributes:
8
+ * Einvoice#reference_number has been added to the credit_note resource.
9
+ * Einvoice#reference_number has been added to the invoice resource.
10
+ * einvoicing_method has been added to the customer resource.
11
+ * store_status and invoice_id have been addded to the in_app_subscriptions resource.
12
+
13
+ #### Added Input Parameters:
14
+ * UpdateForItemsRequestParams#discount_quantity and UpdateRequestParams#discount_quantity parameter has been added to the coupon resource.
15
+ * UpdateBillingInfoRequestParams#einvoicing_method and CreateRequestParams#einvoicing_method parameter has been added to the customer resource.
16
+ * CreateCustomerParams#einvoicing_method , UpdateCustomerParams#einvoicing_metho and UpdateForItemsCustomerParams#einvoicing_method parameter has been added to the Subscription resource.
17
+ * CreateSubscriptionInfoParams#meta_data parameter has been added to the purchase resource.
18
+
19
+ #### New Endpoints:
20
+ * credit_note#send_einvoice has been added to the CreditNote resource.
21
+ * invoice#send_einvoice has been added to the Invoice resource.
22
+ * in_app_subscriptions#import_subscription and in_app_subscriptions#retrieve_store_subs requests have been added to the in_app_subscriptions resource.
23
+
24
+ #### New Enum Class:
25
+ * EinvoicingMethod has been added.
26
+ * StoreStatus has been added in in_app_subscriptions resource.
27
+
28
+
29
+
30
+ ### v2.23.0 (2023-02-17)
31
+ * * *
32
+
33
+ #### New Attributes:
34
+ * resource_version and updated_at parameter has been added to the tax_withheld resource.
35
+
36
+ #### Added input parameters:
37
+ * ListRequestParams#updated_at parameter has been added to attached_item resource.
38
+ * AttachedItemsAttachedItemParams#updated_at parameter has been added to export resource.
39
+ * CheckoutGiftRequestParams#coupon_ids parameter has been added to hosted_page resource.
40
+ * ProcessReceiptCustomerParams#email, ProcessReceiptCustomerParams#first_name and ProcessReceiptCustomerParams#last_name parameters has been added to in_app_subscription resource.
41
+
42
+ #### New endpoints:
43
+ * invoice#record_tax_withheld and invoice#remove_tax_withheld has been added to the invoice resource.
44
+ * credit_note#remove_tax_withheld_refund has been added to the credit_note resource.
45
+
46
+ #### New Enum values:
47
+ * custom has been added to payment_method Enum.
48
+ * ecentric has been added to gateway Enum.
49
+
50
+ #### Removed input parameters:
51
+ * EstimateRequestParams#EstimateInvoiceInfoParams parameter has been removed from purchase resource.
52
+
53
+ #### Deprecated input parameters:
54
+ * CheckoutGiftRequest#coupon parameter have been deprecated in hosted_page resource.
55
+
1
56
  ### v2.22.1 (2023-01-13)
2
57
  * * *
3
58
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.22.1)
4
+ chargebee (2.24.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/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.22.1'
8
- s.date = '2023-01-13'
7
+ s.version = '2.24.0'
8
+ s.date = '2023-03-24'
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
 
@@ -53,6 +53,7 @@ Gem::Specification.new do |s|
53
53
  lib/chargebee/models/credit_note_estimate.rb
54
54
  lib/chargebee/models/customer.rb
55
55
  lib/chargebee/models/differential_price.rb
56
+ lib/chargebee/models/discount.rb
56
57
  lib/chargebee/models/download.rb
57
58
  lib/chargebee/models/entitlement_override.rb
58
59
  lib/chargebee/models/estimate.rb
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class CreditNote < Model
3
3
 
4
4
  class Einvoice < Model
5
- attr_accessor :id, :status, :message
5
+ attr_accessor :id, :reference_number, :status, :message
6
6
  end
7
7
 
8
8
  class LineItem < Model
@@ -96,10 +96,18 @@ module ChargeBee
96
96
  Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers)
97
97
  end
98
98
 
99
+ def self.remove_tax_withheld_refund(id, params, env=nil, headers={})
100
+ Request.send('post', uri_path("credit_notes",id.to_s,"remove_tax_withheld_refund"), params, env, headers)
101
+ end
102
+
99
103
  def self.resend_einvoice(id, env=nil, headers={})
100
104
  Request.send('post', uri_path("credit_notes",id.to_s,"resend_einvoice"), {}, env, headers)
101
105
  end
102
106
 
107
+ def self.send_einvoice(id, env=nil, headers={})
108
+ Request.send('post', uri_path("credit_notes",id.to_s,"send_einvoice"), {}, env, headers)
109
+ end
110
+
103
111
  def self.import_credit_note(params, env=nil, headers={})
104
112
  Request.send('post', uri_path("credit_notes","import_credit_note"), params, env, headers)
105
113
  end
@@ -45,8 +45,8 @@ module ChargeBee
45
45
  :card_status, :fraud_flag, :primary_payment_source_id, :backup_payment_source_id, :billing_address,
46
46
  :referral_urls, :contacts, :payment_method, :invoice_notes, :business_entity_id, :preferred_currency_code,
47
47
  :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments, :balances, :entity_identifiers,
48
- :is_einvoice_enabled, :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type,
49
- :business_customer_without_vat_number, :client_profile_id, :relationship, :use_default_hierarchy_settings,
48
+ :is_einvoice_enabled, :einvoicing_method, :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing,
49
+ :customer_type, :business_customer_without_vat_number, :client_profile_id, :relationship, :use_default_hierarchy_settings,
50
50
  :parent_account_access, :child_account_access, :vat_number_prefix, :entity_identifier_scheme,
51
51
  :entity_identifier_standard
52
52
 
@@ -0,0 +1,12 @@
1
+ module ChargeBee
2
+ class Discount < Model
3
+
4
+ attr_accessor :id, :invoice_name, :type, :percentage, :amount, :currency_code, :duration_type,
5
+ :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till,
6
+ :applied_count, :coupon_id, :index
7
+
8
+ # OPERATIONS
9
+ #-----------
10
+
11
+ end # ~Discount
12
+ end # ~ChargeBee
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class InAppSubscription < Model
3
3
 
4
- attr_accessor :app_id, :subscription_id, :customer_id, :plan_id
4
+ attr_accessor :app_id, :subscription_id, :customer_id, :plan_id, :store_status, :invoice_id
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -14,5 +14,13 @@ module ChargeBee
14
14
  Request.send('post', uri_path("in_app_subscriptions",id.to_s,"import_receipt"), params, env, headers)
15
15
  end
16
16
 
17
+ def self.import_subscription(id, params, env=nil, headers={})
18
+ Request.send('post', uri_path("in_app_subscriptions",id.to_s,"import_subscription"), params, env, headers)
19
+ end
20
+
21
+ def self.retrieve_store_subs(id, params, env=nil, headers={})
22
+ Request.send('post', uri_path("in_app_subscriptions",id.to_s,"retrieve"), params, env, headers)
23
+ end
24
+
17
25
  end # ~InAppSubscription
18
26
  end # ~ChargeBee
@@ -62,7 +62,7 @@ module ChargeBee
62
62
  end
63
63
 
64
64
  class Einvoice < Model
65
- attr_accessor :id, :status, :message
65
+ attr_accessor :id, :reference_number, :status, :message
66
66
  end
67
67
 
68
68
  attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
@@ -171,6 +171,14 @@ module ChargeBee
171
171
  Request.send('post', uri_path("invoices",id.to_s,"record_payment"), params, env, headers)
172
172
  end
173
173
 
174
+ def self.record_tax_withheld(id, params, env=nil, headers={})
175
+ Request.send('post', uri_path("invoices",id.to_s,"record_tax_withheld"), params, env, headers)
176
+ end
177
+
178
+ def self.remove_tax_withheld(id, params, env=nil, headers={})
179
+ Request.send('post', uri_path("invoices",id.to_s,"remove_tax_withheld"), params, env, headers)
180
+ end
181
+
174
182
  def self.refund(id, params={}, env=nil, headers={})
175
183
  Request.send('post', uri_path("invoices",id.to_s,"refund"), params, env, headers)
176
184
  end
@@ -207,5 +215,9 @@ module ChargeBee
207
215
  Request.send('post', uri_path("invoices",id.to_s,"resend_einvoice"), {}, env, headers)
208
216
  end
209
217
 
218
+ def self.send_einvoice(id, env=nil, headers={})
219
+ Request.send('post', uri_path("invoices",id.to_s,"send_einvoice"), {}, env, headers)
220
+ end
221
+
210
222
  end # ~Invoice
211
223
  end # ~ChargeBee
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class TaxWithheld < Model
3
3
 
4
4
  attr_accessor :id, :user, :reference_number, :description, :type, :payment_method, :date, :currency_code,
5
- :amount, :exchange_rate
5
+ :amount, :resource_version, :updated_at, :exchange_rate
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
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.22.1'
71
+ VERSION = '2.24.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.22.1
4
+ version: 2.24.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-01-13 00:00:00.000000000 Z
12
+ date: 2023-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -129,6 +129,7 @@ files:
129
129
  - lib/chargebee/models/credit_note_estimate.rb
130
130
  - lib/chargebee/models/customer.rb
131
131
  - lib/chargebee/models/differential_price.rb
132
+ - lib/chargebee/models/discount.rb
132
133
  - lib/chargebee/models/download.rb
133
134
  - lib/chargebee/models/entitlement_override.rb
134
135
  - lib/chargebee/models/estimate.rb