payabli 3.0.4 → 3.0.6
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/.fern/metadata.json +4 -4
- data/lib/payabli/bill/client.rb +119 -0
- data/lib/payabli/boarding/client.rb +209 -0
- data/lib/payabli/charge_backs/client.rb +20 -0
- data/lib/payabli/check_capture/client.rb +10 -0
- data/lib/payabli/client.rb +8 -6
- data/lib/payabli/cloud/client.rb +29 -0
- data/lib/payabli/customer/client.rb +54 -0
- data/lib/payabli/export/client.rb +321 -0
- data/lib/payabli/funding/client.rb +9 -0
- data/lib/payabli/ghost_card/client.rb +31 -0
- data/lib/payabli/hosted_payment_pages/client.rb +23 -0
- data/lib/payabli/import/client.rb +15 -0
- data/lib/payabli/internal/http/raw_client.rb +26 -0
- data/lib/payabli/internal/oauth_provider.rb +8 -2
- data/lib/payabli/internal/routing_auth_provider.rb +51 -0
- data/lib/payabli/invoice/client.rb +118 -0
- data/lib/payabli/line_item/client.rb +43 -0
- data/lib/payabli/management/client.rb +13 -0
- data/lib/payabli/money_in/client.rb +238 -0
- data/lib/payabli/money_out/client.rb +94 -0
- data/lib/payabli/notification/client.rb +46 -0
- data/lib/payabli/notificationlogs/client.rb +27 -0
- data/lib/payabli/ocr/client.rb +10 -0
- data/lib/payabli/organization/client.rb +91 -0
- data/lib/payabli/payment_link/client.rb +367 -0
- data/lib/payabli/payment_method_domain/client.rb +56 -0
- data/lib/payabli/payout_subscription/client.rb +50 -0
- data/lib/payabli/paypoint/client.rb +56 -0
- data/lib/payabli/query/client.rb +414 -0
- data/lib/payabli/statistic/client.rb +39 -0
- data/lib/payabli/subscription/client.rb +46 -0
- data/lib/payabli/templates/client.rb +28 -0
- data/lib/payabli/token/client.rb +8 -0
- data/lib/payabli/token_storage/client.rb +55 -0
- data/lib/payabli/types/application_data.rb +1 -1
- data/lib/payabli/types/application_data_managed.rb +1 -1
- data/lib/payabli/types/application_data_odp.rb +1 -1
- data/lib/payabli/types/application_data_pay_in.rb +1 -1
- data/lib/payabli/types/on_create.rb +1 -1
- data/lib/payabli/types/pay_method_body_all_fields.rb +1 -1
- data/lib/payabli/user/client.rb +67 -0
- data/lib/payabli/vendor/client.rb +102 -0
- data/lib/payabli/version.rb +1 -1
- data/lib/payabli/wallet/client.rb +34 -0
- data/lib/payabli.rb +1 -0
- data/reference.md +219 -219
- data/wiremock/wiremock-mappings.json +32 -1302
- metadata +3 -2
|
@@ -21,6 +21,47 @@ module Payabli
|
|
|
21
21
|
# @option request_options [Integer] :timeout_in_seconds
|
|
22
22
|
# @option params [String, nil] :idempotency_key
|
|
23
23
|
#
|
|
24
|
+
# @example
|
|
25
|
+
# client.organization.add_organization(
|
|
26
|
+
# idempotency_key: "6B29FC40-CA47-1067-B31D-00DD010662DA",
|
|
27
|
+
# billing_info: {
|
|
28
|
+
# ach_account: "123123123",
|
|
29
|
+
# ach_routing: "123123123",
|
|
30
|
+
# billing_address: "123 Walnut Street",
|
|
31
|
+
# billing_city: "Johnson City",
|
|
32
|
+
# billing_country: "US",
|
|
33
|
+
# billing_state: "TN",
|
|
34
|
+
# billing_zip: "37615"
|
|
35
|
+
# },
|
|
36
|
+
# contacts: [{
|
|
37
|
+
# contact_email: "herman@hermanscoatings.com",
|
|
38
|
+
# contact_name: "Herman Martinez",
|
|
39
|
+
# contact_phone: "3055550000",
|
|
40
|
+
# contact_title: "Owner"
|
|
41
|
+
# }],
|
|
42
|
+
# has_billing: true,
|
|
43
|
+
# has_residual: true,
|
|
44
|
+
# org_address: "123 Walnut Street",
|
|
45
|
+
# org_city: "Johnson City",
|
|
46
|
+
# org_country: "US",
|
|
47
|
+
# org_entry_name: "pilgrim-planner",
|
|
48
|
+
# org_id: "123",
|
|
49
|
+
# org_logo: {
|
|
50
|
+
# f_content: "TXkgdGVzdCBmaWxlHJ==...",
|
|
51
|
+
# filename: "my-doc.pdf",
|
|
52
|
+
# ftype: "pdf",
|
|
53
|
+
# furl: "https://mysite.com/my-doc.pdf"
|
|
54
|
+
# },
|
|
55
|
+
# org_name: "Pilgrim Planner",
|
|
56
|
+
# org_parent_id: 236,
|
|
57
|
+
# org_state: "TN",
|
|
58
|
+
# org_timezone: -5,
|
|
59
|
+
# org_type: 0,
|
|
60
|
+
# org_website: "www.pilgrimageplanner.com",
|
|
61
|
+
# org_zip: "37615",
|
|
62
|
+
# reply_to_email: "email@example.com"
|
|
63
|
+
# )
|
|
64
|
+
#
|
|
24
65
|
# @return [Payabli::Types::AddOrganizationResponse]
|
|
25
66
|
def add_organization(request_options: {}, **params)
|
|
26
67
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -31,6 +72,7 @@ module Payabli
|
|
|
31
72
|
headers = {}
|
|
32
73
|
headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
|
|
33
74
|
|
|
75
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }]).merge(headers)
|
|
34
76
|
request = Payabli::Internal::JSON::Request.new(
|
|
35
77
|
base_url: request_options[:base_url],
|
|
36
78
|
method: "POST",
|
|
@@ -64,6 +106,28 @@ module Payabli
|
|
|
64
106
|
# @option request_options [Integer] :timeout_in_seconds
|
|
65
107
|
# @option params [Integer] :org_id
|
|
66
108
|
#
|
|
109
|
+
# @example
|
|
110
|
+
# client.organization.edit_organization(
|
|
111
|
+
# org_id: 123,
|
|
112
|
+
# contacts: [{
|
|
113
|
+
# contact_email: "herman@hermanscoatings.com",
|
|
114
|
+
# contact_name: "Herman Martinez",
|
|
115
|
+
# contact_phone: "3055550000",
|
|
116
|
+
# contact_title: "Owner"
|
|
117
|
+
# }],
|
|
118
|
+
# org_address: "123 Walnut Street",
|
|
119
|
+
# org_city: "Johnson City",
|
|
120
|
+
# org_country: "US",
|
|
121
|
+
# org_entry_name: "pilgrim-planner",
|
|
122
|
+
# organization_data_org_id: "123",
|
|
123
|
+
# org_name: "Pilgrim Planner",
|
|
124
|
+
# org_state: "TN",
|
|
125
|
+
# org_timezone: -5,
|
|
126
|
+
# org_type: 0,
|
|
127
|
+
# org_website: "www.pilgrimageplanner.com",
|
|
128
|
+
# org_zip: "37615"
|
|
129
|
+
# )
|
|
130
|
+
#
|
|
67
131
|
# @return [Payabli::Types::EditOrganizationResponse]
|
|
68
132
|
def edit_organization(request_options: {}, **params)
|
|
69
133
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -71,10 +135,12 @@ module Payabli
|
|
|
71
135
|
non_body_param_names = %w[orgId]
|
|
72
136
|
body = request_data.except(*non_body_param_names)
|
|
73
137
|
|
|
138
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
74
139
|
request = Payabli::Internal::JSON::Request.new(
|
|
75
140
|
base_url: request_options[:base_url],
|
|
76
141
|
method: "PUT",
|
|
77
142
|
path: "Organization/#{URI.encode_uri_component(params[:org_id].to_s)}",
|
|
143
|
+
headers: headers,
|
|
78
144
|
body: body,
|
|
79
145
|
request_options: request_options
|
|
80
146
|
)
|
|
@@ -103,13 +169,18 @@ module Payabli
|
|
|
103
169
|
# @option request_options [Integer] :timeout_in_seconds
|
|
104
170
|
# @option params [Integer] :org_id
|
|
105
171
|
#
|
|
172
|
+
# @example
|
|
173
|
+
# client.organization.delete_organization(org_id: 123)
|
|
174
|
+
#
|
|
106
175
|
# @return [Payabli::Types::DeleteOrganizationResponse]
|
|
107
176
|
def delete_organization(request_options: {}, **params)
|
|
108
177
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
178
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
109
179
|
request = Payabli::Internal::JSON::Request.new(
|
|
110
180
|
base_url: request_options[:base_url],
|
|
111
181
|
method: "DELETE",
|
|
112
182
|
path: "Organization/#{URI.encode_uri_component(params[:org_id].to_s)}",
|
|
183
|
+
headers: headers,
|
|
113
184
|
request_options: request_options
|
|
114
185
|
)
|
|
115
186
|
begin
|
|
@@ -137,13 +208,18 @@ module Payabli
|
|
|
137
208
|
# @option request_options [Integer] :timeout_in_seconds
|
|
138
209
|
# @option params [String] :entry
|
|
139
210
|
#
|
|
211
|
+
# @example
|
|
212
|
+
# client.organization.get_basic_organization(entry: "8cfec329267")
|
|
213
|
+
#
|
|
140
214
|
# @return [Payabli::Types::OrganizationQueryRecord]
|
|
141
215
|
def get_basic_organization(request_options: {}, **params)
|
|
142
216
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
217
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
143
218
|
request = Payabli::Internal::JSON::Request.new(
|
|
144
219
|
base_url: request_options[:base_url],
|
|
145
220
|
method: "GET",
|
|
146
221
|
path: "Organization/basic/#{URI.encode_uri_component(params[:entry].to_s)}",
|
|
222
|
+
headers: headers,
|
|
147
223
|
request_options: request_options
|
|
148
224
|
)
|
|
149
225
|
begin
|
|
@@ -171,13 +247,18 @@ module Payabli
|
|
|
171
247
|
# @option request_options [Integer] :timeout_in_seconds
|
|
172
248
|
# @option params [Integer] :org_id
|
|
173
249
|
#
|
|
250
|
+
# @example
|
|
251
|
+
# client.organization.get_basic_organization_by_id(org_id: 123)
|
|
252
|
+
#
|
|
174
253
|
# @return [Payabli::Types::OrganizationQueryRecord]
|
|
175
254
|
def get_basic_organization_by_id(request_options: {}, **params)
|
|
176
255
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
256
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
177
257
|
request = Payabli::Internal::JSON::Request.new(
|
|
178
258
|
base_url: request_options[:base_url],
|
|
179
259
|
method: "GET",
|
|
180
260
|
path: "Organization/basicById/#{URI.encode_uri_component(params[:org_id].to_s)}",
|
|
261
|
+
headers: headers,
|
|
181
262
|
request_options: request_options
|
|
182
263
|
)
|
|
183
264
|
begin
|
|
@@ -205,13 +286,18 @@ module Payabli
|
|
|
205
286
|
# @option request_options [Integer] :timeout_in_seconds
|
|
206
287
|
# @option params [Integer] :org_id
|
|
207
288
|
#
|
|
289
|
+
# @example
|
|
290
|
+
# client.organization.get_organization(org_id: 123)
|
|
291
|
+
#
|
|
208
292
|
# @return [Payabli::Types::OrganizationQueryRecord]
|
|
209
293
|
def get_organization(request_options: {}, **params)
|
|
210
294
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
295
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
211
296
|
request = Payabli::Internal::JSON::Request.new(
|
|
212
297
|
base_url: request_options[:base_url],
|
|
213
298
|
method: "GET",
|
|
214
299
|
path: "Organization/read/#{URI.encode_uri_component(params[:org_id].to_s)}",
|
|
300
|
+
headers: headers,
|
|
215
301
|
request_options: request_options
|
|
216
302
|
)
|
|
217
303
|
begin
|
|
@@ -239,13 +325,18 @@ module Payabli
|
|
|
239
325
|
# @option request_options [Integer] :timeout_in_seconds
|
|
240
326
|
# @option params [Integer] :org_id
|
|
241
327
|
#
|
|
328
|
+
# @example
|
|
329
|
+
# client.organization.get_settings_organization(org_id: 123)
|
|
330
|
+
#
|
|
242
331
|
# @return [Payabli::Types::SettingsQueryRecord]
|
|
243
332
|
def get_settings_organization(request_options: {}, **params)
|
|
244
333
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
334
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
245
335
|
request = Payabli::Internal::JSON::Request.new(
|
|
246
336
|
base_url: request_options[:base_url],
|
|
247
337
|
method: "GET",
|
|
248
338
|
path: "Organization/settings/#{URI.encode_uri_component(params[:org_id].to_s)}",
|
|
339
|
+
headers: headers,
|
|
249
340
|
request_options: request_options
|
|
250
341
|
)
|
|
251
342
|
begin
|