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 +4 -4
- data/lib/starkbank.rb +1 -1
- data/lib/transfer/transfer.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a3493b760a1ff8ec3af45fbe6a7df82d3457f543c210857866db6b6d83ac393
|
4
|
+
data.tar.gz: 75a9e0260201fccd4fa39374bb671b8e93cc248e1e2d4b34d207ff5bdba66095
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f238645203432793eb681b6e2292cbae27e75ba672ec08e157c5c5f2888924a3db0165d3be55154cd850091746f0c2e78d6fc9d667b619acc3b484708e9d975
|
7
|
+
data.tar.gz: 11e0dfc9d6568767f42b2b37641f822deb64b23c9845bdf1ab56f0c99f8b3a2c8c772dc6932490c4609f98b04feeb0332a8031d80e45c8d9de0b5d2fdf2d8fbd
|
data/lib/starkbank.rb
CHANGED
data/lib/transfer/transfer.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: starkcore
|