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.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +2 -2
  4. data/RELEASE.json +4 -4
  5. data/alogram_payrisk.gemspec +1 -1
  6. data/lib/alogram_payrisk/api/forensic_data_api.rb +19 -19
  7. data/lib/alogram_payrisk/api/risk_scoring_api.rb +28 -28
  8. data/lib/alogram_payrisk/api/roadmap_preview_api.rb +55 -55
  9. data/lib/alogram_payrisk/api/signal_intelligence_api.rb +55 -55
  10. data/lib/alogram_payrisk/api/system_api.rb +1 -1
  11. data/lib/alogram_payrisk/api_client.rb +1 -1
  12. data/lib/alogram_payrisk/api_error.rb +1 -1
  13. data/lib/alogram_payrisk/api_model_base.rb +1 -1
  14. data/lib/alogram_payrisk/configuration.rb +1 -1
  15. data/lib/alogram_payrisk/models/account.rb +1 -1
  16. data/lib/alogram_payrisk/models/account_check_request.rb +1 -1
  17. data/lib/alogram_payrisk/models/agent_manifest.rb +1 -1
  18. data/lib/alogram_payrisk/models/agent_provider.rb +1 -1
  19. data/lib/alogram_payrisk/models/auth_context.rb +1 -1
  20. data/lib/alogram_payrisk/models/avs_result_enum.rb +1 -1
  21. data/lib/alogram_payrisk/models/bank_transfer.rb +1 -1
  22. data/lib/alogram_payrisk/models/card.rb +1 -1
  23. data/lib/alogram_payrisk/models/card_network_enum.rb +1 -1
  24. data/lib/alogram_payrisk/models/category_signal.rb +1 -1
  25. data/lib/alogram_payrisk/models/channel_enum.rb +1 -1
  26. data/lib/alogram_payrisk/models/check_request.rb +1 -1
  27. data/lib/alogram_payrisk/models/confidence_enum.rb +1 -1
  28. data/lib/alogram_payrisk/models/crypto.rb +1 -1
  29. data/lib/alogram_payrisk/models/cvv_result_enum.rb +1 -1
  30. data/lib/alogram_payrisk/models/decision_resolution_request.rb +1 -1
  31. data/lib/alogram_payrisk/models/decision_resolution_request_analyst.rb +1 -1
  32. data/lib/alogram_payrisk/models/decision_resolution_response.rb +1 -1
  33. data/lib/alogram_payrisk/models/decision_response.rb +32 -216
  34. data/lib/alogram_payrisk/models/decision_response_policy.rb +159 -0
  35. data/lib/alogram_payrisk/models/device_info.rb +1 -1
  36. data/lib/alogram_payrisk/models/discount_code.rb +1 -1
  37. data/lib/alogram_payrisk/models/entity_ids.rb +36 -5
  38. data/lib/alogram_payrisk/models/entry_method_enum.rb +1 -1
  39. data/lib/alogram_payrisk/models/external_assessment.rb +1 -1
  40. data/lib/alogram_payrisk/models/fraud_score.rb +1 -1
  41. data/lib/alogram_payrisk/models/identity.rb +1 -1
  42. data/lib/alogram_payrisk/models/ingest_payment_event202_response.rb +1 -1
  43. data/lib/alogram_payrisk/models/integrity.rb +1 -1
  44. data/lib/alogram_payrisk/models/interaction.rb +1 -1
  45. data/lib/alogram_payrisk/models/interaction_type_enum.rb +1 -1
  46. data/lib/alogram_payrisk/models/invoice.rb +1 -1
  47. data/lib/alogram_payrisk/models/ip_info.rb +1 -1
  48. data/lib/alogram_payrisk/models/kyc_check_request.rb +1 -1
  49. data/lib/alogram_payrisk/models/kyc_payload.rb +1 -1
  50. data/lib/alogram_payrisk/models/merchant_context.rb +1 -1
  51. data/lib/alogram_payrisk/models/operator_type.rb +42 -0
  52. data/lib/alogram_payrisk/models/order_context.rb +1 -1
  53. data/lib/alogram_payrisk/models/payer_type_enum.rb +1 -1
  54. data/lib/alogram_payrisk/models/payment_authorization_outcome.rb +1 -1
  55. data/lib/alogram_payrisk/models/payment_capture_outcome.rb +1 -1
  56. data/lib/alogram_payrisk/models/payment_card_type_enum.rb +1 -1
  57. data/lib/alogram_payrisk/models/payment_chargeback.rb +1 -1
  58. data/lib/alogram_payrisk/models/payment_chargeback_outcome.rb +1 -1
  59. data/lib/alogram_payrisk/models/payment_dispute_outcome.rb +1 -1
  60. data/lib/alogram_payrisk/models/payment_event.rb +1 -1
  61. data/lib/alogram_payrisk/models/payment_event_type.rb +1 -1
  62. data/lib/alogram_payrisk/models/payment_method.rb +1 -1
  63. data/lib/alogram_payrisk/models/payment_outcome.rb +1 -1
  64. data/lib/alogram_payrisk/models/payment_realtime_type_enum.rb +1 -1
  65. data/lib/alogram_payrisk/models/payment_refund_outcome.rb +1 -1
  66. data/lib/alogram_payrisk/models/payment_wallet_type_enum.rb +1 -1
  67. data/lib/alogram_payrisk/models/postal_address.rb +1 -1
  68. data/lib/alogram_payrisk/models/problem.rb +1 -1
  69. data/lib/alogram_payrisk/models/purchase.rb +1 -1
  70. data/lib/alogram_payrisk/models/purchase_initiator_enum.rb +1 -1
  71. data/lib/alogram_payrisk/models/purchase_sequence_enum.rb +1 -1
  72. data/lib/alogram_payrisk/models/purchase_usage_enum.rb +1 -1
  73. data/lib/alogram_payrisk/models/realtime.rb +1 -1
  74. data/lib/alogram_payrisk/models/reason_detail.rb +15 -5
  75. data/lib/alogram_payrisk/models/risk_breakdown.rb +1 -1
  76. data/lib/alogram_payrisk/models/risk_category_enum.rb +1 -1
  77. data/lib/alogram_payrisk/models/risk_level_enum.rb +1 -1
  78. data/lib/alogram_payrisk/models/sca_method_enum.rb +1 -1
  79. data/lib/alogram_payrisk/models/score_record.rb +19 -117
  80. data/lib/alogram_payrisk/models/scores_success_response.rb +1 -1
  81. data/lib/alogram_payrisk/models/signals_account_variant.rb +1 -1
  82. data/lib/alogram_payrisk/models/signals_interaction_variant.rb +1 -1
  83. data/lib/alogram_payrisk/models/signals_request.rb +1 -1
  84. data/lib/alogram_payrisk/models/stored_credential_context.rb +1 -1
  85. data/lib/alogram_payrisk/models/three_ds_data.rb +1 -1
  86. data/lib/alogram_payrisk/models/wallet.rb +1 -1
  87. data/lib/alogram_payrisk/version.rb +2 -2
  88. data/lib/alogram_payrisk.rb +3 -1
  89. data/spec/api/forensic_data_api_spec.rb +3 -3
  90. data/spec/api/risk_scoring_api_spec.rb +4 -4
  91. data/spec/api/roadmap_preview_api_spec.rb +7 -7
  92. data/spec/api/signal_intelligence_api_spec.rb +7 -7
  93. data/spec/api/system_api_spec.rb +1 -1
  94. data/spec/models/account_check_request_spec.rb +1 -1
  95. data/spec/models/account_spec.rb +1 -1
  96. data/spec/models/agent_manifest_spec.rb +1 -1
  97. data/spec/models/agent_provider_spec.rb +1 -1
  98. data/spec/models/auth_context_spec.rb +1 -1
  99. data/spec/models/avs_result_enum_spec.rb +1 -1
  100. data/spec/models/bank_transfer_spec.rb +1 -1
  101. data/spec/models/card_network_enum_spec.rb +1 -1
  102. data/spec/models/card_spec.rb +1 -1
  103. data/spec/models/category_signal_spec.rb +1 -1
  104. data/spec/models/channel_enum_spec.rb +1 -1
  105. data/spec/models/check_request_spec.rb +1 -1
  106. data/spec/models/confidence_enum_spec.rb +1 -1
  107. data/spec/models/crypto_spec.rb +1 -1
  108. data/spec/models/cvv_result_enum_spec.rb +1 -1
  109. data/spec/models/decision_resolution_request_analyst_spec.rb +1 -1
  110. data/spec/models/decision_resolution_request_spec.rb +1 -1
  111. data/spec/models/decision_resolution_response_spec.rb +1 -1
  112. data/spec/models/decision_response_policy_spec.rb +42 -0
  113. data/spec/models/decision_response_spec.rb +4 -50
  114. data/spec/models/device_info_spec.rb +1 -1
  115. data/spec/models/discount_code_spec.rb +1 -1
  116. data/spec/models/entity_ids_spec.rb +7 -1
  117. data/spec/models/entry_method_enum_spec.rb +1 -1
  118. data/spec/models/external_assessment_spec.rb +1 -1
  119. data/spec/models/fraud_score_spec.rb +1 -1
  120. data/spec/models/identity_spec.rb +1 -1
  121. data/spec/models/ingest_payment_event202_response_spec.rb +1 -1
  122. data/spec/models/integrity_spec.rb +1 -1
  123. data/spec/models/interaction_spec.rb +1 -1
  124. data/spec/models/interaction_type_enum_spec.rb +1 -1
  125. data/spec/models/invoice_spec.rb +1 -1
  126. data/spec/models/ip_info_spec.rb +1 -1
  127. data/spec/models/kyc_check_request_spec.rb +1 -1
  128. data/spec/models/kyc_payload_spec.rb +1 -1
  129. data/spec/models/merchant_context_spec.rb +1 -1
  130. data/spec/models/operator_type_spec.rb +30 -0
  131. data/spec/models/order_context_spec.rb +1 -1
  132. data/spec/models/payer_type_enum_spec.rb +1 -1
  133. data/spec/models/payment_authorization_outcome_spec.rb +1 -1
  134. data/spec/models/payment_capture_outcome_spec.rb +1 -1
  135. data/spec/models/payment_card_type_enum_spec.rb +1 -1
  136. data/spec/models/payment_chargeback_outcome_spec.rb +1 -1
  137. data/spec/models/payment_chargeback_spec.rb +1 -1
  138. data/spec/models/payment_dispute_outcome_spec.rb +1 -1
  139. data/spec/models/payment_event_spec.rb +1 -1
  140. data/spec/models/payment_event_type_spec.rb +1 -1
  141. data/spec/models/payment_method_spec.rb +1 -1
  142. data/spec/models/payment_outcome_spec.rb +1 -1
  143. data/spec/models/payment_realtime_type_enum_spec.rb +1 -1
  144. data/spec/models/payment_refund_outcome_spec.rb +1 -1
  145. data/spec/models/payment_wallet_type_enum_spec.rb +1 -1
  146. data/spec/models/postal_address_spec.rb +1 -1
  147. data/spec/models/problem_spec.rb +1 -1
  148. data/spec/models/purchase_initiator_enum_spec.rb +1 -1
  149. data/spec/models/purchase_sequence_enum_spec.rb +1 -1
  150. data/spec/models/purchase_spec.rb +1 -1
  151. data/spec/models/purchase_usage_enum_spec.rb +1 -1
  152. data/spec/models/realtime_spec.rb +1 -1
  153. data/spec/models/reason_detail_spec.rb +7 -1
  154. data/spec/models/risk_breakdown_spec.rb +1 -1
  155. data/spec/models/risk_category_enum_spec.rb +1 -1
  156. data/spec/models/risk_level_enum_spec.rb +1 -1
  157. data/spec/models/sca_method_enum_spec.rb +1 -1
  158. data/spec/models/score_record_spec.rb +2 -20
  159. data/spec/models/scores_success_response_spec.rb +1 -1
  160. data/spec/models/signals_account_variant_spec.rb +1 -1
  161. data/spec/models/signals_interaction_variant_spec.rb +1 -1
  162. data/spec/models/signals_request_spec.rb +1 -1
  163. data/spec/models/stored_credential_context_spec.rb +1 -1
  164. data/spec/models/three_ds_data_spec.rb +1 -1
  165. data/spec/models/wallet_spec.rb +1 -1
  166. data/spec/spec_helper.rb +1 -1
  167. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-13.0.0/gem_make.out +5 -5
  168. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.5.1/gem_make.out +5 -5
  169. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.2/gem_make.out +5 -5
  170. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  171. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.4.0/gem_make.out +5 -5
  172. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  173. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.2.0/gem_make.out +5 -5
  174. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f9c59094fb643aad0be6350675660550a7871c302aeb9be01c9714fac597100
