didit-sdk 2.20.0 → 2.21.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/CHANGELOG.md +14 -0
- data/lib/didit/internal/request.rb +6 -4
- data/lib/didit/resources/address_validation.rb +3 -0
- data/lib/didit/resources/age_estimation.rb +3 -0
- data/lib/didit/resources/bank.rb +14 -3
- data/lib/didit/resources/biometric_templates.rb +6 -1
- data/lib/didit/resources/blocklist.rb +6 -0
- data/lib/didit/resources/businesses.rb +29 -3
- data/lib/didit/resources/cases.rb +204 -35
- data/lib/didit/resources/customization.rb +3 -0
- data/lib/didit/resources/database_validation.rb +3 -0
- data/lib/didit/resources/document_ai.rb +3 -0
- data/lib/didit/resources/email.rb +17 -1
- data/lib/didit/resources/face_match.rb +3 -0
- data/lib/didit/resources/face_search.rb +3 -0
- data/lib/didit/resources/fraud_checks.rb +6 -0
- data/lib/didit/resources/id_verification.rb +3 -0
- data/lib/didit/resources/id_wallets.rb +9 -3
- data/lib/didit/resources/investigator.rb +12 -2
- data/lib/didit/resources/ip.rb +3 -0
- data/lib/didit/resources/kyb.rb +26 -2
- data/lib/didit/resources/lists.rb +18 -5
- data/lib/didit/resources/monitoring_events.rb +12 -2
- data/lib/didit/resources/networks.rb +12 -4
- data/lib/didit/resources/passive_liveness.rb +3 -0
- data/lib/didit/resources/phone.rb +9 -0
- data/lib/didit/resources/proof_of_address.rb +3 -0
- data/lib/didit/resources/questionnaires.rb +9 -1
- data/lib/didit/resources/regulatory_reports.rb +15 -3
- data/lib/didit/resources/report_templates.rb +9 -2
- data/lib/didit/resources/reports.rb +3 -0
- data/lib/didit/resources/sessions.rb +170 -29
- data/lib/didit/resources/transactions.rb +51 -8
- data/lib/didit/resources/travel_rule.rb +115 -24
- data/lib/didit/resources/users.rb +23 -3
- data/lib/didit/resources/wallet_screening.rb +3 -1
- data/lib/didit/resources/webhooks.rb +23 -3
- data/lib/didit/resources/workflows.rb +11 -3
- data/lib/didit/types/sessions.rb +22 -0
- data/lib/didit/types.rb +1 -0
- data/lib/didit/version.rb +1 -1
- data/sig/didit/internal.rbs +1 -0
- data/sig/didit/resources/address_validation.rbs +1 -1
- data/sig/didit/resources/age_estimation.rbs +1 -1
- data/sig/didit/resources/bank.rbs +1 -1
- data/sig/didit/resources/biometric_templates.rbs +2 -2
- data/sig/didit/resources/blocklist.rbs +2 -2
- data/sig/didit/resources/businesses.rbs +7 -7
- data/sig/didit/resources/cases.rbs +44 -44
- data/sig/didit/resources/customization.rbs +1 -1
- data/sig/didit/resources/database_validation.rbs +1 -1
- data/sig/didit/resources/document_ai.rbs +1 -1
- data/sig/didit/resources/email.rbs +3 -3
- data/sig/didit/resources/face_match.rbs +1 -1
- data/sig/didit/resources/face_search.rbs +1 -1
- data/sig/didit/resources/fraud_checks.rbs +2 -2
- data/sig/didit/resources/id_verification.rbs +1 -1
- data/sig/didit/resources/id_wallets.rbs +3 -3
- data/sig/didit/resources/investigator.rbs +4 -4
- data/sig/didit/resources/ip.rbs +1 -1
- data/sig/didit/resources/kyb.rbs +4 -4
- data/sig/didit/resources/lists.rbs +6 -6
- data/sig/didit/resources/monitoring_events.rbs +4 -4
- data/sig/didit/resources/networks.rbs +4 -4
- data/sig/didit/resources/passive_liveness.rbs +1 -1
- data/sig/didit/resources/phone.rbs +3 -3
- data/sig/didit/resources/proof_of_address.rbs +1 -1
- data/sig/didit/resources/questionnaires.rbs +3 -3
- data/sig/didit/resources/regulatory_reports.rbs +5 -5
- data/sig/didit/resources/report_templates.rbs +3 -3
- data/sig/didit/resources/reports.rbs +1 -1
- data/sig/didit/resources/sessions.rbs +39 -39
- data/sig/didit/resources/transactions.rbs +15 -15
- data/sig/didit/resources/travel_rule.rbs +33 -33
- data/sig/didit/resources/users.rbs +7 -7
- data/sig/didit/resources/wallet_screening.rbs +1 -1
- data/sig/didit/resources/webhooks.rbs +5 -5
- data/sig/didit/resources/workflows.rbs +3 -3
- data/sig/didit/types/sessions.rbs +21 -0
- metadata +1 -1
|
@@ -61,6 +61,7 @@ module Didit
|
|
|
61
61
|
# @param status [String, nil]
|
|
62
62
|
# @param tags [Array<String>]
|
|
63
63
|
# @param note [String, nil]
|
|
64
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
64
65
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
65
66
|
# @return [Didit::Types::CaseActionCaseEntityActionResult]
|
|
66
67
|
def apply_entity_action(
|
|
@@ -71,6 +72,7 @@ module Didit
|
|
|
71
72
|
status: OMIT,
|
|
72
73
|
tags: OMIT,
|
|
73
74
|
note: OMIT,
|
|
75
|
+
idempotency_key: OMIT,
|
|
74
76
|
request_options: nil
|
|
75
77
|
)
|
|
76
78
|
@client.request(
|
|
@@ -85,6 +87,7 @@ module Didit
|
|
|
85
87
|
"tags" => tags,
|
|
86
88
|
"note" => note
|
|
87
89
|
},
|
|
90
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
88
91
|
scope: :application,
|
|
89
92
|
response: Types::CaseActionCaseEntityActionResult,
|
|
90
93
|
request_options: request_options
|
|
@@ -100,13 +103,15 @@ module Didit
|
|
|
100
103
|
# +POST /v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/approve/+
|
|
101
104
|
#
|
|
102
105
|
# @param case_uuid [String] Case UUID.
|
|
106
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
103
107
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
104
108
|
# @return [Didit::Types::CaseDetail]
|
|
105
|
-
def approve_resolution(case_uuid, request_options: nil)
|
|
109
|
+
def approve_resolution(case_uuid, idempotency_key: OMIT, request_options: nil)
|
|
106
110
|
@client.request(
|
|
107
111
|
:post,
|
|
108
112
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/approve/",
|
|
109
113
|
path_params: { "case_uuid" => case_uuid },
|
|
114
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
110
115
|
scope: :application,
|
|
111
116
|
response: Types::CaseDetail,
|
|
112
117
|
request_options: request_options
|
|
@@ -124,9 +129,17 @@ module Didit
|
|
|
124
129
|
# @param assignee_user_id [String, nil] null to unassign.
|
|
125
130
|
# @param assignee_email [String, nil]
|
|
126
131
|
# @param assignee_name [String, nil]
|
|
132
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
127
133
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
128
134
|
# @return [Didit::Types::CaseDetail]
|
|
129
|
-
def assign(
|
|
135
|
+
def assign(
|
|
136
|
+
case_uuid,
|
|
137
|
+
assignee_user_id:,
|
|
138
|
+
assignee_email: OMIT,
|
|
139
|
+
assignee_name: OMIT,
|
|
140
|
+
idempotency_key: OMIT,
|
|
141
|
+
request_options: nil
|
|
142
|
+
)
|
|
130
143
|
@client.request(
|
|
131
144
|
:post,
|
|
132
145
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/assign/",
|
|
@@ -136,6 +149,7 @@ module Didit
|
|
|
136
149
|
"assignee_email" => assignee_email,
|
|
137
150
|
"assignee_name" => assignee_name
|
|
138
151
|
},
|
|
152
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
139
153
|
scope: :application,
|
|
140
154
|
response: Types::CaseDetail,
|
|
141
155
|
request_options: request_options
|
|
@@ -153,9 +167,17 @@ module Didit
|
|
|
153
167
|
# @param assignee_user_id [String, nil]
|
|
154
168
|
# @param assignee_email [String, nil]
|
|
155
169
|
# @param assignee_name [String, nil]
|
|
170
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
156
171
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
157
172
|
# @return [Didit::Types::CaseBulkUpdateResult]
|
|
158
|
-
def bulk_assign(
|
|
173
|
+
def bulk_assign(
|
|
174
|
+
case_uuids:,
|
|
175
|
+
assignee_user_id:,
|
|
176
|
+
assignee_email: OMIT,
|
|
177
|
+
assignee_name: OMIT,
|
|
178
|
+
idempotency_key: OMIT,
|
|
179
|
+
request_options: nil
|
|
180
|
+
)
|
|
159
181
|
@client.request(
|
|
160
182
|
:post,
|
|
161
183
|
"/v3/organization/{organization_id}/application/{application_id}/cases/bulk/assign/",
|
|
@@ -165,6 +187,7 @@ module Didit
|
|
|
165
187
|
"assignee_email" => assignee_email,
|
|
166
188
|
"assignee_name" => assignee_name
|
|
167
189
|
},
|
|
190
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
168
191
|
scope: :application,
|
|
169
192
|
response: Types::CaseBulkUpdateResult,
|
|
170
193
|
request_options: request_options
|
|
@@ -183,9 +206,17 @@ module Didit
|
|
|
183
206
|
# @param status [String]
|
|
184
207
|
# @param resolution [String] Required when status is RESOLVED.
|
|
185
208
|
# @param note [String, nil]
|
|
209
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
186
210
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
187
211
|
# @return [Didit::Types::CaseBulkUpdateResult]
|
|
188
|
-
def bulk_update_status(
|
|
212
|
+
def bulk_update_status(
|
|
213
|
+
case_uuids:,
|
|
214
|
+
status:,
|
|
215
|
+
resolution: OMIT,
|
|
216
|
+
note: OMIT,
|
|
217
|
+
idempotency_key: OMIT,
|
|
218
|
+
request_options: nil
|
|
219
|
+
)
|
|
189
220
|
@client.request(
|
|
190
221
|
:post,
|
|
191
222
|
"/v3/organization/{organization_id}/application/{application_id}/cases/bulk/status/",
|
|
@@ -195,6 +226,7 @@ module Didit
|
|
|
195
226
|
"resolution" => resolution,
|
|
196
227
|
"note" => note
|
|
197
228
|
},
|
|
229
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
198
230
|
scope: :application,
|
|
199
231
|
response: Types::CaseBulkUpdateResult,
|
|
200
232
|
request_options: request_options
|
|
@@ -227,6 +259,7 @@ module Didit
|
|
|
227
259
|
# protection. Omitting it preserves existing API behavior.
|
|
228
260
|
# @param separate_incident_reason [String]
|
|
229
261
|
# @param source_context [Hash]
|
|
262
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
230
263
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
231
264
|
# @return [Didit::Types::CaseDetail]
|
|
232
265
|
def create(
|
|
@@ -241,6 +274,7 @@ module Didit
|
|
|
241
274
|
review_duplicates: OMIT,
|
|
242
275
|
separate_incident_reason: OMIT,
|
|
243
276
|
source_context: OMIT,
|
|
277
|
+
idempotency_key: OMIT,
|
|
244
278
|
request_options: nil
|
|
245
279
|
)
|
|
246
280
|
@client.request(
|
|
@@ -259,6 +293,7 @@ module Didit
|
|
|
259
293
|
"separate_incident_reason" => separate_incident_reason,
|
|
260
294
|
"source_context" => source_context
|
|
261
295
|
},
|
|
296
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
262
297
|
scope: :application,
|
|
263
298
|
response: Types::CaseDetail,
|
|
264
299
|
request_options: request_options
|
|
@@ -277,13 +312,15 @@ module Didit
|
|
|
277
312
|
# +DELETE /v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/+
|
|
278
313
|
#
|
|
279
314
|
# @param case_uuid [String] Case UUID.
|
|
315
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
280
316
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
281
317
|
# @return [nil]
|
|
282
|
-
def delete(case_uuid, request_options: nil)
|
|
318
|
+
def delete(case_uuid, idempotency_key: OMIT, request_options: nil)
|
|
283
319
|
@client.request(
|
|
284
320
|
:delete,
|
|
285
321
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/",
|
|
286
322
|
path_params: { "case_uuid" => case_uuid },
|
|
323
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
287
324
|
scope: :application,
|
|
288
325
|
request_options: request_options
|
|
289
326
|
)
|
|
@@ -297,13 +334,15 @@ module Didit
|
|
|
297
334
|
# +POST /v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/escalate/+
|
|
298
335
|
#
|
|
299
336
|
# @param case_uuid [String] Case UUID.
|
|
337
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
300
338
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
301
339
|
# @return [Didit::Types::CaseDetail]
|
|
302
|
-
def escalate(case_uuid, request_options: nil)
|
|
340
|
+
def escalate(case_uuid, idempotency_key: OMIT, request_options: nil)
|
|
303
341
|
@client.request(
|
|
304
342
|
:post,
|
|
305
343
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/escalate/",
|
|
306
344
|
path_params: { "case_uuid" => case_uuid },
|
|
345
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
307
346
|
scope: :application,
|
|
308
347
|
response: Types::CaseDetail,
|
|
309
348
|
request_options: request_options
|
|
@@ -318,9 +357,10 @@ module Didit
|
|
|
318
357
|
# @param subject [Hash]
|
|
319
358
|
# @param links [Array<Hash>]
|
|
320
359
|
# @param offset [Integer]
|
|
360
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
321
361
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
322
362
|
# @return [Didit::Types::CaseDuplicateCaseDuplicatePage]
|
|
323
|
-
def find_duplicates(subject: OMIT, links: OMIT, offset: OMIT, request_options: nil)
|
|
363
|
+
def find_duplicates(subject: OMIT, links: OMIT, offset: OMIT, idempotency_key: OMIT, request_options: nil)
|
|
324
364
|
@client.request(
|
|
325
365
|
:post,
|
|
326
366
|
"/v3/organization/{organization_id}/application/{application_id}/cases/duplicates/",
|
|
@@ -329,6 +369,7 @@ module Didit
|
|
|
329
369
|
"links" => links,
|
|
330
370
|
"offset" => offset
|
|
331
371
|
},
|
|
372
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
332
373
|
scope: :application,
|
|
333
374
|
response: Types::CaseDuplicateCaseDuplicatePage,
|
|
334
375
|
request_options: request_options
|
|
@@ -523,9 +564,10 @@ module Didit
|
|
|
523
564
|
#
|
|
524
565
|
# @param case_uuid [String] Case UUID.
|
|
525
566
|
# @param notes [String, nil]
|
|
567
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
526
568
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
527
569
|
# @return [Didit::Types::CaseDetail]
|
|
528
|
-
def reject_resolution(case_uuid, notes: OMIT, request_options: nil)
|
|
570
|
+
def reject_resolution(case_uuid, notes: OMIT, idempotency_key: OMIT, request_options: nil)
|
|
529
571
|
@client.request(
|
|
530
572
|
:post,
|
|
531
573
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/reject-approval/",
|
|
@@ -533,6 +575,7 @@ module Didit
|
|
|
533
575
|
body: {
|
|
534
576
|
"notes" => notes
|
|
535
577
|
},
|
|
578
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
536
579
|
scope: :application,
|
|
537
580
|
response: Types::CaseDetail,
|
|
538
581
|
request_options: request_options
|
|
@@ -547,13 +590,15 @@ module Didit
|
|
|
547
590
|
# +POST /v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/reopen/+
|
|
548
591
|
#
|
|
549
592
|
# @param case_uuid [String] Case UUID.
|
|
593
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
550
594
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
551
595
|
# @return [Didit::Types::CaseDetail]
|
|
552
|
-
def reopen(case_uuid, request_options: nil)
|
|
596
|
+
def reopen(case_uuid, idempotency_key: OMIT, request_options: nil)
|
|
553
597
|
@client.request(
|
|
554
598
|
:post,
|
|
555
599
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/reopen/",
|
|
556
600
|
path_params: { "case_uuid" => case_uuid },
|
|
601
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
557
602
|
scope: :application,
|
|
558
603
|
response: Types::CaseDetail,
|
|
559
604
|
request_options: request_options
|
|
@@ -568,13 +613,15 @@ module Didit
|
|
|
568
613
|
# +POST /v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/request-info/+
|
|
569
614
|
#
|
|
570
615
|
# @param case_uuid [String] Case UUID.
|
|
616
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
571
617
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
572
618
|
# @return [Didit::Types::CaseDetail]
|
|
573
|
-
def request_info(case_uuid, request_options: nil)
|
|
619
|
+
def request_info(case_uuid, idempotency_key: OMIT, request_options: nil)
|
|
574
620
|
@client.request(
|
|
575
621
|
:post,
|
|
576
622
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/request-info/",
|
|
577
623
|
path_params: { "case_uuid" => case_uuid },
|
|
624
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
578
625
|
scope: :application,
|
|
579
626
|
response: Types::CaseDetail,
|
|
580
627
|
request_options: request_options
|
|
@@ -604,9 +651,10 @@ module Didit
|
|
|
604
651
|
# resolution (the same id as `assigned_to.uuid` on a case, or `members[].user_id` on a review team). The member
|
|
605
652
|
# must have case access to this application and cannot be the officer who submits the resolution. Omit it or
|
|
606
653
|
# send null to leave the resolution to the checker queue.
|
|
654
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
607
655
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
608
656
|
# @return [Didit::Types::CaseDetail]
|
|
609
|
-
def resolve(case_uuid, resolution:, note: OMIT, checker: OMIT, request_options: nil)
|
|
657
|
+
def resolve(case_uuid, resolution:, note: OMIT, checker: OMIT, idempotency_key: OMIT, request_options: nil)
|
|
610
658
|
@client.request(
|
|
611
659
|
:post,
|
|
612
660
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/resolve/",
|
|
@@ -616,6 +664,7 @@ module Didit
|
|
|
616
664
|
"note" => note,
|
|
617
665
|
"checker" => checker
|
|
618
666
|
},
|
|
667
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
619
668
|
scope: :application,
|
|
620
669
|
response: Types::CaseDetail,
|
|
621
670
|
request_options: request_options
|
|
@@ -696,13 +745,15 @@ module Didit
|
|
|
696
745
|
#
|
|
697
746
|
# @param case_uuid [String]
|
|
698
747
|
# @param receipt_uuid [String]
|
|
748
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
699
749
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
700
750
|
# @return [Didit::Types::CaseActionCaseActionReceipt]
|
|
701
|
-
def retry_action_receipt(case_uuid, receipt_uuid, request_options: nil)
|
|
751
|
+
def retry_action_receipt(case_uuid, receipt_uuid, idempotency_key: OMIT, request_options: nil)
|
|
702
752
|
@client.request(
|
|
703
753
|
:post,
|
|
704
754
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/action-receipts/{receipt_uuid}/retry/",
|
|
705
755
|
path_params: { "case_uuid" => case_uuid, "receipt_uuid" => receipt_uuid },
|
|
756
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
706
757
|
scope: :application,
|
|
707
758
|
response: Types::CaseActionCaseActionReceipt,
|
|
708
759
|
request_options: request_options
|
|
@@ -718,9 +769,10 @@ module Didit
|
|
|
718
769
|
#
|
|
719
770
|
# @param case_uuid [String] Case UUID.
|
|
720
771
|
# @param target_blueprint [String]
|
|
772
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
721
773
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
722
774
|
# @return [Didit::Types::CaseDetail]
|
|
723
|
-
def transfer(case_uuid, target_blueprint:, request_options: nil)
|
|
775
|
+
def transfer(case_uuid, target_blueprint:, idempotency_key: OMIT, request_options: nil)
|
|
724
776
|
@client.request(
|
|
725
777
|
:post,
|
|
726
778
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/transfer/",
|
|
@@ -728,6 +780,7 @@ module Didit
|
|
|
728
780
|
body: {
|
|
729
781
|
"target_blueprint" => target_blueprint
|
|
730
782
|
},
|
|
783
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
731
784
|
scope: :application,
|
|
732
785
|
response: Types::CaseDetail,
|
|
733
786
|
request_options: request_options
|
|
@@ -752,9 +805,19 @@ module Didit
|
|
|
752
805
|
# @param tags [Array<String>] The complete tag list. It replaces the current tags.
|
|
753
806
|
# @param team [String, nil] UUID of the review team that owns the case. It must be an active team of this
|
|
754
807
|
# application. Send null to clear the team.
|
|
808
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
755
809
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
756
810
|
# @return [Didit::Types::CaseDetail]
|
|
757
|
-
def update(
|
|
811
|
+
def update(
|
|
812
|
+
case_uuid,
|
|
813
|
+
title: OMIT,
|
|
814
|
+
priority: OMIT,
|
|
815
|
+
due_at: OMIT,
|
|
816
|
+
tags: OMIT,
|
|
817
|
+
team: OMIT,
|
|
818
|
+
idempotency_key: OMIT,
|
|
819
|
+
request_options: nil
|
|
820
|
+
)
|
|
758
821
|
@client.request(
|
|
759
822
|
:patch,
|
|
760
823
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/",
|
|
@@ -766,6 +829,7 @@ module Didit
|
|
|
766
829
|
"tags" => tags,
|
|
767
830
|
"team" => team
|
|
768
831
|
},
|
|
832
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
769
833
|
scope: :application,
|
|
770
834
|
response: Types::CaseDetail,
|
|
771
835
|
request_options: request_options
|
|
@@ -784,15 +848,17 @@ module Didit
|
|
|
784
848
|
# +POST /v3/organization/{organization_id}/application/{application_id}/cases/blueprints/ai-draft/+
|
|
785
849
|
#
|
|
786
850
|
# @param prompt [String] Nonblank description of the review policy to propose.
|
|
851
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
787
852
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
788
853
|
# @return [Didit::Types::CaseBlueprintAiDraftResponse]
|
|
789
|
-
def ai_draft(prompt:, request_options: nil)
|
|
854
|
+
def ai_draft(prompt:, idempotency_key: OMIT, request_options: nil)
|
|
790
855
|
@client.request(
|
|
791
856
|
:post,
|
|
792
857
|
"/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/ai-draft/",
|
|
793
858
|
body: {
|
|
794
859
|
"prompt" => prompt
|
|
795
860
|
},
|
|
861
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
796
862
|
scope: :application,
|
|
797
863
|
response: Types::CaseBlueprintAiDraftResponse,
|
|
798
864
|
request_options: request_options
|
|
@@ -834,6 +900,7 @@ module Didit
|
|
|
834
900
|
# integrations.
|
|
835
901
|
# @param applies_to [Array<String>] Case types this blueprint describes. Optional on create and update; new
|
|
836
902
|
# blueprints default to an empty list. Stored in the accepted case policy snapshot.
|
|
903
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
837
904
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
838
905
|
# @return [Didit::Types::CaseBlueprintDetail]
|
|
839
906
|
def create(
|
|
@@ -852,6 +919,7 @@ module Didit
|
|
|
852
919
|
default_deadline_hours: OMIT,
|
|
853
920
|
publish: OMIT,
|
|
854
921
|
applies_to: OMIT,
|
|
922
|
+
idempotency_key: OMIT,
|
|
855
923
|
request_options: nil
|
|
856
924
|
)
|
|
857
925
|
@client.request(
|
|
@@ -874,6 +942,7 @@ module Didit
|
|
|
874
942
|
"publish" => publish,
|
|
875
943
|
"applies_to" => applies_to
|
|
876
944
|
},
|
|
945
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
877
946
|
scope: :application,
|
|
878
947
|
response: Types::CaseBlueprintDetail,
|
|
879
948
|
request_options: request_options
|
|
@@ -890,13 +959,15 @@ module Didit
|
|
|
890
959
|
# +DELETE /v3/organization/{organization_id}/application/{application_id}/cases/blueprints/{blueprint_uuid}/+
|
|
891
960
|
#
|
|
892
961
|
# @param blueprint_uuid [String] Blueprint UUID.
|
|
962
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
893
963
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
894
964
|
# @return [nil]
|
|
895
|
-
def delete(blueprint_uuid, request_options: nil)
|
|
965
|
+
def delete(blueprint_uuid, idempotency_key: OMIT, request_options: nil)
|
|
896
966
|
@client.request(
|
|
897
967
|
:delete,
|
|
898
968
|
"/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/{blueprint_uuid}/",
|
|
899
969
|
path_params: { "blueprint_uuid" => blueprint_uuid },
|
|
970
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
900
971
|
scope: :application,
|
|
901
972
|
request_options: request_options
|
|
902
973
|
)
|
|
@@ -907,9 +978,16 @@ module Didit
|
|
|
907
978
|
# @param blueprint_uuid [String]
|
|
908
979
|
# @param expected_version [Integer]
|
|
909
980
|
# @param expected_revision [String, nil]
|
|
981
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
910
982
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
911
983
|
# @return [nil]
|
|
912
|
-
def discard_draft(
|
|
984
|
+
def discard_draft(
|
|
985
|
+
blueprint_uuid,
|
|
986
|
+
expected_version:,
|
|
987
|
+
expected_revision:,
|
|
988
|
+
idempotency_key: OMIT,
|
|
989
|
+
request_options: nil
|
|
990
|
+
)
|
|
913
991
|
@client.request(
|
|
914
992
|
:delete,
|
|
915
993
|
"/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/{blueprint_uuid}/draft/",
|
|
@@ -918,6 +996,7 @@ module Didit
|
|
|
918
996
|
"expected_version" => expected_version,
|
|
919
997
|
"expected_revision" => expected_revision
|
|
920
998
|
},
|
|
999
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
921
1000
|
scope: :application,
|
|
922
1001
|
request_options: request_options
|
|
923
1002
|
)
|
|
@@ -932,15 +1011,17 @@ module Didit
|
|
|
932
1011
|
#
|
|
933
1012
|
# @param preset_keys [Array<String>, nil] Subset of screening_hit, aml_investigation, suspicious_activity,
|
|
934
1013
|
# kyc. Omit to install all.
|
|
1014
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
935
1015
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
936
1016
|
# @return [Didit::Types::CaseBlueprintPresetInstallResult]
|
|
937
|
-
def install_presets(preset_keys: OMIT, request_options: nil)
|
|
1017
|
+
def install_presets(preset_keys: OMIT, idempotency_key: OMIT, request_options: nil)
|
|
938
1018
|
@client.request(
|
|
939
1019
|
:post,
|
|
940
1020
|
"/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/presets/install/",
|
|
941
1021
|
body: {
|
|
942
1022
|
"preset_keys" => preset_keys
|
|
943
1023
|
},
|
|
1024
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
944
1025
|
scope: :application,
|
|
945
1026
|
response: Types::CaseBlueprintPresetInstallResult,
|
|
946
1027
|
request_options: request_options
|
|
@@ -1019,9 +1100,10 @@ module Didit
|
|
|
1019
1100
|
# @param blueprint_uuid [String]
|
|
1020
1101
|
# @param expected_version [Integer]
|
|
1021
1102
|
# @param expected_revision [String, nil]
|
|
1103
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1022
1104
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1023
1105
|
# @return [Didit::Types::CasePublicationCaseBlueprint]
|
|
1024
|
-
def publish(blueprint_uuid, expected_version:, expected_revision:, request_options: nil)
|
|
1106
|
+
def publish(blueprint_uuid, expected_version:, expected_revision:, idempotency_key: OMIT, request_options: nil)
|
|
1025
1107
|
@client.request(
|
|
1026
1108
|
:post,
|
|
1027
1109
|
"/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/{blueprint_uuid}/publish/",
|
|
@@ -1030,6 +1112,7 @@ module Didit
|
|
|
1030
1112
|
"expected_version" => expected_version,
|
|
1031
1113
|
"expected_revision" => expected_revision
|
|
1032
1114
|
},
|
|
1115
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1033
1116
|
scope: :application,
|
|
1034
1117
|
response: Types::CasePublicationCaseBlueprint,
|
|
1035
1118
|
request_options: request_options
|
|
@@ -1079,9 +1162,17 @@ module Didit
|
|
|
1079
1162
|
# @param expected_version [Integer]
|
|
1080
1163
|
# @param expected_revision [String, nil]
|
|
1081
1164
|
# @param changes [Hash]
|
|
1165
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1082
1166
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1083
1167
|
# @return [Didit::Types::CasePublicationPolicyDraft]
|
|
1084
|
-
def save_draft(
|
|
1168
|
+
def save_draft(
|
|
1169
|
+
blueprint_uuid,
|
|
1170
|
+
expected_version:,
|
|
1171
|
+
expected_revision:,
|
|
1172
|
+
changes:,
|
|
1173
|
+
idempotency_key: OMIT,
|
|
1174
|
+
request_options: nil
|
|
1175
|
+
)
|
|
1085
1176
|
@client.request(
|
|
1086
1177
|
:put,
|
|
1087
1178
|
"/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/{blueprint_uuid}/draft/",
|
|
@@ -1091,6 +1182,7 @@ module Didit
|
|
|
1091
1182
|
"expected_revision" => expected_revision,
|
|
1092
1183
|
"changes" => changes
|
|
1093
1184
|
},
|
|
1185
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1094
1186
|
scope: :application,
|
|
1095
1187
|
response: Types::CasePublicationPolicyDraft,
|
|
1096
1188
|
request_options: request_options
|
|
@@ -1130,6 +1222,7 @@ module Didit
|
|
|
1130
1222
|
# changing the review policy.
|
|
1131
1223
|
# @param applies_to [Array<String>] Case types this blueprint describes. Optional on create and update; new
|
|
1132
1224
|
# blueprints default to an empty list. Stored in the accepted case policy snapshot.
|
|
1225
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1133
1226
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1134
1227
|
# @return [Didit::Types::CaseBlueprintDetail]
|
|
1135
1228
|
def update(
|
|
@@ -1149,6 +1242,7 @@ module Didit
|
|
|
1149
1242
|
default_deadline_hours: OMIT,
|
|
1150
1243
|
expected_version: OMIT,
|
|
1151
1244
|
applies_to: OMIT,
|
|
1245
|
+
idempotency_key: OMIT,
|
|
1152
1246
|
request_options: nil
|
|
1153
1247
|
)
|
|
1154
1248
|
@client.request(
|
|
@@ -1172,6 +1266,7 @@ module Didit
|
|
|
1172
1266
|
"expected_version" => expected_version,
|
|
1173
1267
|
"applies_to" => applies_to
|
|
1174
1268
|
},
|
|
1269
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1175
1270
|
scope: :application,
|
|
1176
1271
|
response: Types::CaseBlueprintDetail,
|
|
1177
1272
|
request_options: request_options
|
|
@@ -1212,9 +1307,10 @@ module Didit
|
|
|
1212
1307
|
# @param case_uuid [String] Case UUID.
|
|
1213
1308
|
# @param item_uuid [String] Checklist item UUID.
|
|
1214
1309
|
# @param is_completed [Boolean]
|
|
1310
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1215
1311
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1216
1312
|
# @return [Didit::Types::CaseChecklistItem]
|
|
1217
|
-
def toggle_item(case_uuid, item_uuid, is_completed:, request_options: nil)
|
|
1313
|
+
def toggle_item(case_uuid, item_uuid, is_completed:, idempotency_key: OMIT, request_options: nil)
|
|
1218
1314
|
@client.request(
|
|
1219
1315
|
:patch,
|
|
1220
1316
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/checklist/{item_uuid}/",
|
|
@@ -1222,6 +1318,7 @@ module Didit
|
|
|
1222
1318
|
body: {
|
|
1223
1319
|
"is_completed" => is_completed
|
|
1224
1320
|
},
|
|
1321
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1225
1322
|
scope: :application,
|
|
1226
1323
|
response: Types::CaseChecklistItem,
|
|
1227
1324
|
request_options: request_options
|
|
@@ -1244,9 +1341,10 @@ module Didit
|
|
|
1244
1341
|
# @param entity_type [String] Type of record to attach. A network must be visible and contain the selected
|
|
1245
1342
|
# case subject.
|
|
1246
1343
|
# @param entity_uuid [String]
|
|
1344
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1247
1345
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1248
1346
|
# @return [Didit::Types::CaseLink]
|
|
1249
|
-
def create(case_uuid, entity_type:, entity_uuid:, request_options: nil)
|
|
1347
|
+
def create(case_uuid, entity_type:, entity_uuid:, idempotency_key: OMIT, request_options: nil)
|
|
1250
1348
|
@client.request(
|
|
1251
1349
|
:post,
|
|
1252
1350
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/links/",
|
|
@@ -1255,6 +1353,7 @@ module Didit
|
|
|
1255
1353
|
"entity_type" => entity_type,
|
|
1256
1354
|
"entity_uuid" => entity_uuid
|
|
1257
1355
|
},
|
|
1356
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1258
1357
|
scope: :application,
|
|
1259
1358
|
response: Types::CaseLink,
|
|
1260
1359
|
request_options: request_options
|
|
@@ -1269,13 +1368,15 @@ module Didit
|
|
|
1269
1368
|
#
|
|
1270
1369
|
# @param case_uuid [String] Case UUID.
|
|
1271
1370
|
# @param link_uuid [String] Link UUID.
|
|
1371
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1272
1372
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1273
1373
|
# @return [nil]
|
|
1274
|
-
def delete(case_uuid, link_uuid, request_options: nil)
|
|
1374
|
+
def delete(case_uuid, link_uuid, idempotency_key: OMIT, request_options: nil)
|
|
1275
1375
|
@client.request(
|
|
1276
1376
|
:delete,
|
|
1277
1377
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/links/{link_uuid}/",
|
|
1278
1378
|
path_params: { "case_uuid" => case_uuid, "link_uuid" => link_uuid },
|
|
1379
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1279
1380
|
scope: :application,
|
|
1280
1381
|
request_options: request_options
|
|
1281
1382
|
)
|
|
@@ -1318,6 +1419,7 @@ module Didit
|
|
|
1318
1419
|
# @param is_internal [Boolean]
|
|
1319
1420
|
# @param attachments [Array<Hash>]
|
|
1320
1421
|
# @param tags [Array<String>]
|
|
1422
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1321
1423
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1322
1424
|
# @return [Didit::Types::CaseCollaborationCaseNote]
|
|
1323
1425
|
def create(
|
|
@@ -1329,6 +1431,7 @@ module Didit
|
|
|
1329
1431
|
is_internal: OMIT,
|
|
1330
1432
|
attachments: OMIT,
|
|
1331
1433
|
tags: OMIT,
|
|
1434
|
+
idempotency_key: OMIT,
|
|
1332
1435
|
request_options: nil
|
|
1333
1436
|
)
|
|
1334
1437
|
@client.request(
|
|
@@ -1344,6 +1447,7 @@ module Didit
|
|
|
1344
1447
|
"attachments" => attachments,
|
|
1345
1448
|
"tags" => tags
|
|
1346
1449
|
},
|
|
1450
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1347
1451
|
scope: :application,
|
|
1348
1452
|
response: Types::CaseCollaborationCaseNote,
|
|
1349
1453
|
request_options: request_options
|
|
@@ -1359,9 +1463,10 @@ module Didit
|
|
|
1359
1463
|
#
|
|
1360
1464
|
# @param case_uuid [String] Case UUID.
|
|
1361
1465
|
# @param file [Pathname, IO, String, Didit::FilePart]
|
|
1466
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1362
1467
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1363
1468
|
# @return [Didit::Types::CasesNotesCreateAttachmentUploadResponse]
|
|
1364
|
-
def create_attachment_upload(case_uuid, file:, request_options: nil)
|
|
1469
|
+
def create_attachment_upload(case_uuid, file:, idempotency_key: OMIT, request_options: nil)
|
|
1365
1470
|
@client.request(
|
|
1366
1471
|
:post,
|
|
1367
1472
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/presign/",
|
|
@@ -1371,6 +1476,7 @@ module Didit
|
|
|
1371
1476
|
},
|
|
1372
1477
|
encoding: :multipart,
|
|
1373
1478
|
file_fields: %w[file],
|
|
1479
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1374
1480
|
scope: :application,
|
|
1375
1481
|
response: Types::CasesNotesCreateAttachmentUploadResponse,
|
|
1376
1482
|
request_options: request_options
|
|
@@ -1381,13 +1487,15 @@ module Didit
|
|
|
1381
1487
|
#
|
|
1382
1488
|
# @param case_uuid [String]
|
|
1383
1489
|
# @param note_uuid [String]
|
|
1490
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1384
1491
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1385
1492
|
# @return [nil]
|
|
1386
|
-
def delete(case_uuid, note_uuid, request_options: nil)
|
|
1493
|
+
def delete(case_uuid, note_uuid, idempotency_key: OMIT, request_options: nil)
|
|
1387
1494
|
@client.request(
|
|
1388
1495
|
:delete,
|
|
1389
1496
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/{note_uuid}/",
|
|
1390
1497
|
path_params: { "case_uuid" => case_uuid, "note_uuid" => note_uuid },
|
|
1498
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1391
1499
|
scope: :application,
|
|
1392
1500
|
request_options: request_options
|
|
1393
1501
|
)
|
|
@@ -1449,9 +1557,10 @@ module Didit
|
|
|
1449
1557
|
# @param case_uuid [String]
|
|
1450
1558
|
# @param note_uuid [String]
|
|
1451
1559
|
# @param is_pinned [Boolean]
|
|
1560
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1452
1561
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1453
1562
|
# @return [Didit::Types::CaseCollaborationCaseNote]
|
|
1454
|
-
def update(case_uuid, note_uuid, is_pinned: OMIT, request_options: nil)
|
|
1563
|
+
def update(case_uuid, note_uuid, is_pinned: OMIT, idempotency_key: OMIT, request_options: nil)
|
|
1455
1564
|
@client.request(
|
|
1456
1565
|
:patch,
|
|
1457
1566
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/notes/{note_uuid}/",
|
|
@@ -1459,6 +1568,7 @@ module Didit
|
|
|
1459
1568
|
body: {
|
|
1460
1569
|
"is_pinned" => is_pinned
|
|
1461
1570
|
},
|
|
1571
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1462
1572
|
scope: :application,
|
|
1463
1573
|
response: Types::CaseCollaborationCaseNote,
|
|
1464
1574
|
request_options: request_options
|
|
@@ -1502,6 +1612,7 @@ module Didit
|
|
|
1502
1612
|
# @param narrative [Hash]
|
|
1503
1613
|
# @param report_indicators [Array<String>]
|
|
1504
1614
|
# @param included_fields [Array<String>]
|
|
1615
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1505
1616
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1506
1617
|
# @return [Didit::Types::RegulatoryReportDetail]
|
|
1507
1618
|
def create(
|
|
@@ -1525,6 +1636,7 @@ module Didit
|
|
|
1525
1636
|
narrative: OMIT,
|
|
1526
1637
|
report_indicators: OMIT,
|
|
1527
1638
|
included_fields: OMIT,
|
|
1639
|
+
idempotency_key: OMIT,
|
|
1528
1640
|
request_options: nil
|
|
1529
1641
|
)
|
|
1530
1642
|
@client.request(
|
|
@@ -1552,6 +1664,7 @@ module Didit
|
|
|
1552
1664
|
"report_indicators" => report_indicators,
|
|
1553
1665
|
"included_fields" => included_fields
|
|
1554
1666
|
},
|
|
1667
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1555
1668
|
scope: :application,
|
|
1556
1669
|
response: Types::RegulatoryReportDetail,
|
|
1557
1670
|
request_options: request_options
|
|
@@ -1591,13 +1704,15 @@ module Didit
|
|
|
1591
1704
|
#
|
|
1592
1705
|
# @param case_uuid [String]
|
|
1593
1706
|
# @param request_uuid [String]
|
|
1707
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1594
1708
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1595
1709
|
# @return [Didit::Types::CustomerMessagingCaseRequest]
|
|
1596
|
-
def cancel(case_uuid, request_uuid, request_options: nil)
|
|
1710
|
+
def cancel(case_uuid, request_uuid, idempotency_key: OMIT, request_options: nil)
|
|
1597
1711
|
@client.request(
|
|
1598
1712
|
:post,
|
|
1599
1713
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/requests/{request_uuid}/cancel/",
|
|
1600
1714
|
path_params: { "case_uuid" => case_uuid, "request_uuid" => request_uuid },
|
|
1715
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1601
1716
|
scope: :application,
|
|
1602
1717
|
response: Types::CustomerMessagingCaseRequest,
|
|
1603
1718
|
request_options: request_options
|
|
@@ -1624,6 +1739,7 @@ module Didit
|
|
|
1624
1739
|
# seven days. Changing the expiry without a matching preview is rejected.
|
|
1625
1740
|
# @param preview_token [String]
|
|
1626
1741
|
# @param language [String]
|
|
1742
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1627
1743
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1628
1744
|
# @return [Didit::Types::CustomerMessagingCaseRequest]
|
|
1629
1745
|
def create(
|
|
@@ -1634,6 +1750,7 @@ module Didit
|
|
|
1634
1750
|
expires_at:,
|
|
1635
1751
|
preview_token:,
|
|
1636
1752
|
language: OMIT,
|
|
1753
|
+
idempotency_key: OMIT,
|
|
1637
1754
|
request_options: nil
|
|
1638
1755
|
)
|
|
1639
1756
|
@client.request(
|
|
@@ -1648,6 +1765,7 @@ module Didit
|
|
|
1648
1765
|
"preview_token" => preview_token,
|
|
1649
1766
|
"language" => language
|
|
1650
1767
|
},
|
|
1768
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1651
1769
|
scope: :application,
|
|
1652
1770
|
response: Types::CustomerMessagingCaseRequest,
|
|
1653
1771
|
request_options: request_options
|
|
@@ -1692,9 +1810,10 @@ module Didit
|
|
|
1692
1810
|
# `purpose_of_payment` - Request a document explaining the payment purpose. Both are available for person and
|
|
1693
1811
|
# busin...
|
|
1694
1812
|
# @param language [String]
|
|
1813
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1695
1814
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1696
1815
|
# @return [Didit::Types::CustomerMessagingCaseRequestPreviewResponse]
|
|
1697
|
-
def preview(case_uuid, contact_id:, purpose:, language: OMIT, request_options: nil)
|
|
1816
|
+
def preview(case_uuid, contact_id:, purpose:, language: OMIT, idempotency_key: OMIT, request_options: nil)
|
|
1698
1817
|
@client.request(
|
|
1699
1818
|
:post,
|
|
1700
1819
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/requests/preview/",
|
|
@@ -1704,6 +1823,7 @@ module Didit
|
|
|
1704
1823
|
"purpose" => purpose,
|
|
1705
1824
|
"language" => language
|
|
1706
1825
|
},
|
|
1826
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1707
1827
|
scope: :application,
|
|
1708
1828
|
response: Types::CustomerMessagingCaseRequestPreviewResponse,
|
|
1709
1829
|
request_options: request_options
|
|
@@ -1725,13 +1845,15 @@ module Didit
|
|
|
1725
1845
|
#
|
|
1726
1846
|
# @param case_uuid [String] Case UUID.
|
|
1727
1847
|
# @param request_uuid [String] Customer request UUID, from the case's request list.
|
|
1848
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1728
1849
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1729
1850
|
# @return [Didit::Types::CasesRequestsRemindResponse]
|
|
1730
|
-
def remind(case_uuid, request_uuid, request_options: nil)
|
|
1851
|
+
def remind(case_uuid, request_uuid, idempotency_key: OMIT, request_options: nil)
|
|
1731
1852
|
@client.request(
|
|
1732
1853
|
:post,
|
|
1733
1854
|
"/v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/requests/{request_uuid}/remind/",
|
|
1734
1855
|
path_params: { "case_uuid" => case_uuid, "request_uuid" => request_uuid },
|
|
1856
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1735
1857
|
scope: :application,
|
|
1736
1858
|
response: Types::CasesRequestsRemindResponse,
|
|
1737
1859
|
request_options: request_options
|
|
@@ -1793,6 +1915,7 @@ module Didit
|
|
|
1793
1915
|
# @param publish [Boolean] Set false to save a never-published draft. The record remains inactive at version 0
|
|
1794
1916
|
# until the draft is explicitly published. Omitting this field preserves immediate creation for existing
|
|
1795
1917
|
# integrations.
|
|
1918
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1796
1919
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1797
1920
|
# @return [Didit::Types::CaseRoutingRule]
|
|
1798
1921
|
def create(
|
|
@@ -1805,6 +1928,7 @@ module Didit
|
|
|
1805
1928
|
team: OMIT,
|
|
1806
1929
|
is_active: OMIT,
|
|
1807
1930
|
publish: OMIT,
|
|
1931
|
+
idempotency_key: OMIT,
|
|
1808
1932
|
request_options: nil
|
|
1809
1933
|
)
|
|
1810
1934
|
@client.request(
|
|
@@ -1821,6 +1945,7 @@ module Didit
|
|
|
1821
1945
|
"is_active" => is_active,
|
|
1822
1946
|
"publish" => publish
|
|
1823
1947
|
},
|
|
1948
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1824
1949
|
scope: :application,
|
|
1825
1950
|
response: Types::CaseRoutingRule,
|
|
1826
1951
|
request_options: request_options
|
|
@@ -1832,9 +1957,16 @@ module Didit
|
|
|
1832
1957
|
# @param record_uuid [String]
|
|
1833
1958
|
# @param expected_version [Integer]
|
|
1834
1959
|
# @param expected_revision [String, nil]
|
|
1960
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1835
1961
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1836
1962
|
# @return [nil]
|
|
1837
|
-
def discard_draft(
|
|
1963
|
+
def discard_draft(
|
|
1964
|
+
record_uuid,
|
|
1965
|
+
expected_version:,
|
|
1966
|
+
expected_revision:,
|
|
1967
|
+
idempotency_key: OMIT,
|
|
1968
|
+
request_options: nil
|
|
1969
|
+
)
|
|
1838
1970
|
@client.request(
|
|
1839
1971
|
:delete,
|
|
1840
1972
|
"/v3/organization/{organization_id}/application/{application_id}/cases/routing-rules/{record_uuid}/draft/",
|
|
@@ -1843,6 +1975,7 @@ module Didit
|
|
|
1843
1975
|
"expected_version" => expected_version,
|
|
1844
1976
|
"expected_revision" => expected_revision
|
|
1845
1977
|
},
|
|
1978
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1846
1979
|
scope: :application,
|
|
1847
1980
|
request_options: request_options
|
|
1848
1981
|
)
|
|
@@ -1909,9 +2042,18 @@ module Didit
|
|
|
1909
2042
|
# @param tags [Array<String>]
|
|
1910
2043
|
# @param rule_uuid [String]
|
|
1911
2044
|
# @param draft [Hash]
|
|
2045
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1912
2046
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1913
2047
|
# @return [Didit::Types::CaseRoutingPreview]
|
|
1914
|
-
def preview(
|
|
2048
|
+
def preview(
|
|
2049
|
+
source:,
|
|
2050
|
+
priority: OMIT,
|
|
2051
|
+
tags: OMIT,
|
|
2052
|
+
rule_uuid: OMIT,
|
|
2053
|
+
draft: OMIT,
|
|
2054
|
+
idempotency_key: OMIT,
|
|
2055
|
+
request_options: nil
|
|
2056
|
+
)
|
|
1915
2057
|
@client.request(
|
|
1916
2058
|
:post,
|
|
1917
2059
|
"/v3/organization/{organization_id}/application/{application_id}/cases/routing-rules/preview/",
|
|
@@ -1922,6 +2064,7 @@ module Didit
|
|
|
1922
2064
|
"rule_uuid" => rule_uuid,
|
|
1923
2065
|
"draft" => draft
|
|
1924
2066
|
},
|
|
2067
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1925
2068
|
scope: :application,
|
|
1926
2069
|
response: Types::CaseRoutingPreview,
|
|
1927
2070
|
request_options: request_options
|
|
@@ -1933,9 +2076,10 @@ module Didit
|
|
|
1933
2076
|
# @param record_uuid [String]
|
|
1934
2077
|
# @param expected_version [Integer]
|
|
1935
2078
|
# @param expected_revision [String, nil]
|
|
2079
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1936
2080
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1937
2081
|
# @return [Didit::Types::RoutingPublicationCaseRoutingRule]
|
|
1938
|
-
def publish(record_uuid, expected_version:, expected_revision:, request_options: nil)
|
|
2082
|
+
def publish(record_uuid, expected_version:, expected_revision:, idempotency_key: OMIT, request_options: nil)
|
|
1939
2083
|
@client.request(
|
|
1940
2084
|
:post,
|
|
1941
2085
|
"/v3/organization/{organization_id}/application/{application_id}/cases/routing-rules/{record_uuid}/publish/",
|
|
@@ -1944,6 +2088,7 @@ module Didit
|
|
|
1944
2088
|
"expected_version" => expected_version,
|
|
1945
2089
|
"expected_revision" => expected_revision
|
|
1946
2090
|
},
|
|
2091
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
1947
2092
|
scope: :application,
|
|
1948
2093
|
response: Types::RoutingPublicationCaseRoutingRule,
|
|
1949
2094
|
request_options: request_options
|
|
@@ -1992,9 +2137,17 @@ module Didit
|
|
|
1992
2137
|
# @param expected_version [Integer]
|
|
1993
2138
|
# @param expected_revision [String, nil]
|
|
1994
2139
|
# @param changes [Hash]
|
|
2140
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
1995
2141
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
1996
2142
|
# @return [Didit::Types::RoutingPublicationPolicyDraft]
|
|
1997
|
-
def save_draft(
|
|
2143
|
+
def save_draft(
|
|
2144
|
+
record_uuid,
|
|
2145
|
+
expected_version:,
|
|
2146
|
+
expected_revision:,
|
|
2147
|
+
changes:,
|
|
2148
|
+
idempotency_key: OMIT,
|
|
2149
|
+
request_options: nil
|
|
2150
|
+
)
|
|
1998
2151
|
@client.request(
|
|
1999
2152
|
:put,
|
|
2000
2153
|
"/v3/organization/{organization_id}/application/{application_id}/cases/routing-rules/{record_uuid}/draft/",
|
|
@@ -2004,6 +2157,7 @@ module Didit
|
|
|
2004
2157
|
"expected_revision" => expected_revision,
|
|
2005
2158
|
"changes" => changes
|
|
2006
2159
|
},
|
|
2160
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
2007
2161
|
scope: :application,
|
|
2008
2162
|
response: Types::RoutingPublicationPolicyDraft,
|
|
2009
2163
|
request_options: request_options
|
|
@@ -2027,6 +2181,7 @@ module Didit
|
|
|
2027
2181
|
# @param is_active [Boolean]
|
|
2028
2182
|
# @param expected_version [Integer] Version opened by the editor. When supplied, stale writes return 409
|
|
2029
2183
|
# without changing the rule.
|
|
2184
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
2030
2185
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
2031
2186
|
# @return [Didit::Types::CaseRoutingRule]
|
|
2032
2187
|
def update(
|
|
@@ -2040,6 +2195,7 @@ module Didit
|
|
|
2040
2195
|
team: OMIT,
|
|
2041
2196
|
is_active: OMIT,
|
|
2042
2197
|
expected_version: OMIT,
|
|
2198
|
+
idempotency_key: OMIT,
|
|
2043
2199
|
request_options: nil
|
|
2044
2200
|
)
|
|
2045
2201
|
@client.request(
|
|
@@ -2057,6 +2213,7 @@ module Didit
|
|
|
2057
2213
|
"is_active" => is_active,
|
|
2058
2214
|
"expected_version" => expected_version
|
|
2059
2215
|
},
|
|
2216
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
2060
2217
|
scope: :application,
|
|
2061
2218
|
response: Types::CaseRoutingRule,
|
|
2062
2219
|
request_options: request_options
|
|
@@ -2076,9 +2233,10 @@ module Didit
|
|
|
2076
2233
|
# @param members [Array<Hash>]
|
|
2077
2234
|
# @param description [String]
|
|
2078
2235
|
# @param is_active [Boolean]
|
|
2236
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
2079
2237
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
2080
2238
|
# @return [Didit::Types::CaseReviewTeam]
|
|
2081
|
-
def create(name:, members:, description: OMIT, is_active: OMIT, request_options: nil)
|
|
2239
|
+
def create(name:, members:, description: OMIT, is_active: OMIT, idempotency_key: OMIT, request_options: nil)
|
|
2082
2240
|
@client.request(
|
|
2083
2241
|
:post,
|
|
2084
2242
|
"/v3/organization/{organization_id}/application/{application_id}/cases/teams/",
|
|
@@ -2088,6 +2246,7 @@ module Didit
|
|
|
2088
2246
|
"description" => description,
|
|
2089
2247
|
"is_active" => is_active
|
|
2090
2248
|
},
|
|
2249
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
2091
2250
|
scope: :application,
|
|
2092
2251
|
response: Types::CaseReviewTeam,
|
|
2093
2252
|
request_options: request_options
|
|
@@ -2149,9 +2308,18 @@ module Didit
|
|
|
2149
2308
|
# @param description [String]
|
|
2150
2309
|
# @param members [Array<Hash>]
|
|
2151
2310
|
# @param is_active [Boolean]
|
|
2311
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
2152
2312
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
2153
2313
|
# @return [Didit::Types::CaseReviewTeam]
|
|
2154
|
-
def update(
|
|
2314
|
+
def update(
|
|
2315
|
+
record_uuid,
|
|
2316
|
+
name: OMIT,
|
|
2317
|
+
description: OMIT,
|
|
2318
|
+
members: OMIT,
|
|
2319
|
+
is_active: OMIT,
|
|
2320
|
+
idempotency_key: OMIT,
|
|
2321
|
+
request_options: nil
|
|
2322
|
+
)
|
|
2155
2323
|
@client.request(
|
|
2156
2324
|
:patch,
|
|
2157
2325
|
"/v3/organization/{organization_id}/application/{application_id}/cases/teams/{record_uuid}/",
|
|
@@ -2162,6 +2330,7 @@ module Didit
|
|
|
2162
2330
|
"members" => members,
|
|
2163
2331
|
"is_active" => is_active
|
|
2164
2332
|
},
|
|
2333
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
2165
2334
|
scope: :application,
|
|
2166
2335
|
response: Types::CaseReviewTeam,
|
|
2167
2336
|
request_options: request_options
|