didit-sdk 2.8.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 308e35aa76fd60cdabeb7c46c4468a1a3ad0613bfa0f0dee9a0b425d2c9c2839
4
- data.tar.gz: 48b7106b1a23a5fec66e2dd2f087dd64a37db3ceddadcd52ae7ab14596072379
3
+ metadata.gz: 91dfc52c94f0698aad6f12342bd12180000e699343916c8db5bb00b007520a21
4
+ data.tar.gz: bef44c28c0cce4098811b9f315f7df7ceb97009ad433cf6304b2a4aacdcf4638
5
5
  SHA512:
6
- metadata.gz: 153fcb285f13e048752fef4bff0ffed93e843f52fc8a0a351be93dec76d9789772ddf1ed380a074d0c23efbba6bc12cd28df26ba54d8516c7eb94196591fae58
7
- data.tar.gz: 56289586a6f9585ebffc3af137cd69aa1956d3a36f25a282530d607b656abeec246452486e73b40c0e557b52992685ced02b60563c22e4e29c37ed20854545f2
6
+ metadata.gz: f6f565b512d52999ef1dd881ed4e9854448a5e53f365803c4a9ff2c4aad2ce2ee36b9fc9d8bd4a01d28293b40e093f148d36d3e342473f3a27b1920dc4b5306f
7
+ data.tar.gz: 75d30c35704784925b9248b6ab89ab199258808d06def529de1c6d883b16d658f820224c0073618a76d20575e605220cf81ffef7cbf53858d99108875901b00a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.10.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.9.0...v2.10.0) (2026-11-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * **spec:** sync API spec 2026-11-11 ([f2e8649](https://github.com/didit-protocol/sdk-ruby/commit/f2e8649be2f8bee51ee031917d56ad4a2d31d345))
9
+
10
+ ## [2.9.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.8.0...v2.9.0) (2026-11-10)
11
+
12
+
13
+ ### Features
14
+
15
+ * **spec:** sync API spec 2026-11-10 ([96b48e5](https://github.com/didit-protocol/sdk-ruby/commit/96b48e595d53fda32caf3853e73782bf6a580769))
16
+
3
17
  ## [2.8.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.7.0...v2.8.0) (2026-11-10)
4
18
 
5
19
 
@@ -25,34 +25,76 @@ module Didit
25
25
 
26
26
  # Top up credits
27
27
  #
28
- # Add credits via a hosted Stripe Checkout session (**\$50 to \$20,000** per top-up). Top-ups are available on
29
- # the Free, Growth and Scale plans, added at face value with no discount or bonus, and last 12 months;
30
- # Enterprise annual contracts cannot top up. Redirect the customer to the returned `checkout_session_url`.
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 based on the
36
- # customer's billing address.
37
- # @param success_url [String] URL the hosted checkout redirects the customer to after a successful payment.
38
- # Currently defaults to `https://console.didit.me`. Pass a working URL explicitly; the default host is
39
- # unavailable. Append the literal placeholder `{CHECKOUT_SESSION_ID}` if you want the hosted checkout to
40
- # substitute the session ID.
41
- # @param cancel_url [String] URL the hosted checkout redirects the customer to when they abort or close the
42
- # Checkout window. Currently defaults to `https://console.didit.me`. Pass a working URL explicitly; the default
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(amount_in_dollars:, success_url: OMIT, cancel_url: OMIT, request_options: nil)
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
- response: Types::BillingTopUpResponse,
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. Also stores the result on the report: validation_errors and validated_at are
295
- # updated, and a non-finalized report's status moves to VALIDATED (no errors) or back to DRAFT (errors).
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
  #
@@ -3,6 +3,17 @@
3
3
 
4
4
  module Didit
5
5
  module Types
6
+ # The application's environment. A `live` application bills every verification session and check created with its
7
+ # key. A `sandbox` application mocks every check and is never billed, so it is where you test (each sandbox
8
+ # application can create 500 test sessions every 24 hours). Read this field to pick the application: never infer
9
+ # the environment from the name.
10
+ module ApplicationCredentialsSummaryMode
11
+ LIVE = "live"
12
+ SANDBOX = "sandbox"
13
+
14
+ VALUES = [LIVE, SANDBOX].freeze
15
+ end
16
+
6
17
  # Where the application's verification data is stored and processed, chosen when the application is created. `eu`
7
18
  # is the European Union (Ireland), the default. `au` (Australia, Sydney), `mx` (Mexico) and `ae` (United Arab
8
19
  # Emirates) are coming soon: a request that names them answers 400 `This data location is not available yet.` An
@@ -16,6 +27,17 @@ module Didit
16
27
  VALUES = [EU, AU, MX, AE].freeze
17
28
  end
18
29
 
30
+ # The application's environment. A `live` application bills every verification session and check created with its
31
+ # key. A `sandbox` application mocks every check and is never billed, so it is where you test (each sandbox
32
+ # application can create 500 test sessions every 24 hours). Read this field to pick the application: never infer
33
+ # the environment from the name.
34
+ module ApplicationMode
35
+ LIVE = "live"
36
+ SANDBOX = "sandbox"
37
+
38
+ VALUES = [LIVE, SANDBOX].freeze
39
+ end
40
+
19
41
  # `identity` (Identity verification), `transactions` (Transaction monitoring) or `authentication`
20
42
  # (Authentication).
21
43
  module ApplicationProductProduct
@@ -52,6 +74,7 @@ module Didit
52
74
  field :created_at, "created_at", :datetime
53
75
  field :data_location, "data_location", :string
54
76
  field :products, "products", [:array, "ApplicationProduct"]
77
+ field :mode, "mode", :string
55
78
  end
56
79
 
57
80
  # Minimal application shape returned inline by `POST /programmatic/verify-email/`. Persist the `api_key`
@@ -62,6 +85,7 @@ module Didit
62
85
  field :client_id, "client_id", :string
63
86
  field :api_key, "api_key", :string
64
87
  field :data_location, "data_location", :string
88
+ field :mode, "mode", :string
65
89
  end
66
90
 
67
91
  # One product of an application and its state. Read-only: the application endpoints return it and ignore it in a
@@ -117,6 +141,7 @@ module Didit
117
141
  field :expires_in, "expires_in", :integer
118
142
  field :organization, "organization", "OrganizationSummary"
119
143
  field :application, "application", "ApplicationCredentialsSummary"
144
+ field :sandbox_application, "sandbox_application", "ApplicationCredentialsSummary"
120
145
  field :v_2fa_required, "2fa_required", :boolean
121
146
  field :temp_token, "temp_token", :string
122
147
  field :has_authenticator, "has_authenticator", :boolean
@@ -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
@@ -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"
@@ -129,7 +135,9 @@ module Didit
129
135
  autoload :ApplicationAnalyticsWorkflowFunnelValue, "didit/types/components"
130
136
  autoload :ApplicationAnalyticsWorkflowFunnelValueStepsValue, "didit/types/components"
131
137
  autoload :ApplicationCredentialsSummary, "didit/types/account_components"
138
+ autoload :ApplicationCredentialsSummaryMode, "didit/types/account_components"
132
139
  autoload :ApplicationDataLocation, "didit/types/account_components"
140
+ autoload :ApplicationMode, "didit/types/account_components"
133
141
  autoload :ApplicationProduct, "didit/types/account_components"
134
142
  autoload :ApplicationProductProduct, "didit/types/account_components"
135
143
  autoload :ApplicationProductStatus, "didit/types/account_components"
@@ -167,6 +175,9 @@ module Didit
167
175
  autoload :BankVerificationResultRouteCredentialSource, "didit/types/components"
168
176
  autoload :BankVerificationResultStatus, "didit/types/components"
169
177
  autoload :BillingRetrieveBalanceResponse, "didit/types/billing"
178
+ autoload :BillingTopUpCharge, "didit/types/components"
179
+ autoload :BillingTopUpChargeOutcome, "didit/types/components"
180
+ autoload :BillingTopUpParamsPaymentMethod, "didit/types/billing"
170
181
  autoload :BillingTopUpResponse, "didit/types/billing"
171
182
  autoload :BiometricRetention, "didit/types/components"
172
183
  autoload :BiometricTemplatesBatchDeleteParamsSourceType, "didit/types/biometric_templates"
data/lib/didit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Didit
4
- VERSION = "2.8.0" # x-release-please-version
4
+ VERSION = "2.10.0" # x-release-please-version
5
5
  end
@@ -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
@@ -2,6 +2,13 @@
2
2
 
3
3
  module Didit
4
4
  module Types
5
+ module ApplicationCredentialsSummaryMode
6
+ LIVE: String
7
+ SANDBOX: String
8
+
9
+ VALUES: Array[String]
10
+ end
11
+
5
12
  module ApplicationDataLocation
6
13
  EU: String
7
14
  AU: String
@@ -11,6 +18,13 @@ module Didit
11
18
  VALUES: Array[String]
12
19
  end
13
20
 
21
+ module ApplicationMode
22
+ LIVE: String
23
+ SANDBOX: String
24
+
25
+ VALUES: Array[String]
26
+ end
27
+
14
28
  module ApplicationProductProduct
15
29
  IDENTITY: String
16
30
  TRANSACTIONS: String
@@ -40,6 +54,7 @@ module Didit
40
54
  def created_at: () -> Time?
41
55
  def data_location: () -> String?
42
56
  def products: () -> Array[Didit::Types::ApplicationProduct]?
57
+ def mode: () -> String?
43
58
  end
44
59
 
45
60
  class ApplicationCredentialsSummary < Didit::Model
@@ -48,6 +63,7 @@ module Didit
48
63
  def client_id: () -> String?
49
64
  def api_key: () -> String?
50
65
  def data_location: () -> String?
66
+ def mode: () -> String?
51
67
  end
52
68
 
53
69
  class ApplicationProduct < Didit::Model
@@ -100,6 +116,7 @@ module Didit
100
116
  def expires_in: () -> Integer?
101
117
  def organization: () -> Didit::Types::OrganizationSummary?
102
118
  def application: () -> Didit::Types::ApplicationCredentialsSummary?
119
+ def sandbox_application: () -> Didit::Types::ApplicationCredentialsSummary?
103
120
  def v_2fa_required: () -> bool?
104
121
  def temp_token: () -> String?
105
122
  def has_authenticator: () -> bool?
@@ -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
@@ -84,6 +84,8 @@ module Didit
84
84
  IFT: String
85
85
  CBR: String
86
86
  TFR: String
87
+ FFR: String
88
+ PNMR: String
87
89
 
88
90
  VALUES: Array[String]
89
91
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: didit-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didit