Class: Dinie::Resources::Biometrics
- Inherits:
-
Object
- Object
- Dinie::Resources::Biometrics
- Defined in:
- lib/dinie/generated/resources/biometrics.rb
Overview
Operations on the biometrics resource.
Instance Method Summary collapse
-
#initialize(http) ⇒ Biometrics
constructor
A new instance of Biometrics.
-
#session_exchange(request_options: {}, **fields) ⇒ Object
Exchange a biometrics bootstrap code for a session token.
Constructor Details
#initialize(http) ⇒ Biometrics
Returns a new instance of Biometrics.
9 10 11 |
# File 'lib/dinie/generated/resources/biometrics.rb', line 9 def initialize(http) @http = http end |
Instance Method Details
#session_exchange(request_options: {}, **fields) ⇒ Object
Exchange a biometrics bootstrap code for a session token
Internal endpoint — the kyc-app calls this with a credential that only has the ‘biometrics:exchange` scope, swapping the single-use bootstrap code (`dinie_bsc_…`) for a Token bound to the session’s CreditLineApplication. The token is the bearer the wizard uses for every subsequent KYC request.
20 21 22 23 24 |
# File 'lib/dinie/generated/resources/biometrics.rb', line 20 def session_exchange(request_options: {}, **fields) body = fields raw = @http.request(method: :post, path: "/biometrics/session-exchange", body:, request_options:) BiometricsSessionExchangeResponse.deserialize(raw) end |