4
- data.tar.gz: 0a47c20190c71074c893902535c4f07e8b820ec009cbbfb49c68d28da016bab8
3
+ metadata.gz: 62cabafbc4d0a05546add5d38fdb203b9f1db198bca051dfada4218bba1efc13
4
+ data.tar.gz: 05cace92a7f74d888b3f1f9b371f2f7ac2953eab1eb168da7a8cedade0a3f8bb
5
5
  SHA512:
6
- metadata.gz: ce7847d932595cd31c2aa0b60596ba563c2f4defe2881675af83c3506aa687499593fc3d54ed1c5c00955bc21fefec425c1f2fe310aed5f3e9b250f8ae76fc61
7
- data.tar.gz: 012150ef7795b4cd3fc1c60cc10b1177c824791592d92706a2ecf61ca5c7e0c661b5684456a5589469787a9b405c359de94d583ddd29829c63e55d85fbbeba47
6
+ metadata.gz: 9766f317c4b5367bcf3613cb54c8fb924da091be9012e925eabad77faab7a1fb60ca87adc61db6a6e7ce749bed53a24e4e84c5e4ac82f12a2600ab129f8b782f
7
+ data.tar.gz: 1040ab6827905db0efb523155d54ce7e9e8cac6e22d64dc43c17c09f2454b55d7db500e2295c704e8de2b9ec4a331d55dec4ee9ced0dc3f329141012b9036ba6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alogram_payrisk (0.2.23)
4
+ alogram_payrisk (0.3.0)
5
5
  httpx (~> 1.0, >= 1.0.0)
