first_data_gateway 1.4.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1001) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +1 -1
  3. data/README.md +260 -25
  4. data/docs/ACSResponse.md +17 -0
  5. data/docs/AVSResponse.md +3 -1
  6. data/docs/AccessTokenRequest.md +21 -0
  7. data/docs/AccessTokenResponse.md +13 -5
  8. data/docs/AccountInfoLookupRequest.md +19 -0
  9. data/docs/AccountVerificationRequest.md +25 -0
  10. data/docs/AchCreditTransaction.md +17 -0
  11. data/docs/AchPostAuthTransaction.md +17 -0
  12. data/docs/AchPostAuthTransactionAllOf.md +17 -0
  13. data/docs/AchPreAuthTransaction.md +17 -0
  14. data/docs/AchPreAuthTransactionAllOf.md +17 -0
  15. data/docs/{Secure3dAuthenticationRequest.md → AchRecurringType.md} +2 -2
  16. data/docs/AchResponse.md +25 -0
  17. data/docs/AchReturnTransaction.md +17 -0
  18. data/docs/AchSaleTransaction.md +17 -0
  19. data/docs/AchVoidTransaction.md +17 -0
  20. data/docs/AdditionalDetails.md +15 -1
  21. data/docs/AdditionalTransactionDetails.md +3 -1
  22. data/docs/AirlineTravelRoute.md +1 -1
  23. data/docs/Amount.md +1 -1
  24. data/docs/AmountComponents.md +2 -2
  25. data/docs/AuthenticationApi.md +5 -3
  26. data/docs/AuthenticationRequest.md +17 -0
  27. data/docs/AuthenticationResult.md +17 -0
  28. data/docs/AuthenticationUpdateRequest.md +21 -0
  29. data/docs/Background.md +23 -0
  30. data/docs/BackgroundColor.md +21 -0
  31. data/docs/BancontactQR.md +19 -0
  32. data/docs/Billing.md +1 -1
  33. data/docs/BillingAddress.md +1 -1
  34. data/docs/BlockCard.md +21 -0
  35. data/docs/BlockDomain.md +17 -0
  36. data/docs/BlockIPAddress.md +19 -0
  37. data/docs/BlockName.md +19 -0
  38. data/docs/BlockedCardNumber.md +19 -0
  39. data/docs/BlockedItems.md +23 -0
  40. data/docs/Body.md +17 -0
  41. data/docs/Borders.md +17 -0
  42. data/docs/BrandingStyleConfigurationRequest.md +17 -0
  43. data/docs/BrandingStyleConfigurationResponse.md +23 -0
  44. data/docs/BrandingStyleConfigurationResult.md +19 -0
  45. data/docs/Button.md +19 -0
  46. data/docs/CarRental.md +2 -2
  47. data/docs/ChinaDomestic.md +3 -1
  48. data/docs/ClassicMode.md +35 -0
  49. data/docs/ClearingDetails.md +25 -0
  50. data/docs/ClearingElement.md +21 -0
  51. data/docs/ClientRegistration.md +29 -0
  52. data/docs/CombinedMode.md +23 -0
  53. data/docs/ConnectMode.md +16 -0
  54. data/docs/Content.md +17 -0
  55. data/docs/CountryProfile.md +17 -0
  56. data/docs/CurrencyConversionResponse.md +19 -0
  57. data/docs/CustomerAddress.md +3 -3
  58. data/docs/DCCExchangeRateRequest.md +1 -1
  59. data/docs/DCCExchangeRateRequestAllOf.md +1 -1
  60. data/docs/DecryptedApplePay.md +27 -0
  61. data/docs/DecryptedApplePayWalletPaymentMethod.md +17 -0
  62. data/docs/DecryptedApplePayWalletPaymentMethodAllOf.md +17 -0
  63. data/docs/DecryptedGooglePay.md +27 -0
  64. data/docs/DecryptedGooglePayWalletPaymentMethod.md +17 -0
  65. data/docs/DecryptedGooglePayWalletPaymentMethodAllOf.md +17 -0
  66. data/docs/DecryptedSamsungPay.md +27 -0
  67. data/docs/DecryptedSamsungPayWalletPaymentMethod.md +17 -0
  68. data/docs/DecryptedSamsungPayWalletPaymentMethodAllOf.md +17 -0
  69. data/docs/DeleteBrandingStyleConfigurationResponse.md +25 -0
  70. data/docs/Device.md +1 -1
  71. data/docs/EmailNotificationData.md +25 -0
  72. data/docs/EncryptedSamsungPay.md +19 -0
  73. data/docs/EncryptedSamsungPayWalletPaymentMethod.md +17 -0
  74. data/docs/EncryptedSamsungPayWalletPaymentMethodAllOf.md +17 -0
  75. data/docs/EndpointResponse.md +21 -0
  76. data/docs/ErrorMessage.md +19 -0
  77. data/docs/ExchangeRateDetails.md +33 -0
  78. data/docs/ExchangeRateResponse.md +4 -20
  79. data/docs/Expiration.md +2 -2
  80. data/docs/FontFace.md +16 -0
  81. data/docs/FontProperties.md +23 -0
  82. data/docs/FontWeight.md +16 -0
  83. data/docs/Footer.md +17 -0
  84. data/docs/FraudAddress.md +27 -0
  85. data/docs/FraudDetectApi.md +124 -0
  86. data/docs/FraudOrder.md +4 -2
  87. data/docs/FraudOrderItems.md +4 -4
  88. data/docs/FraudRegistration.md +27 -0
  89. data/docs/FraudRegistrationCard.md +27 -0
  90. data/docs/FraudRegistrationDevice.md +39 -0
  91. data/docs/FraudRegistrationDeviceItems.md +27 -0
  92. data/docs/FraudRegistrationError.md +17 -0
  93. data/docs/FraudRegistrationResponse.md +27 -0
  94. data/docs/FraudScore.md +23 -0
  95. data/docs/FraudSettings.md +23 -0
  96. data/docs/FraudSettingsResponse.md +37 -0
  97. data/docs/Header.md +17 -0
  98. data/docs/Hover.md +17 -0
  99. data/docs/IdInfo.md +19 -0
  100. data/docs/IndustrySpecificExtensions.md +3 -1
  101. data/docs/InformationLookupApi.md +132 -0
  102. data/docs/InitiateClearingResponse.md +27 -0
  103. data/docs/InitiateClearingResponseAllOf.md +21 -0
  104. data/docs/{PaymentIssuerResponse.md → IssuerResponse.md} +2 -2
  105. data/docs/{DeviceNetworks.md → Items.md} +2 -2
  106. data/docs/{MerchantLocation.md → Location.md} +3 -3
  107. data/docs/LockoutTime.md +19 -0
  108. data/docs/Lodging.md +2 -2
  109. data/docs/Logo.md +21 -0
  110. data/docs/MasterpassWalletPaymentMethod.md +19 -0
  111. data/docs/MasterpassWalletPaymentMethodAllOf.md +19 -0
  112. data/docs/MaximumPurchaseAmount.md +19 -0
  113. data/docs/Mcc6012.md +27 -0
  114. data/docs/Merchant.md +1 -1
  115. data/docs/{PaymentPayMethod.md → Method.md} +2 -2
  116. data/docs/Mobile.md +19 -0
  117. data/docs/MobileHeaderArea.md +17 -0
  118. data/docs/Order.md +3 -1
  119. data/docs/OrderApi.md +2 -2
  120. data/docs/OrderErrorResponse.md +3 -7
  121. data/docs/OrderResponse.md +3 -7
  122. data/docs/Payment.md +6 -6
  123. data/docs/PaymentApi.md +15 -15
  124. data/docs/PaymentCard.md +0 -2
  125. data/docs/PaymentCardInfoLookupRequest.md +17 -0
  126. data/docs/PaymentCardInfoLookupRequestAllOf.md +17 -0
  127. data/docs/PaymentCardPaymentTokenUpdateRequest.md +21 -0
  128. data/docs/PaymentCardPreAuthTransaction.md +7 -1
  129. data/docs/PaymentCardPreAuthTransactionAllOf.md +7 -1
  130. data/docs/PaymentCardSaleTransaction.md +5 -1
  131. data/docs/PaymentCardSaleTransactionAllOf.md +5 -1
  132. data/docs/PaymentCardVerificationRequest.md +17 -0
  133. data/docs/PaymentCardVerificationRequestAllOf.md +17 -0
  134. data/docs/PaymentDevice.md +27 -0
  135. data/docs/PaymentDeviceCreditTransaction.md +17 -0
  136. data/docs/PaymentDeviceCreditTransactionAllOf.md +17 -0
  137. data/docs/PaymentDeviceDisbursementTransaction.md +19 -0
  138. data/docs/PaymentDeviceDisbursementTransactionAllOf.md +19 -0
  139. data/docs/PaymentDevicePaymentMethod.md +19 -0
  140. data/docs/PaymentDevicePaymentMethodAllOf.md +19 -0
  141. data/docs/PaymentDevicePaymentTokenizationRequest.md +17 -0
  142. data/docs/PaymentDevicePaymentTokenizationRequestAllOf.md +17 -0
  143. data/docs/PaymentDevicePreAuthTransaction.md +27 -0
  144. data/docs/PaymentDevicePreAuthTransactionAllOf.md +27 -0
  145. data/docs/PaymentDeviceSaleTransaction.md +21 -0
  146. data/docs/PaymentDeviceSaleTransactionAllOf.md +21 -0
  147. data/docs/PaymentRegistration.md +39 -0
  148. data/docs/PaymentSchedulesRequest.md +1 -1
  149. data/docs/PaymentTokenApi.md +132 -2
  150. data/docs/PaymentTokenInfoLookupRequest.md +17 -0
  151. data/docs/PaymentTokenInfoLookupRequestAllOf.md +17 -0
  152. data/docs/PaymentTokenPreAuthTransaction.md +7 -1
  153. data/docs/PaymentTokenPreAuthTransactionAllOf.md +7 -1
  154. data/docs/PaymentTokenSaleTransaction.md +5 -1
  155. data/docs/PaymentTokenSaleTransactionAllOf.md +5 -1
  156. data/docs/PaymentTokenUpdateResponse.md +27 -0
  157. data/docs/PaymentTokenVerificationRequest.md +17 -0
  158. data/docs/PaymentTokenVerificationRequestAllOf.md +17 -0
  159. data/docs/PaymentTokenizationErrorResponse.md +4 -0
  160. data/docs/PaymentTokenizationRequest.md +5 -1
  161. data/docs/PaymentTokenizationResponse.md +5 -1
  162. data/docs/PaymentURLApi.md +142 -0
  163. data/docs/PaymentUrlDetail.md +25 -0
  164. data/docs/PaymentUrlDetailResponse.md +23 -0
  165. data/docs/PaymentUrlRequest.md +1 -1
  166. data/docs/PaymentUrlStatus.md +16 -0
  167. data/docs/{CustomerAddressPhone.md → Phone.md} +2 -2
  168. data/docs/Primary.md +17 -0
  169. data/docs/ProcessorData.md +7 -1
  170. data/docs/Properties.md +25 -0
  171. data/docs/PurchaseCardsLevel3.md +1 -1
  172. data/docs/Receipt.md +19 -0
  173. data/docs/ReceiptRequestInfo.md +21 -0
  174. data/docs/RecurringPaymentDetailsResponse.md +3 -7
  175. data/docs/RegistrationMethod.md +29 -0
  176. data/docs/RemoveFraudBlockedItemsResponse.md +23 -0
  177. data/docs/ResponseAmountComponents.md +2 -2
  178. data/docs/ScoreOnlyRequest.md +1 -1
  179. data/docs/ScoreOnlyResponse.md +3 -5
  180. data/docs/ScoreOnlyResponseFraudScore.md +3 -1
  181. data/docs/SecondaryTransaction.md +5 -1
  182. data/docs/Secure3D10AuthenticationRequest.md +16 -0
  183. data/docs/{Secure3dAuthenticationVerificationRequest.md → Secure3D10AuthenticationUpdateRequest.md} +5 -3
  184. data/docs/{Secure3dAuthenticationVerificationRequestAllOf.md → Secure3D10AuthenticationUpdateRequestAllOf.md} +5 -3
  185. data/docs/Secure3D21AuthenticationRequest.md +23 -0
  186. data/docs/Secure3D21AuthenticationRequestAllOf.md +23 -0
  187. data/docs/Secure3D21AuthenticationResult.md +2 -2
  188. data/docs/Secure3D21AuthenticationResultAllOf.md +2 -2
  189. data/docs/Secure3D21AuthenticationUpdateRequest.md +19 -0
  190. data/docs/Secure3D21AuthenticationUpdateRequestAllOf.md +19 -0
  191. data/docs/Secure3DAuthenticationResponse.md +23 -0
  192. data/docs/Secure3DAuthenticationResponseParams.md +27 -0
  193. data/docs/Secure3DAuthenticationResponseSecure3dMethod.md +35 -0
  194. data/docs/SepaMandate.md +1 -1
  195. data/docs/SharedSecretConfigurationRequest.md +17 -0
  196. data/docs/SharedSecretConfigurationResponse.md +29 -0
  197. data/docs/{FraudOrderShipToAddress.md → ShipToAddress.md} +2 -2
  198. data/docs/SoftDescriptor.md +5 -1
  199. data/docs/StoreBrandingStyleConfiguration.md +21 -0
  200. data/docs/StoreEmailSettings.md +19 -0
  201. data/docs/StoreEmailSettingsResult.md +19 -0
  202. data/docs/StoreFraudSettings.md +19 -0
  203. data/docs/StoreFraudSettingsResult.md +21 -0
  204. data/docs/StoreUrlConfiguration.md +31 -0
  205. data/docs/StoreUrlConfigurationRequest.md +17 -0
  206. data/docs/StoreUrlConfigurationResponse.md +23 -0
  207. data/docs/StoreUrlConfigurationResult.md +19 -0
  208. data/docs/StoredCredential.md +1 -1
  209. data/docs/TeleCheckAchPaymentMethod.md +53 -0
  210. data/docs/TeleCheckAchPaymentMethodAchBillTo.md +35 -0
  211. data/docs/TeleCheckCBPPaymentMethod.md +16 -0
  212. data/docs/TeleCheckICAPaymentMethod.md +21 -0
  213. data/docs/TeleCheckICAPaymentMethodAllOf.md +21 -0
  214. data/docs/Text.md +19 -0
  215. data/docs/Title.md +17 -0
  216. data/docs/TokenIdentifier.md +17 -0
  217. data/docs/TopBar.md +17 -0
  218. data/docs/TransactionErrorResponse.md +10 -4
  219. data/docs/TransactionResponse.md +11 -5
  220. data/docs/UnionPayAuthenticationUpdateRequest.md +19 -0
  221. data/docs/UnionPayAuthenticationUpdateRequestAllOf.md +19 -0
  222. data/docs/UpdateEmailSettingsRequest.md +17 -0
  223. data/docs/UpdateEmailSettingsResponse.md +23 -0
  224. data/docs/UpdateFraudSettingsRequest.md +17 -0
  225. data/docs/UpdateFraudSettingsResponse.md +23 -0
  226. data/docs/UpdatePaymentToken.md +23 -0
  227. data/docs/UsePaymentToken.md +5 -1
  228. data/docs/{PaymentVerification3ds.md → Verification3ds.md} +2 -2
  229. data/docs/VerificationApi.md +132 -0
  230. data/docs/{PaymentVerificationAvs.md → VerificationAvs.md} +2 -2
  231. data/docs/{PaymentVerificationCvv.md → VerificationCvv.md} +2 -2
  232. data/docs/VoidPreAuthTransactions.md +16 -0
  233. data/docs/WalletPreAuthTransaction.md +3 -1
  234. data/docs/WalletPreAuthTransactionAllOf.md +3 -1
  235. data/first_data_gateway.gemspec +6 -7
  236. data/git_push.sh +10 -7
  237. data/lib/openapi_client.rb +129 -13
  238. data/lib/openapi_client/.DS_Store +0 -0
  239. data/lib/openapi_client/api/authentication_api.rb +17 -9
  240. data/lib/openapi_client/api/currency_conversion_api.rb +6 -6
  241. data/lib/openapi_client/api/fraud_detect_api.rb +14 -20
  242. data/lib/openapi_client/api/information_lookup_api.rb +228 -0
  243. data/lib/openapi_client/api/order_api.rb +11 -12
  244. data/lib/openapi_client/api/payment_api.rb +36 -40
  245. data/lib/openapi_client/api/payment_schedules_api.rb +16 -17
  246. data/lib/openapi_client/api/payment_token_api.rb +222 -10
  247. data/lib/openapi_client/api/payment_url_api.rb +14 -14
  248. data/lib/openapi_client/api/verification_api.rb +228 -0
  249. data/lib/openapi_client/api_client.rb +15 -30
  250. data/lib/openapi_client/api_error.rb +2 -2
  251. data/lib/openapi_client/configuration.rb +4 -4
  252. data/lib/openapi_client/models/access_token_request.rb +242 -0
  253. data/lib/openapi_client/models/access_token_response.rb +81 -66
  254. data/lib/openapi_client/models/{authentication_verification_request.rb → account_info_lookup_request.rb} +39 -49
  255. data/lib/openapi_client/models/account_updater_response.rb +21 -12
  256. data/lib/openapi_client/models/{union_pay_authentication_verification_request.rb → account_verification_request.rb} +67 -73
  257. data/lib/openapi_client/models/ach_credit_transaction.rb +223 -0
  258. data/lib/openapi_client/models/ach_post_auth_transaction.rb +223 -0
  259. data/lib/openapi_client/models/ach_post_auth_transaction_all_of.rb +210 -0
  260. data/lib/openapi_client/models/ach_pre_auth_transaction.rb +223 -0
  261. data/lib/openapi_client/models/ach_pre_auth_transaction_all_of.rb +210 -0
  262. data/lib/openapi_client/models/ach_recurring_type.rb +36 -0
  263. data/lib/openapi_client/models/ach_response.rb +307 -0
  264. data/lib/openapi_client/models/ach_return_transaction.rb +223 -0
  265. data/lib/openapi_client/models/ach_sale_transaction.rb +223 -0
  266. data/lib/openapi_client/models/ach_void_transaction.rb +223 -0
  267. data/lib/openapi_client/models/acs_response.rb +207 -0
  268. data/lib/openapi_client/models/additional_amount_rate.rb +21 -12
  269. data/lib/openapi_client/models/additional_details.rb +198 -16
  270. data/lib/openapi_client/models/additional_transaction_details.rb +39 -18
  271. data/lib/openapi_client/models/address.rb +21 -12
  272. data/lib/openapi_client/models/airline.rb +21 -12
  273. data/lib/openapi_client/models/airline_ancillary_service_category.rb +21 -12
  274. data/lib/openapi_client/models/airline_travel_route.rb +21 -12
  275. data/lib/openapi_client/models/ali_pay.rb +21 -12
  276. data/lib/openapi_client/models/ali_pay_payment_method.rb +21 -12
  277. data/lib/openapi_client/models/ali_pay_payment_method_all_of.rb +21 -12
  278. data/lib/openapi_client/models/ali_pay_sale_transaction.rb +30 -114
  279. data/lib/openapi_client/models/ali_pay_sale_transaction_all_of.rb +21 -12
  280. data/lib/openapi_client/models/amount.rb +41 -13
  281. data/lib/openapi_client/models/amount_components.rb +21 -12
  282. data/lib/openapi_client/models/authentication_request.rb +217 -0
  283. data/lib/openapi_client/models/authentication_result.rb +217 -0
  284. data/lib/openapi_client/models/authentication_update_request.rb +251 -0
  285. data/lib/openapi_client/models/avs_response.rb +35 -16
  286. data/lib/openapi_client/models/background.rb +233 -0
  287. data/lib/openapi_client/models/background_color.rb +224 -0
  288. data/lib/openapi_client/models/bancontact_qr.rb +271 -0
  289. data/lib/openapi_client/models/basic_response.rb +21 -12
  290. data/lib/openapi_client/models/billing.rb +21 -12
  291. data/lib/openapi_client/models/billing_address.rb +21 -12
  292. data/lib/openapi_client/models/block_card.rb +242 -0
  293. data/lib/openapi_client/models/{secure3d_authentication_request.rb → block_domain.rb} +33 -36
  294. data/lib/openapi_client/models/block_ip_address.rb +217 -0
  295. data/lib/openapi_client/models/block_name.rb +217 -0
  296. data/lib/openapi_client/models/blocked_card_number.rb +217 -0
  297. data/lib/openapi_client/models/blocked_items.rb +233 -0
  298. data/lib/openapi_client/models/body.rb +223 -0
  299. data/lib/openapi_client/models/borders.rb +223 -0
  300. data/lib/openapi_client/models/branding_style_configuration_request.rb +208 -0
  301. data/lib/openapi_client/models/branding_style_configuration_response.rb +243 -0
  302. data/lib/openapi_client/models/branding_style_configuration_result.rb +216 -0
  303. data/lib/openapi_client/models/button.rb +215 -0
  304. data/lib/openapi_client/models/car_rental.rb +21 -12
  305. data/lib/openapi_client/models/car_rental_extra_charges.rb +21 -12
  306. data/lib/openapi_client/models/card.rb +21 -12
  307. data/lib/openapi_client/models/card_function.rb +2 -2
  308. data/lib/openapi_client/models/card_info.rb +21 -12
  309. data/lib/openapi_client/models/card_info_lookup_request.rb +21 -12
  310. data/lib/openapi_client/models/card_info_lookup_response.rb +21 -12
  311. data/lib/openapi_client/models/card_verification_request.rb +21 -12
  312. data/lib/openapi_client/models/china_domestic.rb +50 -16
  313. data/lib/openapi_client/models/china_domestic_payment_method.rb +21 -12
  314. data/lib/openapi_client/models/china_domestic_payment_method_all_of.rb +21 -12
  315. data/lib/openapi_client/models/china_pn_r_sale_transaction.rb +30 -114
  316. data/lib/openapi_client/models/china_pn_r_sale_transaction_all_of.rb +21 -12
  317. data/lib/openapi_client/models/classic_mode.rb +287 -0
  318. data/lib/openapi_client/models/clearing_details.rb +338 -0
  319. data/lib/openapi_client/models/clearing_element.rb +227 -0
  320. data/lib/openapi_client/models/client_locale.rb +21 -12
  321. data/lib/openapi_client/models/client_registration.rb +21 -12
  322. data/lib/openapi_client/models/combined_mode.rb +233 -0
  323. data/lib/openapi_client/models/connect_mode.rb +36 -0
  324. data/lib/openapi_client/models/contact.rb +21 -12
  325. data/lib/openapi_client/models/content.rb +223 -0
  326. data/lib/openapi_client/models/{authentication.rb → country_profile.rb} +33 -34
  327. data/lib/openapi_client/models/create_payment_token.rb +21 -12
  328. data/lib/openapi_client/models/currency_conversion.rb +21 -12
  329. data/lib/openapi_client/models/currency_conversion_response.rb +216 -0
  330. data/lib/openapi_client/models/customer.rb +21 -12
  331. data/lib/openapi_client/models/customer_address.rb +21 -12
  332. data/lib/openapi_client/models/dcc.rb +30 -68
  333. data/lib/openapi_client/models/dcc_all_of.rb +21 -12
  334. data/lib/openapi_client/models/dcc_exchange_rate_request.rb +31 -73
  335. data/lib/openapi_client/models/dcc_exchange_rate_request_all_of.rb +22 -13
  336. data/lib/openapi_client/models/decrypted_apple_pay.rb +404 -0
  337. data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method.rb +223 -0
  338. data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method_all_of.rb +210 -0
  339. data/lib/openapi_client/models/decrypted_google_pay.rb +404 -0
  340. data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method.rb +223 -0
  341. data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method_all_of.rb +210 -0
  342. data/lib/openapi_client/models/decrypted_samsung_pay.rb +404 -0
  343. data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method.rb +223 -0
  344. data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method_all_of.rb +210 -0
  345. data/lib/openapi_client/models/delete_branding_style_configuration_response.rb +252 -0
  346. data/lib/openapi_client/models/device.rb +21 -12
  347. data/lib/openapi_client/models/disbursement.rb +21 -12
  348. data/lib/openapi_client/models/disbursement_transaction_type.rb +30 -60
  349. data/lib/openapi_client/models/document.rb +21 -12
  350. data/lib/openapi_client/models/dynamic_pricing.rb +30 -68
  351. data/lib/openapi_client/models/dynamic_pricing_all_of.rb +21 -12
  352. data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request.rb +30 -72
  353. data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request_all_of.rb +21 -12
  354. data/lib/openapi_client/models/email_notification_data.rb +247 -0
  355. data/lib/openapi_client/models/encrypted_apple_pay.rb +21 -12
  356. data/lib/openapi_client/models/encrypted_apple_pay_header.rb +21 -12
  357. data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method.rb +30 -32
  358. data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method_all_of.rb +21 -12
  359. data/lib/openapi_client/models/encrypted_google_pay.rb +21 -12
  360. data/lib/openapi_client/models/encrypted_google_pay_data.rb +21 -12
  361. data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method.rb +30 -32
  362. data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method_all_of.rb +21 -12
  363. data/lib/openapi_client/models/encrypted_samsung_pay.rb +21 -12
  364. data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method.rb +30 -32
  365. data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method_all_of.rb +21 -12
  366. data/lib/openapi_client/models/endpoint_response.rb +261 -0
  367. data/lib/openapi_client/models/error.rb +21 -12
  368. data/lib/openapi_client/models/error_details.rb +21 -12
  369. data/lib/openapi_client/models/error_message.rb +21 -12
  370. data/lib/openapi_client/models/error_response.rb +21 -12
  371. data/lib/openapi_client/models/exchange_rate_details.rb +287 -0
  372. data/lib/openapi_client/models/exchange_rate_request.rb +21 -12
  373. data/lib/openapi_client/models/exchange_rate_response.rb +29 -101
  374. data/lib/openapi_client/models/expiration.rb +29 -20
  375. data/lib/openapi_client/models/font_face.rb +39 -0
  376. data/lib/openapi_client/models/font_properties.rb +252 -0
  377. data/lib/openapi_client/models/font_weight.rb +36 -0
  378. data/lib/openapi_client/models/footer.rb +223 -0
  379. data/lib/openapi_client/models/fraud_address.rb +21 -12
  380. data/lib/openapi_client/models/fraud_order.rb +32 -13
  381. data/lib/openapi_client/models/fraud_order_items.rb +26 -15
  382. data/lib/openapi_client/models/fraud_registration.rb +21 -12
  383. data/lib/openapi_client/models/fraud_registration_card.rb +21 -12
  384. data/lib/openapi_client/models/fraud_registration_device.rb +21 -12
  385. data/lib/openapi_client/models/fraud_registration_device_items.rb +21 -12
  386. data/lib/openapi_client/models/fraud_registration_error.rb +21 -12
  387. data/lib/openapi_client/models/fraud_registration_response.rb +22 -13
  388. data/lib/openapi_client/models/fraud_score.rb +21 -12
  389. data/lib/openapi_client/models/fraud_settings.rb +235 -0
  390. data/lib/openapi_client/models/fraud_settings_response.rb +322 -0
  391. data/lib/openapi_client/models/frequency.rb +21 -12
  392. data/lib/openapi_client/models/funding_transaction_type.rb +30 -60
  393. data/lib/openapi_client/models/header.rb +223 -0
  394. data/lib/openapi_client/models/hover.rb +223 -0
  395. data/lib/openapi_client/models/id_info.rb +256 -0
  396. data/lib/openapi_client/models/industry_specific_extensions.rb +34 -16
  397. data/lib/openapi_client/models/initiate_clearing_response.rb +298 -0
  398. data/lib/openapi_client/models/initiate_clearing_response_all_of.rb +261 -0
  399. data/lib/openapi_client/models/installment_options.rb +21 -12
  400. data/lib/openapi_client/models/issuer_response.rb +21 -12
  401. data/lib/openapi_client/models/items.rb +21 -12
  402. data/lib/openapi_client/models/location.rb +21 -12
  403. data/lib/openapi_client/models/lockout_time.rb +217 -0
  404. data/lib/openapi_client/models/lodging.rb +21 -12
  405. data/lib/openapi_client/models/lodging_extra_charges.rb +21 -12
  406. data/lib/openapi_client/models/logo.rb +276 -0
  407. data/lib/openapi_client/models/loyalty.rb +21 -12
  408. data/lib/openapi_client/models/masterpass_wallet_payment_method.rb +268 -0
  409. data/lib/openapi_client/models/masterpass_wallet_payment_method_all_of.rb +255 -0
  410. data/lib/openapi_client/models/maximum_purchase_amount.rb +227 -0
  411. data/lib/openapi_client/models/mcc6012.rb +347 -0
  412. data/lib/openapi_client/models/merchant.rb +21 -12
  413. data/lib/openapi_client/models/method.rb +21 -12
  414. data/lib/openapi_client/models/mobile.rb +216 -0
  415. data/lib/openapi_client/models/mobile_header_area.rb +223 -0
  416. data/lib/openapi_client/models/order.rb +34 -16
  417. data/lib/openapi_client/models/order_error_response.rb +21 -12
  418. data/lib/openapi_client/models/order_response.rb +21 -12
  419. data/lib/openapi_client/models/pay_pal.rb +21 -12
  420. data/lib/openapi_client/models/pay_pal_payment_method.rb +21 -12
  421. data/lib/openapi_client/models/pay_pal_payment_method_all_of.rb +21 -12
  422. data/lib/openapi_client/models/payment.rb +21 -12
  423. data/lib/openapi_client/models/payment_card.rb +22 -22
  424. data/lib/openapi_client/models/payment_card_credit_transaction.rb +30 -114
  425. data/lib/openapi_client/models/payment_card_disbursement_transaction.rb +30 -114
  426. data/lib/openapi_client/models/payment_card_disbursement_transaction_all_of.rb +21 -12
  427. data/lib/openapi_client/models/payment_card_forced_ticket_transaction.rb +30 -114
  428. data/lib/openapi_client/models/payment_card_forced_ticket_transaction_all_of.rb +21 -12
  429. data/lib/openapi_client/models/payment_card_info_lookup_request.rb +223 -0
  430. data/lib/openapi_client/models/payment_card_info_lookup_request_all_of.rb +210 -0
  431. data/lib/openapi_client/models/payment_card_payer_auth_transaction.rb +30 -114
  432. data/lib/openapi_client/models/payment_card_payer_auth_transaction_all_of.rb +21 -12
  433. data/lib/openapi_client/models/payment_card_payment_method.rb +21 -12
  434. data/lib/openapi_client/models/payment_card_payment_method_all_of.rb +21 -12
  435. data/lib/openapi_client/models/payment_card_payment_token_update_request.rb +259 -0
  436. data/lib/openapi_client/models/payment_card_payment_tokenization_request.rb +30 -92
  437. data/lib/openapi_client/models/payment_card_payment_tokenization_request_all_of.rb +21 -12
  438. data/lib/openapi_client/models/payment_card_pre_auth_transaction.rb +61 -114
  439. data/lib/openapi_client/models/payment_card_pre_auth_transaction_all_of.rb +55 -16
  440. data/lib/openapi_client/models/payment_card_sale_transaction.rb +52 -116
  441. data/lib/openapi_client/models/payment_card_sale_transaction_all_of.rb +43 -16
  442. data/lib/openapi_client/models/payment_card_verification_request.rb +223 -0
  443. data/lib/openapi_client/models/payment_card_verification_request_all_of.rb +210 -0
  444. data/lib/openapi_client/models/payment_device.rb +21 -12
  445. data/lib/openapi_client/models/payment_device_credit_transaction.rb +30 -114
  446. data/lib/openapi_client/models/payment_device_credit_transaction_all_of.rb +21 -12
  447. data/lib/openapi_client/models/payment_device_disbursement_transaction.rb +30 -114
  448. data/lib/openapi_client/models/payment_device_disbursement_transaction_all_of.rb +21 -12
  449. data/lib/openapi_client/models/payment_device_payment_method.rb +21 -12
  450. data/lib/openapi_client/models/payment_device_payment_method_all_of.rb +21 -12
  451. data/lib/openapi_client/models/payment_device_payment_tokenization_request.rb +30 -92
  452. data/lib/openapi_client/models/payment_device_payment_tokenization_request_all_of.rb +21 -12
  453. data/lib/openapi_client/models/payment_device_pre_auth_transaction.rb +44 -116
  454. data/lib/openapi_client/models/payment_device_pre_auth_transaction_all_of.rb +37 -16
  455. data/lib/openapi_client/models/payment_device_sale_transaction.rb +30 -114
  456. data/lib/openapi_client/models/payment_device_sale_transaction_all_of.rb +21 -12
  457. data/lib/openapi_client/models/payment_facilitator.rb +21 -12
  458. data/lib/openapi_client/models/payment_method_details.rb +21 -12
  459. data/lib/openapi_client/models/payment_method_payment_schedules_request.rb +30 -254
  460. data/lib/openapi_client/models/payment_method_payment_schedules_request_all_of.rb +21 -12
  461. data/lib/openapi_client/models/payment_method_type.rb +3 -2
  462. data/lib/openapi_client/models/payment_registration.rb +21 -12
  463. data/lib/openapi_client/models/payment_schedules_error_response.rb +21 -12
  464. data/lib/openapi_client/models/payment_schedules_request.rb +21 -12
  465. data/lib/openapi_client/models/payment_schedules_response.rb +21 -12
  466. data/lib/openapi_client/models/payment_token_credit_transaction.rb +30 -114
  467. data/lib/openapi_client/models/payment_token_credit_transaction_all_of.rb +21 -12
  468. data/lib/openapi_client/models/payment_token_details.rb +21 -12
  469. data/lib/openapi_client/models/payment_token_details_all_of.rb +21 -12
  470. data/lib/openapi_client/models/payment_token_disbursement_transaction.rb +30 -114
  471. data/lib/openapi_client/models/payment_token_disbursement_transaction_all_of.rb +21 -12
  472. data/lib/openapi_client/models/payment_token_info_lookup_request.rb +223 -0
  473. data/lib/openapi_client/models/payment_token_info_lookup_request_all_of.rb +210 -0
  474. data/lib/openapi_client/models/payment_token_payment_method.rb +21 -12
  475. data/lib/openapi_client/models/payment_token_payment_method_all_of.rb +21 -12
  476. data/lib/openapi_client/models/payment_token_pre_auth_transaction.rb +60 -114
  477. data/lib/openapi_client/models/payment_token_pre_auth_transaction_all_of.rb +55 -16
  478. data/lib/openapi_client/models/payment_token_sale_transaction.rb +50 -116
  479. data/lib/openapi_client/models/payment_token_sale_transaction_all_of.rb +43 -16
  480. data/lib/openapi_client/models/payment_token_update_response.rb +297 -0
  481. data/lib/openapi_client/models/payment_token_verification_request.rb +223 -0
  482. data/lib/openapi_client/models/payment_token_verification_request_all_of.rb +210 -0
  483. data/lib/openapi_client/models/payment_tokenization_error_response.rb +72 -13
  484. data/lib/openapi_client/models/payment_tokenization_request.rb +59 -16
  485. data/lib/openapi_client/models/payment_tokenization_response.rb +75 -16
  486. data/lib/openapi_client/models/payment_url_detail.rb +21 -12
  487. data/lib/openapi_client/models/payment_url_detail_response.rb +21 -12
  488. data/lib/openapi_client/models/payment_url_error_response.rb +21 -12
  489. data/lib/openapi_client/models/payment_url_request.rb +21 -12
  490. data/lib/openapi_client/models/payment_url_response.rb +21 -12
  491. data/lib/openapi_client/models/payment_url_status.rb +2 -2
  492. data/lib/openapi_client/models/paypal_credit_transaction.rb +30 -114
  493. data/lib/openapi_client/models/paypal_credit_transaction_all_of.rb +21 -12
  494. data/lib/openapi_client/models/phone.rb +21 -12
  495. data/lib/openapi_client/models/post_auth_transaction.rb +30 -67
  496. data/lib/openapi_client/models/post_auth_transaction_all_of.rb +21 -12
  497. data/lib/openapi_client/models/primary.rb +223 -0
  498. data/lib/openapi_client/models/primary_transaction.rb +21 -12
  499. data/lib/openapi_client/models/processor_data.rb +57 -18
  500. data/lib/openapi_client/models/properties.rb +279 -0
  501. data/lib/openapi_client/models/purchase_cards.rb +21 -12
  502. data/lib/openapi_client/models/purchase_cards_level2.rb +21 -12
  503. data/lib/openapi_client/models/purchase_cards_level3.rb +21 -12
  504. data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +21 -12
  505. data/lib/openapi_client/models/{authentication_redirect.rb → receipt.rb} +48 -36
  506. data/lib/openapi_client/models/receipt_request_info.rb +268 -0
  507. data/lib/openapi_client/models/receiver_info.rb +59 -41
  508. data/lib/openapi_client/models/recurring_payment_details.rb +21 -12
  509. data/lib/openapi_client/models/recurring_payment_details_response.rb +21 -12
  510. data/lib/openapi_client/models/referenced_order_payment_schedules_request.rb +30 -254
  511. data/lib/openapi_client/models/referenced_order_payment_schedules_request_all_of.rb +21 -12
  512. data/lib/openapi_client/models/referenced_order_payment_tokenization_request.rb +30 -92
  513. data/lib/openapi_client/models/referenced_order_payment_tokenization_request_all_of.rb +21 -12
  514. data/lib/openapi_client/models/registration_method.rb +21 -12
  515. data/lib/openapi_client/models/remove_fraud_blocked_items_response.rb +243 -0
  516. data/lib/openapi_client/models/response_amount_components.rb +21 -12
  517. data/lib/openapi_client/models/response_amount_components_all_of.rb +21 -12
  518. data/lib/openapi_client/models/response_type.rb +2 -3
  519. data/lib/openapi_client/models/return_transaction.rb +30 -67
  520. data/lib/openapi_client/models/return_transaction_all_of.rb +21 -12
  521. data/lib/openapi_client/models/score_only_request.rb +21 -12
  522. data/lib/openapi_client/models/score_only_response.rb +31 -32
  523. data/lib/openapi_client/models/score_only_response_fraud_score.rb +35 -16
  524. data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +21 -12
  525. data/lib/openapi_client/models/secondary_transaction.rb +59 -16
  526. data/lib/openapi_client/models/secure3_d10_authentication_request.rb +208 -0
  527. data/lib/openapi_client/models/secure3_d10_authentication_result.rb +31 -33
  528. data/lib/openapi_client/models/secure3_d10_authentication_result_all_of.rb +21 -12
  529. data/lib/openapi_client/models/{secure3d_authentication_verification_request.rb → secure3_d10_authentication_update_request.rb} +47 -83
  530. data/lib/openapi_client/models/{secure3d_authentication_verification_request_all_of.rb → secure3_d10_authentication_update_request_all_of.rb} +38 -19
  531. data/lib/openapi_client/models/secure3_d21_authentication_request.rb +297 -0
  532. data/lib/openapi_client/models/secure3_d21_authentication_request_all_of.rb +284 -0
  533. data/lib/openapi_client/models/secure3_d21_authentication_result.rb +35 -35
  534. data/lib/openapi_client/models/secure3_d21_authentication_result_all_of.rb +24 -13
  535. data/lib/openapi_client/models/secure3_d21_authentication_update_request.rb +262 -0
  536. data/lib/openapi_client/models/secure3_d21_authentication_update_request_all_of.rb +249 -0
  537. data/lib/openapi_client/models/secure3_d_authentication_response.rb +281 -0
  538. data/lib/openapi_client/models/secure3_d_authentication_response_params.rb +257 -0
  539. data/lib/openapi_client/models/secure3_d_authentication_response_secure3d_method.rb +217 -0
  540. data/lib/openapi_client/models/secure3d_response.rb +21 -12
  541. data/lib/openapi_client/models/sender_info.rb +59 -41
  542. data/lib/openapi_client/models/sepa.rb +21 -12
  543. data/lib/openapi_client/models/sepa_mandate.rb +21 -12
  544. data/lib/openapi_client/models/sepa_payment_method.rb +21 -12
  545. data/lib/openapi_client/models/sepa_payment_method_all_of.rb +21 -12
  546. data/lib/openapi_client/models/sepa_sale_transaction.rb +30 -114
  547. data/lib/openapi_client/models/sepa_sale_transaction_all_of.rb +21 -12
  548. data/lib/openapi_client/models/shared_secret_configuration_request.rb +233 -0
  549. data/lib/openapi_client/models/shared_secret_configuration_response.rb +273 -0
  550. data/lib/openapi_client/models/ship_to_address.rb +21 -12
  551. data/lib/openapi_client/models/shipping.rb +21 -12
  552. data/lib/openapi_client/models/soft_descriptor.rb +70 -16
  553. data/lib/openapi_client/models/split_shipment.rb +21 -12
  554. data/lib/openapi_client/models/store_branding_style_configuration.rb +229 -0
  555. data/lib/openapi_client/models/store_email_settings.rb +226 -0
  556. data/lib/openapi_client/models/store_email_settings_result.rb +217 -0
  557. data/lib/openapi_client/models/store_fraud_settings.rb +226 -0
  558. data/lib/openapi_client/models/store_fraud_settings_result.rb +226 -0
  559. data/lib/openapi_client/models/store_url_configuration.rb +281 -0
  560. data/lib/openapi_client/models/{authentication_redirect_params.rb → store_url_configuration_request.rb} +34 -44
  561. data/lib/openapi_client/models/store_url_configuration_response.rb +244 -0
  562. data/lib/openapi_client/models/store_url_configuration_result.rb +216 -0
  563. data/lib/openapi_client/models/stored_credential.rb +27 -18
  564. data/lib/openapi_client/models/sub_merchant_data.rb +21 -12
  565. data/lib/openapi_client/models/sub_merchant_split.rb +21 -12
  566. data/lib/openapi_client/models/tele_check_ach_payment_method.rb +784 -0
  567. data/lib/openapi_client/models/tele_check_ach_payment_method_ach_bill_to.rb +611 -0
  568. data/lib/openapi_client/models/tele_check_cbp_payment_method.rb +230 -0
  569. data/lib/openapi_client/models/tele_check_ica_payment_method.rb +321 -0
  570. data/lib/openapi_client/models/tele_check_ica_payment_method_all_of.rb +286 -0
  571. data/lib/openapi_client/models/text.rb +215 -0
  572. data/lib/openapi_client/models/title.rb +223 -0
  573. data/lib/openapi_client/models/token_identifier.rb +207 -0
  574. data/lib/openapi_client/models/top_bar.rb +223 -0
  575. data/lib/openapi_client/models/transaction_error_response.rb +73 -21
  576. data/lib/openapi_client/models/transaction_origin.rb +2 -2
  577. data/lib/openapi_client/models/transaction_response.rb +76 -24
  578. data/lib/openapi_client/models/transaction_type.rb +2 -2
  579. data/lib/openapi_client/models/union_pay_authentication_request.rb +31 -33
  580. data/lib/openapi_client/models/union_pay_authentication_request_all_of.rb +21 -12
  581. data/lib/openapi_client/models/union_pay_authentication_update_request.rb +255 -0
  582. data/lib/openapi_client/models/{union_pay_authentication_verification_request_all_of.rb → union_pay_authentication_update_request_all_of.rb} +38 -19
  583. data/lib/openapi_client/models/update_email_settings_request.rb +213 -0
  584. data/lib/openapi_client/models/update_email_settings_response.rb +244 -0
  585. data/lib/openapi_client/models/update_fraud_settings_request.rb +208 -0
  586. data/lib/openapi_client/models/update_fraud_settings_response.rb +244 -0
  587. data/lib/openapi_client/models/update_payment_token.rb +250 -0
  588. data/lib/openapi_client/models/use_payment_token.rb +34 -16
  589. data/lib/openapi_client/models/verification3ds.rb +21 -12
  590. data/lib/openapi_client/models/verification_avs.rb +21 -12
  591. data/lib/openapi_client/models/verification_cvv.rb +21 -12
  592. data/lib/openapi_client/models/void_pre_auth_transactions.rb +208 -0
  593. data/lib/openapi_client/models/void_transaction.rb +30 -67
  594. data/lib/openapi_client/models/wallet_payment_method.rb +22 -13
  595. data/lib/openapi_client/models/wallet_pre_auth_transaction.rb +44 -116
  596. data/lib/openapi_client/models/wallet_pre_auth_transaction_all_of.rb +37 -16
  597. data/lib/openapi_client/models/wallet_sale_transaction.rb +30 -114
  598. data/lib/openapi_client/models/wallet_sale_transaction_all_of.rb +21 -12
  599. data/lib/openapi_client/version.rb +3 -3
  600. data/lib/simple/client_context.rb +2 -2
  601. data/lib/simple/gateway.rb +78 -10
  602. data/spec/api/authentication_api_spec.rb +3 -2
  603. data/spec/api/card_info_lookup_api_spec.rb +1 -1
  604. data/spec/api/card_verification_api_spec.rb +1 -1
  605. data/spec/api/currency_conversion_api_spec.rb +2 -2
  606. data/spec/api/fraud_detect_api_spec.rb +38 -2
  607. data/spec/api/information_lookup_api_spec.rb +71 -0
  608. data/spec/api/order_api_spec.rb +3 -3
  609. data/spec/api/payment_api_spec.rb +9 -9
  610. data/spec/api/payment_schedules_api_spec.rb +2 -2
  611. data/spec/api/payment_token_api_spec.rb +42 -3
  612. data/spec/api/payment_url_api_spec.rb +47 -2
  613. data/spec/api/verification_api_spec.rb +71 -0
  614. data/spec/api_client_spec.rb +3 -3
  615. data/spec/configuration_spec.rb +2 -2
  616. data/spec/models/access_token_request_spec.rb +53 -0
  617. data/spec/models/access_token_response_spec.rb +29 -9
  618. data/spec/models/account_info_lookup_request_spec.rb +47 -0
  619. data/spec/models/account_updater_response_spec.rb +2 -2
  620. data/spec/models/{authentication_verification_request_spec.rb → account_verification_request_spec.rb} +12 -12
  621. data/spec/models/{union_pay_authentication_verification_request_spec.rb → ach_credit_transaction_spec.rb} +9 -9
  622. data/spec/models/ach_post_auth_transaction_all_of_spec.rb +41 -0
  623. data/spec/models/ach_post_auth_transaction_spec.rb +41 -0
  624. data/spec/models/ach_pre_auth_transaction_all_of_spec.rb +41 -0
  625. data/spec/models/ach_pre_auth_transaction_spec.rb +41 -0
  626. data/spec/models/{secure3d_authentication_request_spec.rb → ach_recurring_type_spec.rb} +8 -8
  627. data/spec/models/ach_response_spec.rb +65 -0
  628. data/spec/models/ach_return_transaction_spec.rb +41 -0
  629. data/spec/models/ach_sale_transaction_spec.rb +41 -0
  630. data/spec/models/ach_void_transaction_spec.rb +41 -0
  631. data/spec/models/acs_response_spec.rb +41 -0
  632. data/spec/models/additional_amount_rate_spec.rb +2 -2
  633. data/spec/models/additional_details_spec.rb +26 -2
  634. data/spec/models/additional_transaction_details_spec.rb +3 -3
  635. data/spec/models/address_spec.rb +2 -2
  636. data/spec/models/airline_ancillary_service_category_spec.rb +2 -2
  637. data/spec/models/airline_spec.rb +2 -2
  638. data/spec/models/airline_travel_route_spec.rb +2 -2
  639. data/spec/models/ali_pay_payment_method_all_of_spec.rb +2 -2
  640. data/spec/models/ali_pay_payment_method_spec.rb +2 -2
  641. data/spec/models/ali_pay_sale_transaction_all_of_spec.rb +2 -2
  642. data/spec/models/ali_pay_sale_transaction_spec.rb +2 -2
  643. data/spec/models/ali_pay_spec.rb +2 -2
  644. data/spec/models/amount_components_spec.rb +2 -2
  645. data/spec/models/amount_spec.rb +2 -2
  646. data/spec/models/authentication_request_spec.rb +41 -0
  647. data/spec/models/{authentication_spec.rb → authentication_result_spec.rb} +9 -9
  648. data/spec/models/{authentication_redirect_params_spec.rb → authentication_update_request_spec.rb} +11 -11
  649. data/spec/models/avs_response_spec.rb +8 -2
  650. data/spec/models/background_color_spec.rb +53 -0
  651. data/spec/models/background_spec.rb +59 -0
  652. data/spec/models/bancontact_qr_spec.rb +51 -0
  653. data/spec/models/basic_response_spec.rb +2 -2
  654. data/spec/models/billing_address_spec.rb +2 -2
  655. data/spec/models/billing_spec.rb +2 -2
  656. data/spec/models/block_card_spec.rb +53 -0
  657. data/spec/models/block_domain_spec.rb +41 -0
  658. data/spec/models/{customer_address_phone_spec.rb → block_ip_address_spec.rb} +10 -10
  659. data/spec/models/block_name_spec.rb +47 -0
  660. data/spec/models/blocked_card_number_spec.rb +47 -0
  661. data/spec/models/blocked_items_spec.rb +59 -0
  662. data/spec/models/body_spec.rb +41 -0
  663. data/spec/models/borders_spec.rb +41 -0
  664. data/spec/models/branding_style_configuration_request_spec.rb +41 -0
  665. data/spec/models/branding_style_configuration_response_all_of_spec.rb +41 -0
  666. data/spec/models/branding_style_configuration_response_spec.rb +59 -0
  667. data/spec/models/branding_style_configuration_result_spec.rb +47 -0
  668. data/spec/models/button_spec.rb +47 -0
  669. data/spec/models/car_rental_extra_charges_spec.rb +2 -2
  670. data/spec/models/car_rental_spec.rb +2 -2
  671. data/spec/models/card_function_spec.rb +2 -2
  672. data/spec/models/card_info_lookup_request_spec.rb +2 -2
  673. data/spec/models/card_info_lookup_response_all_of_spec.rb +51 -0
  674. data/spec/models/card_info_lookup_response_spec.rb +2 -2
  675. data/spec/models/card_info_spec.rb +2 -2
  676. data/spec/models/card_spec.rb +2 -2
  677. data/spec/models/card_verification_request_spec.rb +2 -2
  678. data/spec/models/china_domestic_payment_method_all_of_spec.rb +2 -2
  679. data/spec/models/china_domestic_payment_method_spec.rb +2 -2
  680. data/spec/models/china_domestic_spec.rb +2 -2
  681. data/spec/models/china_pn_r_sale_transaction_all_of_spec.rb +2 -2
  682. data/spec/models/china_pn_r_sale_transaction_spec.rb +2 -2
  683. data/spec/models/classic_mode_spec.rb +95 -0
  684. data/spec/models/clearing_details_spec.rb +65 -0
  685. data/spec/models/clearing_element_spec.rb +53 -0
  686. data/spec/models/client_locale_spec.rb +2 -2
  687. data/spec/models/client_registration_all_of_spec.rb +41 -0
  688. data/spec/models/client_registration_spec.rb +77 -0
  689. data/spec/models/combined_mode_spec.rb +59 -0
  690. data/spec/models/connect_mode_spec.rb +35 -0
  691. data/spec/models/contact_spec.rb +2 -2
  692. data/spec/models/content_spec.rb +41 -0
  693. data/spec/models/country_profile_spec.rb +41 -0
  694. data/spec/models/create_payment_token_spec.rb +2 -2
  695. data/spec/models/currency_conversion_spec.rb +2 -2
  696. data/spec/models/customer_address_all_of_spec.rb +41 -0
  697. data/spec/models/customer_address_spec.rb +4 -4
  698. data/spec/models/customer_spec.rb +2 -2
  699. data/spec/models/dcc_all_of_spec.rb +2 -2
  700. data/spec/models/dcc_exchange_rate_request_all_of_spec.rb +2 -2
  701. data/spec/models/dcc_exchange_rate_request_spec.rb +2 -2
  702. data/spec/models/dcc_spec.rb +2 -2
  703. data/spec/models/decrypted_apple_pay_spec.rb +83 -0
  704. data/spec/models/decrypted_apple_pay_wallet_payment_method_all_of_spec.rb +41 -0
  705. data/spec/models/decrypted_apple_pay_wallet_payment_method_spec.rb +41 -0
  706. data/spec/models/decrypted_google_pay_spec.rb +83 -0
  707. data/spec/models/decrypted_google_pay_wallet_payment_method_all_of_spec.rb +41 -0
  708. data/spec/models/decrypted_google_pay_wallet_payment_method_spec.rb +41 -0
  709. data/spec/models/decrypted_samsung_pay_spec.rb +83 -0
  710. data/spec/models/decrypted_samsung_pay_wallet_payment_method_all_of_spec.rb +41 -0
  711. data/spec/models/decrypted_samsung_pay_wallet_payment_method_spec.rb +41 -0
  712. data/spec/models/delete_branding_style_configuration_response_all_of_spec.rb +47 -0
  713. data/spec/models/delete_branding_style_configuration_response_spec.rb +65 -0
  714. data/spec/models/device_spec.rb +2 -2
  715. data/spec/models/disbursement_spec.rb +2 -2
  716. data/spec/models/disbursement_transaction_type_all_of_spec.rb +41 -0
  717. data/spec/models/disbursement_transaction_type_spec.rb +8 -2
  718. data/spec/models/document_spec.rb +2 -2
  719. data/spec/models/dynamic_pricing_all_of_spec.rb +2 -2
  720. data/spec/models/dynamic_pricing_exchange_rate_request_all_of_spec.rb +2 -2
  721. data/spec/models/dynamic_pricing_exchange_rate_request_spec.rb +2 -2
  722. data/spec/models/dynamic_pricing_spec.rb +2 -2
  723. data/spec/models/email_notification_data_spec.rb +65 -0
  724. data/spec/models/encrypted_apple_pay_header_spec.rb +2 -2
  725. data/spec/models/encrypted_apple_pay_spec.rb +2 -2
  726. data/spec/models/encrypted_apple_pay_wallet_payment_method_all_of_spec.rb +2 -2
  727. data/spec/models/encrypted_apple_pay_wallet_payment_method_spec.rb +2 -2
  728. data/spec/models/encrypted_google_pay_data_spec.rb +2 -2
  729. data/spec/models/encrypted_google_pay_spec.rb +2 -2
  730. data/spec/models/encrypted_google_pay_wallet_payment_method_all_of_spec.rb +2 -2
  731. data/spec/models/encrypted_google_pay_wallet_payment_method_spec.rb +2 -2
  732. data/spec/models/encrypted_samsung_pay_spec.rb +47 -0
  733. data/spec/models/encrypted_samsung_pay_wallet_payment_method_all_of_spec.rb +41 -0
  734. data/spec/models/encrypted_samsung_pay_wallet_payment_method_spec.rb +41 -0
  735. data/spec/models/{authentication_redirect_spec.rb → endpoint_response_spec.rb} +15 -15
  736. data/spec/models/error_details_spec.rb +2 -2
  737. data/spec/models/error_message_spec.rb +47 -0
  738. data/spec/models/error_response_all_of_spec.rb +41 -0
  739. data/spec/models/error_response_spec.rb +2 -2
  740. data/spec/models/error_spec.rb +2 -2
  741. data/spec/models/exchange_rate_request_spec.rb +2 -2
  742. data/spec/models/exchange_rate_response_all_of_spec.rb +101 -0
  743. data/spec/models/exchange_rate_response_spec.rb +2 -2
  744. data/spec/models/expiration_spec.rb +2 -2
  745. data/spec/models/font_face_spec.rb +35 -0
  746. data/spec/models/font_properties_spec.rb +59 -0
  747. data/spec/models/font_weight_spec.rb +35 -0
  748. data/spec/models/footer_spec.rb +41 -0
  749. data/spec/models/{merchant_location_merchant_address_spec.rb → fraud_address_spec.rb} +8 -8
  750. data/spec/models/fraud_order_items_spec.rb +2 -2
  751. data/spec/models/fraud_order_spec.rb +2 -2
  752. data/spec/models/fraud_registration_card_spec.rb +71 -0
  753. data/spec/models/fraud_registration_device_items_spec.rb +75 -0
  754. data/spec/models/{transaction_spec.rb → fraud_registration_device_spec.rb} +22 -26
  755. data/spec/models/fraud_registration_error_spec.rb +41 -0
  756. data/spec/models/fraud_registration_response_spec.rb +75 -0
  757. data/spec/models/fraud_registration_spec.rb +71 -0
  758. data/spec/models/fraud_score_spec.rb +59 -0
  759. data/spec/models/fraud_settings_response_all_of_spec.rb +83 -0
  760. data/spec/models/fraud_settings_response_spec.rb +101 -0
  761. data/spec/models/fraud_settings_spec.rb +59 -0
  762. data/spec/models/frequency_spec.rb +2 -2
  763. data/spec/models/funding_transaction_type_all_of_spec.rb +41 -0
  764. data/spec/models/funding_transaction_type_spec.rb +8 -2
  765. data/spec/models/header_spec.rb +41 -0
  766. data/spec/models/hover_spec.rb +41 -0
  767. data/spec/models/id_info_spec.rb +47 -0
  768. data/spec/models/industry_specific_extensions_spec.rb +8 -2
  769. data/spec/models/initiate_clearing_response_all_of_spec.rb +57 -0
  770. data/spec/models/initiate_clearing_response_spec.rb +75 -0
  771. data/spec/models/installment_options_spec.rb +2 -2
  772. data/spec/models/{payment_issuer_response_spec.rb → issuer_response_spec.rb} +8 -8
  773. data/spec/models/{device_networks_spec.rb → items_spec.rb} +8 -8
  774. data/spec/models/{merchant_location_spec.rb → location_spec.rb} +8 -8
  775. data/spec/models/lockout_time_spec.rb +47 -0
  776. data/spec/models/lodging_extra_charges_spec.rb +2 -2
  777. data/spec/models/lodging_spec.rb +2 -2
  778. data/spec/models/logo_spec.rb +57 -0
  779. data/spec/models/loyalty_spec.rb +2 -2
  780. data/spec/models/masterpass_wallet_payment_method_all_of_spec.rb +47 -0
  781. data/spec/models/masterpass_wallet_payment_method_spec.rb +47 -0
  782. data/spec/models/maximum_purchase_amount_spec.rb +47 -0
  783. data/spec/models/mcc6012_spec.rb +71 -0
  784. data/spec/models/merchant_spec.rb +2 -2
  785. data/spec/models/{payment_pay_method_spec.rb → method_spec.rb} +8 -8
  786. data/spec/models/mobile_header_area_spec.rb +41 -0
  787. data/spec/models/mobile_spec.rb +47 -0
  788. data/spec/models/order_error_response_spec.rb +3 -15
  789. data/spec/models/order_response_all_of_spec.rb +65 -0
  790. data/spec/models/order_response_spec.rb +3 -15
  791. data/spec/models/order_spec.rb +8 -2
  792. data/spec/models/pay_pal_payment_method_all_of_spec.rb +2 -2
  793. data/spec/models/pay_pal_payment_method_spec.rb +2 -2
  794. data/spec/models/pay_pal_spec.rb +2 -2
  795. data/spec/models/payment_card_credit_transaction_spec.rb +2 -2
  796. data/spec/models/payment_card_disbursement_transaction_all_of_spec.rb +2 -2
  797. data/spec/models/payment_card_disbursement_transaction_spec.rb +2 -2
  798. data/spec/models/payment_card_forced_ticket_transaction_all_of_spec.rb +2 -2
  799. data/spec/models/payment_card_forced_ticket_transaction_spec.rb +2 -2
  800. data/spec/models/payment_card_info_lookup_request_all_of_spec.rb +41 -0
  801. data/spec/models/payment_card_info_lookup_request_spec.rb +41 -0
  802. data/spec/models/payment_card_payer_auth_transaction_all_of_spec.rb +2 -2
  803. data/spec/models/payment_card_payer_auth_transaction_spec.rb +2 -2
  804. data/spec/models/payment_card_payment_method_all_of_spec.rb +2 -2
  805. data/spec/models/payment_card_payment_method_spec.rb +2 -2
  806. data/spec/models/payment_card_payment_token_update_request_spec.rb +53 -0
  807. data/spec/models/payment_card_payment_tokenization_request_all_of_spec.rb +2 -2
  808. data/spec/models/payment_card_payment_tokenization_request_spec.rb +2 -2
  809. data/spec/models/payment_card_pre_auth_transaction_all_of_spec.rb +20 -2
  810. data/spec/models/payment_card_pre_auth_transaction_spec.rb +20 -2
  811. data/spec/models/payment_card_sale_transaction_all_of_spec.rb +20 -2
  812. data/spec/models/payment_card_sale_transaction_spec.rb +20 -2
  813. data/spec/models/payment_card_spec.rb +2 -8
  814. data/spec/models/payment_card_verification_request_all_of_spec.rb +41 -0
  815. data/spec/models/payment_card_verification_request_spec.rb +41 -0
  816. data/spec/models/payment_device_credit_transaction_all_of_spec.rb +41 -0
  817. data/spec/models/payment_device_credit_transaction_spec.rb +41 -0
  818. data/spec/models/payment_device_disbursement_transaction_all_of_spec.rb +47 -0
  819. data/spec/models/payment_device_disbursement_transaction_spec.rb +47 -0
  820. data/spec/models/payment_device_payment_method_all_of_spec.rb +47 -0
  821. data/spec/models/payment_device_payment_method_spec.rb +47 -0
  822. data/spec/models/payment_device_payment_tokenization_request_all_of_spec.rb +41 -0
  823. data/spec/models/payment_device_payment_tokenization_request_spec.rb +41 -0
  824. data/spec/models/payment_device_pre_auth_transaction_all_of_spec.rb +71 -0
  825. data/spec/models/payment_device_pre_auth_transaction_spec.rb +71 -0
  826. data/spec/models/payment_device_sale_transaction_all_of_spec.rb +53 -0
  827. data/spec/models/payment_device_sale_transaction_spec.rb +53 -0
  828. data/spec/models/payment_device_spec.rb +75 -0
  829. data/spec/models/payment_facilitator_spec.rb +2 -2
  830. data/spec/models/payment_method_details_spec.rb +2 -2
  831. data/spec/models/payment_method_payment_schedules_request_all_of_spec.rb +2 -2
  832. data/spec/models/payment_method_payment_schedules_request_spec.rb +2 -2
  833. data/spec/models/payment_method_type_spec.rb +2 -2
  834. data/spec/models/payment_registration_all_of_spec.rb +71 -0
  835. data/spec/models/payment_registration_spec.rb +107 -0
  836. data/spec/models/payment_schedules_error_response_spec.rb +2 -2
  837. data/spec/models/payment_schedules_request_spec.rb +2 -2
  838. data/spec/models/payment_schedules_response_all_of_spec.rb +57 -0
  839. data/spec/models/payment_schedules_response_spec.rb +2 -2
  840. data/spec/models/payment_spec.rb +4 -4
  841. data/spec/models/payment_token_credit_transaction_all_of_spec.rb +2 -2
  842. data/spec/models/payment_token_credit_transaction_spec.rb +2 -2
  843. data/spec/models/payment_token_details_all_of_spec.rb +2 -2
  844. data/spec/models/payment_token_details_spec.rb +2 -2
  845. data/spec/models/payment_token_disbursement_transaction_all_of_spec.rb +2 -2
  846. data/spec/models/payment_token_disbursement_transaction_spec.rb +2 -2
  847. data/spec/models/payment_token_info_lookup_request_all_of_spec.rb +41 -0
  848. data/spec/models/payment_token_info_lookup_request_spec.rb +41 -0
  849. data/spec/models/payment_token_payment_method_all_of_spec.rb +2 -2
  850. data/spec/models/payment_token_payment_method_spec.rb +2 -2
  851. data/spec/models/payment_token_pre_auth_transaction_all_of_spec.rb +20 -2
  852. data/spec/models/payment_token_pre_auth_transaction_spec.rb +20 -2
  853. data/spec/models/payment_token_sale_transaction_all_of_spec.rb +14 -2
  854. data/spec/models/payment_token_sale_transaction_spec.rb +14 -2
  855. data/spec/models/payment_token_update_response_all_of_spec.rb +57 -0
  856. data/spec/models/payment_token_update_response_spec.rb +75 -0
  857. data/spec/models/payment_token_verification_request_all_of_spec.rb +41 -0
  858. data/spec/models/payment_token_verification_request_spec.rb +41 -0
  859. data/spec/models/payment_tokenization_error_response_spec.rb +2 -2
  860. data/spec/models/payment_tokenization_request_spec.rb +8 -2
  861. data/spec/models/payment_tokenization_response_all_of_spec.rb +87 -0
  862. data/spec/models/payment_tokenization_response_spec.rb +2 -2
  863. data/spec/models/payment_url_detail_response_all_of_spec.rb +41 -0
  864. data/spec/models/payment_url_detail_response_spec.rb +59 -0
  865. data/spec/models/payment_url_detail_spec.rb +65 -0
  866. data/spec/models/payment_url_error_response_spec.rb +2 -2
  867. data/spec/models/payment_url_request_spec.rb +2 -2
  868. data/spec/models/payment_url_response_all_of_spec.rb +63 -0
  869. data/spec/models/payment_url_response_spec.rb +2 -2
  870. data/spec/models/payment_url_status_spec.rb +35 -0
  871. data/spec/models/paypal_credit_transaction_all_of_spec.rb +2 -2
  872. data/spec/models/paypal_credit_transaction_spec.rb +2 -2
  873. data/spec/models/{billing_address_phone_spec.rb → phone_spec.rb} +8 -8
  874. data/spec/models/post_auth_transaction_all_of_spec.rb +2 -2
  875. data/spec/models/post_auth_transaction_spec.rb +2 -2
  876. data/spec/models/primary_spec.rb +41 -0
  877. data/spec/models/primary_transaction_spec.rb +2 -2
  878. data/spec/models/processor_data_spec.rb +15 -3
  879. data/spec/models/properties_spec.rb +65 -0
  880. data/spec/models/purchase_cards_level2_spec.rb +2 -2
  881. data/spec/models/purchase_cards_level3_line_items_spec.rb +2 -2
  882. data/spec/models/purchase_cards_level3_spec.rb +2 -2
  883. data/spec/models/purchase_cards_spec.rb +2 -2
  884. data/spec/models/receiver_info_spec.rb +2 -2
  885. data/spec/models/recurring_payment_details_response_all_of_spec.rb +41 -0
  886. data/spec/models/recurring_payment_details_response_spec.rb +3 -15
  887. data/spec/models/recurring_payment_details_spec.rb +2 -2
  888. data/spec/models/referenced_order_payment_schedules_request_all_of_spec.rb +2 -2
  889. data/spec/models/referenced_order_payment_schedules_request_spec.rb +2 -2
  890. data/spec/models/referenced_order_payment_tokenization_request_all_of_spec.rb +2 -2
  891. data/spec/models/referenced_order_payment_tokenization_request_spec.rb +2 -2
  892. data/spec/models/registration_method_spec.rb +81 -0
  893. data/spec/models/remove_fraud_blocked_items_response_all_of_spec.rb +41 -0
  894. data/spec/models/remove_fraud_blocked_items_response_spec.rb +59 -0
  895. data/spec/models/response_amount_components_all_of_spec.rb +2 -2
  896. data/spec/models/response_amount_components_spec.rb +2 -2
  897. data/spec/models/response_type_spec.rb +2 -2
  898. data/spec/models/return_transaction_all_of_spec.rb +2 -2
  899. data/spec/models/return_transaction_spec.rb +2 -2
  900. data/spec/models/score_only_request_spec.rb +2 -6
  901. data/spec/models/score_only_response_fraud_score_explanations_spec.rb +2 -2
  902. data/spec/models/score_only_response_fraud_score_spec.rb +2 -2
  903. data/spec/models/score_only_response_spec.rb +2 -2
  904. data/spec/models/secondary_transaction_spec.rb +14 -2
  905. data/spec/models/secure3_d10_authentication_request_all_of_spec.rb +41 -0
  906. data/spec/models/secure3_d10_authentication_request_spec.rb +41 -0
  907. data/spec/models/secure3_d10_authentication_result_all_of_spec.rb +2 -2
  908. data/spec/models/secure3_d10_authentication_result_spec.rb +2 -2
  909. data/spec/models/secure3_d10_authentication_update_request_all_of_spec.rb +53 -0
  910. data/spec/models/{secure3d_authentication_verification_request_all_of_spec.rb → secure3_d10_authentication_update_request_spec.rb} +14 -8
  911. data/spec/models/secure3_d21_authentication_request_all_of_spec.rb +67 -0
  912. data/spec/models/secure3_d21_authentication_request_spec.rb +67 -0
  913. data/spec/models/secure3_d21_authentication_result_all_of_spec.rb +2 -2
  914. data/spec/models/secure3_d21_authentication_result_spec.rb +2 -2
  915. data/spec/models/secure3_d21_authentication_update_request_all_of_spec.rb +51 -0
  916. data/spec/models/secure3_d21_authentication_update_request_spec.rb +51 -0
  917. data/spec/models/secure3_d_authentication_response_params_spec.rb +71 -0
  918. data/spec/models/{secure3d_authentication_verification_request_spec.rb → secure3_d_authentication_response_secure3d_method_spec.rb} +10 -10
  919. data/spec/models/secure3_d_authentication_response_spec.rb +67 -0
  920. data/spec/models/secure3d_response_spec.rb +2 -2
  921. data/spec/models/sender_info_spec.rb +2 -2
  922. data/spec/models/sepa_mandate_spec.rb +2 -2
  923. data/spec/models/sepa_payment_method_all_of_spec.rb +2 -2
  924. data/spec/models/sepa_payment_method_spec.rb +2 -2
  925. data/spec/models/sepa_sale_transaction_all_of_spec.rb +2 -2
  926. data/spec/models/sepa_sale_transaction_spec.rb +2 -2
  927. data/spec/models/sepa_spec.rb +2 -2
  928. data/spec/models/shared_secret_configuration_request_spec.rb +41 -0
  929. data/spec/models/shared_secret_configuration_response_all_of_spec.rb +59 -0
  930. data/spec/models/shared_secret_configuration_response_spec.rb +77 -0
  931. data/spec/models/{fraud_order_ship_to_address_spec.rb → ship_to_address_spec.rb} +8 -8
  932. data/spec/models/shipping_spec.rb +2 -2
  933. data/spec/models/soft_descriptor_spec.rb +2 -2
  934. data/spec/models/split_shipment_spec.rb +2 -2
  935. data/spec/models/store_branding_style_configuration_spec.rb +53 -0
  936. data/spec/models/store_email_settings_result_spec.rb +47 -0
  937. data/spec/models/store_email_settings_spec.rb +47 -0
  938. data/spec/models/store_fraud_settings_result_spec.rb +53 -0
  939. data/spec/models/store_fraud_settings_spec.rb +47 -0
  940. data/spec/models/store_url_configuration_request_spec.rb +41 -0
  941. data/spec/models/store_url_configuration_response_all_of_spec.rb +41 -0
  942. data/spec/models/store_url_configuration_response_spec.rb +59 -0
  943. data/spec/models/store_url_configuration_result_spec.rb +47 -0
  944. data/spec/models/store_url_configuration_spec.rb +83 -0
  945. data/spec/models/stored_credential_spec.rb +2 -2
  946. data/spec/models/sub_merchant_data_spec.rb +2 -2
  947. data/spec/models/sub_merchant_split_spec.rb +2 -2
  948. data/spec/models/tele_check_ach_payment_method_ach_bill_to_spec.rb +95 -0
  949. data/spec/models/tele_check_ach_payment_method_spec.rb +165 -0
  950. data/spec/models/tele_check_cbp_payment_method_all_of_spec.rb +41 -0
  951. data/spec/models/tele_check_cbp_payment_method_spec.rb +41 -0
  952. data/spec/models/tele_check_ica_payment_method_all_of_spec.rb +53 -0
  953. data/spec/models/tele_check_ica_payment_method_spec.rb +53 -0
  954. data/spec/models/text_spec.rb +47 -0
  955. data/spec/models/title_spec.rb +41 -0
  956. data/spec/models/token_identifier_spec.rb +41 -0
  957. data/spec/models/top_bar_spec.rb +41 -0
  958. data/spec/models/transaction_error_response_spec.rb +15 -3
  959. data/spec/models/transaction_origin_spec.rb +2 -2
  960. data/spec/models/transaction_response_all_of_spec.rb +175 -0
  961. data/spec/models/transaction_response_spec.rb +15 -3
  962. data/spec/models/transaction_type_spec.rb +2 -2
  963. data/spec/models/union_pay_authentication_request_all_of_spec.rb +2 -2
  964. data/spec/models/union_pay_authentication_request_spec.rb +2 -2
  965. data/spec/models/union_pay_authentication_update_request_all_of_spec.rb +47 -0
  966. data/spec/models/{union_pay_authentication_verification_request_all_of_spec.rb → union_pay_authentication_update_request_spec.rb} +14 -8
  967. data/spec/models/update_email_settings_request_spec.rb +41 -0
  968. data/spec/models/update_email_settings_response_all_of_spec.rb +41 -0
  969. data/spec/models/update_email_settings_response_spec.rb +59 -0
  970. data/spec/models/update_fraud_settings_request_spec.rb +41 -0
  971. data/spec/models/update_fraud_settings_response_all_of_spec.rb +41 -0
  972. data/spec/models/update_fraud_settings_response_spec.rb +59 -0
  973. data/spec/models/update_payment_token_spec.rb +59 -0
  974. data/spec/models/use_payment_token_spec.rb +14 -2
  975. data/spec/models/{payment_verification3ds_spec.rb → verification3ds_spec.rb} +8 -8
  976. data/spec/models/{payment_verification_avs_spec.rb → verification_avs_spec.rb} +8 -8
  977. data/spec/models/{payment_verification_cvv_spec.rb → verification_cvv_spec.rb} +8 -8
  978. data/spec/models/void_pre_auth_transactions_spec.rb +41 -0
  979. data/spec/models/void_transaction_all_of_spec.rb +41 -0
  980. data/spec/models/void_transaction_spec.rb +8 -2
  981. data/spec/models/wallet_payment_method_spec.rb +2 -2
  982. data/spec/models/wallet_pre_auth_transaction_all_of_spec.rb +8 -2
  983. data/spec/models/wallet_pre_auth_transaction_spec.rb +8 -2
  984. data/spec/models/wallet_sale_transaction_all_of_spec.rb +2 -2
  985. data/spec/models/wallet_sale_transaction_spec.rb +2 -2
  986. data/spec/spec_helper.rb +2 -2
  987. metadata +692 -93
  988. data/Gemfile.lock +0 -79
  989. data/docs/Authentication.md +0 -17
  990. data/docs/AuthenticationRedirect.md +0 -21
  991. data/docs/AuthenticationRedirectParams.md +0 -21
  992. data/docs/AuthenticationVerificationRequest.md +0 -23
  993. data/docs/BillingAddressPhone.md +0 -19
  994. data/docs/CardInfoLookupApi.md +0 -70
  995. data/docs/CardVerificationApi.md +0 -70
  996. data/docs/MerchantLocationMerchantAddress.md +0 -27
  997. data/docs/Transaction.md +0 -39
  998. data/docs/UnionPayAuthenticationVerificationRequest.md +0 -17
  999. data/docs/UnionPayAuthenticationVerificationRequestAllOf.md +0 -17
  1000. data/lib/openapi_client/api/card_info_lookup_api.rb +0 -125
  1001. data/lib/openapi_client/api/card_verification_api.rb +0 -125
