chargebee 2.23.0 → 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: 9a3b8e280cfa9e70dc97bb62beda8d83a508d6a3
4
- data.tar.gz: 5f4b6675e3acf83b23c50bd7a0d28ec6a8014dc2
3
+ metadata.gz: 0a9362e4ef388e73d2664362adfc29ad58156c08
4
+ data.tar.gz: 813149625fe51364a45da1c0e8fd97bd78ceb818
5
5
  SHA512:
6
- metadata.gz: 4ab7cd552055af62a89b811f273b3277d68b0c7dcb08f590bfc0775756da0f6c56617095ebc32f7324a91dbf49d2fcc2fd843d4e446b680f581cf7c1d1f4856e
7
- data.tar.gz: 9a683cd77db7ffae024ec673cc050734c2cbb7cd862eaca9be9a3da6eab5652221473fc9d1a417a5a211620182a0b96aaf75b151655767fc7500bb18f597ec5c
6
+ metadata.gz: 65f7645d7b39d76d4c234828616995ddb03159978a0cf542b2732cafb81dab70923ee50d41c1ac893294197faff4870a729191702ee9578f6d9ecaa21e662b44
7
+ data.tar.gz: 90c6412b8612dd53ad6a1d4c7eb54a4da0067e81aacb6814531329c27ebdf82c03d50ec853c8f29e834e0a76802cb44f03455218bc72687c5a50b40902682dc6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
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
+
1
30
  ### v2.23.0 (2023-02-17)
2
31
  * * *
3
32
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.23.0)
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.23.0'
8
- s.date = '2023-02-17'
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
@@ -104,6 +104,10 @@ module ChargeBee
104
104
  Request.send('post', uri_path("credit_notes",id.to_s,"resend_einvoice"), {}, env, headers)
105
105
  end
106
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
+
107
111
  def self.import_credit_note(params, env=nil, headers={})
108
112
  Request.send('post', uri_path("credit_notes","import_credit_note"), params, env, headers)
109
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,
@@ -215,5 +215,9 @@ module ChargeBee
215
215
  Request.send('post', uri_path("invoices",id.to_s,"resend_einvoice"), {}, env, headers)
216
216
  end
217
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
+
218
222
  end # ~Invoice
219
223
  end # ~ChargeBee
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.23.0'
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.23.0
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-02-17 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