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,10 +3,10 @@
3
3
 
4
4
  #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
5
5
 
6
- The version of the OpenAPI document: 6.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
 
@@ -14,22 +14,7 @@ require 'date'
14
14
 
15
15
  module OpenapiClient
16
16
  # Request to create sale transaction using payment token.
17
- class PaymentTokenSaleTransaction
18
- # Object name of the primary transaction request.
19
- attr_accessor :request_type
20
-
21
- attr_accessor :transaction_amount
22
-
23
- # An optional outlet ID for clients that support multiple stores in the same app.
24
- attr_accessor :store_id
25
-
26
- # The unique merchant transaction ID from the request header, if supplied.
27
- attr_accessor :merchant_transaction_id
28
-
29
- attr_accessor :transaction_origin
30
-
31
- attr_accessor :order
32
-
17
+ class PaymentTokenSaleTransaction < PrimaryTransaction
33
18
  attr_accessor :payment_method
34
19
 
35
20
  attr_accessor :stored_credentials
@@ -39,35 +24,31 @@ module OpenapiClient
39
24
 
40
25
  attr_accessor :currency_conversion
41
26
 
27
+ attr_accessor :authentication_request
28
+
29
+ attr_accessor :authentication_result
30
+
42
31
  # Attribute mapping from ruby-style variable name to JSON key.
43
32
  def self.attribute_map
44
33
  {
45
- :'request_type' => :'requestType',
46
- :'transaction_amount' => :'transactionAmount',
47
- :'store_id' => :'storeId',
48
- :'merchant_transaction_id' => :'merchantTransactionId',
49
- :'transaction_origin' => :'transactionOrigin',
50
- :'order' => :'order',
51
34
  :'payment_method' => :'paymentMethod',
52
35
  :'stored_credentials' => :'storedCredentials',
53
36
  :'settlement_split' => :'settlementSplit',
54
- :'currency_conversion' => :'currencyConversion'
37
+ :'currency_conversion' => :'currencyConversion',
38
+ :'authentication_request' => :'authenticationRequest',
39
+ :'authentication_result' => :'authenticationResult'
55
40
  }
56
41
  end
57
42
 
58
43
  # Attribute type mapping.
59
44
  def self.openapi_types
60
45
  {
61
- :'request_type' => :'String',
62
- :'transaction_amount' => :'Amount',
63
- :'store_id' => :'String',
64
- :'merchant_transaction_id' => :'String',
65
- :'transaction_origin' => :'TransactionOrigin',
66
- :'order' => :'Order',
67
46
  :'payment_method' => :'PaymentTokenPaymentMethod',
68
47
  :'stored_credentials' => :'StoredCredential',
69
48
  :'settlement_split' => :'Array<SubMerchantSplit>',
70
- :'currency_conversion' => :'CurrencyConversion'
49
+ :'currency_conversion' => :'CurrencyConversion',
50
+ :'authentication_request' => :'AuthenticationRequest',
51
+ :'authentication_result' => :'AuthenticationResult'
71
52
  }
72
53
  end
73
54
 
@@ -94,29 +75,8 @@ module OpenapiClient
94
75
  h[k.to_sym] = v
95
76
  }
96
77
 
97
- if attributes.key?(:'request_type')
98
- self.request_type = attributes[:'request_type']
99
- end
100
-
101
- if attributes.key?(:'transaction_amount')
102
- self.transaction_amount = attributes[:'transaction_amount']
103
- end
104
-
105
- if attributes.key?(:'store_id')
106
- self.store_id = attributes[:'store_id']
107
- end
108
-
109
- if attributes.key?(:'merchant_transaction_id')
110
- self.merchant_transaction_id = attributes[:'merchant_transaction_id']
111
- end
112
-
113
- if attributes.key?(:'transaction_origin')
114
- self.transaction_origin = attributes[:'transaction_origin']
115
- end
116
-
117
- if attributes.key?(:'order')
118
- self.order = attributes[:'order']
119
- end
78
+ # call parent's initialize
79
+ super(attributes)
120
80
 
121
81
  if attributes.key?(:'payment_method')
122
82
  self.payment_method = attributes[:'payment_method']
@@ -135,28 +95,20 @@ module OpenapiClient
135
95
  if attributes.key?(:'currency_conversion')
136
96
  self.currency_conversion = attributes[:'currency_conversion']
137
97
  end
138
- end
139
98
 