@@ -3,28 +3,32 @@
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.8.0.20190731.002
6
+ The version of the OpenAPI document: 6.13.0.20200810.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
 
13
13
  require 'date'
14
14
 
15
15
  module OpenapiClient
16
- class Secure3dAuthenticationVerificationRequestAllOf
16
+ class Secure3D10AuthenticationUpdateRequestAllOf
17
17
  # A formatted message providing results of the issuer’s cardholder authentication.
18
18
  attr_accessor :payer_authentication_response
19
19
 
20
20
  # Formatted string encoding transaction time, order ID, and return URL data.
21
21
  attr_accessor :merchant_data
22
22
 
23
+ # Card security code if required by merchant.
24
+ attr_accessor :security_code
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'payer_authentication_response' => :'payerAuthenticationResponse',
27
- :'merchant_data' => :'merchantData'
30
+ :'merchant_data' => :'merchantData',
31
+ :'security_code' => :'securityCode'
28
32
  }
29
33
  end
30
34
 
@@ -32,7 +36,8 @@ module OpenapiClient
32
36
  def self.openapi_types
33
37
  {
34
38
  :'payer_authentication_response' => :'String',
35
- :'merchant_data' => :'String'
39
+ :'merchant_data' => :'String',
40
+ :'security_code' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -40,13 +45,13 @@ module OpenapiClient
40
45
  # @param [Hash] attributes Model attributes in the form of hash
41
46
  def initialize(attributes = {})
42
47
  if (!attributes.is_a?(Hash))
43
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3dAuthenticationVerificationRequestAllOf` initialize method"
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3D10AuthenticationUpdateRequestAllOf` initialize method"
44
49
  end
45
50
 
46
51
  # check to see if the attribute exists and convert string to symbol for hash key
47
52
  attributes = attributes.each_with_object({}) { |(k, v), h|
48
53
  if (!self.class.attribute_map.key?(k.to_sym))
49
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3dAuthenticationVerificationRequestAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3D10AuthenticationUpdateRequestAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
55
  end
51
56
  h[k.to_sym] = v
52
57
  }
@@ -58,6 +63,10 @@ module OpenapiClient
58
63
  if attributes.key?(:'merchant_data')
59
64
  self.merchant_data = attributes[:'merchant_data']
60
65
  end
66
+
67
+ if attributes.key?(:'security_code')
68
+ self.security_code = attributes[:'security_code']
69
+ end
61
70
  end
62
71
 
63
72
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -131,7 +140,8 @@ module OpenapiClient
131
140
  return true if self.equal?(o)
132
141
  self.class == o.class &&
133
142
  payer_authentication_response == o.payer_authentication_response &&
134
- merchant_data == o.merchant_data
143
+ merchant_data == o.merchant_data &&
144
+ security_code == o.security_code
135
145
  end
136
146
 
137
147
  # @see the `==` method
@@ -143,7 +153,7 @@ module OpenapiClient
143
153
  # Calculates hash code according to all attributes.
144
154
  # @return [Integer] Hash code
145
155
  def hash
146
- [payer_authentication_response, merchant_data].hash
156
+ [payer_authentication_response, merchant_data, security_code].hash
147
157
  end
148
158
 
149
159
  # Builds the object from hash
@@ -156,17 +166,17 @@ module OpenapiClient
156
166
  # Builds the object from hash
157
167
  # @param [Hash] attributes Model attributes in the form of hash
158
168
  # @return [Object] Returns the model itself
159
- def build_from_hash(attributes)
169
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
160
170
  return nil unless attributes.is_a?(Hash)
161
- self.class.openapi_types.each_pair do |key, type|
171
+ openapi_types.each_pair do |key, type|
162
172
  if type =~ /\AArray<(.*)>/i
163
173
  # check to ensure the input is an array given that the attribute
164
174
  # is documented as an array but the input is not
165
- if attributes[self.class.attribute_map[key]].is_a?(Array)
166
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
175
+ if attributes[attribute_map[key]].is_a?(Array)
176
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
167
177
  end
168
- elsif !attributes[self.class.attribute_map[key]].nil?
169
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
178
+ elsif !attributes[attribute_map[key]].nil?
179
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
170
180
  end # or else data not found in attributes(hash), not an issue as the data can be optional
171
181
  end
172
182
 
@@ -210,7 +220,12 @@ module OpenapiClient
210
220
  end
211
221
  end
212
222
  else # model
213
- OpenapiClient.const_get(type).build_from_hash(value)
223
+ klass = OpenapiClient.const_get(type)
224
+ if klass.respond_to?(:openapi_discriminator_name)
225
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
226
+ end
227
+
228
+ klass.build_from_hash(value)
214
229
  end
215
230
  end
216
231
 
@@ -228,11 +243,15 @@ module OpenapiClient
228
243
 
229
244
  # Returns the object in the form of hash
230
245
  # @return [Hash] Returns the object in the form of hash
231
- def to_hash
246
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
232
247
  hash = {}
233
- self.class.attribute_map.each_pair do |attr, param|
248
+ attribute_map.each_pair do |attr, param|
234
249
  value = self.send(attr)
235
- next if value.nil?
250
+ if value.nil?
251
+ is_nullable = openapi_nullable.include?(attr)
252
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
253
+ end
254
+
236
255
  hash[param] = _to_hash(value)
237
256
  end
238
257
  hash
@@ -0,0 +1,297 @@
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: 6.13.0.20200810.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
+ # Request authentication of the payment card using the 3DS 2.x URL redirect scheme.
17
+ class Secure3D21AuthenticationRequest < AuthenticationRequest
18
+ # 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).
19
+ attr_accessor :term_url
20
+
21
+ # The 3DS method iframe and transaction ID will be sent here. Note this must be a valid URL (special characters should be URL-encoded).
22
+ attr_accessor :method_notification_url
23
+
24
+ # 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)
25
+ attr_accessor :challenge_indicator
26
+
27
+ # 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
28
+ attr_accessor :challenge_window_size
29
+
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'term_url' => :'termURL',
56
+ :'method_notification_url' => :'methodNotificationURL',
57
+ :'challenge_indicator' => :'challengeIndicator',
58
+ :'challenge_window_size' => :'challengeWindowSize'
59
+ }
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'term_url' => :'String',
66
+ :'method_notification_url' => :'String',
67
+ :'challenge_indicator' => :'String',
68
+ :'challenge_window_size' => :'String'
69
+ }
70
+ end
71
+
72
+ # List of class defined in allOf (OpenAPI v3)
73
+ def self.openapi_all_of
74
+ [
75
+ :'AuthenticationRequest',
76
+ :'Secure3D21AuthenticationRequestAllOf'
77
+ ]
78
+ end
79
+
80
+ # Initializes the object
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ def initialize(attributes = {})
83
+ if (!attributes.is_a?(Hash))
84
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3D21AuthenticationRequest` initialize method"
85
+ end
86
+
87
+ # check to see if the attribute exists and convert string to symbol for hash key
88
+ attributes = attributes.each_with_object({}) { |(k, v), h|
89
+ if (!self.class.attribute_map.key?(k.to_sym))
90
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3D21AuthenticationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
91
+ end
92
+ h[k.to_sym] = v
93
+ }
94
+
95
+ # call parent's initialize
96
+ super(attributes)
97
+
98
+ if attributes.key?(:'term_url')
99
+ self.term_url = attributes[:'term_url']
100
+ end
101
+
102
+ if attributes.key?(:'method_notification_url')
103
+ self.method_notification_url = attributes[:'method_notification_url']
104
+ end
105
+
106
+ if attributes.key?(:'challenge_indicator')
107
+ self.challenge_indicator = attributes[:'challenge_indicator']
108
+ else
109
+ self.challenge_indicator = '01'
110
+ end
111
+
112
+ if attributes.key?(:'challenge_window_size')
113
+ self.challenge_window_size = attributes[:'challenge_window_size']
114
+ end
115
+ end
116
+
117
+ # Show invalid properties with the reasons. Usually used together with valid?
118
+ # @return Array for valid properties with the reasons
119
+ def list_invalid_properties
120
+ invalid_properties = super
121
+ invalid_properties
122
+ end
123
+
124
+ # Check to see if the all the properties in the model are valid
125
+ # @return true if the model is valid
126
+ def valid?
127
+ challenge_indicator_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
128
+ return false unless challenge_indicator_validator.valid?(@challenge_indicator)
129
+ challenge_window_size_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
130
+ return false unless challenge_window_size_validator.valid?(@challenge_window_size)
131
+ true && super
132
+ end
133
+
134
+ # Custom attribute writer method checking allowed values (enum).
135
+ # @param [Object] challenge_indicator Object to be assigned
136
+ def challenge_indicator=(challenge_indicator)
137
+ validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
138
+ unless validator.valid?(challenge_indicator)
139
+ fail ArgumentError, "invalid value for \"challenge_indicator\", must be one of #{validator.allowable_values}."
140
+ end
141
+ @challenge_indicator = challenge_indicator
142
+ end
143
+
144
+ # Custom attribute writer method checking allowed values (enum).
145
+ # @param [Object] challenge_window_size Object to be assigned
146
+ def challenge_window_size=(challenge_window_size)
147
+ validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
148
+ unless validator.valid?(challenge_window_size)
149
+ fail ArgumentError, "invalid value for \"challenge_window_size\", must be one of #{validator.allowable_values}."
150
+ end
151
+ @challenge_window_size = challenge_window_size
152
+ end
153
+
154
+ # Checks equality by comparing each attribute.
155
+ # @param [Object] Object to be compared
156
+ def ==(o)
157
+ return true if self.equal?(o)
158
+ self.class == o.class &&
159
+ term_url == o.term_url &&
160
+ method_notification_url == o.method_notification_url &&
161
+ challenge_indicator == o.challenge_indicator &&
162
+ challenge_window_size == o.challenge_window_size && super(o)
163
+ end
164
+
165
+ # @see the `==` method
166
+ # @param [Object] Object to be compared
167
+ def eql?(o)
168
+ self == o
169
+ end
170
+
171
+ # Calculates hash code according to all attributes.
172
+ # @return [Integer] Hash code
173
+ def hash
174
+ [term_url, method_notification_url, challenge_indicator, challenge_window_size].hash
175
+ end
176
+
177
+ # Builds the object from hash
178
+ # @param [Hash] attributes Model attributes in the form of hash
179
+ # @return [Object] Returns the model itself
180
+ def self.build_from_hash(attributes)
181
+ new.build_from_hash(attributes)
182
+ end
183
+
184
+ # Builds the object from hash
185
+ # @param [Hash] attributes Model attributes in the form of hash
186
+ # @return [Object] Returns the model itself
187
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
188
+ return nil unless attributes.is_a?(Hash)
189
+ super(attributes, self.class.superclass.attribute_map, self.class.superclass.openapi_types)
190
+ openapi_types.each_pair do |key, type|
191
+ if type =~ /\AArray<(.*)>/i
192
+ # check to ensure the input is an array given that the attribute
193
+ # is documented as an array but the input is not
194
+ if attributes[attribute_map[key]].is_a?(Array)
195
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
196
+ end
197
+ elsif !attributes[attribute_map[key]].nil?
198
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
199
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
200
+ end
201
+
202
+ self
203
+ end
204
+
205
+ # Deserializes the data based on type
206
+ # @param string type Data type
207
+ # @param string value Value to be deserialized
208
+ # @return [Object] Deserialized data
209
+ def _deserialize(type, value)
210
+ case type.to_sym
211
+ when :DateTime
212
+ DateTime.parse(value)
213
+ when :Date
214
+ Date.parse(value)
215
+ when :String
216
+ value.to_s
217
+ when :Integer
218
+ value.to_i
219
+ when :Float
220
+ value.to_f
221
+ when :Boolean
222
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
223
+ true
224
+ else
225
+ false
226
+ end
227
+ when :Object
228
+ # generic object (usually a Hash), return directly
229
+ value
230
+ when /\AArray<(?<inner_type>.+)>\z/
231
+ inner_type = Regexp.last_match[:inner_type]
232
+ value.map { |v| _deserialize(inner_type, v) }
233
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
234
+ k_type = Regexp.last_match[:k_type]
235
+ v_type = Regexp.last_match[:v_type]
236
+ {}.tap do |hash|
237
+ value.each do |k, v|
238
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
239
+ end
240
+ end
241
+ else # model
242
+ klass = OpenapiClient.const_get(type)
243
+ if klass.respond_to?(:openapi_discriminator_name)
244
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
245
+ end
246
+
247
+ klass.build_from_hash(value)
248
+ end
249
+ end
250
+
251
+ # Returns the string representation of the object
252
+ # @return [String] String presentation of the object
253
+ def to_s
254
+ to_hash.to_s
255
+ end
256
+
257
+ # to_body is an alias to to_hash (backward compatibility)
258
+ # @return [Hash] Returns the object in the form of hash
259
+ def to_body
260
+ to_hash
261
+ end
262
+
263
+ # Returns the object in the form of hash
264
+ # @return [Hash] Returns the object in the form of hash
265
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
266
+ hash = super(self.class.superclass.attribute_map, openapi_nullable)
267
+ attribute_map.each_pair do |attr, param|
268
+ value = self.send(attr)
269
+ if value.nil?
270
+ is_nullable = openapi_nullable.include?(attr)
271
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
272
+ end
273
+
274
+ hash[param] = _to_hash(value)
275
+ end
276
+ hash
277
+ end
278
+
279
+ # Outputs non-array value in the form of hash
280
+ # For object, use to_hash. Otherwise, just return the value
281
+ # @param [Object] value Any valid value
282
+ # @return [Hash] Returns the value in the form of hash
283
+ def _to_hash(value)
284
+ if value.is_a?(Array)
285
+ value.compact.map { |v| _to_hash(v) }
286
+ elsif value.is_a?(Hash)
287
+ {}.tap do |hash|
288
+ value.each { |k, v| hash[k] = _to_hash(v) }
289
+ end
290
+ elsif value.respond_to? :to_hash
291
+ value.to_hash
292
+ else
293
+ value
294
+ end
295
+ end
296
+ end
297
+ end
@@ -0,0 +1,284 @@
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: 6.13.0.20200810.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 Secure3D21AuthenticationRequestAllOf
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
+ # 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
27
+ attr_accessor :challenge_window_size
28
+
29
+ class EnumAttributeValidator
30
+ attr_reader :datatype
31
+ attr_reader :allowable_values
32
+
33
+ def initialize(datatype, allowable_values)
34
+ @allowable_values = allowable_values.map do |value|
35
+ case datatype.to_s
36
+ when /Integer/i
37
+ value.to_i
38
+ when /Float/i
39
+ value.to_f
40
+ else
41
+ value
42
+ end
43
+ end
44
+ end
45
+
46
+ def valid?(value)
47
+ !value || allowable_values.include?(value)
48
+ end
49
+ end
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'term_url' => :'termURL',
55
+ :'method_notification_url' => :'methodNotificationURL',
56
+ :'challenge_indicator' => :'challengeIndicator',
57
+ :'challenge_window_size' => :'challengeWindowSize'
58
+ }
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ def self.openapi_types
63
+ {
64
+ :'term_url' => :'String',
65
+ :'method_notification_url' => :'String',
66
+ :'challenge_indicator' => :'String',
67
+ :'challenge_window_size' => :'String'
68
+ }
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3D21AuthenticationRequestAllOf` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3D21AuthenticationRequestAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'term_url')
87
+ self.term_url = attributes[:'term_url']
88
+ end
89
+
90
+ if attributes.key?(:'method_notification_url')
91
+ self.method_notification_url = attributes[:'method_notification_url']
92
+ end
93
+
94
+ if attributes.key?(:'challenge_indicator')
95
+ self.challenge_indicator = attributes[:'challenge_indicator']
96
+ else
97
+ self.challenge_indicator = '01'
98
+ end
99
+
100
+ if attributes.key?(:'challenge_window_size')
101
+ self.challenge_window_size = attributes[:'challenge_window_size']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ invalid_properties = Array.new
109
+ invalid_properties
110
+ end
111
+
112
+ # Check to see if the all the properties in the model are valid
113
+ # @return true if the model is valid
114
+ def valid?
115
+ challenge_indicator_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
116
+ return false unless challenge_indicator_validator.valid?(@challenge_indicator)
117
+ challenge_window_size_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
118
+ return false unless challenge_window_size_validator.valid?(@challenge_window_size)
119
+ true
120
+ end
121
+
122
+ # Custom attribute writer method checking allowed values (enum).
123
+ # @param [Object] challenge_indicator Object to be assigned
124
+ def challenge_indicator=(challenge_indicator)
125
+ validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
126
+ unless validator.valid?(challenge_indicator)
127
+ fail ArgumentError, "invalid value for \"challenge_indicator\", must be one of #{validator.allowable_values}."
128
+ end
129
+ @challenge_indicator = challenge_indicator
130
+ end
131
+
132
+ # Custom attribute writer method checking allowed values (enum).
133
+ # @param [Object] challenge_window_size Object to be assigned
134
+ def challenge_window_size=(challenge_window_size)
135
+ validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
136
+ unless validator.valid?(challenge_window_size)
137
+ fail ArgumentError, "invalid value for \"challenge_window_size\", must be one of #{validator.allowable_values}."
138
+ end
139
+ @challenge_window_size = challenge_window_size
140
+ end
141
+
142
+ # Checks equality by comparing each attribute.
143
+ # @param [Object] Object to be compared
144
+ def ==(o)
145
+ return true if self.equal?(o)
146
+ self.class == o.class &&
147
+ term_url == o.term_url &&
148
+ method_notification_url == o.method_notification_url &&
149
+ challenge_indicator == o.challenge_indicator &&
150
+ challenge_window_size == o.challenge_window_size
151
+ end
152
+
153
+ # @see the `==` method
154
+ # @param [Object] Object to be compared
155
+ def eql?(o)
156
+ self == o
157
+ end
158
+
159
+ # Calculates hash code according to all attributes.
160
+ # @return [Integer] Hash code
161
+ def hash
162
+ [term_url, method_notification_url, challenge_indicator, challenge_window_size].hash
163
+ end
164
+
165
+ # Builds the object from hash
166
+ # @param [Hash] attributes Model attributes in the form of hash
167
+ # @return [Object] Returns the model itself
168
+ def self.build_from_hash(attributes)
169
+ new.build_from_hash(attributes)
170
+ end
171
+
172
+ # Builds the object from hash
173
+ # @param [Hash] attributes Model attributes in the form of hash
174
+ # @return [Object] Returns the model itself
175
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
176
+ return nil unless attributes.is_a?(Hash)
177
+ openapi_types.each_pair do |key, type|
178
+ if type =~ /\AArray<(.*)>/i
179
+ # check to ensure the input is an array given that the attribute
180
+ # is documented as an array but the input is not
181
+ if attributes[attribute_map[key]].is_a?(Array)
182
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
183
+ end
184
+ elsif !attributes[attribute_map[key]].nil?
185
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
186
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
187
+ end
188
+
189
+ self
190
+ end
191
+
192
+ # Deserializes the data based on type
193
+ # @param string type Data type
194
+ # @param string value Value to be deserialized
195
+ # @return [Object] Deserialized data
196
+ def _deserialize(type, value)
197
+ case type.to_sym
198
+ when :DateTime
199
+ DateTime.parse(value)
200
+ when :Date
201
+ Date.parse(value)
202
+ when :String
203
+ value.to_s
204
+ when :Integer
205
+ value.to_i
206
+ when :Float
207
+ value.to_f
208
+ when :Boolean
209
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
210
+ true
211
+ else
212
+ false
213
+ end
214
+ when :Object
215
+ # generic object (usually a Hash), return directly
216
+ value
217
+ when /\AArray<(?<inner_type>.+)>\z/
218
+ inner_type = Regexp.last_match[:inner_type]
219
+ value.map { |v| _deserialize(inner_type, v) }
220
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
221
+ k_type = Regexp.last_match[:k_type]
222
+ v_type = Regexp.last_match[:v_type]
223
+ {}.tap do |hash|
224
+ value.each do |k, v|
225
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
226
+ end
227
+ end
228
+ else # model
229
+ klass = OpenapiClient.const_get(type)
230
+ if klass.respond_to?(:openapi_discriminator_name)
231
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
232
+ end
233
+
234
+ klass.build_from_hash(value)
235
+ end
236
+ end
237
+
238
+ # Returns the string representation of the object
239
+ # @return [String] String presentation of the object
240
+ def to_s
241
+ to_hash.to_s
242
+ end
243
+
244
+ # to_body is an alias to to_hash (backward compatibility)
245
+ # @return [Hash] Returns the object in the form of hash
246
+ def to_body
247
+ to_hash
248
+ end
249
+
250
+ # Returns the object in the form of hash
251
+ # @return [Hash] Returns the object in the form of hash
252
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
253
+ hash = {}
254
+ attribute_map.each_pair do |attr, param|
255
+ value = self.send(attr)
256
+ if value.nil?
257
+ is_nullable = openapi_nullable.include?(attr)
258
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
259
+ end
260
+
261
+ hash[param] = _to_hash(value)
262
+ end
263
+ hash
264
+ end
265
+
266
+ # Outputs non-array value in the form of hash
267
+ # For object, use to_hash. Otherwise, just return the value
268
+ # @param [Object] value Any valid value
269
+ # @return [Hash] Returns the value in the form of hash
270
+ def _to_hash(value)
271
+ if value.is_a?(Array)
272
+ value.compact.map { |v| _to_hash(v) }
273
+ elsif value.is_a?(Hash)
274
+ {}.tap do |hash|
275
+ value.each { |k, v| hash[k] = _to_hash(v) }
276
+ end
277
+ elsif value.respond_to? :to_hash
278
+ value.to_hash
279
+ else
280
+ value
281
+ end
282
+ end
283
+ end
284
+ end