first_data_gateway 1.7.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (856) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +5 -2
  4. data/docs/AccountVerificationRequest.md +2 -0
  5. data/docs/AdditionalDetails.md +7 -1
  6. data/docs/AdditionalTransactionDetails.md +3 -1
  7. data/docs/ChinaDomestic.md +3 -1
  8. data/docs/CurrencyConversionResponse.md +19 -0
  9. data/docs/DCCExchangeRateRequest.md +1 -1
  10. data/docs/DCCExchangeRateRequestAllOf.md +1 -1
  11. data/docs/DecryptedApplePay.md +2 -6
  12. data/docs/DecryptedGooglePay.md +5 -7
  13. data/docs/DecryptedSamsungPay.md +2 -6
  14. data/docs/DisbursementTransactionType.md +1 -2
  15. data/docs/{ExchangeRateResponseAllOf.md → ExchangeRateDetails.md} +7 -11
  16. data/docs/ExchangeRateResponse.md +4 -20
  17. data/docs/FraudOrder.md +3 -1
  18. data/docs/FraudOrderItems.md +4 -4
  19. data/docs/FundingTransactionType.md +1 -2
  20. data/docs/PaymentCardSaleTransaction.md +1 -3
  21. data/docs/PaymentCardSaleTransactionAllOf.md +1 -3
  22. data/docs/PaymentTokenizationErrorResponse.md +4 -0
  23. data/docs/PaymentTokenizationRequest.md +2 -0
  24. data/docs/PaymentTokenizationResponse.md +5 -1
  25. data/docs/ProcessorData.md +3 -1
  26. data/docs/Receipt.md +19 -0
  27. data/docs/ReceiptLine.md +19 -0
  28. data/docs/ReceiptRequestInfo.md +21 -0
  29. data/docs/ReturnTransaction.md +2 -0
  30. data/docs/ReturnTransactionAllOf.md +2 -0
  31. data/docs/ScoreOnlyResponse.md +3 -5
  32. data/docs/ScoreOnlyResponseFraudScore.md +3 -1
  33. data/docs/Secure3D10AuthenticationRequest.md +1 -2
  34. data/docs/Secure3D21AuthenticationRequest.md +2 -2
  35. data/docs/Secure3D21AuthenticationRequestAllOf.md +2 -2
  36. data/docs/SoftDescriptor.md +5 -1
  37. data/docs/TeleCheckCBPPaymentMethod.md +1 -2
  38. data/docs/TransactionErrorResponse.md +2 -0
  39. data/docs/TransactionResponse.md +3 -1
  40. data/docs/VoidPreAuthTransactions.md +1 -2
  41. data/docs/VoidTransaction.md +2 -2
  42. data/docs/VoidTransactionAllOf.md +2 -2
  43. data/first_data_gateway.gemspec +4 -18
  44. data/git_push.sh +7 -10
  45. data/lib/openapi_client.rb +19 -27
  46. data/lib/openapi_client/api/authentication_api.rb +4 -4
  47. data/lib/openapi_client/api/currency_conversion_api.rb +4 -4
  48. data/lib/openapi_client/api/fraud_detect_api.rb +8 -8
  49. data/lib/openapi_client/api/information_lookup_api.rb +6 -6
  50. data/lib/openapi_client/api/order_api.rb +6 -6
  51. data/lib/openapi_client/api/payment_api.rb +12 -12
  52. data/lib/openapi_client/api/payment_schedules_api.rb +8 -8
  53. data/lib/openapi_client/api/payment_token_api.rb +8 -8
  54. data/lib/openapi_client/api/payment_url_api.rb +6 -6
  55. data/lib/openapi_client/api/verification_api.rb +6 -6
  56. data/lib/openapi_client/api_client.rb +8 -10
  57. data/lib/openapi_client/api_error.rb +2 -2
  58. data/lib/openapi_client/configuration.rb +5 -4
  59. data/lib/openapi_client/models/access_token_request.rb +3 -9
  60. data/lib/openapi_client/models/access_token_response.rb +3 -9
  61. data/lib/openapi_client/models/account_info_lookup_request.rb +3 -9
  62. data/lib/openapi_client/models/account_updater_response.rb +3 -9
  63. data/lib/openapi_client/models/account_verification_request.rb +29 -10
  64. data/lib/openapi_client/models/ach_credit_transaction.rb +4 -10
  65. data/lib/openapi_client/models/ach_post_auth_transaction.rb +4 -10
  66. data/lib/openapi_client/models/ach_post_auth_transaction_all_of.rb +3 -9
  67. data/lib/openapi_client/models/ach_pre_auth_transaction.rb +4 -10
  68. data/lib/openapi_client/models/ach_pre_auth_transaction_all_of.rb +3 -9
  69. data/lib/openapi_client/models/ach_recurring_type.rb +2 -2
  70. data/lib/openapi_client/models/ach_response.rb +11 -17
  71. data/lib/openapi_client/models/ach_return_transaction.rb +4 -10
  72. data/lib/openapi_client/models/ach_sale_transaction.rb +4 -10
  73. data/lib/openapi_client/models/ach_void_transaction.rb +4 -10
  74. data/lib/openapi_client/models/acs_response.rb +3 -9
  75. data/lib/openapi_client/models/additional_amount_rate.rb +3 -9
  76. data/lib/openapi_client/models/additional_details.rb +88 -13
  77. data/lib/openapi_client/models/additional_transaction_details.rb +19 -13
  78. data/lib/openapi_client/models/address.rb +3 -9
  79. data/lib/openapi_client/models/airline.rb +3 -9
  80. data/lib/openapi_client/models/airline_ancillary_service_category.rb +3 -9
  81. data/lib/openapi_client/models/airline_travel_route.rb +3 -9
  82. data/lib/openapi_client/models/ali_pay.rb +3 -9
  83. data/lib/openapi_client/models/ali_pay_payment_method.rb +5 -10
  84. data/lib/openapi_client/models/ali_pay_payment_method_all_of.rb +3 -9
  85. data/lib/openapi_client/models/ali_pay_sale_transaction.rb +4 -10
  86. data/lib/openapi_client/models/ali_pay_sale_transaction_all_of.rb +3 -9
  87. data/lib/openapi_client/models/amount.rb +22 -9
  88. data/lib/openapi_client/models/amount_components.rb +3 -9
  89. data/lib/openapi_client/models/authentication_request.rb +3 -9
  90. data/lib/openapi_client/models/authentication_result.rb +3 -9
  91. data/lib/openapi_client/models/authentication_update_request.rb +3 -9
  92. data/lib/openapi_client/models/avs_response.rb +3 -9
  93. data/lib/openapi_client/models/background.rb +3 -9
  94. data/lib/openapi_client/models/background_color.rb +3 -9
  95. data/lib/openapi_client/models/bancontact_qr.rb +3 -9
  96. data/lib/openapi_client/models/basic_response.rb +3 -9
  97. data/lib/openapi_client/models/billing.rb +54 -10
  98. data/lib/openapi_client/models/billing_address.rb +3 -9
  99. data/lib/openapi_client/models/block_card.rb +3 -9
  100. data/lib/openapi_client/models/block_domain.rb +3 -9
  101. data/lib/openapi_client/models/block_ip_address.rb +3 -9
  102. data/lib/openapi_client/models/block_name.rb +3 -9
  103. data/lib/openapi_client/models/blocked_card_number.rb +3 -9
  104. data/lib/openapi_client/models/blocked_items.rb +3 -9
  105. data/lib/openapi_client/models/body.rb +3 -9
  106. data/lib/openapi_client/models/borders.rb +3 -9
  107. data/lib/openapi_client/models/branding_style_configuration_request.rb +3 -9
  108. data/lib/openapi_client/models/branding_style_configuration_response.rb +4 -11
  109. data/lib/openapi_client/models/branding_style_configuration_result.rb +3 -9
  110. data/lib/openapi_client/models/button.rb +3 -9
  111. data/lib/openapi_client/models/car_rental.rb +3 -9
  112. data/lib/openapi_client/models/car_rental_extra_charges.rb +3 -9
  113. data/lib/openapi_client/models/card.rb +3 -9
  114. data/lib/openapi_client/models/card_function.rb +2 -2
  115. data/lib/openapi_client/models/card_info.rb +3 -9
  116. data/lib/openapi_client/models/card_info_lookup_request.rb +3 -9
  117. data/lib/openapi_client/models/card_info_lookup_response.rb +4 -11
  118. data/lib/openapi_client/models/card_verification_request.rb +3 -9
  119. data/lib/openapi_client/models/cardholder_info_response.rb +257 -0
  120. data/lib/openapi_client/models/china_domestic.rb +32 -13
  121. data/lib/openapi_client/models/china_domestic_payment_method.rb +5 -10
  122. data/lib/openapi_client/models/china_domestic_payment_method_all_of.rb +3 -9
  123. data/lib/openapi_client/models/china_pn_r_sale_transaction.rb +4 -10
  124. data/lib/openapi_client/models/china_pn_r_sale_transaction_all_of.rb +3 -9
  125. data/lib/openapi_client/models/classic_mode.rb +3 -9
  126. data/lib/openapi_client/models/clearing_details.rb +3 -9
  127. data/lib/openapi_client/models/clearing_element.rb +3 -9
  128. data/lib/openapi_client/models/client_locale.rb +3 -9
  129. data/lib/openapi_client/models/client_registration.rb +3 -10
  130. data/lib/openapi_client/models/combined_mode.rb +3 -9
  131. data/lib/openapi_client/models/connect_mode.rb +2 -2
  132. data/lib/openapi_client/models/contact.rb +3 -9
  133. data/lib/openapi_client/models/content.rb +3 -9
  134. data/lib/openapi_client/models/country_profile.rb +3 -9
  135. data/lib/openapi_client/models/create_payment_token.rb +3 -9
  136. data/lib/openapi_client/models/currency_conversion.rb +3 -9
  137. data/lib/openapi_client/models/{disbursement_transaction_type_all_of.rb → currency_conversion_response.rb} +24 -24
  138. data/lib/openapi_client/models/customer.rb +3 -9
  139. data/lib/openapi_client/models/customer_address.rb +3 -10
  140. data/lib/openapi_client/models/dcc.rb +4 -10
  141. data/lib/openapi_client/models/dcc_all_of.rb +3 -9
  142. data/lib/openapi_client/models/dcc_exchange_rate_request.rb +8 -23
  143. data/lib/openapi_client/models/dcc_exchange_rate_request_all_of.rb +7 -22
  144. data/lib/openapi_client/models/decrypted_apple_pay.rb +13 -88
  145. data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method.rb +4 -10
  146. data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method_all_of.rb +3 -9
  147. data/lib/openapi_client/models/decrypted_google_pay.rb +25 -91
  148. data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method.rb +4 -10
  149. data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method_all_of.rb +3 -9
  150. data/lib/openapi_client/models/decrypted_samsung_pay.rb +13 -88
  151. data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method.rb +4 -10
  152. data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method_all_of.rb +3 -9
  153. data/lib/openapi_client/models/delete_branding_style_configuration_response.rb +4 -11
  154. data/lib/openapi_client/models/device.rb +3 -9
  155. data/lib/openapi_client/models/disbursement.rb +3 -9
  156. data/lib/openapi_client/models/disbursement_transaction_type.rb +7 -28
  157. data/lib/openapi_client/models/document.rb +3 -9
  158. data/lib/openapi_client/models/dynamic_pricing.rb +4 -10
  159. data/lib/openapi_client/models/dynamic_pricing_all_of.rb +3 -9
  160. data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request.rb +4 -10
  161. data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request_all_of.rb +3 -9
  162. data/lib/openapi_client/models/email_notification_data.rb +3 -9
  163. data/lib/openapi_client/models/encrypted_apple_pay.rb +3 -9
  164. data/lib/openapi_client/models/encrypted_apple_pay_header.rb +3 -9
  165. data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method.rb +4 -10
  166. data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method_all_of.rb +3 -9
  167. data/lib/openapi_client/models/encrypted_google_pay.rb +3 -9
  168. data/lib/openapi_client/models/encrypted_google_pay_data.rb +3 -9
  169. data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method.rb +4 -10
  170. data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method_all_of.rb +3 -9
  171. data/lib/openapi_client/models/encrypted_samsung_pay.rb +3 -9
  172. data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method.rb +4 -10
  173. data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method_all_of.rb +3 -9
  174. data/lib/openapi_client/models/endpoint_response.rb +3 -9
  175. data/lib/openapi_client/models/error.rb +3 -9
  176. data/lib/openapi_client/models/error_details.rb +3 -9
  177. data/lib/openapi_client/models/error_message.rb +3 -9
  178. data/lib/openapi_client/models/error_response.rb +4 -11
  179. data/lib/openapi_client/models/{exchange_rate_response_all_of.rb → exchange_rate_details.rb} +11 -36
  180. data/lib/openapi_client/models/exchange_rate_request.rb +3 -9
  181. data/lib/openapi_client/models/exchange_rate_response.rb +12 -100
  182. data/lib/openapi_client/models/expiration.rb +6 -11
  183. data/lib/openapi_client/models/font_face.rb +2 -2
  184. data/lib/openapi_client/models/font_properties.rb +3 -9
  185. data/lib/openapi_client/models/font_weight.rb +2 -2
  186. data/lib/openapi_client/models/footer.rb +3 -9
  187. data/lib/openapi_client/models/fraud_address.rb +3 -9
  188. data/lib/openapi_client/models/fraud_order.rb +3 -9
  189. data/lib/openapi_client/models/fraud_order_items.rb +3 -9
  190. data/lib/openapi_client/models/fraud_registration.rb +3 -9
  191. data/lib/openapi_client/models/fraud_registration_card.rb +3 -9
  192. data/lib/openapi_client/models/fraud_registration_device.rb +3 -9
  193. data/lib/openapi_client/models/fraud_registration_device_items.rb +3 -9
  194. data/lib/openapi_client/models/fraud_registration_error.rb +3 -9
  195. data/lib/openapi_client/models/fraud_registration_response.rb +4 -10
  196. data/lib/openapi_client/models/fraud_score.rb +3 -9
  197. data/lib/openapi_client/models/fraud_settings.rb +3 -9
  198. data/lib/openapi_client/models/fraud_settings_response.rb +4 -11
  199. data/lib/openapi_client/models/frequency.rb +3 -9
  200. data/lib/openapi_client/models/funding_transaction_type.rb +7 -28
  201. data/lib/openapi_client/models/{store_url_configuration_response_all_of.rb → generate_certificate_from_csr_response.rb} +53 -19
  202. data/lib/openapi_client/models/{payment_registration_all_of.rb → generate_certificate_response.rb} +56 -51
  203. data/lib/openapi_client/models/header.rb +3 -9
  204. data/lib/openapi_client/models/hover.rb +3 -9
  205. data/lib/openapi_client/models/id_info.rb +3 -9
  206. data/lib/openapi_client/models/{payment_url_response_all_of.rb → ideal_setup.rb} +89 -78
  207. data/lib/openapi_client/models/{error_response_all_of.rb → ideal_setup_response.rb} +47 -17
  208. data/lib/openapi_client/models/industry_specific_extensions.rb +3 -9
  209. data/lib/openapi_client/models/initiate_clearing_response.rb +3 -9
  210. data/lib/openapi_client/models/initiate_clearing_response_all_of.rb +3 -9
  211. data/lib/openapi_client/models/installment_options.rb +3 -9
  212. data/lib/openapi_client/models/issuer_response.rb +3 -9
  213. data/lib/openapi_client/models/items.rb +3 -9
  214. data/lib/openapi_client/models/location.rb +3 -9
  215. data/lib/openapi_client/models/lockout_time.rb +3 -9
  216. data/lib/openapi_client/models/lodging.rb +3 -9
  217. data/lib/openapi_client/models/lodging_extra_charges.rb +3 -9
  218. data/lib/openapi_client/models/logo.rb +3 -9
  219. data/lib/openapi_client/models/loyalty.rb +3 -9
  220. data/lib/openapi_client/models/masterpass_wallet_payment_method.rb +4 -10
  221. data/lib/openapi_client/models/masterpass_wallet_payment_method_all_of.rb +3 -9
  222. data/lib/openapi_client/models/maximum_purchase_amount.rb +3 -9
  223. data/lib/openapi_client/models/mcc6012.rb +3 -9
  224. data/lib/openapi_client/models/merchant.rb +3 -9
  225. data/lib/openapi_client/models/method.rb +3 -9
  226. data/lib/openapi_client/models/mobile.rb +3 -9
  227. data/lib/openapi_client/models/mobile_header_area.rb +3 -9
  228. data/lib/openapi_client/models/order.rb +3 -9
  229. data/lib/openapi_client/models/order_error_response.rb +3 -10
  230. data/lib/openapi_client/models/order_response.rb +4 -11
  231. data/lib/openapi_client/models/pay_pal.rb +3 -9
  232. data/lib/openapi_client/models/pay_pal_payment_method.rb +5 -10
  233. data/lib/openapi_client/models/pay_pal_payment_method_all_of.rb +3 -9
  234. data/lib/openapi_client/models/payment.rb +3 -9
  235. data/lib/openapi_client/models/payment_card.rb +10 -16
  236. data/lib/openapi_client/models/payment_card_credit_transaction.rb +4 -10
  237. data/lib/openapi_client/models/payment_card_disbursement_transaction.rb +4 -10
  238. data/lib/openapi_client/models/payment_card_disbursement_transaction_all_of.rb +3 -9
  239. data/lib/openapi_client/models/payment_card_forced_ticket_transaction.rb +4 -10
  240. data/lib/openapi_client/models/payment_card_forced_ticket_transaction_all_of.rb +3 -9
  241. data/lib/openapi_client/models/payment_card_info_lookup_request.rb +4 -10
  242. data/lib/openapi_client/models/payment_card_info_lookup_request_all_of.rb +3 -9
  243. data/lib/openapi_client/models/payment_card_payer_auth_transaction.rb +4 -10
  244. data/lib/openapi_client/models/payment_card_payer_auth_transaction_all_of.rb +3 -9
  245. data/lib/openapi_client/models/payment_card_payment_method.rb +5 -10
  246. data/lib/openapi_client/models/payment_card_payment_method_all_of.rb +3 -9
  247. data/lib/openapi_client/models/payment_card_payment_token_update_request.rb +3 -9
  248. data/lib/openapi_client/models/payment_card_payment_tokenization_request.rb +4 -10
  249. data/lib/openapi_client/models/payment_card_payment_tokenization_request_all_of.rb +3 -9
  250. data/lib/openapi_client/models/payment_card_pre_auth_transaction.rb +4 -10
  251. data/lib/openapi_client/models/payment_card_pre_auth_transaction_all_of.rb +3 -9
  252. data/lib/openapi_client/models/payment_card_sale_transaction.rb +5 -25
  253. data/lib/openapi_client/models/payment_card_sale_transaction_all_of.rb +4 -24
  254. data/lib/openapi_client/models/payment_card_verification_request.rb +4 -10
  255. data/lib/openapi_client/models/payment_card_verification_request_all_of.rb +3 -9
  256. data/lib/openapi_client/models/payment_device.rb +3 -9
  257. data/lib/openapi_client/models/payment_device_credit_transaction.rb +4 -10
  258. data/lib/openapi_client/models/payment_device_credit_transaction_all_of.rb +3 -9
  259. data/lib/openapi_client/models/payment_device_disbursement_transaction.rb +4 -10
  260. data/lib/openapi_client/models/payment_device_disbursement_transaction_all_of.rb +3 -9
  261. data/lib/openapi_client/models/payment_device_payment_method.rb +5 -10
  262. data/lib/openapi_client/models/payment_device_payment_method_all_of.rb +3 -9
  263. data/lib/openapi_client/models/payment_device_payment_tokenization_request.rb +4 -10
  264. data/lib/openapi_client/models/payment_device_payment_tokenization_request_all_of.rb +3 -9
  265. data/lib/openapi_client/models/payment_device_pre_auth_transaction.rb +4 -10
  266. data/lib/openapi_client/models/payment_device_pre_auth_transaction_all_of.rb +3 -9
  267. data/lib/openapi_client/models/payment_device_sale_transaction.rb +4 -10
  268. data/lib/openapi_client/models/payment_device_sale_transaction_all_of.rb +3 -9
  269. data/lib/openapi_client/models/payment_facilitator.rb +3 -9
  270. data/lib/openapi_client/models/payment_method_details.rb +3 -9
  271. data/lib/openapi_client/models/payment_method_payment_schedules_request.rb +4 -10
  272. data/lib/openapi_client/models/payment_method_payment_schedules_request_all_of.rb +3 -9
  273. data/lib/openapi_client/models/payment_method_type.rb +2 -2
  274. data/lib/openapi_client/models/payment_registration.rb +4 -11
  275. data/lib/openapi_client/models/payment_schedules_error_response.rb +3 -10
  276. data/lib/openapi_client/models/payment_schedules_request.rb +3 -9
  277. data/lib/openapi_client/models/payment_schedules_response.rb +4 -11
  278. data/lib/openapi_client/models/payment_token_credit_transaction.rb +4 -10
  279. data/lib/openapi_client/models/payment_token_credit_transaction_all_of.rb +3 -9
  280. data/lib/openapi_client/models/payment_token_details.rb +3 -9
  281. data/lib/openapi_client/models/payment_token_details_all_of.rb +3 -9
  282. data/lib/openapi_client/models/payment_token_disbursement_transaction.rb +4 -10
  283. data/lib/openapi_client/models/payment_token_disbursement_transaction_all_of.rb +3 -9
  284. data/lib/openapi_client/models/payment_token_info_lookup_request.rb +4 -10
  285. data/lib/openapi_client/models/payment_token_info_lookup_request_all_of.rb +3 -9
  286. data/lib/openapi_client/models/payment_token_payment_method.rb +4 -9
  287. data/lib/openapi_client/models/payment_token_payment_method_all_of.rb +3 -9
  288. data/lib/openapi_client/models/payment_token_pre_auth_transaction.rb +4 -10
  289. data/lib/openapi_client/models/payment_token_pre_auth_transaction_all_of.rb +3 -9
  290. data/lib/openapi_client/models/payment_token_sale_transaction.rb +4 -10
  291. data/lib/openapi_client/models/payment_token_sale_transaction_all_of.rb +3 -9
  292. data/lib/openapi_client/models/payment_token_update_response.rb +4 -11
  293. data/lib/openapi_client/models/payment_token_verification_request.rb +4 -10
  294. data/lib/openapi_client/models/payment_token_verification_request_all_of.rb +3 -9
  295. data/lib/openapi_client/models/payment_tokenization_error_response.rb +54 -11
  296. data/lib/openapi_client/models/payment_tokenization_request.rb +29 -10
  297. data/lib/openapi_client/models/payment_tokenization_response.rb +58 -15
  298. data/lib/openapi_client/models/payment_url_detail.rb +3 -9
  299. data/lib/openapi_client/models/payment_url_detail_response.rb +4 -11
  300. data/lib/openapi_client/models/payment_url_error_response.rb +3 -10
  301. data/lib/openapi_client/models/payment_url_request.rb +3 -9
  302. data/lib/openapi_client/models/payment_url_response.rb +4 -11
  303. data/lib/openapi_client/models/payment_url_status.rb +2 -2
  304. data/lib/openapi_client/models/paypal_credit_transaction.rb +4 -10
  305. data/lib/openapi_client/models/paypal_credit_transaction_all_of.rb +3 -9
  306. data/lib/openapi_client/models/phone.rb +3 -9
  307. data/lib/openapi_client/models/post_auth_transaction.rb +4 -10
  308. data/lib/openapi_client/models/post_auth_transaction_all_of.rb +3 -9
  309. data/lib/openapi_client/models/primary.rb +3 -9
  310. data/lib/openapi_client/models/primary_transaction.rb +3 -9
  311. data/lib/openapi_client/models/processor_data.rb +26 -13
  312. data/lib/openapi_client/models/properties.rb +3 -9
  313. data/lib/openapi_client/models/purchase_cards.rb +3 -9
  314. data/lib/openapi_client/models/purchase_cards_level2.rb +3 -9
  315. data/lib/openapi_client/models/purchase_cards_level3.rb +3 -9
  316. data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +3 -9
  317. data/lib/openapi_client/models/{card_info_lookup_response_all_of.rb → receipt.rb} +42 -37
  318. data/lib/openapi_client/models/{delete_branding_style_configuration_response_all_of.rb → receipt_line.rb} +29 -27
  319. data/lib/openapi_client/models/{payment_token_update_response_all_of.rb → receipt_request_info.rb} +44 -43
  320. data/lib/openapi_client/models/receiver_info.rb +3 -9
  321. data/lib/openapi_client/models/recurring_payment_details.rb +3 -9
  322. data/lib/openapi_client/models/recurring_payment_details_response.rb +4 -11
  323. data/lib/openapi_client/models/referenced_order_payment_schedules_request.rb +4 -10
  324. data/lib/openapi_client/models/referenced_order_payment_schedules_request_all_of.rb +3 -9
  325. data/lib/openapi_client/models/referenced_order_payment_tokenization_request.rb +4 -10
  326. data/lib/openapi_client/models/referenced_order_payment_tokenization_request_all_of.rb +3 -9
  327. data/lib/openapi_client/models/registration_method.rb +3 -9
  328. data/lib/openapi_client/models/remove_fraud_blocked_items_response.rb +4 -11
  329. data/lib/openapi_client/models/response_amount_components.rb +3 -9
  330. data/lib/openapi_client/models/response_amount_components_all_of.rb +3 -9
  331. data/lib/openapi_client/models/response_type.rb +2 -2
  332. data/lib/openapi_client/models/return_transaction.rb +14 -11
  333. data/lib/openapi_client/models/return_transaction_all_of.rb +13 -10
  334. data/lib/openapi_client/models/score_only_request.rb +3 -9
  335. data/lib/openapi_client/models/score_only_response.rb +3 -9
  336. data/lib/openapi_client/models/score_only_response_fraud_score.rb +3 -9
  337. data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +3 -9
  338. data/lib/openapi_client/models/secondary_transaction.rb +3 -9
  339. data/lib/openapi_client/models/secure3_d10_authentication_request.rb +13 -23
  340. data/lib/openapi_client/models/secure3_d10_authentication_request_all_of.rb +11 -21
  341. data/lib/openapi_client/models/secure3_d10_authentication_result.rb +5 -11
  342. data/lib/openapi_client/models/secure3_d10_authentication_result_all_of.rb +3 -9
  343. data/lib/openapi_client/models/secure3_d10_authentication_update_request.rb +5 -11
  344. data/lib/openapi_client/models/secure3_d10_authentication_update_request_all_of.rb +3 -9
  345. data/lib/openapi_client/models/secure3_d21_authentication_request.rb +7 -13
  346. data/lib/openapi_client/models/secure3_d21_authentication_request_all_of.rb +5 -11
  347. data/lib/openapi_client/models/secure3_d21_authentication_result.rb +5 -11
  348. data/lib/openapi_client/models/secure3_d21_authentication_result_all_of.rb +3 -9
  349. data/lib/openapi_client/models/secure3_d21_authentication_update_request.rb +5 -11
  350. data/lib/openapi_client/models/secure3_d21_authentication_update_request_all_of.rb +3 -9
  351. data/lib/openapi_client/models/secure3_d_authentication_request.rb +329 -0
  352. data/lib/openapi_client/models/secure3_d_authentication_request_all_of.rb +316 -0
  353. data/lib/openapi_client/models/secure3_d_authentication_response.rb +3 -9
  354. data/lib/openapi_client/models/secure3_d_authentication_response_params.rb +3 -9
  355. data/lib/openapi_client/models/secure3_d_authentication_response_secure3d_method.rb +3 -9
  356. data/lib/openapi_client/models/secure3_d_authentication_result.rb +353 -0
  357. data/lib/openapi_client/models/secure3_d_authentication_result_all_of.rb +340 -0
  358. data/lib/openapi_client/models/{payment_schedules_response_all_of.rb → secure3_d_authentication_update_request.rb} +41 -44
  359. data/lib/openapi_client/models/secure3d_response.rb +3 -9
  360. data/lib/openapi_client/models/sender_info.rb +3 -9
  361. data/lib/openapi_client/models/sepa.rb +3 -9
  362. data/lib/openapi_client/models/sepa_mandate.rb +21 -27
  363. data/lib/openapi_client/models/sepa_payment_method.rb +4 -9
  364. data/lib/openapi_client/models/sepa_payment_method_all_of.rb +3 -9
  365. data/lib/openapi_client/models/sepa_sale_transaction.rb +4 -10
  366. data/lib/openapi_client/models/sepa_sale_transaction_all_of.rb +3 -9
  367. data/lib/openapi_client/models/shared_secret_configuration_request.rb +3 -9
  368. data/lib/openapi_client/models/shared_secret_configuration_response.rb +4 -11
  369. data/lib/openapi_client/models/ship_to_address.rb +3 -9
  370. data/lib/openapi_client/models/shipping.rb +3 -9
  371. data/lib/openapi_client/models/{payment_tokenization_response_all_of.rb → sofort_setup.rb} +126 -107
  372. data/lib/openapi_client/models/{funding_transaction_type_all_of.rb → sofort_setup_response.rb} +47 -22
  373. data/lib/openapi_client/models/soft_descriptor.rb +52 -13
  374. data/lib/openapi_client/models/split_shipment.rb +3 -9
  375. data/lib/openapi_client/models/store_branding_style_configuration.rb +3 -9
  376. data/lib/openapi_client/models/store_email_settings.rb +3 -9
  377. data/lib/openapi_client/models/store_email_settings_result.rb +3 -9
  378. data/lib/openapi_client/models/store_fraud_settings.rb +3 -9
  379. data/lib/openapi_client/models/store_fraud_settings_result.rb +3 -9
  380. data/lib/openapi_client/models/store_url_configuration.rb +3 -9
  381. data/lib/openapi_client/models/store_url_configuration_request.rb +3 -9
  382. data/lib/openapi_client/models/store_url_configuration_response.rb +4 -11
  383. data/lib/openapi_client/models/store_url_configuration_result.rb +3 -9
  384. data/lib/openapi_client/models/stored_credential.rb +3 -9
  385. data/lib/openapi_client/models/sub_merchant_data.rb +3 -9
  386. data/lib/openapi_client/models/sub_merchant_split.rb +3 -9
  387. data/lib/openapi_client/models/tele_check_ach_payment_method.rb +3 -9
  388. data/lib/openapi_client/models/tele_check_ach_payment_method_ach_bill_to.rb +3 -9
  389. data/lib/openapi_client/models/tele_check_cbp_payment_method.rb +7 -28
  390. data/lib/openapi_client/models/tele_check_ica_payment_method.rb +4 -10
  391. data/lib/openapi_client/models/tele_check_ica_payment_method_all_of.rb +3 -9
  392. data/lib/openapi_client/models/text.rb +3 -9
  393. data/lib/openapi_client/models/title.rb +3 -9
  394. data/lib/openapi_client/models/token_identifier.rb +3 -9
  395. data/lib/openapi_client/models/top_bar.rb +3 -9
  396. data/lib/openapi_client/models/transaction_error_response.rb +13 -11
  397. data/lib/openapi_client/models/transaction_origin.rb +3 -2
  398. data/lib/openapi_client/models/transaction_response.rb +17 -15
  399. data/lib/openapi_client/models/transaction_type.rb +2 -2
  400. data/lib/openapi_client/models/union_pay_authentication_request.rb +4 -10
  401. data/lib/openapi_client/models/union_pay_authentication_request_all_of.rb +3 -9
  402. data/lib/openapi_client/models/union_pay_authentication_update_request.rb +4 -10
  403. data/lib/openapi_client/models/union_pay_authentication_update_request_all_of.rb +3 -9
  404. data/lib/openapi_client/models/update_email_settings_request.rb +3 -9
  405. data/lib/openapi_client/models/update_email_settings_response.rb +4 -11
  406. data/lib/openapi_client/models/update_fraud_settings_request.rb +3 -9
  407. data/lib/openapi_client/models/update_fraud_settings_response.rb +4 -11
  408. data/lib/openapi_client/models/update_payment_token.rb +3 -9
  409. data/lib/openapi_client/models/use_payment_token.rb +3 -9
  410. data/lib/openapi_client/models/verification3ds.rb +3 -9
  411. data/lib/openapi_client/models/verification_avs.rb +3 -9
  412. data/lib/openapi_client/models/verification_cvv.rb +3 -9
  413. data/lib/openapi_client/models/void_pre_auth_transactions.rb +7 -28
  414. data/lib/openapi_client/models/void_transaction.rb +11 -22
  415. data/lib/openapi_client/models/void_transaction_all_of.rb +10 -21
  416. data/lib/openapi_client/models/wallet_payment_method.rb +3 -9
  417. data/lib/openapi_client/models/wallet_pre_auth_transaction.rb +4 -10
  418. data/lib/openapi_client/models/wallet_pre_auth_transaction_all_of.rb +3 -9
  419. data/lib/openapi_client/models/wallet_sale_transaction.rb +4 -10
  420. data/lib/openapi_client/models/wallet_sale_transaction_all_of.rb +3 -9
  421. data/lib/openapi_client/version.rb +3 -3
  422. data/lib/simple/gateway.rb +5 -4
  423. data/spec/api/authentication_api_spec.rb +2 -2
  424. data/spec/api/currency_conversion_api_spec.rb +2 -2
  425. data/spec/api/fraud_detect_api_spec.rb +2 -2
  426. data/spec/api/information_lookup_api_spec.rb +2 -2
  427. data/spec/api/order_api_spec.rb +2 -2
  428. data/spec/api/payment_api_spec.rb +3 -3
  429. data/spec/api/payment_schedules_api_spec.rb +2 -2
  430. data/spec/api/payment_token_api_spec.rb +2 -2
  431. data/spec/api/payment_url_api_spec.rb +2 -2
  432. data/spec/api/verification_api_spec.rb +2 -2
  433. data/spec/api_client_spec.rb +3 -3
  434. data/spec/configuration_spec.rb +2 -2
  435. data/spec/models/access_token_request_spec.rb +2 -2
  436. data/spec/models/access_token_response_spec.rb +2 -2
  437. data/spec/models/account_info_lookup_request_spec.rb +2 -2
  438. data/spec/models/account_updater_response_spec.rb +2 -2
  439. data/spec/models/account_verification_request_spec.rb +8 -2
  440. data/spec/models/ach_credit_transaction_spec.rb +2 -2
  441. data/spec/models/ach_post_auth_transaction_all_of_spec.rb +2 -2
  442. data/spec/models/ach_post_auth_transaction_spec.rb +2 -2
  443. data/spec/models/ach_pre_auth_transaction_all_of_spec.rb +2 -2
  444. data/spec/models/ach_pre_auth_transaction_spec.rb +2 -2
  445. data/spec/models/ach_recurring_type_spec.rb +2 -2
  446. data/spec/models/ach_response_spec.rb +2 -2
  447. data/spec/models/ach_return_transaction_spec.rb +2 -2
  448. data/spec/models/ach_sale_transaction_spec.rb +2 -2
  449. data/spec/models/ach_void_transaction_spec.rb +2 -2
  450. data/spec/models/acs_response_spec.rb +2 -2
  451. data/spec/models/additional_amount_rate_spec.rb +2 -2
  452. data/spec/models/additional_details_spec.rb +24 -2
  453. data/spec/models/additional_transaction_details_spec.rb +8 -2
  454. data/spec/models/address_spec.rb +2 -2
  455. data/spec/models/airline_ancillary_service_category_spec.rb +2 -2
  456. data/spec/models/airline_spec.rb +2 -2
  457. data/spec/models/airline_travel_route_spec.rb +2 -2
  458. data/spec/models/ali_pay_payment_method_all_of_spec.rb +2 -2
  459. data/spec/models/ali_pay_payment_method_spec.rb +2 -2
  460. data/spec/models/ali_pay_sale_transaction_all_of_spec.rb +2 -2
  461. data/spec/models/ali_pay_sale_transaction_spec.rb +2 -2
  462. data/spec/models/ali_pay_spec.rb +2 -2
  463. data/spec/models/amount_components_spec.rb +2 -2
  464. data/spec/models/amount_spec.rb +2 -2
  465. data/spec/models/authentication_request_spec.rb +2 -2
  466. data/spec/models/authentication_result_spec.rb +2 -2
  467. data/spec/models/authentication_update_request_spec.rb +2 -2
  468. data/spec/models/avs_response_spec.rb +2 -2
  469. data/spec/models/background_color_spec.rb +2 -2
  470. data/spec/models/background_spec.rb +2 -2
  471. data/spec/models/bancontact_qr_spec.rb +2 -2
  472. data/spec/models/basic_response_spec.rb +2 -2
  473. data/spec/models/billing_address_spec.rb +2 -2
  474. data/spec/models/billing_spec.rb +14 -2
  475. data/spec/models/block_card_spec.rb +2 -2
  476. data/spec/models/block_domain_spec.rb +2 -2
  477. data/spec/models/block_ip_address_spec.rb +2 -2
  478. data/spec/models/block_name_spec.rb +2 -2
  479. data/spec/models/blocked_card_number_spec.rb +2 -2
  480. data/spec/models/blocked_items_spec.rb +2 -2
  481. data/spec/models/body_spec.rb +2 -2
  482. data/spec/models/borders_spec.rb +2 -2
  483. data/spec/models/branding_style_configuration_request_spec.rb +2 -2
  484. data/spec/models/branding_style_configuration_response_spec.rb +2 -2
  485. data/spec/models/branding_style_configuration_result_spec.rb +2 -2
  486. data/spec/models/button_spec.rb +2 -2
  487. data/spec/models/car_rental_extra_charges_spec.rb +2 -2
  488. data/spec/models/car_rental_spec.rb +2 -2
  489. data/spec/models/card_function_spec.rb +2 -2
  490. data/spec/models/card_info_lookup_request_spec.rb +2 -2
  491. data/spec/models/card_info_lookup_response_spec.rb +2 -2
  492. data/spec/models/card_info_spec.rb +2 -2
  493. data/spec/models/card_spec.rb +2 -2
  494. data/spec/models/card_verification_request_spec.rb +2 -2
  495. data/spec/models/{payment_registration_all_of_spec.rb → cardholder_info_response_spec.rb} +14 -14
  496. data/spec/models/china_domestic_payment_method_all_of_spec.rb +2 -2
  497. data/spec/models/china_domestic_payment_method_spec.rb +2 -2
  498. data/spec/models/china_domestic_spec.rb +8 -2
  499. data/spec/models/china_pn_r_sale_transaction_all_of_spec.rb +2 -2
  500. data/spec/models/china_pn_r_sale_transaction_spec.rb +2 -2
  501. data/spec/models/classic_mode_spec.rb +2 -2
  502. data/spec/models/clearing_details_spec.rb +2 -2
  503. data/spec/models/clearing_element_spec.rb +2 -2
  504. data/spec/models/client_locale_spec.rb +2 -2
  505. data/spec/models/client_registration_spec.rb +2 -2
  506. data/spec/models/combined_mode_spec.rb +2 -2
  507. data/spec/models/connect_mode_spec.rb +2 -2
  508. data/spec/models/contact_spec.rb +2 -2
  509. data/spec/models/content_spec.rb +2 -2
  510. data/spec/models/country_profile_spec.rb +2 -2
  511. data/spec/models/create_payment_token_spec.rb +2 -2
  512. data/spec/models/{delete_branding_style_configuration_response_all_of_spec.rb → currency_conversion_response_spec.rb} +10 -10
  513. data/spec/models/currency_conversion_spec.rb +2 -2
  514. data/spec/models/customer_address_spec.rb +2 -2
  515. data/spec/models/customer_spec.rb +2 -2
  516. data/spec/models/dcc_all_of_spec.rb +2 -2
  517. data/spec/models/dcc_exchange_rate_request_all_of_spec.rb +2 -2
  518. data/spec/models/dcc_exchange_rate_request_spec.rb +2 -2
  519. data/spec/models/dcc_spec.rb +2 -2
  520. data/spec/models/decrypted_apple_pay_spec.rb +2 -14
  521. data/spec/models/decrypted_apple_pay_wallet_payment_method_all_of_spec.rb +2 -2
  522. data/spec/models/decrypted_apple_pay_wallet_payment_method_spec.rb +2 -2
  523. data/spec/models/decrypted_google_pay_spec.rb +7 -13
  524. data/spec/models/decrypted_google_pay_wallet_payment_method_all_of_spec.rb +2 -2
  525. data/spec/models/decrypted_google_pay_wallet_payment_method_spec.rb +2 -2
  526. data/spec/models/decrypted_samsung_pay_spec.rb +2 -14
  527. data/spec/models/decrypted_samsung_pay_wallet_payment_method_all_of_spec.rb +2 -2
  528. data/spec/models/decrypted_samsung_pay_wallet_payment_method_spec.rb +2 -2
  529. data/spec/models/delete_branding_style_configuration_response_spec.rb +2 -2
  530. data/spec/models/device_spec.rb +2 -2
  531. data/spec/models/disbursement_spec.rb +2 -2
  532. data/spec/models/disbursement_transaction_type_spec.rb +2 -8
  533. data/spec/models/document_spec.rb +2 -2
  534. data/spec/models/dynamic_pricing_all_of_spec.rb +2 -2
  535. data/spec/models/dynamic_pricing_exchange_rate_request_all_of_spec.rb +2 -2
  536. data/spec/models/dynamic_pricing_exchange_rate_request_spec.rb +2 -2
  537. data/spec/models/dynamic_pricing_spec.rb +2 -2
  538. data/spec/models/email_notification_data_spec.rb +2 -2
  539. data/spec/models/encrypted_apple_pay_header_spec.rb +2 -2
  540. data/spec/models/encrypted_apple_pay_spec.rb +2 -2
  541. data/spec/models/encrypted_apple_pay_wallet_payment_method_all_of_spec.rb +2 -2
  542. data/spec/models/encrypted_apple_pay_wallet_payment_method_spec.rb +2 -2
  543. data/spec/models/encrypted_google_pay_data_spec.rb +2 -2
  544. data/spec/models/encrypted_google_pay_spec.rb +2 -2
  545. data/spec/models/encrypted_google_pay_wallet_payment_method_all_of_spec.rb +2 -2
  546. data/spec/models/encrypted_google_pay_wallet_payment_method_spec.rb +2 -2
  547. data/spec/models/encrypted_samsung_pay_spec.rb +2 -2
  548. data/spec/models/encrypted_samsung_pay_wallet_payment_method_all_of_spec.rb +2 -2
  549. data/spec/models/encrypted_samsung_pay_wallet_payment_method_spec.rb +2 -2
  550. data/spec/models/endpoint_response_spec.rb +2 -2
  551. data/spec/models/error_details_spec.rb +2 -2
  552. data/spec/models/error_message_spec.rb +2 -2
  553. data/spec/models/error_response_spec.rb +2 -2
  554. data/spec/models/error_spec.rb +2 -2
  555. data/spec/models/{exchange_rate_response_all_of_spec.rb → exchange_rate_details_spec.rb} +8 -20
  556. data/spec/models/exchange_rate_request_spec.rb +2 -2
  557. data/spec/models/exchange_rate_response_spec.rb +3 -51
  558. data/spec/models/expiration_spec.rb +2 -2
  559. data/spec/models/font_face_spec.rb +2 -2
  560. data/spec/models/font_properties_spec.rb +2 -2
  561. data/spec/models/font_weight_spec.rb +2 -2
  562. data/spec/models/footer_spec.rb +2 -2
  563. data/spec/models/fraud_address_spec.rb +2 -2
  564. data/spec/models/fraud_order_items_spec.rb +2 -2
  565. data/spec/models/fraud_order_spec.rb +8 -2
  566. data/spec/models/fraud_registration_card_spec.rb +2 -2
  567. data/spec/models/fraud_registration_device_items_spec.rb +2 -2
  568. data/spec/models/fraud_registration_device_spec.rb +2 -2
  569. data/spec/models/fraud_registration_error_spec.rb +2 -2
  570. data/spec/models/fraud_registration_response_spec.rb +3 -3
  571. data/spec/models/fraud_registration_spec.rb +2 -2
  572. data/spec/models/fraud_score_spec.rb +2 -2
  573. data/spec/models/fraud_settings_response_spec.rb +2 -2
  574. data/spec/models/fraud_settings_spec.rb +2 -2
  575. data/spec/models/frequency_spec.rb +2 -2
  576. data/spec/models/funding_transaction_type_spec.rb +2 -8
  577. data/spec/models/{shared_secret_configuration_response_all_of_spec.rb → generate_certificate_from_csr_response_spec.rb} +12 -12
  578. data/spec/models/{order_response_all_of_spec.rb → generate_certificate_response_spec.rb} +13 -13
  579. data/spec/models/header_spec.rb +2 -2
  580. data/spec/models/hover_spec.rb +2 -2
  581. data/spec/models/id_info_spec.rb +2 -2
  582. data/spec/models/{payment_url_response_all_of_spec.rb → ideal_setup_response_spec.rb} +12 -16
  583. data/spec/models/{disbursement_transaction_type_all_of_spec.rb → ideal_setup_spec.rb} +15 -9
  584. data/spec/models/industry_specific_extensions_spec.rb +2 -2
  585. data/spec/models/initiate_clearing_response_all_of_spec.rb +2 -2
  586. data/spec/models/initiate_clearing_response_spec.rb +2 -2
  587. data/spec/models/installment_options_spec.rb +2 -2
  588. data/spec/models/issuer_response_spec.rb +2 -2
  589. data/spec/models/items_spec.rb +2 -2
  590. data/spec/models/location_spec.rb +2 -2
  591. data/spec/models/lockout_time_spec.rb +2 -2
  592. data/spec/models/lodging_extra_charges_spec.rb +2 -2
  593. data/spec/models/lodging_spec.rb +2 -2
  594. data/spec/models/logo_spec.rb +2 -2
  595. data/spec/models/loyalty_spec.rb +2 -2
  596. data/spec/models/masterpass_wallet_payment_method_all_of_spec.rb +2 -2
  597. data/spec/models/masterpass_wallet_payment_method_spec.rb +2 -2
  598. data/spec/models/maximum_purchase_amount_spec.rb +2 -2
  599. data/spec/models/mcc6012_spec.rb +2 -2
  600. data/spec/models/merchant_spec.rb +2 -2
  601. data/spec/models/method_spec.rb +2 -2
  602. data/spec/models/mobile_header_area_spec.rb +2 -2
  603. data/spec/models/mobile_spec.rb +2 -2
  604. data/spec/models/order_error_response_spec.rb +2 -2
  605. data/spec/models/order_response_spec.rb +2 -2
  606. data/spec/models/order_spec.rb +2 -2
  607. data/spec/models/pay_pal_payment_method_all_of_spec.rb +2 -2
  608. data/spec/models/pay_pal_payment_method_spec.rb +2 -2
  609. data/spec/models/pay_pal_spec.rb +2 -2
  610. data/spec/models/payment_card_credit_transaction_spec.rb +2 -2
  611. data/spec/models/payment_card_disbursement_transaction_all_of_spec.rb +2 -2
  612. data/spec/models/payment_card_disbursement_transaction_spec.rb +2 -2
  613. data/spec/models/payment_card_forced_ticket_transaction_all_of_spec.rb +2 -2
  614. data/spec/models/payment_card_forced_ticket_transaction_spec.rb +2 -2
  615. data/spec/models/payment_card_info_lookup_request_all_of_spec.rb +2 -2
  616. data/spec/models/payment_card_info_lookup_request_spec.rb +2 -2
  617. data/spec/models/payment_card_payer_auth_transaction_all_of_spec.rb +2 -2
  618. data/spec/models/payment_card_payer_auth_transaction_spec.rb +2 -2
  619. data/spec/models/payment_card_payment_method_all_of_spec.rb +2 -2
  620. data/spec/models/payment_card_payment_method_spec.rb +2 -2
  621. data/spec/models/payment_card_payment_token_update_request_spec.rb +2 -2
  622. data/spec/models/payment_card_payment_tokenization_request_all_of_spec.rb +2 -2
  623. data/spec/models/payment_card_payment_tokenization_request_spec.rb +2 -2
  624. data/spec/models/payment_card_pre_auth_transaction_all_of_spec.rb +2 -2
  625. data/spec/models/payment_card_pre_auth_transaction_spec.rb +2 -2
  626. data/spec/models/payment_card_sale_transaction_all_of_spec.rb +2 -8
  627. data/spec/models/payment_card_sale_transaction_spec.rb +2 -8
  628. data/spec/models/payment_card_spec.rb +2 -2
  629. data/spec/models/payment_card_verification_request_all_of_spec.rb +2 -2
  630. data/spec/models/payment_card_verification_request_spec.rb +2 -2
  631. data/spec/models/payment_device_credit_transaction_all_of_spec.rb +2 -2
  632. data/spec/models/payment_device_credit_transaction_spec.rb +2 -2
  633. data/spec/models/payment_device_disbursement_transaction_all_of_spec.rb +2 -2
  634. data/spec/models/payment_device_disbursement_transaction_spec.rb +2 -2
  635. data/spec/models/payment_device_payment_method_all_of_spec.rb +2 -2
  636. data/spec/models/payment_device_payment_method_spec.rb +2 -2
  637. data/spec/models/payment_device_payment_tokenization_request_all_of_spec.rb +2 -2
  638. data/spec/models/payment_device_payment_tokenization_request_spec.rb +2 -2
  639. data/spec/models/payment_device_pre_auth_transaction_all_of_spec.rb +2 -2
  640. data/spec/models/payment_device_pre_auth_transaction_spec.rb +2 -2
  641. data/spec/models/payment_device_sale_transaction_all_of_spec.rb +2 -2
  642. data/spec/models/payment_device_sale_transaction_spec.rb +2 -2
  643. data/spec/models/payment_device_spec.rb +2 -2
  644. data/spec/models/payment_facilitator_spec.rb +2 -2
  645. data/spec/models/payment_method_details_spec.rb +2 -2
  646. data/spec/models/payment_method_payment_schedules_request_all_of_spec.rb +2 -2
  647. data/spec/models/payment_method_payment_schedules_request_spec.rb +2 -2
  648. data/spec/models/payment_method_type_spec.rb +2 -2
  649. data/spec/models/payment_registration_spec.rb +2 -2
  650. data/spec/models/payment_schedules_error_response_spec.rb +2 -2
  651. data/spec/models/payment_schedules_request_spec.rb +2 -2
  652. data/spec/models/payment_schedules_response_spec.rb +2 -2
  653. data/spec/models/payment_spec.rb +2 -2
  654. data/spec/models/payment_token_credit_transaction_all_of_spec.rb +2 -2
  655. data/spec/models/payment_token_credit_transaction_spec.rb +2 -2
  656. data/spec/models/payment_token_details_all_of_spec.rb +2 -2
  657. data/spec/models/payment_token_details_spec.rb +2 -2
  658. data/spec/models/payment_token_disbursement_transaction_all_of_spec.rb +2 -2
  659. data/spec/models/payment_token_disbursement_transaction_spec.rb +2 -2
  660. data/spec/models/payment_token_info_lookup_request_all_of_spec.rb +2 -2
  661. data/spec/models/payment_token_info_lookup_request_spec.rb +2 -2
  662. data/spec/models/payment_token_payment_method_all_of_spec.rb +2 -2
  663. data/spec/models/payment_token_payment_method_spec.rb +2 -2
  664. data/spec/models/payment_token_pre_auth_transaction_all_of_spec.rb +2 -2
  665. data/spec/models/payment_token_pre_auth_transaction_spec.rb +2 -2
  666. data/spec/models/payment_token_sale_transaction_all_of_spec.rb +2 -2
  667. data/spec/models/payment_token_sale_transaction_spec.rb +2 -2
  668. data/spec/models/payment_token_update_response_spec.rb +2 -2
  669. data/spec/models/payment_token_verification_request_all_of_spec.rb +2 -2
  670. data/spec/models/payment_token_verification_request_spec.rb +2 -2
  671. data/spec/models/payment_tokenization_error_response_spec.rb +14 -2
  672. data/spec/models/payment_tokenization_request_spec.rb +8 -2
  673. data/spec/models/payment_tokenization_response_spec.rb +14 -2
  674. data/spec/models/payment_url_detail_response_spec.rb +2 -2
  675. data/spec/models/payment_url_detail_spec.rb +2 -2
  676. data/spec/models/payment_url_error_response_spec.rb +2 -2
  677. data/spec/models/payment_url_request_spec.rb +2 -2
  678. data/spec/models/payment_url_response_spec.rb +2 -2
  679. data/spec/models/payment_url_status_spec.rb +2 -2
  680. data/spec/models/paypal_credit_transaction_all_of_spec.rb +2 -2
  681. data/spec/models/paypal_credit_transaction_spec.rb +2 -2
  682. data/spec/models/phone_spec.rb +2 -2
  683. data/spec/models/post_auth_transaction_all_of_spec.rb +2 -2
  684. data/spec/models/post_auth_transaction_spec.rb +2 -2
  685. data/spec/models/primary_spec.rb +2 -2
  686. data/spec/models/primary_transaction_spec.rb +2 -2
  687. data/spec/models/processor_data_spec.rb +14 -2
  688. data/spec/models/properties_spec.rb +2 -2
  689. data/spec/models/purchase_cards_level2_spec.rb +2 -2
  690. data/spec/models/purchase_cards_level3_line_items_spec.rb +2 -2
  691. data/spec/models/purchase_cards_level3_spec.rb +2 -2
  692. data/spec/models/purchase_cards_spec.rb +2 -2
  693. data/spec/models/{client_registration_all_of_spec.rb → receipt_line_spec.rb} +15 -9
  694. data/spec/models/{payment_token_update_response_all_of_spec.rb → receipt_request_info_spec.rb} +13 -13
  695. data/spec/models/{card_info_lookup_response_all_of_spec.rb → receipt_spec.rb} +14 -14
  696. data/spec/models/receiver_info_spec.rb +2 -2
  697. data/spec/models/recurring_payment_details_response_spec.rb +2 -2
  698. data/spec/models/recurring_payment_details_spec.rb +2 -2
  699. data/spec/models/referenced_order_payment_schedules_request_all_of_spec.rb +2 -2
  700. data/spec/models/referenced_order_payment_schedules_request_spec.rb +2 -2
  701. data/spec/models/referenced_order_payment_tokenization_request_all_of_spec.rb +2 -2
  702. data/spec/models/referenced_order_payment_tokenization_request_spec.rb +2 -2
  703. data/spec/models/registration_method_spec.rb +2 -2
  704. data/spec/models/remove_fraud_blocked_items_response_spec.rb +2 -2
  705. data/spec/models/response_amount_components_all_of_spec.rb +2 -2
  706. data/spec/models/response_amount_components_spec.rb +2 -2
  707. data/spec/models/response_type_spec.rb +2 -2
  708. data/spec/models/return_transaction_all_of_spec.rb +8 -2
  709. data/spec/models/return_transaction_spec.rb +8 -2
  710. data/spec/models/score_only_request_spec.rb +2 -2
  711. data/spec/models/score_only_response_fraud_score_explanations_spec.rb +2 -2
  712. data/spec/models/score_only_response_fraud_score_spec.rb +8 -2
  713. data/spec/models/score_only_response_spec.rb +4 -10
  714. data/spec/models/secondary_transaction_spec.rb +2 -2
  715. data/spec/models/secure3_d10_authentication_request_all_of_spec.rb +3 -3
  716. data/spec/models/secure3_d10_authentication_request_spec.rb +3 -3
  717. data/spec/models/secure3_d10_authentication_result_all_of_spec.rb +2 -2
  718. data/spec/models/secure3_d10_authentication_result_spec.rb +2 -2
  719. data/spec/models/secure3_d10_authentication_update_request_all_of_spec.rb +2 -2
  720. data/spec/models/secure3_d10_authentication_update_request_spec.rb +2 -2
  721. data/spec/models/secure3_d21_authentication_request_all_of_spec.rb +2 -2
  722. data/spec/models/secure3_d21_authentication_request_spec.rb +2 -2
  723. data/spec/models/secure3_d21_authentication_result_all_of_spec.rb +2 -2
  724. data/spec/models/secure3_d21_authentication_result_spec.rb +2 -2
  725. data/spec/models/secure3_d21_authentication_update_request_all_of_spec.rb +2 -2
  726. data/spec/models/secure3_d21_authentication_update_request_spec.rb +2 -2
  727. data/spec/models/secure3_d_authentication_request_all_of_spec.rb +77 -0
  728. data/spec/models/secure3_d_authentication_request_spec.rb +77 -0
  729. data/spec/models/secure3_d_authentication_response_params_spec.rb +2 -2
  730. data/spec/models/secure3_d_authentication_response_secure3d_method_spec.rb +2 -2
  731. data/spec/models/secure3_d_authentication_response_spec.rb +2 -2
  732. data/spec/models/secure3_d_authentication_result_all_of_spec.rb +73 -0
  733. data/spec/models/{fraud_settings_response_all_of_spec.rb → secure3_d_authentication_result_spec.rb} +21 -31
  734. data/spec/models/secure3_d_authentication_update_request_spec.rb +51 -0
  735. data/spec/models/secure3d_response_spec.rb +2 -2
  736. data/spec/models/sender_info_spec.rb +2 -2
  737. data/spec/models/sepa_mandate_spec.rb +2 -2
  738. data/spec/models/sepa_payment_method_all_of_spec.rb +2 -2
  739. data/spec/models/sepa_payment_method_spec.rb +2 -2
  740. data/spec/models/sepa_sale_transaction_all_of_spec.rb +2 -2
  741. data/spec/models/sepa_sale_transaction_spec.rb +2 -2
  742. data/spec/models/sepa_spec.rb +2 -2
  743. data/spec/models/shared_secret_configuration_request_spec.rb +2 -2
  744. data/spec/models/shared_secret_configuration_response_spec.rb +2 -2
  745. data/spec/models/ship_to_address_spec.rb +2 -2
  746. data/spec/models/shipping_spec.rb +2 -2
  747. data/spec/models/sofort_setup_response_spec.rb +59 -0
  748. data/spec/models/{payment_schedules_response_all_of_spec.rb → sofort_setup_spec.rb} +11 -15
  749. data/spec/models/soft_descriptor_spec.rb +14 -2
  750. data/spec/models/split_shipment_spec.rb +2 -2
  751. data/spec/models/store_branding_style_configuration_spec.rb +2 -2
  752. data/spec/models/store_email_settings_result_spec.rb +2 -2
  753. data/spec/models/store_email_settings_spec.rb +2 -2
  754. data/spec/models/store_fraud_settings_result_spec.rb +2 -2
  755. data/spec/models/store_fraud_settings_spec.rb +2 -2
  756. data/spec/models/store_url_configuration_request_spec.rb +2 -2
  757. data/spec/models/store_url_configuration_response_spec.rb +2 -2
  758. data/spec/models/store_url_configuration_result_spec.rb +2 -2
  759. data/spec/models/store_url_configuration_spec.rb +2 -2
  760. data/spec/models/stored_credential_spec.rb +2 -2
  761. data/spec/models/sub_merchant_data_spec.rb +2 -2
  762. data/spec/models/sub_merchant_split_spec.rb +2 -2
  763. data/spec/models/tele_check_ach_payment_method_ach_bill_to_spec.rb +2 -2
  764. data/spec/models/tele_check_ach_payment_method_spec.rb +2 -2
  765. data/spec/models/tele_check_cbp_payment_method_spec.rb +2 -8
  766. data/spec/models/tele_check_ica_payment_method_all_of_spec.rb +2 -2
  767. data/spec/models/tele_check_ica_payment_method_spec.rb +2 -2
  768. data/spec/models/text_spec.rb +2 -2
  769. data/spec/models/title_spec.rb +2 -2
  770. data/spec/models/token_identifier_spec.rb +2 -2
  771. data/spec/models/top_bar_spec.rb +2 -2
  772. data/spec/models/transaction_error_response_spec.rb +8 -2
  773. data/spec/models/transaction_origin_spec.rb +2 -2
  774. data/spec/models/transaction_response_spec.rb +8 -2
  775. data/spec/models/transaction_type_spec.rb +2 -2
  776. data/spec/models/union_pay_authentication_request_all_of_spec.rb +2 -2
  777. data/spec/models/union_pay_authentication_request_spec.rb +2 -2
  778. data/spec/models/union_pay_authentication_update_request_all_of_spec.rb +2 -2
  779. data/spec/models/union_pay_authentication_update_request_spec.rb +2 -2
  780. data/spec/models/update_email_settings_request_spec.rb +2 -2
  781. data/spec/models/update_email_settings_response_spec.rb +2 -2
  782. data/spec/models/update_fraud_settings_request_spec.rb +2 -2
  783. data/spec/models/update_fraud_settings_response_spec.rb +2 -2
  784. data/spec/models/update_payment_token_spec.rb +2 -2
  785. data/spec/models/use_payment_token_spec.rb +2 -2
  786. data/spec/models/verification3ds_spec.rb +2 -2
  787. data/spec/models/verification_avs_spec.rb +2 -2
  788. data/spec/models/verification_cvv_spec.rb +2 -2
  789. data/spec/models/void_pre_auth_transactions_spec.rb +2 -8
  790. data/spec/models/void_transaction_all_of_spec.rb +3 -3
  791. data/spec/models/void_transaction_spec.rb +3 -3
  792. data/spec/models/wallet_payment_method_spec.rb +2 -2
  793. data/spec/models/wallet_pre_auth_transaction_all_of_spec.rb +2 -2
  794. data/spec/models/wallet_pre_auth_transaction_spec.rb +2 -2
  795. data/spec/models/wallet_sale_transaction_all_of_spec.rb +2 -2
  796. data/spec/models/wallet_sale_transaction_spec.rb +2 -2
  797. data/spec/spec_helper.rb +2 -2
  798. metadata +62 -114
  799. data/docs/BrandingStyleConfigurationResponseAllOf.md +0 -17
  800. data/docs/CardInfoLookupApi.md +0 -70
  801. data/docs/CardInfoLookupResponseAllOf.md +0 -19
  802. data/docs/CardVerificationApi.md +0 -70
  803. data/docs/ClientRegistrationAllOf.md +0 -17
  804. data/docs/CustomerAddressAllOf.md +0 -17
  805. data/docs/DeleteBrandingStyleConfigurationResponseAllOf.md +0 -19
  806. data/docs/DisbursementTransactionTypeAllOf.md +0 -17
  807. data/docs/ErrorResponseAllOf.md +0 -17
  808. data/docs/FraudSettingsResponseAllOf.md +0 -31
  809. data/docs/FundingTransactionTypeAllOf.md +0 -17
  810. data/docs/OrderResponseAllOf.md +0 -25
  811. data/docs/PaymentRegistrationAllOf.md +0 -27
  812. data/docs/PaymentSchedulesResponseAllOf.md +0 -21
  813. data/docs/PaymentTokenUpdateResponseAllOf.md +0 -21
  814. data/docs/PaymentTokenizationResponseAllOf.md +0 -31
  815. data/docs/PaymentUrlDetailResponseAllOf.md +0 -17
  816. data/docs/PaymentUrlResponseAllOf.md +0 -23
  817. data/docs/RecurringPaymentDetailsResponseAllOf.md +0 -17
  818. data/docs/RemoveFraudBlockedItemsResponseAllOf.md +0 -17
  819. data/docs/Secure3D10AuthenticationRequestAllOf.md +0 -17
  820. data/docs/SharedSecretConfigurationResponseAllOf.md +0 -23
  821. data/docs/StoreUrlConfigurationResponseAllOf.md +0 -17
  822. data/docs/TeleCheckCBPPaymentMethodAllOf.md +0 -17
  823. data/docs/TransactionResponseAllOf.md +0 -59
  824. data/docs/UpdateEmailSettingsResponseAllOf.md +0 -17
  825. data/docs/UpdateFraudSettingsResponseAllOf.md +0 -17
  826. data/lib/openapi_client/.DS_Store +0 -0
  827. data/lib/openapi_client/api/card_info_lookup_api.rb +0 -125
  828. data/lib/openapi_client/api/card_verification_api.rb +0 -125
  829. data/lib/openapi_client/models/branding_style_configuration_response_all_of.rb +0 -213
  830. data/lib/openapi_client/models/client_registration_all_of.rb +0 -212
  831. data/lib/openapi_client/models/customer_address_all_of.rb +0 -211
  832. data/lib/openapi_client/models/fraud_settings_response_all_of.rb +0 -291
  833. data/lib/openapi_client/models/order_response_all_of.rb +0 -251
  834. data/lib/openapi_client/models/payment_url_detail_response_all_of.rb +0 -214
  835. data/lib/openapi_client/models/recurring_payment_details_response_all_of.rb +0 -211
  836. data/lib/openapi_client/models/remove_fraud_blocked_items_response_all_of.rb +0 -212
  837. data/lib/openapi_client/models/shared_secret_configuration_response_all_of.rb +0 -242
  838. data/lib/openapi_client/models/tele_check_cbp_payment_method_all_of.rb +0 -216
  839. data/lib/openapi_client/models/transaction_response_all_of.rb +0 -502
  840. data/lib/openapi_client/models/update_email_settings_response_all_of.rb +0 -213
  841. data/lib/openapi_client/models/update_fraud_settings_response_all_of.rb +0 -213
  842. data/spec/api/card_info_lookup_api_spec.rb +0 -53
  843. data/spec/api/card_verification_api_spec.rb +0 -53
  844. data/spec/models/branding_style_configuration_response_all_of_spec.rb +0 -41
  845. data/spec/models/customer_address_all_of_spec.rb +0 -41
  846. data/spec/models/error_response_all_of_spec.rb +0 -41
  847. data/spec/models/funding_transaction_type_all_of_spec.rb +0 -41
  848. data/spec/models/payment_tokenization_response_all_of_spec.rb +0 -87
  849. data/spec/models/payment_url_detail_response_all_of_spec.rb +0 -41
  850. data/spec/models/recurring_payment_details_response_all_of_spec.rb +0 -41
  851. data/spec/models/remove_fraud_blocked_items_response_all_of_spec.rb +0 -41
  852. data/spec/models/store_url_configuration_response_all_of_spec.rb +0 -41
  853. data/spec/models/tele_check_cbp_payment_method_all_of_spec.rb +0 -41
  854. data/spec/models/transaction_response_all_of_spec.rb +0 -175
  855. data/spec/models/update_email_settings_response_all_of_spec.rb +0 -41
  856. data/spec/models/update_fraud_settings_response_all_of_spec.rb +0 -41