140
- # Show invalid properties with the reasons. Usually used together with valid?
141
- # @return Array for valid properties with the reasons
142
- def list_invalid_properties
143
- invalid_properties = Array.new
144
- if @request_type.nil?
145
- invalid_properties.push('invalid value for "request_type", request_type cannot be nil.')
146
- end
147
-
148
- if @transaction_amount.nil?
149
- invalid_properties.push('invalid value for "transaction_amount", transaction_amount cannot be nil.')
150
- end
151
-
152
- if !@store_id.nil? && @store_id.to_s.length > 20
153
- invalid_properties.push('invalid value for "store_id", the character length must be smaller than or equal to 20.')
99
+ if attributes.key?(:'authentication_request')
100
+ self.authentication_request = attributes[:'authentication_request']
154
101
  end
155
102
 
156
- if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
157
- invalid_properties.push('invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.')
103
+ if attributes.key?(:'authentication_result')
104
+ self.authentication_result = attributes[:'authentication_result']
158
105
  end
106
+ end
159
107
 
108
+ # Show invalid properties with the reasons. Usually used together with valid?
109
+ # @return Array for valid properties with the reasons
110
+ def list_invalid_properties
111
+ invalid_properties = super
160
112
  if @payment_method.nil?
161
113
  invalid_properties.push('invalid value for "payment_method", payment_method cannot be nil.')
162
114
  end
@@ -167,32 +119,8 @@ module OpenapiClient
167
119
  # Check to see if the all the properties in the model are valid
168
120
  # @return true if the model is valid
169
121
  def valid?
170
- return false if @request_type.nil?
171
- return false if @transaction_amount.nil?
172
- return false if !@store_id.nil? && @store_id.to_s.length > 20
173
- return false if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
174
122
  return false if @payment_method.nil?
175
- true
176
- end
177
-
178
- # Custom attribute writer method with validation
179
- # @param [Object] store_id Value to be assigned
180
- def store_id=(store_id)
181
- if !store_id.nil? && store_id.to_s.length > 20
182
- fail ArgumentError, 'invalid value for "store_id", the character length must be smaller than or equal to 20.'
183
- end
184
-
185
- @store_id = store_id
186
- end
187
-
188
- # Custom attribute writer method with validation
189
- # @param [Object] merchant_transaction_id Value to be assigned
190
- def merchant_transaction_id=(merchant_transaction_id)
191
- if !merchant_transaction_id.nil? && merchant_transaction_id.to_s.length > 40
192
- fail ArgumentError, 'invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.'
193
- end
194
-
195
- @merchant_transaction_id = merchant_transaction_id
123
+ true && super
196
124
  end
197
125
 
198
126
  # Checks equality by comparing each attribute.
@@ -200,16 +128,12 @@ module OpenapiClient
200
128
  def ==(o)
201
129
  return true if self.equal?(o)
202
130
  self.class == o.class &&
203
- request_type == o.request_type &&
204
- transaction_amount == o.transaction_amount &&
205
- store_id == o.store_id &&
206
- merchant_transaction_id == o.merchant_transaction_id &&
207
- transaction_origin == o.transaction_origin &&
208
- order == o.order &&
209
131
  payment_method == o.payment_method &&
210
132
  stored_credentials == o.stored_credentials &&
211
133
  settlement_split == o.settlement_split &&
212
- currency_conversion == o.currency_conversion
134
+ currency_conversion == o.currency_conversion &&
135
+ authentication_request == o.authentication_request &&
136
+ authentication_result == o.authentication_result && super(o)
213
137
  end
214
138
 
215
139
  # @see the `==` method
@@ -221,7 +145,7 @@ module OpenapiClient
221
145
  # Calculates hash code according to all attributes.
222
146
  # @return [Integer] Hash code
223
147
  def hash
224
- [request_type, transaction_amount, store_id, merchant_transaction_id, transaction_origin, order, payment_method, stored_credentials, settlement_split, currency_conversion].hash
148
+ [payment_method, stored_credentials, settlement_split, currency_conversion, authentication_request, authentication_result].hash
225
149
  end
226
150
 
227
151
  # Builds the object from hash
@@ -234,17 +158,18 @@ module OpenapiClient
234
158
  # Builds the object from hash
235
159
  # @param [Hash] attributes Model attributes in the form of hash
236
160
  # @return [Object] Returns the model itself
