starkbank 2.13.0 → 2.14.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: 67f10a9398cc6eeb3b8cafe747a1fb3ce21dfab6bf316dd85cbca71394cb5443
4
- data.tar.gz: e5f917774479128c4e1d8120d5cefeed03dbff224e70090c849bc911fd759d05
3
+ metadata.gz: 6c363e43adca2efd6e97198b40c1a42e9a71de70188b59fe7561a2f93615f513
4
+ data.tar.gz: 21954b29ceea88e466182e97920c8d4f0c7df2779b4d8d5c82ec4996f52dd4b4
5
5
  SHA512:
6
- metadata.gz: 0fab179a722aeea47d6635217805b68d8fbdf6ceb58b44f1d2dcb3a4aa7c7b76e71657bcc1585ba78c36335dd6dfd52c723ffda41373c896525960d53ac0887c
7
- data.tar.gz: 1395aca4a6a05c445b8dcc43b87d69a2e60fabd88ee76f783351325137986d845270172c02946a57af07a078ab9cdc0419995f51215f0abfc5dd6cbc3f47b09c
6
+ metadata.gz: aa3872b3bf62808684afac20937bc01d631fe4bf53e097bfcead428fdce52d3810ac5b377b0ff338c932953f6422808298f1e8801553656615bcff96b3306cdf
7
+ data.tar.gz: 7f1f9bd40722fb9104736896d4a5f1fedbbd0d6b50c70752d2466c71eb6ad2a0a52206a6ba1db5de248b5942f86806aa911b9eee93da547e62a8e6c72519b476
data/lib/starkbank.rb CHANGED
@@ -61,7 +61,7 @@ require_relative('request/request')
61
61
  module StarkBank
62
62
 
63
63
  API_VERSION = 'v2'
64
- SDK_VERSION = '2.13.0'
64
+ SDK_VERSION = '2.14.0'
65
65
  HOST = "bank"
66
66
  public_constant :API_VERSION, :SDK_VERSION, :HOST;
67
67
 
@@ -24,6 +24,7 @@ module StarkBank
24
24
  # - external_id [string, default nil]: url safe string that must be unique among all your transfers. Duplicated external_ids will cause failures. By default, this parameter will block any transfer that repeats amount and receiver information on the same date. ex: 'my-internal-id-123456'
25
25
  # - scheduled [string, default now]: datetime when the transfer will be processed. May be pushed to next business day if necessary. ex: DateTime.new(2020, 3, 11, 8, 13, 12, 11)
26
26
  # - description [string, default nil]: optional description to override default description to be shown in the bank statement. ex: 'Payment for service #1234'
27
+ # - display_description [string, default nil]: optional description to be shown in the receiver bank interface. ex: 'Payment for service #1234'
27
28
  # - tags [list of strings]: list of strings for reference when searching for transfers. ex: ['employees', 'monthly']
28
29
  # - rules [list of Transfer::Rules, default []]: list of Transfer::Rule objects for modifying transfer behavior. ex: [Transfer::Rule(key: "resendingLimit", value: 5)]
29
30
  #
@@ -36,8 +37,8 @@ module StarkBank
36
37
  # - created [DateTime]: creation datetime for the transfer. ex: DateTime.new(2020, 3, 10, 10, 30, 0, 0)
37
38
  # - updated [DateTime]: latest update datetime for the transfer. ex: DateTime.new(2020, 3, 10, 10, 30, 0, 0)
38
39
  class Transfer < StarkCore::Utils::Resource
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
+ attr_reader :amount, :name, :tax_id, :bank_code, :branch_code, :account_number, :account_type, :external_id, :scheduled, :description, :display_description, :transaction_ids, :metadata, :fee, :tags, :rules, :status, :id, :created, :updated
41
+ def initialize(amount:, name:, tax_id:, bank_code:, branch_code:, account_number:, account_type: nil, external_id: nil, scheduled: nil, description: nil, display_description: nil, transaction_ids: nil, metadata: nil, fee: nil, tags: nil, rules: nil, status: nil, id: nil, created: nil, updated: nil)
41
42
  super(id)
42
43
  @amount = amount
43
44
  @name = name
@@ -49,6 +50,7 @@ module StarkBank
49
50
  @external_id = external_id
50
51
  @scheduled = StarkCore::Utils::Checks.check_date_or_datetime(scheduled)
51
52
  @description = description
53
+ @display_description = display_description
52
54
  @tags = tags
53
55
  @rules = StarkBank::Transfer::Rule.parse_rules(rules)
54
56
  @fee = fee
@@ -210,6 +212,7 @@ module StarkBank
210
212
  external_id: json['external_id'],
211
213
  scheduled: json['scheduled'],
212
214
  description: json['description'],
215
+ display_description: json['display_description'],
213
216
  tags: json['tags'],
214
217
  rules: json['rules'],
215
218
  id: json['id'],
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starkbank
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - starkbank
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: starkcore
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.6.2
150
+ rubygems_version: 3.6.9
151
151
  specification_version: 4
152
152
  summary: SDK to facilitate Ruby integrations with Stark Bank
153
153
  test_files: []