6
6
 
7
7
  GEM
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.2.23'
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.2.23
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.2.23",
4
- "monorepo_commit": "8b48ad701fc804e32664197cc323bb50b80b076e",
3
+ "version": "0.3.0",
4
+ "monorepo_commit": "f357cb51197e8cff88a989fd0b9cf7c3639ef938",
5
5
  "openapi_path": "apis/payrisk-v1/openapi.yaml",
6
- "openapi_commit": "8b48ad701fc804e32664197cc323bb50b80b076e",
6
+ "openapi_commit": "f357cb51197e8cff88a989fd0b9cf7c3639ef938",
7
7
  "generator": "openapi-generator-cli@7.19.0",
8
- "built_at": "2026-06-04T20:12:10Z"
8
+ "built_at": "2026-06-07T04:45:29Z"
9
9
  }
@@ -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.2.23
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.2.23
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] :x_trace_id Echoed or generated trace ID for tracking requests.
26
- # @option opts [String] :x_idempotency_key Unique Idempotency-Key sent in the GET request etc.
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] :x_trace_id Echoed or generated trace ID for tracking requests.
41
- # @option opts [String] :x_idempotency_key Unique Idempotency-Key sent in the GET request etc.
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length > 36
69
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling ForensicDataApi.get_fraud_scores, the character length must be smaller than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length < 36
73
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling ForensicDataApi.get_fraud_scores, the character length must be greater than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'] !~ pattern
78
- fail ArgumentError, "invalid value for 'opts[:\"x_trace_id\"]' when calling ForensicDataApi.get_fraud_scores, must conform to the pattern #{pattern}."
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[:'x_idempotency_key'].nil? && opts[:'x_idempotency_key'].to_s.length > 36
82
- fail ArgumentError, 'invalid value for "opts[:"x_idempotency_key"]" when calling ForensicDataApi.get_fraud_scores, the character length must be smaller than or equal to 36.'
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[:'x_idempotency_key'].nil? && opts[:'x_idempotency_key'].to_s.length < 36
86
- fail ArgumentError, 'invalid value for "opts[:"x_idempotency_key"]" when calling ForensicDataApi.get_fraud_scores, the character length must be greater than or equal to 36.'
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[:'x_idempotency_key'].nil? && opts[:'x_idempotency_key'] !~ pattern
91
- fail ArgumentError, "invalid value for 'opts[:\"x_idempotency_key\"]' when calling ForensicDataApi.get_fraud_scores, must conform to the pattern #{pattern}."
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[:'x-trace-id'] = opts[:'x_trace_id'] if !opts[:'x_trace_id'].nil?
127
- header_params[:'x-idempotency-key'] = opts[:'x_idempotency_key'] if !opts[:'x_idempotency_key'].nil?
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.2.23
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 x_idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
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] :x_trace_id Echoed or generated trace ID for tracking requests.
27
- # @option opts [AgentManifest] :x_alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
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(x_idempotency_key, check_request, opts = {})
30
- data, _status_code, _headers = risk_check_with_http_info(x_idempotency_key, check_request, opts)
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 x_idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
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] :x_trace_id Echoed or generated trace ID for tracking requests.
39
- # @option opts [AgentManifest] :x_alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
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(x_idempotency_key, check_request, opts = {})
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 'x_idempotency_key' is set
46
- if @api_client.config.client_side_validation && x_idempotency_key.nil?
47
- fail ArgumentError, "Missing the required parameter 'x_idempotency_key' when calling RiskScoringApi.risk_check"
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 && x_idempotency_key.to_s.length > 36
50
- fail ArgumentError, 'invalid value for "x_idempotency_key" when calling RiskScoringApi.risk_check, the character length must be smaller than or equal to 36.'
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 && x_idempotency_key.to_s.length < 36
54
- fail ArgumentError, 'invalid value for "x_idempotency_key" when calling RiskScoringApi.risk_check, the character length must be greater than or equal to 36.'
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 && x_idempotency_key !~ pattern
59
- fail ArgumentError, "invalid value for 'x_idempotency_key' when calling RiskScoringApi.risk_check, must conform to the pattern #{pattern}."
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length > 36
67
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling RiskScoringApi.risk_check, the character length must be smaller than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length < 36
71
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling RiskScoringApi.risk_check, the character length must be greater than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'] !~ pattern
76
- fail ArgumentError, "invalid value for 'opts[:\"x_trace_id\"]' when calling RiskScoringApi.risk_check, must conform to the pattern #{pattern}."
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[:'x-idempotency-key'] = x_idempotency_key
95
- header_params[:'x-trace-id'] = opts[:'x_trace_id'] if !opts[:'x_trace_id'].nil?
96
- header_params[:'x-alogram-agent-manifest'] = opts[:'x_alogram_agent_manifest'] if !opts[:'x_alogram_agent_manifest'].nil?
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.2.23
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 x_idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
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] :x_trace_id Echoed or generated trace ID for tracking requests.
28
- # @option opts [AgentManifest] :x_alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
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(x_idempotency_key, account_check_request, opts = {})
31
- data, _status_code, _headers = account_risk_check_with_http_info(x_idempotency_key, account_check_request, opts)
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
  # &gt; **Coming Soon**: This endpoint is currently in active development. Assess risk for account-level events such as signup, login, and profile changes.