237
- def build_from_hash(attributes)
161
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
238
162
  return nil unless attributes.is_a?(Hash)
239
- self.class.openapi_types.each_pair do |key, type|
163
+ super(attributes, self.class.superclass.attribute_map, self.class.superclass.openapi_types)
164
+ openapi_types.each_pair do |key, type|
240
165
  if type =~ /\AArray<(.*)>/i
241
166
  # check to ensure the input is an array given that the attribute
242
167
  # is documented as an array but the input is not
243
- if attributes[self.class.attribute_map[key]].is_a?(Array)
244
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
168
+ if attributes[attribute_map[key]].is_a?(Array)
169
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
245
170
  end
246
- elsif !attributes[self.class.attribute_map[key]].nil?
247
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
171
+ elsif !attributes[attribute_map[key]].nil?
172
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
248
173
  end # or else data not found in attributes(hash), not an issue as the data can be optional
249
174
  end
250
175
 
@@ -288,7 +213,12 @@ module OpenapiClient
288
213
  end
289
214
  end
290
215
  else # model
291
- OpenapiClient.const_get(type).build_from_hash(value)
216
+ klass = OpenapiClient.const_get(type)
217
+ if klass.respond_to?(:openapi_discriminator_name)
218
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
219
+ end
220
+
221
+ klass.build_from_hash(value)
292
222
  end
293
223
  end
294
224
 
@@ -306,11 +236,15 @@ module OpenapiClient
306
236
 
307
237
  # Returns the object in the form of hash
308
238
  # @return [Hash] Returns the object in the form of hash
309
- def to_hash
310
- hash = {}
311
- self.class.attribute_map.each_pair do |attr, param|
239
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
240
+ hash = super(self.class.superclass.attribute_map, openapi_nullable)
241
+ attribute_map.each_pair do |attr, param|
312
242
  value = self.send(attr)
313
- next if value.nil?
243
+ if value.nil?
244
+ is_nullable = openapi_nullable.include?(attr)
245
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
246
+ end
247
+
314
248
  hash[param] = _to_hash(value)
315
249
  end
316
250
  hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
5
5
 
6
- The version of the OpenAPI document: 6.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
 
@@ -23,13 +23,19 @@ module OpenapiClient
23
23
 
24
24
  attr_accessor :currency_conversion
25
25
 
26
+ attr_accessor :authentication_request
27
+
28
+ attr_accessor :authentication_result
29
+
26
30
  # Attribute mapping from ruby-style variable name to JSON key.
27
31
  def self.attribute_map
28
32
  {
29
33
  :'payment_method' => :'paymentMethod',
30
34
  :'stored_credentials' => :'storedCredentials',
31
35
  :'settlement_split' => :'settlementSplit',
32
- :'currency_conversion' => :'currencyConversion'
36
+ :'currency_conversion' => :'currencyConversion',
37
+ :'authentication_request' => :'authenticationRequest',
38
+ :'authentication_result' => :'authenticationResult'
33
39
  }
34
40
  end
35
41
 
@@ -39,7 +45,9 @@ module OpenapiClient
39
45
  :'payment_method' => :'PaymentTokenPaymentMethod',
40
46
  :'stored_credentials' => :'StoredCredential',
41
47
  :'settlement_split' => :'Array<SubMerchantSplit>',
42
- :'currency_conversion' => :'CurrencyConversion'
48
+ :'currency_conversion' => :'CurrencyConversion',
49
+ :'authentication_request' => :'AuthenticationRequest',
50
+ :'authentication_result' => :'AuthenticationResult'
43
51
  }
44
52
  end
45
53
 
@@ -75,6 +83,14 @@ module OpenapiClient
75
83
  if attributes.key?(:'currency_conversion')
76
84
  self.currency_conversion = attributes[:'currency_conversion']
77
85
  end
86
+
87
+ if attributes.key?(:'authentication_request')
88
+ self.authentication_request = attributes[:'authentication_request']
89
+ end
90
+
91
+ if attributes.key?(:'authentication_result')
92
+ self.authentication_result = attributes[:'authentication_result']
93
+ end
78
94
  end
79
95
 
80
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -103,7 +119,9 @@ module OpenapiClient
103
119
  payment_method == o.payment_method &&
104
120
  stored_credentials == o.stored_credentials &&
105
121
  settlement_split == o.settlement_split &&
