lago-ruby-client 1.55.0 → 1.57.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
  SHA256:
3
- metadata.gz: 691724ec9ff94b58bcd934af774d63718ee1605791209fa9dd584f37f0ba2639
4
- data.tar.gz: 93c519cf9880dda81785aaf60983c57f26db68b3ae1e7111ad2d49c69623b787
3
+ metadata.gz: 2c9b5e60df91f845cc3e6bab1ca2c69b0feeb7a1e17f6c9812980c95735dff27
4
+ data.tar.gz: 0bf814d84b2a5680ebd8847e10d8e3dabb1e4a78563d979970244081c948a3f4
5
5
  SHA512:
6
- metadata.gz: 415845c8041bc937cd8e4a979e94815a68ad720c04a7e76d1a7527683c24994c86c281dba795627260e5762711bb9c0b469249e9d8cac50717cc10dddfdc1c3d
7
- data.tar.gz: d71ce7e0bb5b388a4924d7225d3313ebdb4b39a36ff2326417fc880e304f369d444550a02b4816bcdac6d2393f6bd113fd9865988376e9ece18a94140552db68
6
+ metadata.gz: b599abf230d6128504f458069fb374c213885b833afd24b2f8ee11873e6303ed6ea687226a7e888c6fc46c949bcb0e67318365b90698af54a5d5c1e8be634f6c
7
+ data.tar.gz: afa9b8c64d15a3de6fe1155e8729824ee76cac98f60d31e836d6be763a680d40928ea7e5aca88248333df1d60a311d9a1fc53c68ac549b3a70d6901b92e99bba
@@ -55,7 +55,8 @@ module Lago
55
55
  :legal_name,
56
56
  :legal_number,
57
57
  :tax_identification_number,
58
- :email_settings
58
+ :email_settings,
59
+ :einvoicing
59
60
  ).compact
60
61
 
61
62
  whitelist_billing_configuration(params[:billing_configuration]).tap do |config|
@@ -114,6 +114,9 @@ module Lago
114
114
  billing_entity_code: params[:billing_entity_code],
115
115
  }
116
116
 
117
+ result_hash[:account_type] = params[:account_type] if params.key?(:account_type)
118
+ result_hash[:external_salesforce_id] = params[:external_salesforce_id] if params.key?(:external_salesforce_id)
119
+
117
120
  whitelist_billing_configuration(params[:billing_configuration]).tap do |config|
118
121
  result_hash[:billing_configuration] = config unless config.empty?
119
122
  end
@@ -65,7 +65,7 @@ module Lago
65
65
 
66
66
  def whitelist_thresholds(params)
67
67
  (params || []).map do |p|
68
- (p || {}).slice(:code, :value, :recurring)
68
+ (p || {}).slice(:code, :value, :recurring, :notify_on)
69
69
  end
70
70
  end
71
71
  end
@@ -21,6 +21,7 @@ module Lago
21
21
  :invoice_requires_successful_payment,
22
22
  :ignore_paid_top_up_limits_on_creation,
23
23
  :transaction_name,
24
+ :transaction_priority,
24
25
  :paid_top_up_min_amount_cents,
25
26
  :paid_top_up_max_amount_cents,
26
27
  :billing_entity_code,
@@ -17,7 +17,7 @@ module Lago
17
17
  def whitelist_params(params)
18
18
  result_hash = {
19
19
  webhook_url: params[:webhook_url],
20
- webhook_urls: params[:webhook_urls],
20
+ slug: params[:slug],
21
21
  country: params[:country],
22
22
  default_currency: params[:default_currency],
23
23
  address_line1: params[:address_line1],
@@ -276,7 +276,7 @@ module Lago
276
276
 
277
277
  def whitelist_thresholds(params)
278
278
  (params || []).map do |p|
279
- (p || {}).slice(:code, :value, :recurring)
279
+ (p || {}).slice(:code, :value, :recurring, :notify_on)
280
280
  end
281
281
  end
282
282
 
@@ -49,6 +49,8 @@ module Lago
49
49
  :paid_credits,
50
50
  :granted_credits,
51
51
  :voided_credits,
52
+ :voided_transaction_id,
53
+ :priority,
52
54
  :invoice_requires_successful_payment,
53
55
  :ignore_paid_top_up_limits,
54
56
  :purchase_order_number,
data/lib/lago/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lago
4
- VERSION = '1.55.0'
4
+ VERSION = '1.57.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lago-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.55.0
4
+ version: 1.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovro Colic