starkbank 2.2.0 → 2.2.1

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: e965f06caeae2a43c2fc9baaba12d8e809e4d72cf3b3a1290fde4b6667b99af0
4
- data.tar.gz: 909f49d2384c4195d8090a7632d072c5670685c0108f50f6831aa263ae9e485c
3
+ metadata.gz: b51d2704eb7609e1e76b616bbb3ac74bdb1a0ae8685db2c518c676a6005c7e16
4
+ data.tar.gz: 7f87b9c3f526aeb6ae7e2d7c20f1f1030954fa5db92cdac8247699085eb12914
5
5
  SHA512:
6
- metadata.gz: dd47fb09e160dda9118f8e7909ab032454e976fbac17fd8e72b6e27855def6371f923f965ba581b686519d5bc99549b47ecf37a067da687cc2e6b5b4b16daa99
7
- data.tar.gz: 4c9c9efc45a25b3383d9979df7531e7d94b9aaf594196b499a305a84988fbb03648f9581fd23faf5026fe0db35de231c9e49fd642ea243e7ad56e041b706f897
6
+ metadata.gz: 1fd6a1aa52db6930d017f2406ab328b3d0e625c087e95cee42aa67d45f8973b5e29173f56d05f01ef7f0a8a540699be5be798b9232db7be1c955935baa5bb812
7
+ data.tar.gz: 29fcbe0b5670e70339b186354f9d58057e2cdfa7278c0e0ad895f30c7b2b73e1164566fac49ada85b49a251099d7c705932b245bd9ffdf986f550b0d31f74960
@@ -17,7 +17,7 @@ module StarkBank
17
17
  # - name [string]: payer name. ex: 'Iron Bank S.A.'
18
18
  #
19
19
  # ## Parameters (optional):
20
- # - due [DateTime or string, default today + 2 days]: Invoice due date in UTC ISO format. ex: '2020-10-28T17:59:26.249976+00:00'
20
+ # - due [DateTime or string, default now + 2 days]: Invoice due date in UTC ISO format. ex: '2020-10-28T17:59:26.249976+00:00'
21
21
  # - expiration [integer, default 5097600 (59 days)]: time interval in seconds between due date and expiration date. ex 123456789
22
22
  # - fine [float, default 0.0]: Invoice fine for overdue payment in %. ex: 2.5
23
23
  # - interest [float, default 0.0]: Invoice monthly interest for overdue payment in %. ex: 5.2
@@ -37,9 +37,9 @@ module StarkBank
37
37
  # - created [DateTime, default nil]: creation datetime for the Invoice. ex: DateTime.new(2020, 3, 10, 10, 30, 0, 0)
38
38
  # - updated [DateTime, default nil]: latest update datetime for the Invoice. ex: DateTime.new(2020, 3, 10, 10, 30, 0, 0)
39
39
  class Invoice < StarkBank::Utils::Resource
40
- attr_reader :amount, :due, :tax_id, :name, :expiration, :fine, :interest, :discounts, :tags, :descriptions, :nominal_amount, :fine_amount, :interest_amount, :discount_amount, :id, :brcode, :fee, :status, :created, :updated
40
+ attr_reader :amount, :tax_id, :name, :due, :expiration, :fine, :interest, :discounts, :tags, :descriptions, :nominal_amount, :fine_amount, :interest_amount, :discount_amount, :id, :brcode, :fee, :status, :created, :updated
41
41
  def initialize(
42
- amount:, due:, tax_id:, name:, expiration: nil, fine: nil, interest: nil, discounts: nil,
42
+ amount:, tax_id:, name:, due: nil, expiration: nil, fine: nil, interest: nil, discounts: nil,
43
43
  tags: nil, descriptions: nil, nominal_amount: nil, fine_amount: nil, interest_amount: nil,
44
44
  discount_amount: nil, id: nil, brcode: nil, fee: nil, status: nil, created: nil, updated: nil
45
45
  )
@@ -61,7 +61,7 @@ module StarkBank
61
61
  req['Access-Time'] = access_time
62
62
  req['Access-Signature'] = signature
63
63
  req['Content-Type'] = 'application/json'
64
- req['User-Agent'] = "Ruby-#{RUBY_VERSION}-SDK-2.2.0"
64
+ req['User-Agent'] = "Ruby-#{RUBY_VERSION}-SDK-2.2.1"
65
65
  req['Accept-Language'] = language
66
66
 
67
67
  request = Net::HTTP.start(uri.hostname, use_ssl: true) { |http| http.request(req) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starkbank
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - starkbank