106
- currency_conversion == o.currency_conversion
122
+ currency_conversion == o.currency_conversion &&
123
+ authentication_request == o.authentication_request &&
124
+ authentication_result == o.authentication_result
107
125
  end
108
126
 
109
127
  # @see the `==` method
@@ -115,7 +133,7 @@ module OpenapiClient
115
133
  # Calculates hash code according to all attributes.
116
134
  # @return [Integer] Hash code
117
135
  def hash
118
- [payment_method, stored_credentials, settlement_split, currency_conversion].hash
136
+ [payment_method, stored_credentials, settlement_split, currency_conversion, authentication_request, authentication_result].hash
119
137
  end
120
138
 
121
139
  # Builds the object from hash
@@ -128,17 +146,17 @@ module OpenapiClient
128
146
  # Builds the object from hash
129
147
  # @param [Hash] attributes Model attributes in the form of hash
130
148
  # @return [Object] Returns the model itself
131
- def build_from_hash(attributes)
149
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
132
150
  return nil unless attributes.is_a?(Hash)
133
- self.class.openapi_types.each_pair do |key, type|
151
+ openapi_types.each_pair do |key, type|
134
152
  if type =~ /\AArray<(.*)>/i
135
153
  # check to ensure the input is an array given that the attribute
136
154
  # is documented as an array but the input is not
137
- if attributes[self.class.attribute_map[key]].is_a?(Array)
138
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
155
+ if attributes[attribute_map[key]].is_a?(Array)
156
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
139
157
  end
140
- elsif !attributes[self.class.attribute_map[key]].nil?
141
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
+ elsif !attributes[attribute_map[key]].nil?
159
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
142
160
  end # or else data not found in attributes(hash), not an issue as the data can be optional
143
161
  end
144
162
 
@@ -182,7 +200,12 @@ module OpenapiClient
182
200
  end
183
201
  end
184
202
  else # model
185
- OpenapiClient.const_get(type).build_from_hash(value)
203
+ klass = OpenapiClient.const_get(type)
204
+ if klass.respond_to?(:openapi_discriminator_name)
205
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
206
+ end
207
+
208
+ klass.build_from_hash(value)
186
209
  end
187
210
  end
188
211
 
@@ -200,11 +223,15 @@ module OpenapiClient
200
223
 
201
224
  # Returns the object in the form of hash
202
225
  # @return [Hash] Returns the object in the form of hash
203
- def to_hash
226
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
204
227
  hash = {}
205
- self.class.attribute_map.each_pair do |attr, param|
228
+ attribute_map.each_pair do |attr, param|
206
229
  value = self.send(attr)
207
- next if value.nil?
230
+ if value.nil?
231
+ is_nullable = openapi_nullable.include?(attr)
232
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
233
+ end
234
+
208
235
  hash[param] = _to_hash(value)
209
236
  end
210
237
  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
