alogram_payrisk 0.2.23 → 0.3.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/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/RELEASE.json +4 -4
- data/alogram_payrisk.gemspec +1 -1
- data/lib/alogram_payrisk/api/forensic_data_api.rb +19 -19
- data/lib/alogram_payrisk/api/risk_scoring_api.rb +28 -28
- data/lib/alogram_payrisk/api/roadmap_preview_api.rb +55 -55
- data/lib/alogram_payrisk/api/signal_intelligence_api.rb +55 -55
- data/lib/alogram_payrisk/api/system_api.rb +1 -1
- data/lib/alogram_payrisk/api_client.rb +1 -1
- data/lib/alogram_payrisk/api_error.rb +1 -1
- data/lib/alogram_payrisk/api_model_base.rb +1 -1
- data/lib/alogram_payrisk/configuration.rb +1 -1
- data/lib/alogram_payrisk/models/account.rb +1 -1
- data/lib/alogram_payrisk/models/account_check_request.rb +1 -1
- data/lib/alogram_payrisk/models/agent_manifest.rb +1 -1
- data/lib/alogram_payrisk/models/agent_provider.rb +1 -1
- data/lib/alogram_payrisk/models/auth_context.rb +1 -1
- data/lib/alogram_payrisk/models/avs_result_enum.rb +1 -1
- data/lib/alogram_payrisk/models/bank_transfer.rb +1 -1
- data/lib/alogram_payrisk/models/card.rb +1 -1
- data/lib/alogram_payrisk/models/card_network_enum.rb +1 -1
- data/lib/alogram_payrisk/models/category_signal.rb +1 -1
- data/lib/alogram_payrisk/models/channel_enum.rb +1 -1
- data/lib/alogram_payrisk/models/check_request.rb +1 -1
- data/lib/alogram_payrisk/models/confidence_enum.rb +1 -1
- data/lib/alogram_payrisk/models/crypto.rb +1 -1
- data/lib/alogram_payrisk/models/cvv_result_enum.rb +1 -1
- data/lib/alogram_payrisk/models/decision_resolution_request.rb +1 -1
- data/lib/alogram_payrisk/models/decision_resolution_request_analyst.rb +1 -1
- data/lib/alogram_payrisk/models/decision_resolution_response.rb +1 -1
- data/lib/alogram_payrisk/models/decision_response.rb +32 -216
- data/lib/alogram_payrisk/models/decision_response_policy.rb +159 -0
- data/lib/alogram_payrisk/models/device_info.rb +1 -1
- data/lib/alogram_payrisk/models/discount_code.rb +1 -1
- data/lib/alogram_payrisk/models/entity_ids.rb +36 -5
- data/lib/alogram_payrisk/models/entry_method_enum.rb +1 -1
- data/lib/alogram_payrisk/models/external_assessment.rb +1 -1
- data/lib/alogram_payrisk/models/fraud_score.rb +1 -1
- data/lib/alogram_payrisk/models/identity.rb +1 -1
- data/lib/alogram_payrisk/models/ingest_payment_event202_response.rb +1 -1
- data/lib/alogram_payrisk/models/integrity.rb +1 -1
- data/lib/alogram_payrisk/models/interaction.rb +1 -1
- data/lib/alogram_payrisk/models/interaction_type_enum.rb +1 -1
- data/lib/alogram_payrisk/models/invoice.rb +1 -1
- data/lib/alogram_payrisk/models/ip_info.rb +1 -1
- data/lib/alogram_payrisk/models/kyc_check_request.rb +1 -1
- data/lib/alogram_payrisk/models/kyc_payload.rb +1 -1
- data/lib/alogram_payrisk/models/merchant_context.rb +1 -1
- data/lib/alogram_payrisk/models/operator_type.rb +42 -0
- data/lib/alogram_payrisk/models/order_context.rb +1 -1
- data/lib/alogram_payrisk/models/payer_type_enum.rb +1 -1
- data/lib/alogram_payrisk/models/payment_authorization_outcome.rb +1 -1
- data/lib/alogram_payrisk/models/payment_capture_outcome.rb +1 -1
- data/lib/alogram_payrisk/models/payment_card_type_enum.rb +1 -1
- data/lib/alogram_payrisk/models/payment_chargeback.rb +1 -1
- data/lib/alogram_payrisk/models/payment_chargeback_outcome.rb +1 -1
- data/lib/alogram_payrisk/models/payment_dispute_outcome.rb +1 -1
- data/lib/alogram_payrisk/models/payment_event.rb +1 -1
- data/lib/alogram_payrisk/models/payment_event_type.rb +1 -1
- data/lib/alogram_payrisk/models/payment_method.rb +1 -1
- data/lib/alogram_payrisk/models/payment_outcome.rb +1 -1
- data/lib/alogram_payrisk/models/payment_realtime_type_enum.rb +1 -1
- data/lib/alogram_payrisk/models/payment_refund_outcome.rb +1 -1
- data/lib/alogram_payrisk/models/payment_wallet_type_enum.rb +1 -1
- data/lib/alogram_payrisk/models/postal_address.rb +1 -1
- data/lib/alogram_payrisk/models/problem.rb +1 -1
- data/lib/alogram_payrisk/models/purchase.rb +1 -1
- data/lib/alogram_payrisk/models/purchase_initiator_enum.rb +1 -1
- data/lib/alogram_payrisk/models/purchase_sequence_enum.rb +1 -1
- data/lib/alogram_payrisk/models/purchase_usage_enum.rb +1 -1
- data/lib/alogram_payrisk/models/realtime.rb +1 -1
- data/lib/alogram_payrisk/models/reason_detail.rb +15 -5
- data/lib/alogram_payrisk/models/risk_breakdown.rb +1 -1
- data/lib/alogram_payrisk/models/risk_category_enum.rb +1 -1
- data/lib/alogram_payrisk/models/risk_level_enum.rb +1 -1
- data/lib/alogram_payrisk/models/sca_method_enum.rb +1 -1
- data/lib/alogram_payrisk/models/score_record.rb +19 -117
- data/lib/alogram_payrisk/models/scores_success_response.rb +1 -1
- data/lib/alogram_payrisk/models/signals_account_variant.rb +1 -1
- data/lib/alogram_payrisk/models/signals_interaction_variant.rb +1 -1
- data/lib/alogram_payrisk/models/signals_request.rb +1 -1
- data/lib/alogram_payrisk/models/stored_credential_context.rb +1 -1
- data/lib/alogram_payrisk/models/three_ds_data.rb +1 -1
- data/lib/alogram_payrisk/models/wallet.rb +1 -1
- data/lib/alogram_payrisk/version.rb +2 -2
- data/lib/alogram_payrisk.rb +3 -1
- data/spec/api/forensic_data_api_spec.rb +3 -3
- data/spec/api/risk_scoring_api_spec.rb +4 -4
- data/spec/api/roadmap_preview_api_spec.rb +7 -7
- data/spec/api/signal_intelligence_api_spec.rb +7 -7
- data/spec/api/system_api_spec.rb +1 -1
- data/spec/models/account_check_request_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/agent_manifest_spec.rb +1 -1
- data/spec/models/agent_provider_spec.rb +1 -1
- data/spec/models/auth_context_spec.rb +1 -1
- data/spec/models/avs_result_enum_spec.rb +1 -1
- data/spec/models/bank_transfer_spec.rb +1 -1
- data/spec/models/card_network_enum_spec.rb +1 -1
- data/spec/models/card_spec.rb +1 -1
- data/spec/models/category_signal_spec.rb +1 -1
- data/spec/models/channel_enum_spec.rb +1 -1
- data/spec/models/check_request_spec.rb +1 -1
- data/spec/models/confidence_enum_spec.rb +1 -1
- data/spec/models/crypto_spec.rb +1 -1
- data/spec/models/cvv_result_enum_spec.rb +1 -1
- data/spec/models/decision_resolution_request_analyst_spec.rb +1 -1
- data/spec/models/decision_resolution_request_spec.rb +1 -1
- data/spec/models/decision_resolution_response_spec.rb +1 -1
- data/spec/models/decision_response_policy_spec.rb +42 -0
- data/spec/models/decision_response_spec.rb +4 -50
- data/spec/models/device_info_spec.rb +1 -1
- data/spec/models/discount_code_spec.rb +1 -1
- data/spec/models/entity_ids_spec.rb +7 -1
- data/spec/models/entry_method_enum_spec.rb +1 -1
- data/spec/models/external_assessment_spec.rb +1 -1
- data/spec/models/fraud_score_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/ingest_payment_event202_response_spec.rb +1 -1
- data/spec/models/integrity_spec.rb +1 -1
- data/spec/models/interaction_spec.rb +1 -1
- data/spec/models/interaction_type_enum_spec.rb +1 -1
- data/spec/models/invoice_spec.rb +1 -1
- data/spec/models/ip_info_spec.rb +1 -1
- data/spec/models/kyc_check_request_spec.rb +1 -1
- data/spec/models/kyc_payload_spec.rb +1 -1
- data/spec/models/merchant_context_spec.rb +1 -1
- data/spec/models/operator_type_spec.rb +30 -0
- data/spec/models/order_context_spec.rb +1 -1
- data/spec/models/payer_type_enum_spec.rb +1 -1
- data/spec/models/payment_authorization_outcome_spec.rb +1 -1
- data/spec/models/payment_capture_outcome_spec.rb +1 -1
- data/spec/models/payment_card_type_enum_spec.rb +1 -1
- data/spec/models/payment_chargeback_outcome_spec.rb +1 -1
- data/spec/models/payment_chargeback_spec.rb +1 -1
- data/spec/models/payment_dispute_outcome_spec.rb +1 -1
- data/spec/models/payment_event_spec.rb +1 -1
- data/spec/models/payment_event_type_spec.rb +1 -1
- data/spec/models/payment_method_spec.rb +1 -1
- data/spec/models/payment_outcome_spec.rb +1 -1
- data/spec/models/payment_realtime_type_enum_spec.rb +1 -1
- data/spec/models/payment_refund_outcome_spec.rb +1 -1
- data/spec/models/payment_wallet_type_enum_spec.rb +1 -1
- data/spec/models/postal_address_spec.rb +1 -1
- data/spec/models/problem_spec.rb +1 -1
- data/spec/models/purchase_initiator_enum_spec.rb +1 -1
- data/spec/models/purchase_sequence_enum_spec.rb +1 -1
- data/spec/models/purchase_spec.rb +1 -1
- data/spec/models/purchase_usage_enum_spec.rb +1 -1
- data/spec/models/realtime_spec.rb +1 -1
- data/spec/models/reason_detail_spec.rb +7 -1
- data/spec/models/risk_breakdown_spec.rb +1 -1
- data/spec/models/risk_category_enum_spec.rb +1 -1
- data/spec/models/risk_level_enum_spec.rb +1 -1
- data/spec/models/sca_method_enum_spec.rb +1 -1
- data/spec/models/score_record_spec.rb +2 -20
- data/spec/models/scores_success_response_spec.rb +1 -1
- data/spec/models/signals_account_variant_spec.rb +1 -1
- data/spec/models/signals_interaction_variant_spec.rb +1 -1
- data/spec/models/signals_request_spec.rb +1 -1
- data/spec/models/stored_credential_context_spec.rb +1 -1
- data/spec/models/three_ds_data_spec.rb +1 -1
- data/spec/models/wallet_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.2.0/gem_make.out +5 -5
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62cabafbc4d0a05546add5d38fdb203b9f1db198bca051dfada4218bba1efc13
|
|
4
|
+
data.tar.gz: 05cace92a7f74d888b3f1f9b371f2f7ac2953eab1eb168da7a8cedade0a3f8bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9766f317c4b5367bcf3613cb54c8fb924da091be9012e925eabad77faab7a1fb60ca87adc61db6a6e7ce749bed53a24e4e84c5e4ac82f12a2600ab129f8b782f
|
|
7
|
+
data.tar.gz: 1040ab6827905db0efb523155d54ce7e9e8cac6e22d64dc43c17c09f2454b55d7db500e2295c704e8de2b9ec4a331d55dec4ee9ced0dc3f329141012b9036ba6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Built for scale, this SDK features:
|
|
|
21
21
|
Add this line to your application's `Gemfile`:
|
|
22
22
|
|
|
23
23
|
```ruby
|
|
24
|
-
gem 'alogram_payrisk', '~> 0.
|
|
24
|
+
gem 'alogram_payrisk', '~> 0.3.0'
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then execute:
|
|
@@ -111,7 +111,7 @@ We provide a **Local Emulator** to let you test without network access or produc
|
|
|
111
111
|
|
|
112
112
|
1. **Start the Emulator**:
|
|
113
113
|
```bash
|
|
114
|
-
docker run -p 8080:8080 us-docker.pkg.dev/alogram-public/sdk/payrisk-emulator:0.
|
|
114
|
+
docker run -p 8080:8080 us-docker.pkg.dev/alogram-public/sdk/payrisk-emulator:0.3.0
|
|
115
115
|
```
|
|
116
116
|
2. **Point the SDK to Localhost**:
|
|
117
117
|
```ruby
|
data/RELEASE.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sdk": "ruby",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"monorepo_commit": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"monorepo_commit": "f357cb51197e8cff88a989fd0b9cf7c3639ef938",
|
|
5
5
|
"openapi_path": "apis/payrisk-v1/openapi.yaml",
|
|
6
|
-
"openapi_commit": "
|
|
6
|
+
"openapi_commit": "f357cb51197e8cff88a989fd0b9cf7c3639ef938",
|
|
7
7
|
"generator": "openapi-generator-cli@7.19.0",
|
|
8
|
-
"built_at": "2026-06-
|
|
8
|
+
"built_at": "2026-06-07T04:45:29Z"
|
|
9
9
|
}
|
data/alogram_payrisk.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#Alogram PayRisk is an AI-native decision engine built for the speed and complexity of the modern commerce era. In a high-velocity world where AI-driven threats evolve in milliseconds, Alogram provides the real-time adaptability and forensic transparency needed to protect your ecosystem with total confidence. We solve the challenge of balancing frictionless growth with regulatory explainability, delivering instant, intelligent risk orchestration at enterprise scale. --- ## Licensing & Terms Our client libraries and API specifications are open-source under the **Apache License 2.0** to ensure seamless integration into your tech stack. Use of the Alogram PayRisk API service is proprietary and governed by our [Terms of Service](https://alogram.ai/#tos) and your specific **Enterprise Agreement**, if applicable. To access the service, you must have: * A valid Alogram API Key. * An active subscription or signed Master Service Agreement. Unauthorized use, including automated scraping or reverse engineering of the scoring engine, is strictly prohibited. --- ## Support & Traceability Every Alogram API response includes a unique **`x-trace-id`** header. Please include this ID when contacting [packages@alogram.ai](mailto:packages@alogram.ai) regarding specific transactions or errors. --- ## Specification The authoritative OpenAPI specification for this version is available for download: **[Download openapi.yaml](https://developers.alogram.ai/openapi.yaml)** | **[Download openapi.json](https://developers.alogram.ai/openapi.json)**
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 0.
|
|
8
|
+
The version of the OpenAPI document: 0.3.0
|
|
9
9
|
Contact: packages@alogram.ai
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
11
|
Generator version: 7.15.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Alogram PayRisk is an AI-native decision engine built for the speed and complexity of the modern commerce era. In a high-velocity world where AI-driven threats evolve in milliseconds, Alogram provides the real-time adaptability and forensic transparency needed to protect your ecosystem with total confidence. We solve the challenge of balancing frictionless growth with regulatory explainability, delivering instant, intelligent risk orchestration at enterprise scale. --- ## Licensing & Terms Our client libraries and API specifications are open-source under the **Apache License 2.0** to ensure seamless integration into your tech stack. Use of the Alogram PayRisk API service is proprietary and governed by our [Terms of Service](https://alogram.ai/#tos) and your specific **Enterprise Agreement**, if applicable. To access the service, you must have: * A valid Alogram API Key. * An active subscription or signed Master Service Agreement. Unauthorized use, including automated scraping or reverse engineering of the scoring engine, is strictly prohibited. --- ## Support & Traceability Every Alogram API response includes a unique **`x-trace-id`** header. Please include this ID when contacting [packages@alogram.ai](mailto:packages@alogram.ai) regarding specific transactions or errors. --- ## Specification The authoritative OpenAPI specification for this version is available for download: **[Download openapi.yaml](https://developers.alogram.ai/openapi.yaml)** | **[Download openapi.json](https://developers.alogram.ai/openapi.json)**
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
|
7
7
|
Contact: packages@alogram.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.15.0
|
|
@@ -22,8 +22,8 @@ module AlogramPayRisk
|
|
|
22
22
|
# Query Historical Assessments
|
|
23
23
|
# @param tenant_id [String]
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @option opts [String] :
|
|
26
|
-
# @option opts [String] :
|
|
25
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
26
|
+
# @option opts [String] :idempotency_key Unique Idempotency-Key sent in the GET request etc.
|
|
27
27
|
# @option opts [String] :start_time
|
|
28
28
|
# @option opts [String] :end_time
|
|
29
29
|
# @option opts [Integer] :page_size (default to 50)
|
|
@@ -37,8 +37,8 @@ module AlogramPayRisk
|
|
|
37
37
|
# Query Historical Assessments
|
|
38
38
|
# @param tenant_id [String]
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [String] :
|
|
41
|
-
# @option opts [String] :
|
|
40
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
41
|
+
# @option opts [String] :idempotency_key Unique Idempotency-Key sent in the GET request etc.
|
|
42
42
|
# @option opts [String] :start_time
|
|
43
43
|
# @option opts [String] :end_time
|
|
44
44
|
# @option opts [Integer] :page_size (default to 50)
|
|
@@ -65,30 +65,30 @@ module AlogramPayRisk
|
|
|
65
65
|
fail ArgumentError, "invalid value for 'tenant_id' when calling ForensicDataApi.get_fraud_scores, must conform to the pattern #{pattern}."
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
69
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
68
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length > 36
|
|
69
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling ForensicDataApi.get_fraud_scores, the character length must be smaller than or equal to 36.'
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
73
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
72
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length < 36
|
|
73
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling ForensicDataApi.get_fraud_scores, the character length must be greater than or equal to 36.'
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
pattern = Regexp.new(/^trc_[a-f0-9]{32}$/)
|
|
77
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
78
|
-
fail ArgumentError, "invalid value for 'opts[:\"
|
|
77
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'] !~ pattern
|
|
78
|
+
fail ArgumentError, "invalid value for 'opts[:\"trace_id\"]' when calling ForensicDataApi.get_fraud_scores, must conform to the pattern #{pattern}."
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
82
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
81
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 36
|
|
82
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ForensicDataApi.get_fraud_scores, the character length must be smaller than or equal to 36.'
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
86
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
85
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 36
|
|
86
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling ForensicDataApi.get_fraud_scores, the character length must be greater than or equal to 36.'
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
pattern = Regexp.new(/^idk_[a-f0-9]{32}$/)
|
|
90
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
91
|
-
fail ArgumentError, "invalid value for 'opts[:\"
|
|
90
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'] !~ pattern
|
|
91
|
+
fail ArgumentError, "invalid value for 'opts[:\"idempotency_key\"]' when calling ForensicDataApi.get_fraud_scores, must conform to the pattern #{pattern}."
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
pattern = Regexp.new(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?(Z|[+-]\d{2}:\d{2})$/)
|
|
@@ -123,8 +123,8 @@ module AlogramPayRisk
|
|
|
123
123
|
header_params = opts[:header_params] || {}
|
|
124
124
|
# HTTP header 'Accept' (if needed)
|
|
125
125
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
|
|
126
|
-
header_params[:'
|
|
127
|
-
header_params[:'
|
|
126
|
+
header_params[:'trace-id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil?
|
|
127
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
128
128
|
|
|
129
129
|
# form parameters
|
|
130
130
|
form_params = opts[:form_params] || {}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Alogram PayRisk is an AI-native decision engine built for the speed and complexity of the modern commerce era. In a high-velocity world where AI-driven threats evolve in milliseconds, Alogram provides the real-time adaptability and forensic transparency needed to protect your ecosystem with total confidence. We solve the challenge of balancing frictionless growth with regulatory explainability, delivering instant, intelligent risk orchestration at enterprise scale. --- ## Licensing & Terms Our client libraries and API specifications are open-source under the **Apache License 2.0** to ensure seamless integration into your tech stack. Use of the Alogram PayRisk API service is proprietary and governed by our [Terms of Service](https://alogram.ai/#tos) and your specific **Enterprise Agreement**, if applicable. To access the service, you must have: * A valid Alogram API Key. * An active subscription or signed Master Service Agreement. Unauthorized use, including automated scraping or reverse engineering of the scoring engine, is strictly prohibited. --- ## Support & Traceability Every Alogram API response includes a unique **`x-trace-id`** header. Please include this ID when contacting [packages@alogram.ai](mailto:packages@alogram.ai) regarding specific transactions or errors. --- ## Specification The authoritative OpenAPI specification for this version is available for download: **[Download openapi.yaml](https://developers.alogram.ai/openapi.yaml)** | **[Download openapi.json](https://developers.alogram.ai/openapi.json)**
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
|
7
7
|
Contact: packages@alogram.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.15.0
|
|
@@ -20,60 +20,60 @@ module AlogramPayRisk
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Assess Transaction Risk
|
|
23
|
-
# @param
|
|
23
|
+
# @param idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
|
|
24
24
|
# @param check_request [CheckRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @option opts [String] :
|
|
27
|
-
# @option opts [AgentManifest] :
|
|
26
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
27
|
+
# @option opts [AgentManifest] :alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
|
|
28
28
|
# @return [DecisionResponse]
|
|
29
|
-
def risk_check(
|
|
30
|
-
data, _status_code, _headers = risk_check_with_http_info(
|
|
29
|
+
def risk_check(idempotency_key, check_request, opts = {})
|
|
30
|
+
data, _status_code, _headers = risk_check_with_http_info(idempotency_key, check_request, opts)
|
|
31
31
|
data
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
# Assess Transaction Risk
|
|
35
|
-
# @param
|
|
35
|
+
# @param idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
|
|
36
36
|
# @param check_request [CheckRequest]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @option opts [String] :
|
|
39
|
-
# @option opts [AgentManifest] :
|
|
38
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
39
|
+
# @option opts [AgentManifest] :alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
|
|
40
40
|
# @return [Array<(DecisionResponse, Integer, Hash)>] DecisionResponse data, response status code and response headers
|
|
41
|
-
def risk_check_with_http_info(
|
|
41
|
+
def risk_check_with_http_info(idempotency_key, check_request, opts = {})
|
|
42
42
|
if @api_client.config.debugging
|
|
43
43
|
@api_client.config.logger.debug 'Calling API: RiskScoringApi.risk_check ...'
|
|
44
44
|
end
|
|
45
|
-
# verify the required parameter '
|
|
46
|
-
if @api_client.config.client_side_validation &&
|
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
|
45
|
+
# verify the required parameter 'idempotency_key' is set
|
|
46
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling RiskScoringApi.risk_check"
|
|
48
48
|
end
|
|
49
|
-
if @api_client.config.client_side_validation &&
|
|
50
|
-
fail ArgumentError, 'invalid value for "
|
|
49
|
+
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 36
|
|
50
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling RiskScoringApi.risk_check, the character length must be smaller than or equal to 36.'
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
if @api_client.config.client_side_validation &&
|
|
54
|
-
fail ArgumentError, 'invalid value for "
|
|
53
|
+
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 36
|
|
54
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling RiskScoringApi.risk_check, the character length must be greater than or equal to 36.'
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
pattern = Regexp.new(/^idk_[a-f0-9]{32}$/)
|
|
58
|
-
if @api_client.config.client_side_validation &&
|
|
59
|
-
fail ArgumentError, "invalid value for '
|
|
58
|
+
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
59
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling RiskScoringApi.risk_check, must conform to the pattern #{pattern}."
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
# verify the required parameter 'check_request' is set
|
|
63
63
|
if @api_client.config.client_side_validation && check_request.nil?
|
|
64
64
|
fail ArgumentError, "Missing the required parameter 'check_request' when calling RiskScoringApi.risk_check"
|
|
65
65
|
end
|
|
66
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
67
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
66
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length > 36
|
|
67
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling RiskScoringApi.risk_check, the character length must be smaller than or equal to 36.'
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
71
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
70
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length < 36
|
|
71
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling RiskScoringApi.risk_check, the character length must be greater than or equal to 36.'
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
pattern = Regexp.new(/^trc_[a-f0-9]{32}$/)
|
|
75
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
76
|
-
fail ArgumentError, "invalid value for 'opts[:\"
|
|
75
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'] !~ pattern
|
|
76
|
+
fail ArgumentError, "invalid value for 'opts[:\"trace_id\"]' when calling RiskScoringApi.risk_check, must conform to the pattern #{pattern}."
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
# resource path
|
|
@@ -91,9 +91,9 @@ module AlogramPayRisk
|
|
|
91
91
|
if !content_type.nil?
|
|
92
92
|
header_params['Content-Type'] = content_type
|
|
93
93
|
end
|
|
94
|
-
header_params[:'
|
|
95
|
-
header_params[:'
|
|
96
|
-
header_params[:'
|
|
94
|
+
header_params[:'idempotency-key'] = idempotency_key
|
|
95
|
+
header_params[:'trace-id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil?
|
|
96
|
+
header_params[:'alogram-agent-manifest'] = opts[:'alogram_agent_manifest'] if !opts[:'alogram_agent_manifest'].nil?
|
|
97
97
|
|
|
98
98
|
# form parameters
|
|
99
99
|
form_params = opts[:form_params] || {}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Alogram PayRisk is an AI-native decision engine built for the speed and complexity of the modern commerce era. In a high-velocity world where AI-driven threats evolve in milliseconds, Alogram provides the real-time adaptability and forensic transparency needed to protect your ecosystem with total confidence. We solve the challenge of balancing frictionless growth with regulatory explainability, delivering instant, intelligent risk orchestration at enterprise scale. --- ## Licensing & Terms Our client libraries and API specifications are open-source under the **Apache License 2.0** to ensure seamless integration into your tech stack. Use of the Alogram PayRisk API service is proprietary and governed by our [Terms of Service](https://alogram.ai/#tos) and your specific **Enterprise Agreement**, if applicable. To access the service, you must have: * A valid Alogram API Key. * An active subscription or signed Master Service Agreement. Unauthorized use, including automated scraping or reverse engineering of the scoring engine, is strictly prohibited. --- ## Support & Traceability Every Alogram API response includes a unique **`x-trace-id`** header. Please include this ID when contacting [packages@alogram.ai](mailto:packages@alogram.ai) regarding specific transactions or errors. --- ## Specification The authoritative OpenAPI specification for this version is available for download: **[Download openapi.yaml](https://developers.alogram.ai/openapi.yaml)** | **[Download openapi.json](https://developers.alogram.ai/openapi.json)**
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 0.
|
|
6
|
+
The version of the OpenAPI document: 0.3.0
|
|
7
7
|
Contact: packages@alogram.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.15.0
|
|
@@ -21,61 +21,61 @@ module AlogramPayRisk
|
|
|
21
21
|
end
|
|
22
22
|
# Synchronous fraud decision for account/session events
|
|
23
23
|
# > **Coming Soon**: This endpoint is currently in active development. Assess risk for account-level events such as signup, login, and profile changes.
|
|
24
|
-
# @param
|
|
24
|
+
# @param idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
|
|
25
25
|
# @param account_check_request [AccountCheckRequest]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @option opts [String] :
|
|
28
|
-
# @option opts [AgentManifest] :
|
|
27
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
28
|
+
# @option opts [AgentManifest] :alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
|
|
29
29
|
# @return [DecisionResponse]
|
|
30
|
-
def account_risk_check(
|
|
31
|
-
data, _status_code, _headers = account_risk_check_with_http_info(
|
|
30
|
+
def account_risk_check(idempotency_key, account_check_request, opts = {})
|
|
31
|
+
data, _status_code, _headers = account_risk_check_with_http_info(idempotency_key, account_check_request, opts)
|
|
32
32
|
data
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# Synchronous fraud decision for account/session events
|
|
36
36
|
# > **Coming Soon**: This endpoint is currently in active development. Assess risk for account-level events such as signup, login, and profile changes.
|
|
37
|
-
# @param
|
|
37
|
+
# @param idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
|
|
38
38
|
# @param account_check_request [AccountCheckRequest]
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [String] :
|
|
41
|
-
# @option opts [AgentManifest] :
|
|
40
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
41
|
+
# @option opts [AgentManifest] :alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
|
|
42
42
|
# @return [Array<(DecisionResponse, Integer, Hash)>] DecisionResponse data, response status code and response headers
|
|
43
|
-
def account_risk_check_with_http_info(
|
|
43
|
+
def account_risk_check_with_http_info(idempotency_key, account_check_request, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
45
|
@api_client.config.logger.debug 'Calling API: RoadmapPreviewApi.account_risk_check ...'
|
|
46
46
|
end
|
|
47
|
-
# verify the required parameter '
|
|
48
|
-
if @api_client.config.client_side_validation &&
|
|
49
|
-
fail ArgumentError, "Missing the required parameter '
|
|
47
|
+
# verify the required parameter 'idempotency_key' is set
|
|
48
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling RoadmapPreviewApi.account_risk_check"
|
|
50
50
|
end
|
|
51
|
-
if @api_client.config.client_side_validation &&
|
|
52
|
-
fail ArgumentError, 'invalid value for "
|
|
51
|
+
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 36
|
|
52
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling RoadmapPreviewApi.account_risk_check, the character length must be smaller than or equal to 36.'
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
if @api_client.config.client_side_validation &&
|
|
56
|
-
fail ArgumentError, 'invalid value for "
|
|
55
|
+
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 36
|
|
56
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling RoadmapPreviewApi.account_risk_check, the character length must be greater than or equal to 36.'
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
pattern = Regexp.new(/^idk_[a-f0-9]{32}$/)
|
|
60
|
-
if @api_client.config.client_side_validation &&
|
|
61
|
-
fail ArgumentError, "invalid value for '
|
|
60
|
+
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
61
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling RoadmapPreviewApi.account_risk_check, must conform to the pattern #{pattern}."
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
# verify the required parameter 'account_check_request' is set
|
|
65
65
|
if @api_client.config.client_side_validation && account_check_request.nil?
|
|
66
66
|
fail ArgumentError, "Missing the required parameter 'account_check_request' when calling RoadmapPreviewApi.account_risk_check"
|
|
67
67
|
end
|
|
68
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
69
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
68
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length > 36
|
|
69
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling RoadmapPreviewApi.account_risk_check, the character length must be smaller than or equal to 36.'
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
73
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
72
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length < 36
|
|
73
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling RoadmapPreviewApi.account_risk_check, the character length must be greater than or equal to 36.'
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
pattern = Regexp.new(/^trc_[a-f0-9]{32}$/)
|
|
77
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
78
|
-
fail ArgumentError, "invalid value for 'opts[:\"
|
|
77
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'] !~ pattern
|
|
78
|
+
fail ArgumentError, "invalid value for 'opts[:\"trace_id\"]' when calling RoadmapPreviewApi.account_risk_check, must conform to the pattern #{pattern}."
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
# resource path
|
|
@@ -93,9 +93,9 @@ module AlogramPayRisk
|
|
|
93
93
|
if !content_type.nil?
|
|
94
94
|
header_params['Content-Type'] = content_type
|
|
95
95
|
end
|
|
96
|
-
header_params[:'
|
|
97
|
-
header_params[:'
|
|
98
|
-
header_params[:'
|
|
96
|
+
header_params[:'idempotency-key'] = idempotency_key
|
|
97
|
+
header_params[:'trace-id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil?
|
|
98
|
+
header_params[:'alogram-agent-manifest'] = opts[:'alogram_agent_manifest'] if !opts[:'alogram_agent_manifest'].nil?
|
|
99
99
|
|
|
100
100
|
# form parameters
|
|
101
101
|
form_params = opts[:form_params] || {}
|
|
@@ -128,61 +128,61 @@ module AlogramPayRisk
|
|
|
128
128
|
|
|
129
129
|
# Synchronous decision for KYC/identity verification
|
|
130
130
|
# > **Coming Soon**: This endpoint is currently in active development. Assess risk for identity verification and KYC workflows.
|
|
131
|
-
# @param
|
|
131
|
+
# @param idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
|
|
132
132
|
# @param kyc_check_request [KycCheckRequest]
|
|
133
133
|
# @param [Hash] opts the optional parameters
|
|
134
|
-
# @option opts [String] :
|
|
135
|
-
# @option opts [AgentManifest] :
|
|
134
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
135
|
+
# @option opts [AgentManifest] :alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
|
|
136
136
|
# @return [DecisionResponse]
|
|
137
|
-
def kyc_risk_check(
|
|
138
|
-
data, _status_code, _headers = kyc_risk_check_with_http_info(
|
|
137
|
+
def kyc_risk_check(idempotency_key, kyc_check_request, opts = {})
|
|
138
|
+
data, _status_code, _headers = kyc_risk_check_with_http_info(idempotency_key, kyc_check_request, opts)
|
|
139
139
|
data
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
# Synchronous decision for KYC/identity verification
|
|
143
143
|
# > **Coming Soon**: This endpoint is currently in active development. Assess risk for identity verification and KYC workflows.
|
|
144
|
-
# @param
|
|
144
|
+
# @param idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
|
|
145
145
|
# @param kyc_check_request [KycCheckRequest]
|
|
146
146
|
# @param [Hash] opts the optional parameters
|
|
147
|
-
# @option opts [String] :
|
|
148
|
-
# @option opts [AgentManifest] :
|
|
147
|
+
# @option opts [String] :trace_id Echoed or generated trace ID for tracking requests.
|
|
148
|
+
# @option opts [AgentManifest] :alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
|
|
149
149
|
# @return [Array<(DecisionResponse, Integer, Hash)>] DecisionResponse data, response status code and response headers
|
|
150
|
-
def kyc_risk_check_with_http_info(
|
|
150
|
+
def kyc_risk_check_with_http_info(idempotency_key, kyc_check_request, opts = {})
|
|
151
151
|
if @api_client.config.debugging
|
|
152
152
|
@api_client.config.logger.debug 'Calling API: RoadmapPreviewApi.kyc_risk_check ...'
|
|
153
153
|
end
|
|
154
|
-
# verify the required parameter '
|
|
155
|
-
if @api_client.config.client_side_validation &&
|
|
156
|
-
fail ArgumentError, "Missing the required parameter '
|
|
154
|
+
# verify the required parameter 'idempotency_key' is set
|
|
155
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
156
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling RoadmapPreviewApi.kyc_risk_check"
|
|
157
157
|
end
|
|
158
|
-
if @api_client.config.client_side_validation &&
|
|
159
|
-
fail ArgumentError, 'invalid value for "
|
|
158
|
+
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 36
|
|
159
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be smaller than or equal to 36.'
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
if @api_client.config.client_side_validation &&
|
|
163
|
-
fail ArgumentError, 'invalid value for "
|
|
162
|
+
if @api_client.config.client_side_validation && idempotency_key.to_s.length < 36
|
|
163
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be greater than or equal to 36.'
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
pattern = Regexp.new(/^idk_[a-f0-9]{32}$/)
|
|
167
|
-
if @api_client.config.client_side_validation &&
|
|
168
|
-
fail ArgumentError, "invalid value for '
|
|
167
|
+
if @api_client.config.client_side_validation && idempotency_key !~ pattern
|
|
168
|
+
fail ArgumentError, "invalid value for 'idempotency_key' when calling RoadmapPreviewApi.kyc_risk_check, must conform to the pattern #{pattern}."
|
|
169
169
|
end
|
|
170
170
|
|
|
171
171
|
# verify the required parameter 'kyc_check_request' is set
|
|
172
172
|
if @api_client.config.client_side_validation && kyc_check_request.nil?
|
|
173
173
|
fail ArgumentError, "Missing the required parameter 'kyc_check_request' when calling RoadmapPreviewApi.kyc_risk_check"
|
|
174
174
|
end
|
|
175
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
176
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
175
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length > 36
|
|
176
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be smaller than or equal to 36.'
|
|
177
177
|
end
|
|
178
178
|
|
|
179
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
180
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
179
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'].to_s.length < 36
|
|
180
|
+
fail ArgumentError, 'invalid value for "opts[:"trace_id"]" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be greater than or equal to 36.'
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
pattern = Regexp.new(/^trc_[a-f0-9]{32}$/)
|
|
184
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
185
|
-
fail ArgumentError, "invalid value for 'opts[:\"
|
|
184
|
+
if @api_client.config.client_side_validation && !opts[:'trace_id'].nil? && opts[:'trace_id'] !~ pattern
|
|
185
|
+
fail ArgumentError, "invalid value for 'opts[:\"trace_id\"]' when calling RoadmapPreviewApi.kyc_risk_check, must conform to the pattern #{pattern}."
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
# resource path
|
|
@@ -200,9 +200,9 @@ module AlogramPayRisk
|
|
|
200
200
|
if !content_type.nil?
|
|
201
201
|
header_params['Content-Type'] = content_type
|
|
202
202
|
end
|
|
203
|
-
header_params[:'
|
|
204
|
-
header_params[:'
|
|
205
|
-
header_params[:'
|
|
203
|
+
header_params[:'idempotency-key'] = idempotency_key
|
|
204
|
+
header_params[:'trace-id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil?
|
|
205
|
+
header_params[:'alogram-agent-manifest'] = opts[:'alogram_agent_manifest'] if !opts[:'alogram_agent_manifest'].nil?
|
|
206
206
|
|
|
207
207
|
# form parameters
|
|
208
208
|
form_params = opts[:form_params] || {}
|