From f8e41cde036b03d776070d61b18e7428f60a19c4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 16 Sep 2026 18:38:40 +0000 Subject: [PATCH 1/2] Add identity and business verification trigger Co-authored-by: myles.foster --- lib/trolley/gateways/VerificationGateway.rb | 4 ++++ test/unit/GatewayParityTest.rb | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/lib/trolley/gateways/VerificationGateway.rb b/lib/trolley/gateways/VerificationGateway.rb index 71e5b2a..b699952 100644 --- a/lib/trolley/gateways/VerificationGateway.rb +++ b/lib/trolley/gateways/VerificationGateway.rb @@ -27,6 +27,10 @@ def trigger(verification_type, body) verification_list_builder(@client.post("/v1/verifications/#{verification_type}/trigger", body)) end + def trigger_identity_or_business_verification(body) + verification_list_builder(@client.post('/v1/verifications/trigger', body)) + end + def trigger_watchlist(body) verification_list_builder(@client.post('/v1/verifications/watchlist/trigger', body)) end diff --git a/test/unit/GatewayParityTest.rb b/test/unit/GatewayParityTest.rb index 4063772..00b581d 100644 --- a/test/unit/GatewayParityTest.rb +++ b/test/unit/GatewayParityTest.rb @@ -57,11 +57,21 @@ def test_verification_gateway_calls_documented_trust_endpoints stub_request(:post, "#{API_BASE}/v1/verifications/individual/trigger") .with(body: '{"recipientIds":["R-123"]}') .to_return(status: 200, body: verification_response) + stub_request(:post, "#{API_BASE}/v1/verifications/trigger") + .with(body: '{"recipientId":"R-123","types":["individual"],"retryAllowed":true}') + .to_return(status: 200, body: identity_or_business_verification_response) assert_equal 'WV-123', @gateway.verification.search(verificationType: 'watchlist', page: 1, pageSize: 10).verifications.first.id assert_equal 'WV-123', @gateway.verification.expire(type: 'individual', verificationIds: ['IV-123']).verifications.first.id assert_equal 'WV-123', @gateway.verification.trigger_watchlist(recipientIds: ['R-123']).verifications.first.id assert_equal 'WV-123', @gateway.trust.trigger('individual', recipientIds: ['R-123']).verifications.first.id + identity = @gateway.verification.trigger_identity_or_business_verification( + recipientId: 'R-123', + types: ['individual'], + retryAllowed: true + ) + assert_equal 'R-123', identity.recipientId + assert_equal 'IV-123', identity.verifications.first.verificationId end def test_existing_deletes_support_single_and_multiple_ids @@ -162,6 +172,10 @@ def verification_response '{"ok":true,"verifications":[{"id":"WV-123","type":"watchlist"}],"meta":{"page":1,"pages":1,"records":1}}' end + def identity_or_business_verification_response + '{"ok":true,"recipientId":"R-123","verifications":[{"type":"individual","status":"created","verificationId":"IV-123"}]}' + end + def recipient_logs_response '{"ok":true,"recipientLogs":[{"via":"apikey","ipAddress":"23.93.176.55","userId":"user@example.com","type":"create","fields":[{"name":"referenceId","oldValue":null,"newValue":"external-reference-id"}],"createdAt":"2023-07-07T14:52:45.901Z"}],"meta":{"page":1,"pages":1,"records":1}}' end From ff358c7c3b38430aaabc9f4ada321bd584bff69b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 16 Sep 2026 19:27:07 +0000 Subject: [PATCH 2/2] fix(ci): update Codecov orb Co-authored-by: myles.foster --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 58b7e14..2b1f5b4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2.1 orbs: - codecov: codecov/codecov@5.0.3 + codecov: codecov/codecov@6.0.0 executors: default: