starkbank 2.4.0 → 2.5.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/balance/balance.rb +1 -1
- data/lib/boleto/boleto.rb +49 -10
- data/lib/boleto/log.rb +35 -4
- data/lib/boleto_holmes/boleto_holmes.rb +39 -4
- data/lib/boleto_holmes/log.rb +35 -4
- data/lib/boleto_payment/boleto_payment.rb +38 -5
- data/lib/boleto_payment/log.rb +35 -4
- data/lib/brcode_payment/brcode_payment.rb +52 -13
- data/lib/brcode_payment/log.rb +35 -4
- data/lib/brcode_preview/brcode_preview.rb +2 -2
- data/lib/darf_payment/darf_payment.rb +218 -0
- data/lib/darf_payment/log.rb +125 -0
- data/lib/deposit/deposit.rb +45 -7
- data/lib/deposit/log.rb +35 -4
- data/lib/dict_key/dict_key.rb +44 -8
- data/lib/error.rb +13 -5
- data/lib/event/attempt.rb +125 -0
- data/lib/event/event.rb +40 -4
- data/lib/institution/institution.rb +67 -0
- data/lib/invoice/invoice.rb +66 -9
- data/lib/invoice/log.rb +51 -4
- data/lib/invoice/payment.rb +57 -0
- data/lib/payment_request/payment_request.rb +47 -7
- data/lib/starkbank.rb +7 -0
- data/lib/tax_payment/log.rb +125 -0
- data/lib/tax_payment/tax_payment.rb +203 -0
- data/lib/transaction/transaction.rb +37 -4
- data/lib/transfer/log.rb +35 -4
- data/lib/transfer/transfer.rb +47 -8
- data/lib/user/organization.rb +1 -1
- data/lib/user/project.rb +1 -1
- data/lib/utility_payment/log.rb +35 -4
- data/lib/utility_payment/utility_payment.rb +38 -5
- data/lib/utils/api.rb +1 -0
- data/lib/utils/request.rb +1 -1
- data/lib/utils/resource.rb +2 -21
- data/lib/utils/rest.rb +28 -12
- data/lib/utils/sub_resource.rb +28 -0
- data/lib/utils/url.rb +3 -1
- data/lib/webhook/webhook.rb +23 -2
- data/lib/workspace/workspace.rb +57 -8
- metadata +15 -7
@@ -89,7 +89,7 @@ module StarkBank
|
|
89
89
|
# ## Return:
|
90
90
|
# - UtilityPayment pdf file
|
91
91
|
def self.pdf(id, user: nil)
|
92
|
-
StarkBank::Utils::Rest.
|
92
|
+
StarkBank::Utils::Rest.get_content(id: id, user: user, sub_resource_name: 'pdf', **resource)
|
93
93
|
end
|
94
94
|
|
95
95
|
# # Retrieve UtilityPayments
|
@@ -98,26 +98,59 @@ module StarkBank
|
|
98
98
|
#
|
99
99
|
# ## Parameters (optional):
|
100
100
|
# - limit [integer, default nil]: maximum number of objects to be retrieved. Unlimited if nil. ex: 35
|
101
|
-
# - after [Date, DateTime, Time or string, default nil] date filter for objects created only after specified date. ex: Date.new(2020, 3, 10)
|
102
|
-
# - before [Date, DateTime, Time or string, default nil] date filter for objects created only before specified date. ex: Date.new(2020, 3, 10)
|
101
|
+
# - after [Date, DateTime, Time or string, default nil]: date filter for objects created only after specified date. ex: Date.new(2020, 3, 10)
|
102
|
+
# - before [Date, DateTime, Time or string, default nil]: date filter for objects created only before specified date. ex: Date.new(2020, 3, 10)
|
103
103
|
# - tags [list of strings, default nil]: tags to filter retrieved objects. ex: ['tony', 'stark']
|
104
104
|
# - ids [list of strings, default nil]: list of ids to filter retrieved objects. ex: ['5656565656565656', '4545454545454545']
|
105
105
|
# - status [string, default nil]: filter for status of retrieved objects. ex: 'paid'
|
106
|
-
# - user [Organization/Project object]: Organization or Project object. Not necessary if
|
106
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
107
107
|
#
|
108
108
|
# ## Return:
|
109
109
|
# - generator of UtilityPayment objects with updated attributes
|
110
110
|
def self.query(limit: nil, after: nil, before: nil, tags: nil, ids: nil, status: nil, user: nil)
|
111
111
|
after = StarkBank::Utils::Checks.check_date(after)
|
112
112
|
before = StarkBank::Utils::Checks.check_date(before)
|
113
|
-
StarkBank::Utils::Rest.
|
113
|
+
StarkBank::Utils::Rest.get_stream(
|
114
|
+
limit: limit,
|
115
|
+
after: after,
|
116
|
+
before: before,
|
117
|
+
tags: tags,
|
118
|
+
ids: ids,
|
119
|
+
status: status,
|
114
120
|
user: user,
|
121
|
+
**resource
|
122
|
+
)
|
123
|
+
end
|
124
|
+
|
125
|
+
# # Retrieve paged UtilityPayments
|
126
|
+
#
|
127
|
+
# Receive a list of up to 100 UtilityPayment objects previously created in the Stark Bank API and the cursor to the next page.
|
128
|
+
# Use this function instead of query if you want to manually page your requests.
|
129
|
+
#
|
130
|
+
# ## Parameters (optional):
|
131
|
+
# - cursor [string, default nil]: cursor returned on the previous page function call
|
132
|
+
# - limit [integer, default nil]: maximum number of objects to be retrieved. Unlimited if nil. ex: 35
|
133
|
+
# - after [Date, DateTime, Time or string, default nil]: date filter for objects created only after specified date. ex: Date.new(2020, 3, 10)
|
134
|
+
# - before [Date, DateTime, Time or string, default nil]: date filter for objects created only before specified date. ex: Date.new(2020, 3, 10)
|
135
|
+
# - tags [list of strings, default nil]: tags to filter retrieved objects. ex: ['tony', 'stark']
|
136
|
+
# - ids [list of strings, default nil]: list of ids to filter retrieved objects. ex: ['5656565656565656', '4545454545454545']
|
137
|
+
# - status [string, default nil]: filter for status of retrieved objects. ex: 'paid'
|
138
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
139
|
+
#
|
140
|
+
# ## Return:
|
141
|
+
# - list of UtilityPayment objects with updated attributes and cursor to retrieve the next page of UtilityPayment objects
|
142
|
+
def self.page(cursor: nil, limit: nil, after: nil, before: nil, tags: nil, ids: nil, status: nil, user: nil)
|
143
|
+
after = StarkBank::Utils::Checks.check_date(after)
|
144
|
+
before = StarkBank::Utils::Checks.check_date(before)
|
145
|
+
return StarkBank::Utils::Rest.get_page(
|
146
|
+
cursor: cursor,
|
115
147
|
limit: limit,
|
116
148
|
after: after,
|
117
149
|
before: before,
|
118
150
|
tags: tags,
|
119
151
|
ids: ids,
|
120
152
|
status: status,
|
153
|
+
user: user,
|
121
154
|
**resource
|
122
155
|
)
|
123
156
|
end
|
data/lib/utils/api.rb
CHANGED
data/lib/utils/request.rb
CHANGED
@@ -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.
|
64
|
+
req['User-Agent'] = "Ruby-#{RUBY_VERSION}-SDK-2.5.0"
|
65
65
|
req['Accept-Language'] = language
|
66
66
|
|
67
67
|
request = Net::HTTP.start(uri.hostname, use_ssl: true) { |http| http.request(req) }
|
data/lib/utils/resource.rb
CHANGED
@@ -1,32 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require_relative("sub_resource")
|
2
3
|
|
3
4
|
module StarkBank
|
4
5
|
module Utils
|
5
|
-
class Resource
|
6
|
+
class Resource < StarkBank::Utils::SubResource
|
6
7
|
attr_reader :id
|
7
8
|
def initialize(id = nil)
|
8
9
|
@id = id
|
9
10
|
end
|
10
|
-
|
11
|
-
def to_s
|
12
|
-
string_vars = []
|
13
|
-
instance_variables.each do |key|
|
14
|
-
value = instance_variable_get(key).to_s.lines.map(&:chomp).join("\n ")
|
15
|
-
string_vars << "#{key[1..-1]}: #{value}"
|
16
|
-
end
|
17
|
-
fields = string_vars.join(",\n ")
|
18
|
-
"#{class_name}(\n #{fields}\n)"
|
19
|
-
end
|
20
|
-
|
21
|
-
def inspect
|
22
|
-
"#{class_name}[#{@id}]"
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
def class_name
|
28
|
-
self.class.name.split('::').last.downcase
|
29
|
-
end
|
30
11
|
end
|
31
12
|
end
|
32
13
|
end
|
data/lib/utils/rest.rb
CHANGED
@@ -6,7 +6,21 @@ require_relative('api')
|
|
6
6
|
module StarkBank
|
7
7
|
module Utils
|
8
8
|
module Rest
|
9
|
-
def self.
|
9
|
+
def self.get_page(resource_name:, resource_maker:, user: nil, **query)
|
10
|
+
json = StarkBank::Utils::Request.fetch(
|
11
|
+
method: 'GET',
|
12
|
+
path: StarkBank::Utils::API.endpoint(resource_name),
|
13
|
+
query: query,
|
14
|
+
user: user
|
15
|
+
).json
|
16
|
+
entities = []
|
17
|
+
json[StarkBank::Utils::API.last_name_plural(resource_name)].each do |entity_json|
|
18
|
+
entities << StarkBank::Utils::API.from_api_json(resource_maker, entity_json)
|
19
|
+
end
|
20
|
+
return entities, json['cursor']
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.get_stream(resource_name:, resource_maker:, user: nil, **query)
|
10
24
|
limit = query[:limit]
|
11
25
|
query[:limit] = limit.nil? ? limit : [limit, 100].min
|
12
26
|
|
@@ -46,19 +60,10 @@ module StarkBank
|
|
46
60
|
StarkBank::Utils::API.from_api_json(resource_maker, entity)
|
47
61
|
end
|
48
62
|
|
49
|
-
def self.
|
50
|
-
StarkBank::Utils::Request.fetch(
|
51
|
-
method: 'GET',
|
52
|
-
path: "#{StarkBank::Utils::API.endpoint(resource_name)}/#{id}/pdf",
|
53
|
-
query: StarkBank::Utils::API.cast_json_to_api_format(query),
|
54
|
-
user: user
|
55
|
-
).content
|
56
|
-
end
|
57
|
-
|
58
|
-
def self.get_qrcode(resource_name:, resource_maker:, id:, user: nil, **query)
|
63
|
+
def self.get_content(resource_name:, resource_maker:, sub_resource_name:, id:, user: nil, **query)
|
59
64
|
StarkBank::Utils::Request.fetch(
|
60
65
|
method: 'GET',
|
61
|
-
path: "#{StarkBank::Utils::API.endpoint(resource_name)}/#{id}
|
66
|
+
path: "#{StarkBank::Utils::API.endpoint(resource_name)}/#{id}/#{sub_resource_name}",
|
62
67
|
query: StarkBank::Utils::API.cast_json_to_api_format(query),
|
63
68
|
user: user
|
64
69
|
).content
|
@@ -115,6 +120,17 @@ module StarkBank
|
|
115
120
|
entity = json[StarkBank::Utils::API.last_name(resource_name)]
|
116
121
|
StarkBank::Utils::API.from_api_json(resource_maker, entity)
|
117
122
|
end
|
123
|
+
|
124
|
+
def self.get_sub_resource(resource_name:, sub_resource_maker:, sub_resource_name:, id:, user: nil, **query)
|
125
|
+
json = StarkBank::Utils::Request.fetch(
|
126
|
+
method: 'GET',
|
127
|
+
path: "#{StarkBank::Utils::API.endpoint(resource_name)}/#{id}/#{StarkBank::Utils::API.endpoint(sub_resource_name)}",
|
128
|
+
user: user,
|
129
|
+
query: StarkBank::Utils::API.cast_json_to_api_format(query)
|
130
|
+
).json
|
131
|
+
entity = json[StarkBank::Utils::API.last_name(sub_resource_name)]
|
132
|
+
StarkBank::Utils::API.from_api_json(sub_resource_maker, entity)
|
133
|
+
end
|
118
134
|
end
|
119
135
|
end
|
120
136
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
module StarkBank
|
4
|
+
module Utils
|
5
|
+
class SubResource
|
6
|
+
def to_s
|
7
|
+
string_vars = []
|
8
|
+
instance_variables.each do |key|
|
9
|
+
value = instance_variable_get(key).to_s.lines.map(&:chomp).join("\n ")
|
10
|
+
string_vars << "#{key[1..-1]}: #{value}"
|
11
|
+
end
|
12
|
+
fields = string_vars.join(",\n ")
|
13
|
+
"#{class_name}(\n #{fields}\n)"
|
14
|
+
end
|
15
|
+
|
16
|
+
def inspect
|
17
|
+
"#{class_name}[#{@id}]"
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def class_name
|
23
|
+
self.class.name.split('::').last.downcase
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
data/lib/utils/url.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require 'erb'
|
3
|
+
|
2
4
|
|
3
5
|
module StarkBank
|
4
6
|
module Utils
|
@@ -17,7 +19,7 @@ module StarkBank
|
|
17
19
|
|
18
20
|
query_list = []
|
19
21
|
string_params.each do |key, value|
|
20
|
-
query_list << "#{key}=#{value}"
|
22
|
+
query_list << "#{key}=#{ERB::Util.url_encode(value)}"
|
21
23
|
end
|
22
24
|
'?' + query_list.join('&')
|
23
25
|
end
|
data/lib/webhook/webhook.rb
CHANGED
@@ -64,12 +64,33 @@ module StarkBank
|
|
64
64
|
#
|
65
65
|
# ## Parameters (optional):
|
66
66
|
# - limit [integer, default nil]: maximum number of objects to be retrieved. Unlimited if nil. ex: 35
|
67
|
-
# - user [Organization/Project object]: Organization or Project object. Not necessary if
|
67
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
68
68
|
#
|
69
69
|
# ## Return:
|
70
70
|
# - generator of Webhook objects with updated attributes
|
71
71
|
def self.query(limit: nil, user: nil)
|
72
|
-
StarkBank::Utils::Rest.
|
72
|
+
StarkBank::Utils::Rest.get_stream(user: user, limit: limit, **resource)
|
73
|
+
end
|
74
|
+
|
75
|
+
# # Retrieve paged Webhooks
|
76
|
+
#
|
77
|
+
# Receive a list of up to 100 Webhook objects previously created in the Stark Bank API and the cursor to the next page.
|
78
|
+
# Use this function instead of query if you want to manually page your requests.
|
79
|
+
#
|
80
|
+
# ## Parameters (optional):
|
81
|
+
# - cursor [string, default nil]: cursor returned on the previous page function call
|
82
|
+
# - limit [integer, default nil]: maximum number of objects to be retrieved. Unlimited if nil. ex: 35
|
83
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
84
|
+
#
|
85
|
+
# ## Return:
|
86
|
+
# - list of Webhook objects with updated attributes and cursor to retrieve the next page of Webhook objects
|
87
|
+
def self.page(cursor: nil, limit: nil, user: nil)
|
88
|
+
return StarkBank::Utils::Rest.get_page(
|
89
|
+
cursor: cursor,
|
90
|
+
limit: limit,
|
91
|
+
user: user,
|
92
|
+
**resource
|
93
|
+
)
|
73
94
|
end
|
74
95
|
|
75
96
|
# # Delete a Webhook entity
|
data/lib/workspace/workspace.rb
CHANGED
@@ -15,14 +15,18 @@ module StarkBank
|
|
15
15
|
# - username [string]: Simplified name to define the workspace URL. This name must be unique across all Stark Bank Workspaces. Ex: 'starkbankworkspace'
|
16
16
|
# - name [string]: Full name that identifies the Workspace. This name will appear when people access the Workspace on our platform, for example. Ex: 'Stark Bank Workspace'
|
17
17
|
#
|
18
|
+
# ## Parameters (optional):
|
19
|
+
# - allowed_tax_ids [list of strings]: list of tax IDs that will be allowed to send Deposits to this Workspace. ex: ['012.345.678-90', '20.018.183/0001-80']
|
20
|
+
#
|
18
21
|
# ## Attributes:
|
19
22
|
# - id [string, default nil]: unique id returned when the workspace is created. ex: '5656565656565656'
|
20
23
|
class Workspace < StarkBank::Utils::Resource
|
21
|
-
attr_reader :username, :name, :id
|
22
|
-
def initialize(username:, name:, id: nil)
|
24
|
+
attr_reader :username, :name, :allowed_tax_ids, :id
|
25
|
+
def initialize(username:, name:, allowed_tax_ids: nil, id: nil)
|
23
26
|
super(id)
|
24
27
|
@username = username
|
25
28
|
@name = name
|
29
|
+
@allowed_tax_ids = allowed_tax_ids
|
26
30
|
end
|
27
31
|
|
28
32
|
# # Create Workspace
|
@@ -38,8 +42,8 @@ module StarkBank
|
|
38
42
|
#
|
39
43
|
# ## Return:
|
40
44
|
# - Workspace object with updated attributes
|
41
|
-
def self.create(username:, name:, user: nil)
|
42
|
-
StarkBank::Utils::Rest.post_single(entity: Workspace.new(username: username, name: name), user: user, **resource)
|
45
|
+
def self.create(username:, name:, user: nil, allowed_tax_ids: nil)
|
46
|
+
StarkBank::Utils::Rest.post_single(entity: Workspace.new(username: username, name: name, allowed_tax_ids: allowed_tax_ids), user: user, **resource)
|
43
47
|
end
|
44
48
|
|
45
49
|
# # Retrieve a specific Workspace
|
@@ -50,7 +54,7 @@ module StarkBank
|
|
50
54
|
# - id [string]: object unique id. ex: '5656565656565656'
|
51
55
|
#
|
52
56
|
# ## Parameters (optional):
|
53
|
-
# - user [Organization/Project object]: Organization or Project object. Not necessary if
|
57
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
54
58
|
#
|
55
59
|
# ## Return:
|
56
60
|
# - Workspace object with updated attributes
|
@@ -68,12 +72,56 @@ module StarkBank
|
|
68
72
|
# - limit [integer, default nil]: maximum number of objects to be retrieved. Unlimited if nil. ex: 35
|
69
73
|
# - username [string]: query by the simplified name that defines the workspace URL. This name is always unique across all Stark Bank Workspaces. Ex: 'starkbankworkspace'
|
70
74
|
# - ids [list of strings, default nil]: list of ids to filter retrieved objects. ex: ['5656565656565656', '4545454545454545']
|
71
|
-
# - user [Organization/Project object]: Organization or Project object. Not necessary if
|
75
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
72
76
|
#
|
73
77
|
# ## Return:
|
74
78
|
# - generator of Workspace objects with updated attributes
|
75
79
|
def self.query(limit: nil, username: nil, ids: nil, user: nil)
|
76
|
-
StarkBank::Utils::Rest.
|
80
|
+
StarkBank::Utils::Rest.get_stream(limit: limit, username: username, ids: ids, user: user, **resource)
|
81
|
+
end
|
82
|
+
|
83
|
+
# # Retrieve paged Workspaces
|
84
|
+
#
|
85
|
+
# Receive a list of up to 100 Workspace objects previously created in the Stark Bank API and the cursor to the next page.
|
86
|
+
# Use this function instead of query if you want to manually page your requests.
|
87
|
+
#
|
88
|
+
# ## Parameters (optional):
|
89
|
+
# - cursor [string, default nil]: cursor returned on the previous page function call
|
90
|
+
# - limit [integer, default nil]: maximum number of objects to be retrieved. Unlimited if nil. ex: 35
|
91
|
+
# - username [string]: query by the simplified name that defines the workspace URL. This name is always unique across all Stark Bank Workspaces. Ex: 'starkbankworkspace'
|
92
|
+
# - ids [list of strings, default nil]: list of ids to filter retrieved objects. ex: ['5656565656565656', '4545454545454545']
|
93
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
94
|
+
#
|
95
|
+
# ## Return:
|
96
|
+
# - list of Workspace objects with updated attributes and cursor to retrieve the next page of Workspace objects
|
97
|
+
def self.page(cursor: nil, limit: nil, username: nil, ids: nil, user: nil)
|
98
|
+
return StarkBank::Utils::Rest.get_page(
|
99
|
+
cursor: cursor,
|
100
|
+
limit: limit,
|
101
|
+
username: username,
|
102
|
+
ids: ids,
|
103
|
+
user: user,
|
104
|
+
**resource
|
105
|
+
)
|
106
|
+
end
|
107
|
+
|
108
|
+
# # Update an Workspace entity
|
109
|
+
#
|
110
|
+
# Update an Workspace entity previously created in the Stark Bank API
|
111
|
+
#
|
112
|
+
# ## Parameters (required):
|
113
|
+
# - id [string]: Workspace unique id. ex: '5656565656565656'
|
114
|
+
#
|
115
|
+
# ## Parameters (optional):
|
116
|
+
# - username [string, default nil]: query by the simplified name that defines the workspace URL. This name is always unique across all Stark Bank Workspaces. Ex: 'starkbankworkspace'
|
117
|
+
# - name [string, default nil]: Full name that identifies the Workspace. This name will appear when people access the Workspace on our platform, for example. Ex: 'Stark Bank Workspace'
|
118
|
+
# - allowed_tax_ids [list of strings, default nil]: list of tax IDs that will be allowed to send Deposits to this Workspace. If empty, all are allowed. ex: ['012.345.678-90', '20.018.183/0001-80']
|
119
|
+
# - user [Organization/Project object]: Organization or Project object. Not necessary if StarkBank.user was set before function call
|
120
|
+
#
|
121
|
+
# ## Return:
|
122
|
+
# - updated Workspace object
|
123
|
+
def self.update(id, user: nil, username: nil, name: nil, allowed_tax_ids: nil)
|
124
|
+
StarkBank::Utils::Rest.patch_id(id: id, user: user, username: username, name: name, allowed_tax_ids: allowed_tax_ids, **resource)
|
77
125
|
end
|
78
126
|
|
79
127
|
def self.resource
|
@@ -83,7 +131,8 @@ module StarkBank
|
|
83
131
|
Workspace.new(
|
84
132
|
id: json['id'],
|
85
133
|
username: json['username'],
|
86
|
-
name: json['name']
|
134
|
+
name: json['name'],
|
135
|
+
allowed_tax_ids: json['allowed_tax_ids']
|
87
136
|
)
|
88
137
|
}
|
89
138
|
}
|
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.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- starkbank
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: starkbank-ecdsa
|
@@ -66,8 +66,8 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.81'
|
69
|
-
description:
|
70
|
-
email:
|
69
|
+
description:
|
70
|
+
email:
|
71
71
|
executables: []
|
72
72
|
extensions: []
|
73
73
|
extra_rdoc_files: []
|
@@ -82,16 +82,23 @@ files:
|
|
82
82
|
- lib/brcode_payment/brcode_payment.rb
|
83
83
|
- lib/brcode_payment/log.rb
|
84
84
|
- lib/brcode_preview/brcode_preview.rb
|
85
|
+
- lib/darf_payment/darf_payment.rb
|
86
|
+
- lib/darf_payment/log.rb
|
85
87
|
- lib/deposit/deposit.rb
|
86
88
|
- lib/deposit/log.rb
|
87
89
|
- lib/dict_key/dict_key.rb
|
88
90
|
- lib/error.rb
|
91
|
+
- lib/event/attempt.rb
|
89
92
|
- lib/event/event.rb
|
93
|
+
- lib/institution/institution.rb
|
90
94
|
- lib/invoice/invoice.rb
|
91
95
|
- lib/invoice/log.rb
|
96
|
+
- lib/invoice/payment.rb
|
92
97
|
- lib/key.rb
|
93
98
|
- lib/payment_request/payment_request.rb
|
94
99
|
- lib/starkbank.rb
|
100
|
+
- lib/tax_payment/log.rb
|
101
|
+
- lib/tax_payment/tax_payment.rb
|
95
102
|
- lib/transaction/transaction.rb
|
96
103
|
- lib/transfer/log.rb
|
97
104
|
- lib/transfer/transfer.rb
|
@@ -108,6 +115,7 @@ files:
|
|
108
115
|
- lib/utils/request.rb
|
109
116
|
- lib/utils/resource.rb
|
110
117
|
- lib/utils/rest.rb
|
118
|
+
- lib/utils/sub_resource.rb
|
111
119
|
- lib/utils/url.rb
|
112
120
|
- lib/webhook/webhook.rb
|
113
121
|
- lib/workspace/workspace.rb
|
@@ -115,7 +123,7 @@ homepage: https://github.com/starkbank/sdk-ruby
|
|
115
123
|
licenses:
|
116
124
|
- MIT
|
117
125
|
metadata: {}
|
118
|
-
post_install_message:
|
126
|
+
post_install_message:
|
119
127
|
rdoc_options: []
|
120
128
|
require_paths:
|
121
129
|
- lib
|
@@ -131,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
139
|
version: '0'
|
132
140
|
requirements: []
|
133
141
|
rubygems_version: 3.1.4
|
134
|
-
signing_key:
|
142
|
+
signing_key:
|
135
143
|
specification_version: 4
|
136
144
|
summary: SDK to facilitate Ruby integrations with Stark Bank
|
137
145
|
test_files: []
|