didit-sdk 2.8.0 → 2.9.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 +7 -0
- data/lib/didit/resources/billing.rb +58 -16
- data/lib/didit/resources/cases.rb +5 -0
- data/lib/didit/resources/regulatory_reports.rb +8 -3
- data/lib/didit/types/billing.rb +12 -0
- data/lib/didit/types/cases.rb +3 -1
- data/lib/didit/types/components.rb +79 -3
- data/lib/didit/types/regulatory_reports.rb +6 -2
- data/lib/didit/types/report_templates.rb +6 -2
- data/lib/didit/types.rb +9 -0
- data/lib/didit/version.rb +1 -1
- data/sig/didit/resources/billing.rbs +1 -1
- data/sig/didit/types/billing.rbs +9 -1
- data/sig/didit/types/cases.rbs +2 -0
- data/sig/didit/types/components.rbs +61 -0
- data/sig/didit/types/regulatory_reports.rbs +4 -0
- data/sig/didit/types/report_templates.rbs +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 588c00cded41351e89d8a25a897e5d242d3be58d8af03b5d1470f287b79ccfc6
|
|
4
|
+
data.tar.gz: 4e6e934ada1cb1c17de26eee3e083098c52dba36755bcfd901b238dc2d50a328
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94ddddad843698fd482b74ebb54e16f943615e82ffd84194c92326c7f65f0d71c7e802d651fd00d0b0f7c7a018e60e5d3602ef1d70626dae2cbf8b35989b2372
|
|
7
|
+
data.tar.gz: ea4b39df58a2daa481cf6c3cbde2c965f1f3539b4f0f18d0eecb30c3321c2012a085de3bfc71c978a1aa6588567408b9229a12a5e3d4c978cbb7d887a309e458
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.9.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.8.0...v2.9.0) (2026-11-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **spec:** sync API spec 2026-11-10 ([96b48e5](https://github.com/didit-protocol/sdk-ruby/commit/96b48e595d53fda32caf3853e73782bf6a580769))
|
|
9
|
+
|
|
3
10
|
## [2.8.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.7.0...v2.8.0) (2026-11-10)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -25,34 +25,76 @@ module Didit
|
|
|
25
25
|
|
|
26
26
|
# Top up credits
|
|
27
27
|
#
|
|
28
|
-
# Add credits
|
|
29
|
-
#
|
|
30
|
-
#
|
|
28
|
+
# Add credits to the organization's balance (**\$50 to \$20,000** per top-up). Top-ups are available on the
|
|
29
|
+
# Free, Growth and Scale plans, added at face value with no discount or bonus, and last 12 months; Enterprise
|
|
30
|
+
# annual contracts cannot top up.
|
|
31
|
+
#
|
|
32
|
+
# Two payment methods, chosen with `payment_method`:
|
|
33
|
+
#
|
|
34
|
+
# - `checkout` (default): creates a hosted Stripe Checkout session. Redirect the customer to the returned
|
|
35
|
+
# `checkout_session_url` (`200`).
|
|
36
|
+
# - `saved_card`: charges the organization's saved primary card off-session, now, at the normal self-serve
|
|
37
|
+
# amounts. Send an `Idempotency-Key` header (required for this method). It answers `201` when the card was
|
|
38
|
+
# charged, and `202` when a request with the same key is still being processed.
|
|
39
|
+
#
|
|
40
|
+
# **Agent top-ups (`saved_card`).** One switch controls them: "Connected AI agents can top up with your saved
|
|
41
|
+
# card". It is off by default and only a person signed in to the console can turn it on (Billing > Payment
|
|
42
|
+
# methods), never an API key or an agent. While it is on, agents and API keys can top up with the primary saved
|
|
43
|
+
# card. When it is off, the request returns `403` `agent_top_up_not_enabled` with a link a person can use to top
|
|
44
|
+
# up in the console.
|
|
45
|
+
#
|
|
46
|
+
# The balance is credited once the payment is confirmed, usually within seconds, and tax is added to the amount
|
|
47
|
+
# charged when it applies, so `total` can be higher than `credit_amount`. Read `GET /v3/billing/balance/` to
|
|
48
|
+
# confirm.
|
|
49
|
+
#
|
|
50
|
+
# **Idempotency.** Retrying with the same `Idempotency-Key` and the same amount returns the same top-up and
|
|
51
|
+
# never charges twice. The same key with another amount returns `409` `idempotency_key_conflict`.
|
|
52
|
+
#
|
|
53
|
+
# Every error of a `saved_card` request carries a `code` and a `detail`, and most also a `next_step` (read it
|
|
54
|
+
# only when it is present). When the step needs a person (for example `authentication_required`, where the
|
|
55
|
+
# card's bank asks the cardholder to approve and nothing is charged), `next_step.url` is a signed link to the
|
|
56
|
+
# console that opens the Top up dialog with the amount filled in and says which agent asked; nothing is charged
|
|
57
|
+
# until the person pays. Each top-up is marked with the agent's name in billing history and in the ordinary
|
|
58
|
+
# receipt email.
|
|
31
59
|
#
|
|
32
60
|
# +POST /v3/billing/top-up/+
|
|
33
61
|
#
|
|
34
62
|
# @param amount_in_dollars [Numeric] Amount to charge, in USD. **Must be from 50 to 20,000.** The balance
|
|
35
|
-
# receives the same amount, with no discount or bonus. Tax is added automatically at checkout
|
|
36
|
-
# customer's billing address.
|
|
37
|
-
# @param success_url [String] URL the hosted checkout redirects the customer to after a
|
|
38
|
-
# Currently defaults to `https://console.didit.me`. Pass a working URL explicitly; the
|
|
39
|
-
# unavailable. Append the literal placeholder `{CHECKOUT_SESSION_ID}` if you want the hosted
|
|
40
|
-
# substitute the session ID.
|
|
41
|
-
# @param cancel_url [String] URL the hosted checkout redirects the customer to when they abort or
|
|
42
|
-
# Checkout window. Currently defaults to `https://console.didit.me`. Pass a working URL explicitly;
|
|
43
|
-
# host is unavailable.
|
|
63
|
+
# receives the same amount, with no discount or bonus. Tax is added automatically, at checkout or to the saved
|
|
64
|
+
# card charge, based on the customer's billing address.
|
|
65
|
+
# @param success_url [String] Checkout only. URL the hosted checkout redirects the customer to after a
|
|
66
|
+
# successful payment. Currently defaults to `https://console.didit.me`. Pass a working URL explicitly; the
|
|
67
|
+
# default host is unavailable. Append the literal placeholder `{CHECKOUT_SESSION_ID}` if you want the hosted
|
|
68
|
+
# checkout to substitute the session ID.
|
|
69
|
+
# @param cancel_url [String] Checkout only. URL the hosted checkout redirects the customer to when they abort or
|
|
70
|
+
# close the Checkout window. Currently defaults to `https://console.didit.me`. Pass a working URL explicitly;
|
|
71
|
+
# the default host is unavailable.
|
|
72
|
+
# @param payment_method [String] How the top-up is paid. `checkout` (default) creates a hosted Checkout session
|
|
73
|
+
# and answers `200`. `saved_card` charges the organization's saved primary card off-session, requires the
|
|
74
|
+
# `Idempotency-Key` header and "Connected AI agents can top up with your saved card" to be on, and answers `201`
|
|
75
|
+
# or `202`. `success_url` and `cancel_url` apply to `checkout` only.
|
|
76
|
+
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
44
77
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
45
|
-
# @return [Didit::Types::BillingTopUpResponse]
|
|
46
|
-
def top_up(
|
|
78
|
+
# @return [Didit::Types::BillingTopUpResponse, Didit::Types::BillingTopUpCharge]
|
|
79
|
+
def top_up(
|
|
80
|
+
amount_in_dollars:,
|
|
81
|
+
success_url: OMIT,
|
|
82
|
+
cancel_url: OMIT,
|
|
83
|
+
payment_method: OMIT,
|
|
84
|
+
idempotency_key: OMIT,
|
|
85
|
+
request_options: nil
|
|
86
|
+
)
|
|
47
87
|
@client.request(
|
|
48
88
|
:post,
|
|
49
89
|
"/v3/billing/top-up/",
|
|
50
90
|
body: {
|
|
51
91
|
"amount_in_dollars" => amount_in_dollars,
|
|
52
92
|
"success_url" => success_url,
|
|
53
|
-
"cancel_url" => cancel_url
|
|
93
|
+
"cancel_url" => cancel_url,
|
|
94
|
+
"payment_method" => payment_method
|
|
54
95
|
},
|
|
55
|
-
|
|
96
|
+
headers: { "Idempotency-Key" => idempotency_key },
|
|
97
|
+
response: { 200 => Types::BillingTopUpResponse, 201 => Types::BillingTopUpCharge, 202 => Types::BillingTopUpCharge },
|
|
56
98
|
request_options: request_options
|
|
57
99
|
)
|
|
58
100
|
end
|
|
@@ -1426,6 +1426,10 @@ module Didit
|
|
|
1426
1426
|
#
|
|
1427
1427
|
# Create a draft FIU report for the case: DRAFT status, auto-populated from the optional template plus the
|
|
1428
1428
|
# case's subject, linked transactions, and narrative. Validate then finalize to produce the goAML XML and PDF.
|
|
1429
|
+
# FFR (Confirmed Name Match Report, formerly the Funds Freeze Report) and PNMR (Partial Name Match Report) are
|
|
1430
|
+
# activity reports: they report the case's subject, not transactions, so a draft links no transactions by
|
|
1431
|
+
# default and the narrative, reason and action are written from the sanctions matches on the case's AML
|
|
1432
|
+
# screenings.
|
|
1429
1433
|
#
|
|
1430
1434
|
# +POST /v3/organization/{organization_id}/application/{application_id}/cases/{case_uuid}/regulatory-reports/+
|
|
1431
1435
|
#
|
|
@@ -1436,6 +1440,7 @@ module Didit
|
|
|
1436
1440
|
# @param template [String, nil] Report template UUID; its field_config seeds the draft before case-derived
|
|
1437
1441
|
# data is merged in.
|
|
1438
1442
|
# @param transactions [Array<String>, nil] Transactions to attach; defaults to the case's linked transactions.
|
|
1443
|
+
# For FFR and PNMR reports it defaults to none and none are required.
|
|
1439
1444
|
# @param rentity_id [String, nil]
|
|
1440
1445
|
# @param rentity_branch [String, nil]
|
|
1441
1446
|
# @param submission_code [String]
|
|
@@ -17,6 +17,7 @@ module Didit
|
|
|
17
17
|
# @param report_type [String] Required unless a template is given; the template's report_type is used otherwise.
|
|
18
18
|
# @param jurisdiction [String] Required unless a template is given.
|
|
19
19
|
# @param transactions [Array<String>, nil] Transactions to attach; defaults to the case's linked transactions.
|
|
20
|
+
# For FFR and PNMR reports it defaults to none and none are required.
|
|
20
21
|
# @param rentity_id [String, nil]
|
|
21
22
|
# @param rentity_branch [String, nil]
|
|
22
23
|
# @param submission_code [String]
|
|
@@ -122,7 +123,7 @@ module Didit
|
|
|
122
123
|
# Finalize report
|
|
123
124
|
#
|
|
124
125
|
# Re-validate, then render the goAML XML and PDF and upload both to S3. On SAR/STR/TFR reports, this also moves
|
|
125
|
-
# the case's transaction alerts from Pending SAR to SAR filed.
|
|
126
|
+
# the case's transaction alerts from Pending SAR to SAR filed. FFR and PNMR reports do not move alerts.
|
|
126
127
|
#
|
|
127
128
|
# +POST /v3/organization/{organization_id}/application/{application_id}/regulatory-reports/{report_uuid}/finalize/+
|
|
128
129
|
#
|
|
@@ -291,8 +292,12 @@ module Didit
|
|
|
291
292
|
#
|
|
292
293
|
# Check the report against the obligatory goAML header fields (reporting entity ID, submission code, local
|
|
293
294
|
# currency, action taken, submission date), plus at least one attached transaction and a 2-letter jurisdiction,
|
|
294
|
-
# without generating any files.
|
|
295
|
-
#
|
|
295
|
+
# without generating any files. For jurisdiction AE, once those pass, the report's goAML XML is also checked
|
|
296
|
+
# against the UAE FIU's goAML XML schema and each problem is returned as a field and a message; finalize refuses
|
|
297
|
+
# a report that fails. FFR and PNMR reports need no attached transaction: they require the case to have a
|
|
298
|
+
# subject, otherwise validation_errors contains an error with field `subject`. Also stores the result on the
|
|
299
|
+
# report: validation_errors and validated_at are updated, and a non-finalized report's status moves to VALIDATED
|
|
300
|
+
# (no errors) or back to DRAFT (errors).
|
|
296
301
|
#
|
|
297
302
|
# +POST /v3/organization/{organization_id}/application/{application_id}/regulatory-reports/{report_uuid}/validate/+
|
|
298
303
|
#
|
data/lib/didit/types/billing.rb
CHANGED
|
@@ -3,11 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
module Didit
|
|
5
5
|
module Types
|
|
6
|
+
# How the top-up is paid. `checkout` (default) creates a hosted Checkout session and answers `200`. `saved_card`
|
|
7
|
+
# charges the organization's saved primary card off-session, requires the `Idempotency-Key` header and "Connected
|
|
8
|
+
# AI agents can top up with your saved card" to be on, and answers `201` or `202`. `success_url` and `cancel_url`
|
|
9
|
+
# apply to `checkout` only.
|
|
10
|
+
module BillingTopUpParamsPaymentMethod
|
|
11
|
+
CHECKOUT = "checkout"
|
|
12
|
+
SAVED_CARD = "saved_card"
|
|
13
|
+
|
|
14
|
+
VALUES = [CHECKOUT, SAVED_CARD].freeze
|
|
15
|
+
end
|
|
16
|
+
|
|
6
17
|
class BillingRetrieveBalanceResponse < Didit::Model
|
|
7
18
|
field :balance, "balance", :string
|
|
8
19
|
field :auto_refill_enabled, "auto_refill_enabled", :boolean
|
|
9
20
|
field :auto_refill_amount, "auto_refill_amount", :string
|
|
10
21
|
field :auto_refill_threshold, "auto_refill_threshold", :string
|
|
22
|
+
field :agent_top_up, "agent_top_up", "AgentTopUpSettings"
|
|
11
23
|
end
|
|
12
24
|
|
|
13
25
|
class BillingTopUpResponse < Didit::Model
|
data/lib/didit/types/cases.rb
CHANGED
|
@@ -95,8 +95,10 @@ module Didit
|
|
|
95
95
|
IFT = "IFT"
|
|
96
96
|
CBR = "CBR"
|
|
97
97
|
TFR = "TFR"
|
|
98
|
+
FFR = "FFR"
|
|
99
|
+
PNMR = "PNMR"
|
|
98
100
|
|
|
99
|
-
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR].freeze
|
|
101
|
+
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR, FFR, PNMR].freeze
|
|
100
102
|
end
|
|
101
103
|
|
|
102
104
|
# Known values of an open enum: the API may send others.
|
|
@@ -214,6 +214,25 @@ module Didit
|
|
|
214
214
|
VALUES = [ADMINISTRATIVE_AREA, LOCALITY, THOROUGHFARE, PREMISE, DELIVERY_POINT].freeze
|
|
215
215
|
end
|
|
216
216
|
|
|
217
|
+
# `api_key` is a full-access API key, `mcp_connection` is an MCP client signed in with Log in with Didit, and
|
|
218
|
+
# `member_token` is a member's programmatic token (used by the local MCP server).
|
|
219
|
+
module AgentIdentityType
|
|
220
|
+
API_KEY = "api_key"
|
|
221
|
+
MCP_CONNECTION = "mcp_connection"
|
|
222
|
+
MEMBER_TOKEN = "member_token"
|
|
223
|
+
|
|
224
|
+
VALUES = [API_KEY, MCP_CONNECTION, MEMBER_TOKEN].freeze
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# `paid`: the card was charged. `open`: the payment is still being confirmed. `declined`: nothing was charged.
|
|
228
|
+
module AgentTopUpStatus
|
|
229
|
+
PAID = "paid"
|
|
230
|
+
OPEN = "open"
|
|
231
|
+
DECLINED = "declined"
|
|
232
|
+
|
|
233
|
+
VALUES = [PAID, OPEN, DECLINED].freeze
|
|
234
|
+
end
|
|
235
|
+
|
|
217
236
|
# How the `*_time_series` lists are grouped: `day` for up to 14 days, `week` up to 90, `month` beyond. Measured
|
|
218
237
|
# from the first day with sessions in the range.
|
|
219
238
|
module ApplicationAnalyticsWidgetGroupingMode
|
|
@@ -434,6 +453,15 @@ module Didit
|
|
|
434
453
|
VALUES = [NOT_FINISHED, APPROVED, DECLINED, IN_REVIEW, EXPIRED].freeze
|
|
435
454
|
end
|
|
436
455
|
|
|
456
|
+
# `paid`: the card was charged and the credit follows within seconds. `processing`: a request with the same
|
|
457
|
+
# `Idempotency-Key` is still being processed; retry with the same key.
|
|
458
|
+
module BillingTopUpChargeOutcome
|
|
459
|
+
PAID = "paid"
|
|
460
|
+
PROCESSING = "processing"
|
|
461
|
+
|
|
462
|
+
VALUES = [PAID, PROCESSING].freeze
|
|
463
|
+
end
|
|
464
|
+
|
|
437
465
|
# What was blocklisted.
|
|
438
466
|
module BlocklistedItemType
|
|
439
467
|
FACE = "face"
|
|
@@ -2635,8 +2663,10 @@ module Didit
|
|
|
2635
2663
|
IFT = "IFT"
|
|
2636
2664
|
CBR = "CBR"
|
|
2637
2665
|
TFR = "TFR"
|
|
2666
|
+
FFR = "FFR"
|
|
2667
|
+
PNMR = "PNMR"
|
|
2638
2668
|
|
|
2639
|
-
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR].freeze
|
|
2669
|
+
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR, FFR, PNMR].freeze
|
|
2640
2670
|
end
|
|
2641
2671
|
|
|
2642
2672
|
# Known values of an open enum: the API may send others.
|
|
@@ -2666,8 +2696,10 @@ module Didit
|
|
|
2666
2696
|
IFT = "IFT"
|
|
2667
2697
|
CBR = "CBR"
|
|
2668
2698
|
TFR = "TFR"
|
|
2699
|
+
FFR = "FFR"
|
|
2700
|
+
PNMR = "PNMR"
|
|
2669
2701
|
|
|
2670
|
-
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR].freeze
|
|
2702
|
+
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR, FFR, PNMR].freeze
|
|
2671
2703
|
end
|
|
2672
2704
|
|
|
2673
2705
|
# What kind of activity this entry records. `STATUS_UPDATED` rows come from manual decisions (`PATCH
|
|
@@ -6619,6 +6651,39 @@ module Didit
|
|
|
6619
6651
|
field :country, "country", :string
|
|
6620
6652
|
end
|
|
6621
6653
|
|
|
6654
|
+
# The agent that made a top-up, derived by Didit from the credential used and never from the request body.
|
|
6655
|
+
class AgentIdentity < Didit::Model
|
|
6656
|
+
field :type, "type", :string
|
|
6657
|
+
field :id, "id", :string
|
|
6658
|
+
field :label, "label", :string
|
|
6659
|
+
end
|
|
6660
|
+
|
|
6661
|
+
# A top-up made with the organization's saved card.
|
|
6662
|
+
class AgentTopUp < Didit::Model
|
|
6663
|
+
field :id, "id", :string
|
|
6664
|
+
field :status, "status", :string
|
|
6665
|
+
field :credit_amount, "credit_amount", :string
|
|
6666
|
+
field :subtotal, "subtotal", :string
|
|
6667
|
+
field :tax, "tax", :string
|
|
6668
|
+
field :total, "total", :string
|
|
6669
|
+
field :currency, "currency", :string
|
|
6670
|
+
field :card, "card", "AgentTopUpCard"
|
|
6671
|
+
field :agent, "agent", "AgentIdentity"
|
|
6672
|
+
field :created_at, "created_at", :datetime
|
|
6673
|
+
end
|
|
6674
|
+
|
|
6675
|
+
# The saved card that was charged.
|
|
6676
|
+
class AgentTopUpCard < Didit::Model
|
|
6677
|
+
field :brand, "brand", :string
|
|
6678
|
+
field :last4, "last4", :string
|
|
6679
|
+
end
|
|
6680
|
+
|
|
6681
|
+
# Whether agents can top up this organization with its saved card. One switch, "Connected AI agents can top up
|
|
6682
|
+
# with your saved card", off by default.
|
|
6683
|
+
class AgentTopUpSettings < Didit::Model
|
|
6684
|
+
field :enabled, "enabled", :boolean
|
|
6685
|
+
end
|
|
6686
|
+
|
|
6622
6687
|
class ApplicationAnalyticsCountryCount < Didit::Model
|
|
6623
6688
|
field :country, "country", :string
|
|
6624
6689
|
field :country_code, "country_code", :string
|
|
@@ -7045,6 +7110,13 @@ module Didit
|
|
|
7045
7110
|
field :requested_scopes, "requested_scopes", [:array, :string]
|
|
7046
7111
|
end
|
|
7047
7112
|
|
|
7113
|
+
# Result of a top-up charged to the organization's saved card.
|
|
7114
|
+
class BillingTopUpCharge < Didit::Model
|
|
7115
|
+
field :outcome, "outcome", :string
|
|
7116
|
+
field :top_up, "top_up", "AgentTopUp"
|
|
7117
|
+
field :detail, "detail", :string
|
|
7118
|
+
end
|
|
7119
|
+
|
|
7048
7120
|
# When the live biometric data of this session is deleted.
|
|
7049
7121
|
class BiometricRetention < Didit::Model
|
|
7050
7122
|
field :jurisdictions, "jurisdictions", [:array, :string]
|
|
@@ -13034,7 +13106,11 @@ module Didit
|
|
|
13034
13106
|
|
|
13035
13107
|
# The fields below are typed; the object also carries every other column of the workflow configuration (feature
|
|
13036
13108
|
# toggles, thresholds, warning actions, allowed documents, callbacks) as additional properties. Fields that do not
|
|
13037
|
-
# apply to the `workflow_type` are `null`.
|
|
13109
|
+
# apply to the `workflow_type` are `null`. For a workflow built from a `workflow_graph`,
|
|
13110
|
+
# `face_match_score_decline_threshold` and `face_match_score_review_threshold` report the thresholds its Face
|
|
13111
|
+
# Match step applies: the step's own values, or the defaults `30` and `60` when the step sets none (the step's
|
|
13112
|
+
# `config` in `workflow_graph` states the same values). When the workflow has several Face Match steps with
|
|
13113
|
+
# different thresholds, read each step's `config`.
|
|
13038
13114
|
class WorkflowDetail < Didit::Model
|
|
13039
13115
|
field :uuid, "uuid", :string
|
|
13040
13116
|
field :workflow_id, "workflow_id", :string
|
|
@@ -13,8 +13,10 @@ module Didit
|
|
|
13
13
|
IFT = "IFT"
|
|
14
14
|
CBR = "CBR"
|
|
15
15
|
TFR = "TFR"
|
|
16
|
+
FFR = "FFR"
|
|
17
|
+
PNMR = "PNMR"
|
|
16
18
|
|
|
17
|
-
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR].freeze
|
|
19
|
+
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR, FFR, PNMR].freeze
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
# Known values of an open enum: the API may send others.
|
|
@@ -35,8 +37,10 @@ module Didit
|
|
|
35
37
|
IFT = "IFT"
|
|
36
38
|
CBR = "CBR"
|
|
37
39
|
TFR = "TFR"
|
|
40
|
+
FFR = "FFR"
|
|
41
|
+
PNMR = "PNMR"
|
|
38
42
|
|
|
39
|
-
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR].freeze
|
|
43
|
+
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR, FFR, PNMR].freeze
|
|
40
44
|
end
|
|
41
45
|
|
|
42
46
|
# Known values of an open enum: the API may send others.
|
|
@@ -13,8 +13,10 @@ module Didit
|
|
|
13
13
|
IFT = "IFT"
|
|
14
14
|
CBR = "CBR"
|
|
15
15
|
TFR = "TFR"
|
|
16
|
+
FFR = "FFR"
|
|
17
|
+
PNMR = "PNMR"
|
|
16
18
|
|
|
17
|
-
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR].freeze
|
|
19
|
+
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR, FFR, PNMR].freeze
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
# Known values of an open enum: the API may send others.
|
|
@@ -27,8 +29,10 @@ module Didit
|
|
|
27
29
|
IFT = "IFT"
|
|
28
30
|
CBR = "CBR"
|
|
29
31
|
TFR = "TFR"
|
|
32
|
+
FFR = "FFR"
|
|
33
|
+
PNMR = "PNMR"
|
|
30
34
|
|
|
31
|
-
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR].freeze
|
|
35
|
+
VALUES = [SAR, STR, CTR, TTR, UTR, IFT, CBR, TFR, FFR, PNMR].freeze
|
|
32
36
|
end
|
|
33
37
|
|
|
34
38
|
class ReportTemplatesListResponse < Didit::Model
|
data/lib/didit/types.rb
CHANGED
|
@@ -67,6 +67,12 @@ module Didit
|
|
|
67
67
|
autoload :AgeEstimationEstimateResponseAgeEstimationWarningsFeature, "didit/types/age_estimation"
|
|
68
68
|
autoload :AgeEstimationEstimateResponseAgeEstimationWarningsLogType, "didit/types/age_estimation"
|
|
69
69
|
autoload :AgeEstimationEstimateResponseAgeEstimationWarningsRisk, "didit/types/age_estimation"
|
|
70
|
+
autoload :AgentIdentity, "didit/types/components"
|
|
71
|
+
autoload :AgentIdentityType, "didit/types/components"
|
|
72
|
+
autoload :AgentTopUp, "didit/types/components"
|
|
73
|
+
autoload :AgentTopUpCard, "didit/types/components"
|
|
74
|
+
autoload :AgentTopUpSettings, "didit/types/components"
|
|
75
|
+
autoload :AgentTopUpStatus, "didit/types/components"
|
|
70
76
|
autoload :AmlMonitoringRetrieveJobResponse, "didit/types/aml_monitoring"
|
|
71
77
|
autoload :AmlMonitoringRetrieveJobResponseOutcomes, "didit/types/aml_monitoring"
|
|
72
78
|
autoload :AmlMonitoringRetrieveJobResponseResults, "didit/types/aml_monitoring"
|
|
@@ -167,6 +173,9 @@ module Didit
|
|
|
167
173
|
autoload :BankVerificationResultRouteCredentialSource, "didit/types/components"
|
|
168
174
|
autoload :BankVerificationResultStatus, "didit/types/components"
|
|
169
175
|
autoload :BillingRetrieveBalanceResponse, "didit/types/billing"
|
|
176
|
+
autoload :BillingTopUpCharge, "didit/types/components"
|
|
177
|
+
autoload :BillingTopUpChargeOutcome, "didit/types/components"
|
|
178
|
+
autoload :BillingTopUpParamsPaymentMethod, "didit/types/billing"
|
|
170
179
|
autoload :BillingTopUpResponse, "didit/types/billing"
|
|
171
180
|
autoload :BiometricRetention, "didit/types/components"
|
|
172
181
|
autoload :BiometricTemplatesBatchDeleteParamsSourceType, "didit/types/biometric_templates"
|
data/lib/didit/version.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Didit
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Billing < Didit::Resource
|
|
6
6
|
def retrieve_balance: (?request_options: Didit::request_options?) -> Didit::Types::BillingRetrieveBalanceResponse
|
|
7
|
-
def top_up: (amount_in_dollars: Float | Integer, ?success_url: String, ?cancel_url: String, ?request_options: Didit::request_options?) -> Didit::Types::BillingTopUpResponse
|
|
7
|
+
def top_up: (amount_in_dollars: Float | Integer, ?success_url: String, ?cancel_url: String, ?payment_method: String, ?idempotency_key: String, ?request_options: Didit::request_options?) -> (Didit::Types::BillingTopUpResponse | Didit::Types::BillingTopUpCharge)
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
end
|
data/sig/didit/types/billing.rbs
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
module Didit
|
|
4
4
|
module Types
|
|
5
|
+
module BillingTopUpParamsPaymentMethod
|
|
6
|
+
CHECKOUT: String
|
|
7
|
+
SAVED_CARD: String
|
|
8
|
+
|
|
9
|
+
VALUES: Array[String]
|
|
10
|
+
end
|
|
11
|
+
|
|
5
12
|
class BillingRetrieveBalanceResponse < Didit::Model
|
|
6
13
|
def balance: () -> String
|
|
7
14
|
def auto_refill_enabled: () -> bool
|
|
8
15
|
def auto_refill_amount: () -> String?
|
|
9
16
|
def auto_refill_threshold: () -> String?
|
|
17
|
+
def agent_top_up: () -> Didit::Types::AgentTopUpSettings?
|
|
10
18
|
end
|
|
11
19
|
|
|
12
20
|
class BillingTopUpResponse < Didit::Model
|
|
@@ -14,6 +22,6 @@ module Didit
|
|
|
14
22
|
def checkout_session_url: () -> String
|
|
15
23
|
end
|
|
16
24
|
|
|
17
|
-
type billing_top_up_params = { amount_in_dollars: Float | Integer, ?success_url: String, ?cancel_url: String }
|
|
25
|
+
type billing_top_up_params = { amount_in_dollars: Float | Integer, ?success_url: String, ?cancel_url: String, ?payment_method: String }
|
|
18
26
|
end
|
|
19
27
|
end
|
data/sig/didit/types/cases.rbs
CHANGED
|
@@ -189,6 +189,22 @@ module Didit
|
|
|
189
189
|
VALUES: Array[String]
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
+
module AgentIdentityType
|
|
193
|
+
API_KEY: String
|
|
194
|
+
MCP_CONNECTION: String
|
|
195
|
+
MEMBER_TOKEN: String
|
|
196
|
+
|
|
197
|
+
VALUES: Array[String]
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
module AgentTopUpStatus
|
|
201
|
+
PAID: String
|
|
202
|
+
OPEN: String
|
|
203
|
+
DECLINED: String
|
|
204
|
+
|
|
205
|
+
VALUES: Array[String]
|
|
206
|
+
end
|
|
207
|
+
|
|
192
208
|
module ApplicationAnalyticsWidgetGroupingMode
|
|
193
209
|
DAY: String
|
|
194
210
|
WEEK: String
|
|
@@ -373,6 +389,13 @@ module Didit
|
|
|
373
389
|
VALUES: Array[String]
|
|
374
390
|
end
|
|
375
391
|
|
|
392
|
+
module BillingTopUpChargeOutcome
|
|
393
|
+
PAID: String
|
|
394
|
+
PROCESSING: String
|
|
395
|
+
|
|
396
|
+
VALUES: Array[String]
|
|
397
|
+
end
|
|
398
|
+
|
|
376
399
|
module BlocklistedItemType
|
|
377
400
|
FACE: String
|
|
378
401
|
DOCUMENT: String
|
|
@@ -2197,6 +2220,8 @@ module Didit
|
|
|
2197
2220
|
IFT: String
|
|
2198
2221
|
CBR: String
|
|
2199
2222
|
TFR: String
|
|
2223
|
+
FFR: String
|
|
2224
|
+
PNMR: String
|
|
2200
2225
|
|
|
2201
2226
|
VALUES: Array[String]
|
|
2202
2227
|
end
|
|
@@ -2225,6 +2250,8 @@ module Didit
|
|
|
2225
2250
|
IFT: String
|
|
2226
2251
|
CBR: String
|
|
2227
2252
|
TFR: String
|
|
2253
|
+
FFR: String
|
|
2254
|
+
PNMR: String
|
|
2228
2255
|
|
|
2229
2256
|
VALUES: Array[String]
|
|
2230
2257
|
end
|
|
@@ -5588,6 +5615,34 @@ module Didit
|
|
|
5588
5615
|
def country: () -> String?
|
|
5589
5616
|
end
|
|
5590
5617
|
|
|
5618
|
+
class AgentIdentity < Didit::Model
|
|
5619
|
+
def `type`: () -> String
|
|
5620
|
+
def id: () -> String
|
|
5621
|
+
def label: () -> String
|
|
5622
|
+
end
|
|
5623
|
+
|
|
5624
|
+
class AgentTopUp < Didit::Model
|
|
5625
|
+
def id: () -> String
|
|
5626
|
+
def status: () -> String
|
|
5627
|
+
def credit_amount: () -> String
|
|
5628
|
+
def subtotal: () -> String?
|
|
5629
|
+
def tax: () -> String?
|
|
5630
|
+
def total: () -> String?
|
|
5631
|
+
def currency: () -> String?
|
|
5632
|
+
def card: () -> Didit::Types::AgentTopUpCard?
|
|
5633
|
+
def agent: () -> Didit::Types::AgentIdentity
|
|
5634
|
+
def created_at: () -> Time
|
|
5635
|
+
end
|
|
5636
|
+
|
|
5637
|
+
class AgentTopUpCard < Didit::Model
|
|
5638
|
+
def brand: () -> String
|
|
5639
|
+
def last4: () -> String
|
|
5640
|
+
end
|
|
5641
|
+
|
|
5642
|
+
class AgentTopUpSettings < Didit::Model
|
|
5643
|
+
def enabled: () -> bool
|
|
5644
|
+
end
|
|
5645
|
+
|
|
5591
5646
|
class ApplicationAnalyticsCountryCount < Didit::Model
|
|
5592
5647
|
def country: () -> String?
|
|
5593
5648
|
def country_code: () -> String?
|
|
@@ -5979,6 +6034,12 @@ module Didit
|
|
|
5979
6034
|
def requested_scopes: () -> Array[String]?
|
|
5980
6035
|
end
|
|
5981
6036
|
|
|
6037
|
+
class BillingTopUpCharge < Didit::Model
|
|
6038
|
+
def outcome: () -> String
|
|
6039
|
+
def top_up: () -> Didit::Types::AgentTopUp
|
|
6040
|
+
def detail: () -> String?
|
|
6041
|
+
end
|
|
6042
|
+
|
|
5982
6043
|
class BiometricRetention < Didit::Model
|
|
5983
6044
|
def jurisdictions: () -> Array[String]
|
|
5984
6045
|
def deletes_at: () -> Time?
|
|
@@ -11,6 +11,8 @@ module Didit
|
|
|
11
11
|
IFT: String
|
|
12
12
|
CBR: String
|
|
13
13
|
TFR: String
|
|
14
|
+
FFR: String
|
|
15
|
+
PNMR: String
|
|
14
16
|
|
|
15
17
|
VALUES: Array[String]
|
|
16
18
|
end
|
|
@@ -31,6 +33,8 @@ module Didit
|
|
|
31
33
|
IFT: String
|
|
32
34
|
CBR: String
|
|
33
35
|
TFR: String
|
|
36
|
+
FFR: String
|
|
37
|
+
PNMR: String
|
|
34
38
|
|
|
35
39
|
VALUES: Array[String]
|
|
36
40
|
end
|
|
@@ -11,6 +11,8 @@ module Didit
|
|
|
11
11
|
IFT: String
|
|
12
12
|
CBR: String
|
|
13
13
|
TFR: String
|
|
14
|
+
FFR: String
|
|
15
|
+
PNMR: String
|
|
14
16
|
|
|
15
17
|
VALUES: Array[String]
|
|
16
18
|
end
|
|
@@ -24,6 +26,8 @@ module Didit
|
|
|
24
26
|
IFT: String
|
|
25
27
|
CBR: String
|
|
26
28
|
TFR: String
|
|
29
|
+
FFR: String
|
|
30
|
+
PNMR: String
|
|
27
31
|
|
|
28
32
|
VALUES: Array[String]
|
|
29
33
|
end
|