37
- # @param x_idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
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] :x_trace_id Echoed or generated trace ID for tracking requests.
41
- # @option opts [AgentManifest] :x_alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
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(x_idempotency_key, account_check_request, opts = {})
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 'x_idempotency_key' is set
48
- if @api_client.config.client_side_validation && x_idempotency_key.nil?
49
- fail ArgumentError, "Missing the required parameter 'x_idempotency_key' when calling RoadmapPreviewApi.account_risk_check"
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 && x_idempotency_key.to_s.length > 36
52
- fail ArgumentError, 'invalid value for "x_idempotency_key" when calling RoadmapPreviewApi.account_risk_check, the character length must be smaller than or equal to 36.'
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 && x_idempotency_key.to_s.length < 36
56
- fail ArgumentError, 'invalid value for "x_idempotency_key" when calling RoadmapPreviewApi.account_risk_check, the character length must be greater than or equal to 36.'
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 && x_idempotency_key !~ pattern
61
- fail ArgumentError, "invalid value for 'x_idempotency_key' when calling RoadmapPreviewApi.account_risk_check, must conform to the pattern #{pattern}."
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length > 36
69
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling RoadmapPreviewApi.account_risk_check, the character length must be smaller than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length < 36
73
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling RoadmapPreviewApi.account_risk_check, the character length must be greater than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'] !~ pattern
78
- fail ArgumentError, "invalid value for 'opts[:\"x_trace_id\"]' when calling RoadmapPreviewApi.account_risk_check, must conform to the pattern #{pattern}."
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[:'x-idempotency-key'] = x_idempotency_key
97
- header_params[:'x-trace-id'] = opts[:'x_trace_id'] if !opts[:'x_trace_id'].nil?
98
- header_params[:'x-alogram-agent-manifest'] = opts[:'x_alogram_agent_manifest'] if !opts[:'x_alogram_agent_manifest'].nil?
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 x_idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
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] :x_trace_id Echoed or generated trace ID for tracking requests.
135
- # @option opts [AgentManifest] :x_alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
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(x_idempotency_key, kyc_check_request, opts = {})
138
- data, _status_code, _headers = kyc_risk_check_with_http_info(x_idempotency_key, kyc_check_request, opts)
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
  # &gt; **Coming Soon**: This endpoint is currently in active development. Assess risk for identity verification and KYC workflows.