+ class PaymentTokenUpdateResponse
17
+ # Echoes back the value in the request header for tracking.
18
+ attr_accessor :client_request_id
19
+
20
+ # Request identifier in API, can be used to request logs from the support team.
21
+ attr_accessor :api_trace_id
22
+
23
+ attr_accessor :response_type
24
+
25
+ # The status of the request.
26
+ attr_accessor :request_status
27
+
28
+ # Time of the request.
29
+ attr_accessor :request_time
30
+
31
+ attr_accessor :errors
32
+
33
+ class EnumAttributeValidator
34
+ attr_reader :datatype
35
+ attr_reader :allowable_values
36
+
37
+ def initialize(datatype, allowable_values)
38
+ @allowable_values = allowable_values.map do |value|
39
+ case datatype.to_s
40
+ when /Integer/i
41
+ value.to_i
42
+ when /Float/i
43
+ value.to_f
44
+ else
45
+ value
46
+ end
47
+ end
48
+ end
49
+
50
+ def valid?(value)
51
+ !value || allowable_values.include?(value)
52
+ end
53
+ end
54
+
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+ :'client_request_id' => :'clientRequestId',
59
+ :'api_trace_id' => :'apiTraceId',
60
+ :'response_type' => :'responseType',
61
+ :'request_status' => :'requestStatus',
62
+ :'request_time' => :'requestTime',
63
+ :'errors' => :'errors'
64
+ }
65
+ end
66
+
67
+ # Attribute type mapping.
68
+ def self.openapi_types
69
+ {
70
+ :'client_request_id' => :'String',
71
+ :'api_trace_id' => :'String',
72
+ :'response_type' => :'ResponseType',
73
+ :'request_status' => :'String',
74
+ :'request_time' => :'Integer',
75
+ :'errors' => :'Array<Error>'
76
+ }
77
+ end
78
+
79
+ # List of class defined in allOf (OpenAPI v3)
80
+ def self.openapi_all_of
81
+ [
82
+ :'BasicResponse'
83
+ ]
84
+ end
85
+
86
+ # Initializes the object
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ def initialize(attributes = {})
89
+ if (!attributes.is_a?(Hash))
90
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::PaymentTokenUpdateResponse` initialize method"
91
+ end
92
+
93
+ # check to see if the attribute exists and convert string to symbol for hash key
94
+ attributes = attributes.each_with_object({}) { |(k, v), h|
95
+ if (!self.class.attribute_map.key?(k.to_sym))
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::PaymentTokenUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
97
+ end
98
+ h[k.to_sym] = v
99
+ }
100
+
101
+ if attributes.key?(:'client_request_id')
102
+ self.client_request_id = attributes[:'client_request_id']
103
+ end
104
+
105
+ if attributes.key?(:'api_trace_id')
106
+ self.api_trace_id = attributes[:'api_trace_id']
107
+ end
108
+
109
+ if attributes.key?(:'response_type')
110
+ self.response_type = attributes[:'response_type']
111
+ end
112
+
113
+ if attributes.key?(:'request_status')
114
+ self.request_status = attributes[:'request_status']
115
+ end
116
+
117
+ if attributes.key?(:'request_time')
118
+ self.request_time = attributes[:'request_time']
119
+ end
120
+
121
+ if attributes.key?(:'errors')
122
+ if (value = attributes[:'errors']).is_a?(Array)
123
+ self.errors = value
124
+ end
125
+ end
126
+ end
127
+
128
+ # Show invalid properties with the reasons. Usually used together with valid?
129
+ # @return Array for valid properties with the reasons
130
+ def list_invalid_properties
131
+ invalid_properties = Array.new
132
+ invalid_properties
133
+ end
134
+
135
+ # Check to see if the all the properties in the model are valid
136
+ # @return true if the model is valid
137
+ def valid?
138
+ request_status_validator = EnumAttributeValidator.new('String', ["FAILED", "SUCCESS", "PARTIAL_SUCCESS"])
139
+ return false unless request_status_validator.valid?(@request_status)
140
+ true
141
+ end
142
+
143
+ # Custom attribute writer method checking allowed values (enum).
144
+ # @param [Object] request_status Object to be assigned
145
+ def request_status=(request_status)
146
+ validator = EnumAttributeValidator.new('String', ["FAILED", "SUCCESS", "PARTIAL_SUCCESS"])
147
+ unless validator.valid?(request_status)
148
+ fail ArgumentError, "invalid value for \"request_status\", must be one of #{validator.allowable_values}."
149
+ end
150
+ @request_status = request_status
151
+ end
152
+
153
+ # Checks equality by comparing each attribute.
154
+ # @param [Object] Object to be compared
155
+ def ==(o)
156
+ return true if self.equal?(o)
157
+ self.class == o.class &&
158
+ client_request_id == o.client_request_id &&
159
+ api_trace_id == o.api_trace_id &&
160
+ response_type == o.response_type &&
161
+ request_status == o.request_status &&
162
+ request_time == o.request_time &&
163
+ errors == o.errors
164
+ end
165
+
166
+ # @see the `==` method
167
+ # @param [Object] Object to be compared
168
+ def eql?(o)
169
+ self == o
170
+ end
171
+
172
+ # Calculates hash code according to all attributes.
173
+ # @return [Integer] Hash code
174
+ def hash
175
+ [client_request_id, api_trace_id, response_type, request_status, request_time, errors].hash
176
+ end
177
+
178
+ # Builds the object from hash
179
+ # @param [Hash] attributes Model attributes in the form of hash
180
+ # @return [Object] Returns the model itself
181
+ def self.build_from_hash(attributes)
182
+ new.build_from_hash(attributes)
183
+ end
184
+
185
+ # Builds the object from hash
186
+ # @param [Hash] attributes Model attributes in the form of hash
187
+ # @return [Object] Returns the model itself
188
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
189
+ return nil unless attributes.is_a?(Hash)
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 = {}
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