starkbank 2.7.0 → 2.8.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: 2ba62b02ad32829b30a63195687160079a8f200f27c37480ff77fc3c9f181e1d
4
- data.tar.gz: 8613d297878dba9deb3b5b4d1ae02122075585b636b08fe16d6862381cd78f65
3
+ metadata.gz: 3a3493b760a1ff8ec3af45fbe6a7df82d3457f543c210857866db6b6d83ac393
4
+ data.tar.gz: 75a9e0260201fccd4fa39374bb671b8e93cc248e1e2d4b34d207ff5bdba66095
5
5
  SHA512:
6
- metadata.gz: 443cdda0a60dc2a8f53a55cda53158c41a2808fefda33dc8d4ed79a50d95dfb74d05fef2269120c06e806a6fdf4bd5affb0e2861f2281032b1b73ad573a38a35
7
- data.tar.gz: bc0d01ba573da4d07b64f39f3bf208cf010ec5583f23bc59bf044ef9ebc2c33048f00a8a8090b312a8431162cb26d8e5541a8d48c7998d101b2050529e641c1e
6
+ metadata.gz: 4f238645203432793eb681b6e2292cbae27e75ba672ec08e157c5c5f2888924a3db0165d3be55154cd850091746f0c2e78d6fc9d667b619acc3b484708e9d975
7
+ data.tar.gz: 11e0dfc9d6568767f42b2b37641f822deb64b23c9845bdf1ab56f0c99f8b3a2c8c772dc6932490c4609f98b04feeb0332a8031d80e45c8d9de0b5d2fdf2d8fbd
data/lib/starkbank.rb CHANGED
@@ -43,7 +43,7 @@ require_relative('institution/institution')
43
43
  module StarkBank
44
44
 
45
45
  API_VERSION = 'v2'
46
- SDK_VERSION = '2.7.0'
46
+ SDK_VERSION = '2.8.0'
47
47
  HOST = "bank"
48
48
  public_constant :API_VERSION, :SDK_VERSION, :HOST;
49
49
 
@@ -32,11 +32,12 @@ module StarkBank
32
32
  # - fee [integer]: fee charged when transfer is created. ex: 200 (= R$ 2.00)
33
33
  # - status [string]: current transfer status. ex: 'success' or 'failed'
34
34
  # - transaction_ids [list of strings]: ledger transaction ids linked to this transfer (if there are two, second is the chargeback). ex: ['19827356981273']
35
+ # - metadata [dictionary object]: dictionary object used to store additional information about the Transfer object.
35
36
  # - created [DateTime]: creation datetime for the transfer. ex: DateTime.new(2020, 3, 10, 10, 30, 0, 0)
36
37
  # - updated [DateTime]: latest update datetime for the transfer. ex: DateTime.new(2020, 3, 10, 10, 30, 0, 0)
37
38
  class Transfer < StarkCore::Utils::Resource
38
- attr_reader :amount, :name, :tax_id, :bank_code, :branch_code, :account_number, :account_type, :external_id, :scheduled, :description, :transaction_ids, :fee, :tags, :rules, :status, :id, :created, :updated
39
- def initialize(amount:, name:, tax_id:, bank_code:, branch_code:, account_number:, account_type: nil, external_id: nil, scheduled: nil, description: nil, transaction_ids: nil, fee: nil, tags: nil, rules: nil, status: nil, id: nil, created: nil, updated: nil)
39
+ attr_reader :amount, :name, :tax_id, :bank_code, :branch_code, :account_number, :account_type, :external_id, :scheduled, :description, :transaction_ids, :metadata, :fee, :tags, :rules, :status, :id, :created, :updated
40
+ def initialize(amount:, name:, tax_id:, bank_code:, branch_code:, account_number:, account_type: nil, external_id: nil, scheduled: nil, description: nil, transaction_ids: nil, metadata: nil, fee: nil, tags: nil, rules: nil, status: nil, id: nil, created: nil, updated: nil)
40
41
  super(id)
41
42
  @amount = amount
42
43
  @name = name
@@ -53,6 +54,7 @@ module StarkBank
53
54
  @fee = fee
54
55
  @status = status
55
56
  @transaction_ids = transaction_ids
57
+ @metadata = metadata
56
58
  @created = StarkCore::Utils::Checks.check_datetime(created)
57
59
  @updated = StarkCore::Utils::Checks.check_datetime(updated)
58
60
  end
@@ -214,6 +216,7 @@ module StarkBank
214
216
  fee: json['fee'],
215
217
  status: json['status'],
216
218
  transaction_ids: json['transaction_ids'],
219
+ metadata: json['metadata'],
217
220
  created: json['created'],
218
221
  updated: json['updated']
219
222
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starkbank
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - starkbank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: starkcore