144
- # @param x_idempotency_key [String] Unique Idempotency-Key sent in the POST request etc.
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] :x_trace_id Echoed or generated trace ID for tracking requests.
148
- # @option opts [AgentManifest] :x_alogram_agent_manifest JSON-encoded AgentManifest for autonomous shopping agents. Required for machine-to-machine trust validation (UCP/MCP).
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(x_idempotency_key, kyc_check_request, opts = {})
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 'x_idempotency_key' is set
155
- if @api_client.config.client_side_validation && x_idempotency_key.nil?
156
- fail ArgumentError, "Missing the required parameter 'x_idempotency_key' when calling RoadmapPreviewApi.kyc_risk_check"
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 && x_idempotency_key.to_s.length > 36
159
- fail ArgumentError, 'invalid value for "x_idempotency_key" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be smaller than or equal to 36.'
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 && x_idempotency_key.to_s.length < 36
163
- fail ArgumentError, 'invalid value for "x_idempotency_key" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be greater than or equal to 36.'
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 && x_idempotency_key !~ pattern
168
- fail ArgumentError, "invalid value for 'x_idempotency_key' when calling RoadmapPreviewApi.kyc_risk_check, must conform to the pattern #{pattern}."
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length > 36
176
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be smaller than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'].to_s.length < 36
180
- fail ArgumentError, 'invalid value for "opts[:"x_trace_id"]" when calling RoadmapPreviewApi.kyc_risk_check, the character length must be greater than or equal to 36.'
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[:'x_trace_id'].nil? && opts[:'x_trace_id'] !~ pattern
185
- fail ArgumentError, "invalid value for 'opts[:\"x_trace_id\"]' when calling RoadmapPreviewApi.kyc_risk_check, must conform to the pattern #{pattern}."
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[:'x-idempotency-key'] = x_idempotency_key
204
- header_params[:'x-trace-id'] = opts[:'x_trace_id'] if !opts[:'x_trace_id'].nil?
205
- header_params[:'x-alogram-agent-manifest'] = opts[:'x_alogram_agent_manifest'] if !opts[:'x_alogram_agent_manifest'].nil?
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] || {}