@@ -0,0 +1,316 @@
1
+ =begin
2
+ #Payment Gateway API Specification.
3
+
4
+ #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
5
+
6
+ The version of the OpenAPI document: 21.1.0.20210122.001
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module OpenapiClient
16
+ class Secure3DAuthenticationRequestAllOf
17
+ # The result of the authentication will be sent to this URL. If not provided, a term URL will be dynamically generated. Note this must be a valid URL (special characters should be URL-encoded).
18
+ attr_accessor :term_url
19
+
20
+ # The 3DS method iframe and transaction ID will be sent here. Note this must be a valid URL (special characters should be URL-encoded).
21
+ attr_accessor :method_notification_url
22
+
23
+ # Indicates whether or not a challenge should be performed. 01 = No preference (You have no preference whether a challenge should be performed. This is the default value) 02 = No challenge requested (You prefer that no challenge should be performed) 03 = Challenge requested: 3DS Requestor Preference (You prefer that a challenge should be performed) 04 = Challenge requested: Mandate (There are local or regional mandates that mean that a challenge must be performed)
24
+ attr_accessor :challenge_indicator
25
+
26
+ # Indicates the message category of 3d secure authentication version 2.X. 01 = Payment Authentication 02 = Non-Payment Authentication 80 = Mastercard Data Only
27
+ attr_accessor :message_category
28
+
29
+ # Defines the size of the challenge window displayed to customers during authentication. 01 = 250 x 400 02 = 390 x 400 03 = 500 x 600 04 = 600 x 400 05 = Full screen
30
+ attr_accessor :challenge_window_size
31
+
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
54
+ # Attribute mapping from ruby-style variable name to JSON key.
55
+ def self.attribute_map
56
+ {
57
+ :'term_url' => :'termURL',
58
+ :'method_notification_url' => :'methodNotificationURL',
59
+ :'challenge_indicator' => :'challengeIndicator',
60
+ :'message_category' => :'messageCategory',
61
+ :'challenge_window_size' => :'challengeWindowSize'
62
+ }
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.openapi_types
67
+ {
68
+ :'term_url' => :'String',
69
+ :'method_notification_url' => :'String',
70
+ :'challenge_indicator' => :'String',
71
+ :'message_category' => :'String',
72
+ :'challenge_window_size' => :'String'
73
+ }
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3DAuthenticationRequestAllOf` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ attributes = attributes.each_with_object({}) { |(k, v), h|
85
+ if (!self.class.attribute_map.key?(k.to_sym))
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3DAuthenticationRequestAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
+ end
88
+ h[k.to_sym] = v
89
+ }
90
+
91
+ if attributes.key?(:'term_url')
92
+ self.term_url = attributes[:'term_url']
93
+ end
94
+
95
+ if attributes.key?(:'method_notification_url')
96
+ self.method_notification_url = attributes[:'method_notification_url']
97
+ end
98
+
99
+ if attributes.key?(:'challenge_indicator')
100
+ self.challenge_indicator = attributes[:'challenge_indicator']
101
+ else
102
+ self.challenge_indicator = '01'
103
+ end
104
+
105
+ if attributes.key?(:'message_category')
106
+ self.message_category = attributes[:'message_category']
107
+ end
108
+
109
+ if attributes.key?(:'challenge_window_size')
110
+ self.challenge_window_size = attributes[:'challenge_window_size']
111
+ end
112
+ end
113
+
114
+ # Show invalid properties with the reasons. Usually used together with valid?
115
+ # @return Array for valid properties with the reasons
116
+ def list_invalid_properties
117
+ invalid_properties = Array.new
118
+ if @term_url.nil?
119
+ invalid_properties.push('invalid value for "term_url", term_url cannot be nil.')
120
+ end
121
+
122
+ if @method_notification_url.nil?
123
+ invalid_properties.push('invalid value for "method_notification_url", method_notification_url cannot be nil.')
124
+ end
125
+
126
+ invalid_properties
127
+ end
128
+
129
+ # Check to see if the all the properties in the model are valid
130
+ # @return true if the model is valid
131
+ def valid?
132
+ return false if @term_url.nil?
133
+ return false if @method_notification_url.nil?
134
+ challenge_indicator_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
135
+ return false unless challenge_indicator_validator.valid?(@challenge_indicator)
136
+ message_category_validator = EnumAttributeValidator.new('String', ["01", "02", "80"])
137
+ return false unless message_category_validator.valid?(@message_category)
138
+ challenge_window_size_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
139
+ return false unless challenge_window_size_validator.valid?(@challenge_window_size)
140
+ true
141
+ end
142
+
143
+ # Custom attribute writer method checking allowed values (enum).
144
+ # @param [Object] challenge_indicator Object to be assigned
145
+ def challenge_indicator=(challenge_indicator)
146
+ validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
147
+ unless validator.valid?(challenge_indicator)
148
+ fail ArgumentError, "invalid value for \"challenge_indicator\", must be one of #{validator.allowable_values}."
149
+ end
150
+ @challenge_indicator = challenge_indicator
151
+ end
152
+
153
+ # Custom attribute writer method checking allowed values (enum).
154
+ # @param [Object] message_category Object to be assigned
155
+ def message_category=(message_category)
156
+ validator = EnumAttributeValidator.new('String', ["01", "02", "80"])
157
+ unless validator.valid?(message_category)
158
+ fail ArgumentError, "invalid value for \"message_category\", must be one of #{validator.allowable_values}."
159
+ end
160
+ @message_category = message_category
161
+ end
162
+
163
+ # Custom attribute writer method checking allowed values (enum).
164
+ # @param [Object] challenge_window_size Object to be assigned
165
+ def challenge_window_size=(challenge_window_size)
166
+ validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
167
+ unless validator.valid?(challenge_window_size)
168
+ fail ArgumentError, "invalid value for \"challenge_window_size\", must be one of #{validator.allowable_values}."
169
+ end
170
+ @challenge_window_size = challenge_window_size
171
+ end
172
+
173
+ # Checks equality by comparing each attribute.
174
+ # @param [Object] Object to be compared
175
+ def ==(o)
176
+ return true if self.equal?(o)
177
+ self.class == o.class &&
178
+ term_url == o.term_url &&
179
+ method_notification_url == o.method_notification_url &&
180
+ challenge_indicator == o.challenge_indicator &&
181
+ message_category == o.message_category &&
182
+ challenge_window_size == o.challenge_window_size
183
+ end
184
+
185
+ # @see the `==` method
186
+ # @param [Object] Object to be compared
187
+ def eql?(o)
188
+ self == o
189
+ end
190
+
191
+ # Calculates hash code according to all attributes.
192
+ # @return [Integer] Hash code
193
+ def hash
194
+ [term_url, method_notification_url, challenge_indicator, message_category, challenge_window_size].hash
195
+ end
196
+
197
+ # Builds the object from hash
198
+ # @param [Hash] attributes Model attributes in the form of hash
199
+ # @return [Object] Returns the model itself
200
+ def self.build_from_hash(attributes)
201
+ new.build_from_hash(attributes)
202
+ end
203
+
204
+ # Builds the object from hash
205
+ # @param [Hash] attributes Model attributes in the form of hash
206
+ # @return [Object] Returns the model itself
207
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
208
+ return nil unless attributes.is_a?(Hash)
209
+ openapi_types.each_pair do |key, type|
210
+ if type =~ /\AArray<(.*)>/i
211
+ # check to ensure the input is an array given that the attribute
212
+ # is documented as an array but the input is not
213
+ if attributes[attribute_map[key]].is_a?(Array)
214
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
215
+ end
216
+ elsif !attributes[attribute_map[key]].nil?
217
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
218
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
219
+ end
220
+
221
+ self
222
+ end
223
+
224
+ # Deserializes the data based on type
225
+ # @param string type Data type
226
+ # @param string value Value to be deserialized
227
+ # @return [Object] Deserialized data
228
+ def _deserialize(type, value)
229
+ case type.to_sym
230
+ when :DateTime
231
+ DateTime.parse(value)
232
+ when :Date
233
+ Date.parse(value)
234
+ when :String
235
+ value.to_s
236
+ when :Integer
237
+ value.to_i
238
+ when :Float
239
+ value.to_f
240
+ when :Boolean
241
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
242
+ true
243
+ else
244
+ false
245
+ end
246
+ when :Object
247
+ # generic object (usually a Hash), return directly
248
+ value
249
+ when /\AArray<(?<inner_type>.+)>\z/
250
+ inner_type = Regexp.last_match[:inner_type]
251
+ value.map { |v| _deserialize(inner_type, v) }
252
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
253
+ k_type = Regexp.last_match[:k_type]
254
+ v_type = Regexp.last_match[:v_type]
255
+ {}.tap do |hash|
256
+ value.each do |k, v|
257
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
258
+ end
259
+ end
260
+ else # model
261
+ klass = OpenapiClient.const_get(type)
262
+ if klass.respond_to?(:openapi_discriminator_name)
263
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
264
+ end
265
+
266
+ klass.build_from_hash(value)
267
+ end
268
+ end
269
+
270
+ # Returns the string representation of the object
271
+ # @return [String] String presentation of the object
272
+ def to_s
273
+ to_hash.to_s
274
+ end
275
+
276
+ # to_body is an alias to to_hash (backward compatibility)
277
+ # @return [Hash] Returns the object in the form of hash
278
+ def to_body
279
+ to_hash
280
+ end
281
+
282
+ # Returns the object in the form of hash
283
+ # @return [Hash] Returns the object in the form of hash
284
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
285
+ hash = {}
286
+ attribute_map.each_pair do |attr, param|
287
+ value = self.send(attr)
288
+ if value.nil?
289
+ is_nullable = openapi_nullable.include?(attr)
290
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
291
+ end
292
+
293
+ hash[param] = _to_hash(value)
294
+ end
295
+ hash
296
+ end
297
+
298
+ # Outputs non-array value in the form of hash
299
+ # For object, use to_hash. Otherwise, just return the value
300
+ # @param [Object] value Any valid value
301
+ # @return [Hash] Returns the value in the form of hash
302
+ def _to_hash(value)
303
+ if value.is_a?(Array)
304
+ value.compact.map { |v| _to_hash(v) }
305
+ elsif value.is_a?(Hash)
306
+ {}.tap do |hash|
307
+ value.each { |k, v| hash[k] = _to_hash(v) }
308
+ end
309
+ elsif value.respond_to? :to_hash
310
+ value.to_hash
311
+ else
312
+ value
313
+ end
314
+ end
315
+ end
316
+ end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
5
5
 
6
- The version of the OpenAPI document: 6.12.0.20200605.001
6
+ The version of the OpenAPI document: 21.1.0.20210122.001
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: unset
9
+ OpenAPI Generator version: 4.1.1
10
10
 
11
11
  =end
12
12
 
@@ -67,12 +67,6 @@ module OpenapiClient
67
67
  }
68
68
  end
69
69
 
70
- # List of attributes with nullable: true
71
- def self.openapi_nullable
72
- Set.new([
73
- ])
74
- end
75
-
76
70
  # Initializes the object
77
71
  # @param [Hash] attributes Model attributes in the form of hash
78
72
  def initialize(attributes = {})
@@ -252,7 +246,7 @@ module OpenapiClient
252
246
 
253
247
  # Returns the object in the form of hash
254
248
  # @return [Hash] Returns the object in the form of hash
255
- def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
249
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
256
250
  hash = {}
257
251
  attribute_map.each_pair do |attr, param|
258
252
  value = self.send(attr)
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
5
5
 
6
- The version of the OpenAPI document: 6.12.0.20200605.001
6
+ The version of the OpenAPI document: 21.1.0.20210122.001
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: unset
9
+ OpenAPI Generator version: 4.1.1
10
10
 
11
11
  =end
12
12
 
@@ -57,12 +57,6 @@ module OpenapiClient
57
57
  }
58
58
  end
59
59
 
60
- # List of attributes with nullable: true
61
- def self.openapi_nullable
62
- Set.new([
63
- ])
64
- end
65
-
66
60
  # Initializes the object
67
61
  # @param [Hash] attributes Model attributes in the form of hash
68
62
  def initialize(attributes = {})
@@ -228,7 +222,7 @@ module OpenapiClient
228
222
 
229
223
  # Returns the object in the form of hash
230
224
  # @return [Hash] Returns the object in the form of hash
231
- def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
225
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
232
226
  hash = {}
233
227
  attribute_map.each_pair do |attr, param|
234
228
  value = self.send(attr)
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
5
5
 
6
- The version of the OpenAPI document: 6.12.0.20200605.001
6
+ The version of the OpenAPI document: 21.1.0.20210122.001
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: unset
9
+ OpenAPI Generator version: 4.1.1
10
10
 
11
11
  =end
12
12
 
@@ -37,12 +37,6 @@ module OpenapiClient
37
37
  }
38
38
  end
39
39
 
40
- # List of attributes with nullable: true
41
- def self.openapi_nullable
42
- Set.new([
43
- ])
44
- end
45
-
46
40
  # Initializes the object
47
41
  # @param [Hash] attributes Model attributes in the form of hash
48
42
  def initialize(attributes = {})
@@ -188,7 +182,7 @@ module OpenapiClient
188
182
 
189
183
  # Returns the object in the form of hash
190
184
  # @return [Hash] Returns the object in the form of hash
191
- def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
185
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
192
186
  hash = {}
193
187
  attribute_map.each_pair do |attr, param|
194
188
  value = self.send(attr)
@@ -0,0 +1,353 @@
1
+ =begin
2
+ #Payment Gateway API Specification.
3
+
4
+ #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
5
+
6
+ The version of the OpenAPI document: 21.1.0.20210122.001
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module OpenapiClient
16
+ # Submit the result of the authentication managed outside of the gateway for a 3-D Secure 2.x scheme. For more convenient usage without implementing 3-D Secure yourself see \"authenticationRequest\" section.
17
+ class Secure3DAuthenticationResult < AuthenticationResult
18
+ # The Cardholder Authentication Verification Value (CAVV) is a cryptographic value derived by the issuer during payment authentication that can provide evidence of the results of payment authentication during an online purchase.
19
+ attr_accessor :cavv
20
+
21
+ # The transaction identifier (XID) is a unique tracking number set by the merchant.
22
+ attr_accessor :xid
23
+
24
+ # The response transaction UUID from the DS (directory server)
25
+ attr_accessor :ds_transaction_id
26
+
27
+ # The result of authentication attempt returned by the 3D Secure authentication process (ARes).
28
+ attr_accessor :authentication_response
29
+
30
+ # The transaction status as returned by the 3D Secure authentication process. (CRes)
31
+ attr_accessor :transaction_status
32
+
33
+ class EnumAttributeValidator
34
+ attr_reader :datatype
35
+ attr_reader :allowable_values
36
+
37
+ def initialize(datatype, allowable_values)
38
+ @allowable_values = allowable_values.map do |value|
39
+ case datatype.to_s
40
+ when /Integer/i
41
+ value.to_i
42
+ when /Float/i
43
+ value.to_f
44
+ else
45
+ value
46
+ end
47
+ end
48
+ end
49
+
50
+ def valid?(value)
51
+ !value || allowable_values.include?(value)
52
+ end
53
+ end
54
+
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+ :'cavv' => :'cavv',
59
+ :'xid' => :'xid',
60
+ :'ds_transaction_id' => :'dsTransactionId',
61
+ :'authentication_response' => :'authenticationResponse',
62
+ :'transaction_status' => :'transactionStatus'
63
+ }
64
+ end
65
+
66
+ # Attribute type mapping.
67
+ def self.openapi_types
68
+ {
69
+ :'cavv' => :'String',
70
+ :'xid' => :'String',
71
+ :'ds_transaction_id' => :'String',
72
+ :'authentication_response' => :'String',
73
+ :'transaction_status' => :'String'
74
+ }
75
+ end
76
+
77
+ # List of class defined in allOf (OpenAPI v3)
78
+ def self.openapi_all_of
79
+ [
80
+ :'AuthenticationResult',
81
+ :'Secure3DAuthenticationResultAllOf'
82
+ ]
83
+ end
84
+
85
+ # Initializes the object
86
+ # @param [Hash] attributes Model attributes in the form of hash
87
+ def initialize(attributes = {})
88
+ if (!attributes.is_a?(Hash))
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3DAuthenticationResult` initialize method"
90
+ end
91
+
92
+ # check to see if the attribute exists and convert string to symbol for hash key
93
+ attributes = attributes.each_with_object({}) { |(k, v), h|
94
+ if (!self.class.attribute_map.key?(k.to_sym))
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3DAuthenticationResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
+ end
97
+ h[k.to_sym] = v
98
+ }
99
+
100
+ # call parent's initialize
101
+ super(attributes)
102
+
103
+ if attributes.key?(:'cavv')
104
+ self.cavv = attributes[:'cavv']
105
+ end
106
+
107
+ if attributes.key?(:'xid')
108
+ self.xid = attributes[:'xid']
109
+ end
110
+
111
+ if attributes.key?(:'ds_transaction_id')
112
+ self.ds_transaction_id = attributes[:'ds_transaction_id']
113
+ end
114
+
115
+ if attributes.key?(:'authentication_response')
116
+ self.authentication_response = attributes[:'authentication_response']
117
+ end
118
+
119
+ if attributes.key?(:'transaction_status')
120
+ self.transaction_status = attributes[:'transaction_status']
121
+ end
122
+ end
123
+
124
+ # Show invalid properties with the reasons. Usually used together with valid?
125
+ # @return Array for valid properties with the reasons
126
+ def list_invalid_properties
127
+ invalid_properties = super
128
+ if !@cavv.nil? && @cavv.to_s.length > 32
129
+ invalid_properties.push('invalid value for "cavv", the character length must be smaller than or equal to 32.')
130
+ end
131
+
132
+ if !@cavv.nil? && @cavv.to_s.length < 20
133
+ invalid_properties.push('invalid value for "cavv", the character length must be great than or equal to 20.')
134
+ end
135
+
136
+ if !@xid.nil? && @xid.to_s.length > 32
137
+ invalid_properties.push('invalid value for "xid", the character length must be smaller than or equal to 32.')
138
+ end
139
+
140
+ if !@xid.nil? && @xid.to_s.length < 20
141
+ invalid_properties.push('invalid value for "xid", the character length must be great than or equal to 20.')
142
+ end
143
+
144
+ invalid_properties
145
+ end
146
+
147
+ # Check to see if the all the properties in the model are valid
148
+ # @return true if the model is valid
149
+ def valid?
150
+ return false if !@cavv.nil? && @cavv.to_s.length > 32
151
+ return false if !@cavv.nil? && @cavv.to_s.length < 20
152
+ return false if !@xid.nil? && @xid.to_s.length > 32
153
+ return false if !@xid.nil? && @xid.to_s.length < 20
154
+ authentication_response_validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
155
+ return false unless authentication_response_validator.valid?(@authentication_response)
156
+ transaction_status_validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
157
+ return false unless transaction_status_validator.valid?(@transaction_status)
158
+ true && super
159
+ end
160
+
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] cavv Value to be assigned
163
+ def cavv=(cavv)
164
+ if !cavv.nil? && cavv.to_s.length > 32
165
+ fail ArgumentError, 'invalid value for "cavv", the character length must be smaller than or equal to 32.'
166
+ end
167
+
168
+ if !cavv.nil? && cavv.to_s.length < 20
169
+ fail ArgumentError, 'invalid value for "cavv", the character length must be great than or equal to 20.'
170
+ end
171
+
172
+ @cavv = cavv
173
+ end
174
+
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] xid Value to be assigned
177
+ def xid=(xid)
178
+ if !xid.nil? && xid.to_s.length > 32
179
+ fail ArgumentError, 'invalid value for "xid", the character length must be smaller than or equal to 32.'
180
+ end
181
+
182
+ if !xid.nil? && xid.to_s.length < 20
183
+ fail ArgumentError, 'invalid value for "xid", the character length must be great than or equal to 20.'
184
+ end
185
+
186
+ @xid = xid
187
+ end
188
+
189
+ # Custom attribute writer method checking allowed values (enum).
190
+ # @param [Object] authentication_response Object to be assigned
191
+ def authentication_response=(authentication_response)
192
+ validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
193
+ unless validator.valid?(authentication_response)
194
+ fail ArgumentError, "invalid value for \"authentication_response\", must be one of #{validator.allowable_values}."
195
+ end
196
+ @authentication_response = authentication_response
197
+ end
198
+
199
+ # Custom attribute writer method checking allowed values (enum).
200
+ # @param [Object] transaction_status Object to be assigned
201
+ def transaction_status=(transaction_status)
202
+ validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
203
+ unless validator.valid?(transaction_status)
204
+ fail ArgumentError, "invalid value for \"transaction_status\", must be one of #{validator.allowable_values}."
205
+ end
206
+ @transaction_status = transaction_status
207
+ end
208
+
209
+ # Checks equality by comparing each attribute.
210
+ # @param [Object] Object to be compared
211
+ def ==(o)
212
+ return true if self.equal?(o)
213
+ self.class == o.class &&
214
+ cavv == o.cavv &&
215
+ xid == o.xid &&
216
+ ds_transaction_id == o.ds_transaction_id &&
217
+ authentication_response == o.authentication_response &&
218
+ transaction_status == o.transaction_status && super(o)
219
+ end
220
+
221
+ # @see the `==` method
222
+ # @param [Object] Object to be compared
223
+ def eql?(o)
224
+ self == o
225
+ end
226
+
227
+ # Calculates hash code according to all attributes.
228
+ # @return [Integer] Hash code
229
+ def hash
230
+ [cavv, xid, ds_transaction_id, authentication_response, transaction_status].hash
231
+ end
232
+
233
+ # Builds the object from hash
234
+ # @param [Hash] attributes Model attributes in the form of hash
235
+ # @return [Object] Returns the model itself
236
+ def self.build_from_hash(attributes)
237
+ new.build_from_hash(attributes)
238
+ end
239
+
240
+ # Builds the object from hash
241
+ # @param [Hash] attributes Model attributes in the form of hash
242
+ # @return [Object] Returns the model itself
243
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
244
+ return nil unless attributes.is_a?(Hash)
245
+ super(attributes, self.class.superclass.attribute_map, self.class.superclass.openapi_types)
246
+ openapi_types.each_pair do |key, type|
247
+ if type =~ /\AArray<(.*)>/i
248
+ # check to ensure the input is an array given that the attribute
249
+ # is documented as an array but the input is not
250
+ if attributes[attribute_map[key]].is_a?(Array)
251
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
252
+ end
253
+ elsif !attributes[attribute_map[key]].nil?
254
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
255
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
256
+ end
257
+
258
+ self
259
+ end
260
+
261
+ # Deserializes the data based on type
262
+ # @param string type Data type
263
+ # @param string value Value to be deserialized
264
+ # @return [Object] Deserialized data
265
+ def _deserialize(type, value)
266
+ case type.to_sym
267
+ when :DateTime
268
+ DateTime.parse(value)
269
+ when :Date
270
+ Date.parse(value)
271
+ when :String
272
+ value.to_s
273
+ when :Integer
274
+ value.to_i
275
+ when :Float
276
+ value.to_f
277
+ when :Boolean
278
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
279
+ true
280
+ else
281
+ false
282
+ end
283
+ when :Object
284
+ # generic object (usually a Hash), return directly
285
+ value
286
+ when /\AArray<(?<inner_type>.+)>\z/
287
+ inner_type = Regexp.last_match[:inner_type]
288
+ value.map { |v| _deserialize(inner_type, v) }
289
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
290
+ k_type = Regexp.last_match[:k_type]
291
+ v_type = Regexp.last_match[:v_type]
292
+ {}.tap do |hash|
293
+ value.each do |k, v|
294
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
295
+ end
296
+ end
297
+ else # model
298
+ klass = OpenapiClient.const_get(type)
299
+ if klass.respond_to?(:openapi_discriminator_name)
300
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
301
+ end
302
+
303
+ klass.build_from_hash(value)
304
+ end
305
+ end
306
+
307
+ # Returns the string representation of the object
308
+ # @return [String] String presentation of the object
309
+ def to_s
310
+ to_hash.to_s
311
+ end
312
+
313
+ # to_body is an alias to to_hash (backward compatibility)
314
+ # @return [Hash] Returns the object in the form of hash
315
+ def to_body
316
+ to_hash
317
+ end
318
+
319
+ # Returns the object in the form of hash
320
+ # @return [Hash] Returns the object in the form of hash
321
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
322
+ hash = super(self.class.superclass.attribute_map, openapi_nullable)
323
+ attribute_map.each_pair do |attr, param|
324
+ value = self.send(attr)
325
+ if value.nil?
326
+ is_nullable = openapi_nullable.include?(attr)
327
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
328
+ end
329
+
330
+ hash[param] = _to_hash(value)
331
+ end
332
+ hash
333
+ end
334
+
335
+ # Outputs non-array value in the form of hash
336
+ # For object, use to_hash. Otherwise, just return the value
337
+ # @param [Object] value Any valid value
338
+ # @return [Hash] Returns the value in the form of hash
339
+ def _to_hash(value)
340
+ if value.is_a?(Array)
341
+ value.compact.map { |v| _to_hash(v) }
342
+ elsif value.is_a?(Hash)
343
+ {}.tap do |hash|
344
+ value.each { |k, v| hash[k] = _to_hash(v) }
345
+ end
346
+ elsif value.respond_to? :to_hash
347
+ value.to_hash
348
+ else
349
+ value
350
+ end
351
+ end
352
+ end
353
+ end