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
 
@@ -28,6 +28,11 @@ module OpenapiClient
28
28
  # If the account should be verified prior to token creation.
29
29
  attr_accessor :account_verification
30
30
 
31
+ # The unique merchant transaction ID from the request, if supplied.
32
+ attr_accessor :merchant_transaction_id
33
+
34
+ attr_accessor :additional_details
35
+
31
36
  # Attribute mapping from ruby-style variable name to JSON key.
32
37
  def self.attribute_map
33
38
  {
@@ -35,7 +40,9 @@ module OpenapiClient
35
40
  :'store_id' => :'storeId',
36
41
  :'billing_address' => :'billingAddress',
37
42
  :'create_token' => :'createToken',
38
- :'account_verification' => :'accountVerification'
43
+ :'account_verification' => :'accountVerification',
44
+ :'merchant_transaction_id' => :'merchantTransactionId',
45
+ :'additional_details' => :'additionalDetails'
39
46
  }
40
47
  end
41
48
 
@@ -46,7 +53,9 @@ module OpenapiClient
46
53
  :'store_id' => :'String',
47
54
  :'billing_address' => :'Address',
48
55
  :'create_token' => :'CreatePaymentToken',
49
- :'account_verification' => :'Boolean'
56
+ :'account_verification' => :'Boolean',
57
+ :'merchant_transaction_id' => :'String',
58
+ :'additional_details' => :'AdditionalDetails'
50
59
  }
51
60
  end
52
61
 
@@ -91,6 +100,14 @@ module OpenapiClient
91
100
  else
92
101
  self.account_verification = false
93
102
  end
103
+
104
+ if attributes.key?(:'merchant_transaction_id')
105
+ self.merchant_transaction_id = attributes[:'merchant_transaction_id']
106
+ end
107
+
108
+ if attributes.key?(:'additional_details')
109
+ self.additional_details = attributes[:'additional_details']
110
+ end
94
111
  end
95
112
 
96
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -109,6 +126,10 @@ module OpenapiClient
109
126
  invalid_properties.push('invalid value for "create_token", create_token cannot be nil.')
110
127
  end
111
128
 
129
+ if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
130
+ invalid_properties.push('invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.')
131
+ end
132
+
112
133
  invalid_properties
113
134
  end
114
135
 
@@ -118,6 +139,7 @@ module OpenapiClient
118
139
  return false if @request_type.nil?
119
140
  return false if !@store_id.nil? && @store_id.to_s.length > 20
120
141
  return false if @create_token.nil?
142
+ return false if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
121
143
  true
122
144
  end
123
145
 
@@ -131,6 +153,16 @@ module OpenapiClient
131
153
  @store_id = store_id
132
154
  end
133
155
 
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] merchant_transaction_id Value to be assigned
158
+ def merchant_transaction_id=(merchant_transaction_id)
159
+ if !merchant_transaction_id.nil? && merchant_transaction_id.to_s.length > 40
160
+ fail ArgumentError, 'invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.'
161
+ end
162
+
163
+ @merchant_transaction_id = merchant_transaction_id
164
+ end
165
+
134
166
  # Checks equality by comparing each attribute.
135
167
  # @param [Object] Object to be compared
136
168
  def ==(o)
@@ -140,7 +172,9 @@ module OpenapiClient
140
172
  store_id == o.store_id &&
141
173
  billing_address == o.billing_address &&
142
174
  create_token == o.create_token &&
143
- account_verification == o.account_verification
175
+ account_verification == o.account_verification &&
176
+ merchant_transaction_id == o.merchant_transaction_id &&
177
+ additional_details == o.additional_details
144
178
  end
145
179
 
146
180
  # @see the `==` method
@@ -152,7 +186,7 @@ module OpenapiClient
152
186
  # Calculates hash code according to all attributes.
153
187
  # @return [Integer] Hash code
154
188
  def hash
155
- [request_type, store_id, billing_address, create_token, account_verification].hash
189
+ [request_type, store_id, billing_address, create_token, account_verification, merchant_transaction_id, additional_details].hash
156
190
  end
157
191
 
158
192
  # Builds the object from hash
@@ -165,17 +199,17 @@ module OpenapiClient
165
199
  # Builds the object from hash
166
200
  # @param [Hash] attributes Model attributes in the form of hash
167
201
  # @return [Object] Returns the model itself
168
- def build_from_hash(attributes)
202
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
169
203
  return nil unless attributes.is_a?(Hash)
170
- self.class.openapi_types.each_pair do |key, type|
204
+ openapi_types.each_pair do |key, type|
171
205
  if type =~ /\AArray<(.*)>/i
172
206
  # check to ensure the input is an array given that the attribute
173
207
  # is documented as an array but the input is not
174
- if attributes[self.class.attribute_map[key]].is_a?(Array)
175
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
208
+ if attributes[attribute_map[key]].is_a?(Array)
209
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
176
210
  end
177
- elsif !attributes[self.class.attribute_map[key]].nil?
178
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
211
+ elsif !attributes[attribute_map[key]].nil?
212
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
179
213
  end # or else data not found in attributes(hash), not an issue as the data can be optional
180
214
  end
181
215
 
@@ -219,7 +253,12 @@ module OpenapiClient
219
253
  end
220
254
  end
221
255
  else # model
222
- OpenapiClient.const_get(type).build_from_hash(value)
256
+ klass = OpenapiClient.const_get(type)
257
+ if klass.respond_to?(:openapi_discriminator_name)
258
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
259
+ end
260
+
261
+ klass.build_from_hash(value)
223
262
  end
224
263
  end
225
264
 
@@ -237,11 +276,15 @@ module OpenapiClient
237
276
 
238
277
  # Returns the object in the form of hash
239
278
  # @return [Hash] Returns the object in the form of hash
240
- def to_hash
279
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
241
280
  hash = {}
242
- self.class.attribute_map.each_pair do |attr, param|
281
+ attribute_map.each_pair do |attr, param|
243
282
  value = self.send(attr)
244
- next if value.nil?
283
+ if value.nil?
284
+ is_nullable = openapi_nullable.include?(attr)
285
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
286
+ end
287
+
245
288
  hash[param] = _to_hash(value)
246
289
  end
247
290
  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
 
@@ -43,6 +43,12 @@ module OpenapiClient
43
43
  # Client order ID if supplied by client, otherwise the order ID.
44
44
  attr_accessor :order_id
45
45
 
46
+ # The response transaction ID.
47
+ attr_accessor :ipg_transaction_id
48
+
49
+ # The unique merchant transaction ID from the request header, if supplied.
50
+ attr_accessor :merchant_transaction_id
51
+
46
52
  class EnumAttributeValidator
47
53
  attr_reader :datatype
48
54
  attr_reader :allowable_values
@@ -78,7 +84,9 @@ module OpenapiClient
78
84
  :'payment_token' => :'paymentToken',
79
85
  :'payment_card' => :'paymentCard',
80
86
  :'processor' => :'processor',
81
- :'order_id' => :'orderId'
87
+ :'order_id' => :'orderId',
88
+ :'ipg_transaction_id' => :'ipgTransactionId',
89
+ :'merchant_transaction_id' => :'merchantTransactionId'
82
90
  }
83
91
  end
84
92
 
@@ -95,7 +103,9 @@ module OpenapiClient
95
103
  :'payment_token' => :'PaymentTokenDetails',
96
104
  :'payment_card' => :'PaymentCard',
97
105
  :'processor' => :'ProcessorData',
98
- :'order_id' => :'String'
106
+ :'order_id' => :'String',
107
+ :'ipg_transaction_id' => :'String',
108
+ :'merchant_transaction_id' => :'String'
99
109
  }
100
110
  end
101
111
 
@@ -164,12 +174,28 @@ module OpenapiClient
164
174
  if attributes.key?(:'order_id')
165
175
  self.order_id = attributes[:'order_id']
166
176
  end
177
+
178
+ if attributes.key?(:'ipg_transaction_id')
179
+ self.ipg_transaction_id = attributes[:'ipg_transaction_id']
180
+ end
181
+
182
+ if attributes.key?(:'merchant_transaction_id')
183
+ self.merchant_transaction_id = attributes[:'merchant_transaction_id']
184
+ end
167
185
  end
168
186
 
169
187
  # Show invalid properties with the reasons. Usually used together with valid?
170
188
  # @return Array for valid properties with the reasons
171
189
  def list_invalid_properties
172
190
  invalid_properties = Array.new
191
+ if !@ipg_transaction_id.nil? && @ipg_transaction_id.to_s.length > 14
192
+ invalid_properties.push('invalid value for "ipg_transaction_id", the character length must be smaller than or equal to 14.')
193
+ end
194
+
195
+ if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
196
+ invalid_properties.push('invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.')
197
+ end
198
+
173
199
  invalid_properties
174
200
  end
175
201
 
@@ -178,6 +204,8 @@ module OpenapiClient
178
204
  def valid?
179
205
  request_status_validator = EnumAttributeValidator.new('String', ["DELETED", "FAILED", "SUCCESS", "APPROVED", "WAITING", "VALIDATION_FAILED", "DECLINED"])
180
206
  return false unless request_status_validator.valid?(@request_status)
207
+ return false if !@ipg_transaction_id.nil? && @ipg_transaction_id.to_s.length > 14
208
+ return false if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
181
209
  true
182
210
  end
183
211
 
@@ -191,6 +219,26 @@ module OpenapiClient
191
219
  @request_status = request_status
192
220
  end
193
221
 
222
+ # Custom attribute writer method with validation
223
+ # @param [Object] ipg_transaction_id Value to be assigned
224
+ def ipg_transaction_id=(ipg_transaction_id)
225
+ if !ipg_transaction_id.nil? && ipg_transaction_id.to_s.length > 14
226
+ fail ArgumentError, 'invalid value for "ipg_transaction_id", the character length must be smaller than or equal to 14.'
227
+ end
228
+
229
+ @ipg_transaction_id = ipg_transaction_id
230
+ end
231
+
232
+ # Custom attribute writer method with validation
233
+ # @param [Object] merchant_transaction_id Value to be assigned
234
+ def merchant_transaction_id=(merchant_transaction_id)
235
+ if !merchant_transaction_id.nil? && merchant_transaction_id.to_s.length > 40
236
+ fail ArgumentError, 'invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.'
237
+ end
238
+
239
+ @merchant_transaction_id = merchant_transaction_id
240
+ end
241
+
194
242
  # Checks equality by comparing each attribute.
195
243
  # @param [Object] Object to be compared
196
244
  def ==(o)
@@ -206,7 +254,9 @@ module OpenapiClient
206
254
  payment_token == o.payment_token &&
207
255
  payment_card == o.payment_card &&
208
256
  processor == o.processor &&
209
- order_id == o.order_id
257
+ order_id == o.order_id &&
258
+ ipg_transaction_id == o.ipg_transaction_id &&
259
+ merchant_transaction_id == o.merchant_transaction_id
210
260
  end
211
261
 
212
262
  # @see the `==` method
@@ -218,7 +268,7 @@ module OpenapiClient
218
268
  # Calculates hash code according to all attributes.
219
269
  # @return [Integer] Hash code
220
270
  def hash
221
- [client_request_id, api_trace_id, response_type, request_status, request_time, brand, country, payment_token, payment_card, processor, order_id].hash
271
+ [client_request_id, api_trace_id, response_type, request_status, request_time, brand, country, payment_token, payment_card, processor, order_id, ipg_transaction_id, merchant_transaction_id].hash
222
272
  end
223
273
 
224
274
  # Builds the object from hash
@@ -231,17 +281,17 @@ module OpenapiClient
231
281
  # Builds the object from hash
232
282
  # @param [Hash] attributes Model attributes in the form of hash
233
283
  # @return [Object] Returns the model itself
234
- def build_from_hash(attributes)
284
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
235
285
  return nil unless attributes.is_a?(Hash)
236
- self.class.openapi_types.each_pair do |key, type|
286
+ openapi_types.each_pair do |key, type|
237
287
  if type =~ /\AArray<(.*)>/i
238
288
  # check to ensure the input is an array given that the attribute
239
289
  # is documented as an array but the input is not
240
- if attributes[self.class.attribute_map[key]].is_a?(Array)
241
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
290
+ if attributes[attribute_map[key]].is_a?(Array)
291
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
242
292
  end
243
- elsif !attributes[self.class.attribute_map[key]].nil?
244
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
293
+ elsif !attributes[attribute_map[key]].nil?
294
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
245
295
  end # or else data not found in attributes(hash), not an issue as the data can be optional
246
296
  end
247
297
 
@@ -285,7 +335,12 @@ module OpenapiClient
285
335
  end
286
336
  end
287
337
  else # model
288
- OpenapiClient.const_get(type).build_from_hash(value)
338
+ klass = OpenapiClient.const_get(type)
339
+ if klass.respond_to?(:openapi_discriminator_name)
340
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
341
+ end
342
+
343
+ klass.build_from_hash(value)
289
344
  end
290
345
  end
291
346
 
@@ -303,11 +358,15 @@ module OpenapiClient
303
358
 
304
359
  # Returns the object in the form of hash
305
360
  # @return [Hash] Returns the object in the form of hash
306
- def to_hash
361
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
307
362
  hash = {}
308
- self.class.attribute_map.each_pair do |attr, param|
363
+ attribute_map.each_pair do |attr, param|
309
364
  value = self.send(attr)
310
- next if value.nil?
365
+ if value.nil?
366
+ is_nullable = openapi_nullable.include?(attr)
367
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
368
+ end
369
+
311
370
  hash[param] = _to_hash(value)
312
371
  end
313
372
  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
 
@@ -149,17 +149,17 @@ module OpenapiClient
149
149
  # Builds the object from hash
150
150
  # @param [Hash] attributes Model attributes in the form of hash
151
151
  # @return [Object] Returns the model itself
152
- def build_from_hash(attributes)
152
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
153
153
  return nil unless attributes.is_a?(Hash)
154
- self.class.openapi_types.each_pair do |key, type|
154
+ openapi_types.each_pair do |key, type|
155
155
  if type =~ /\AArray<(.*)>/i
156
156
  # check to ensure the input is an array given that the attribute
157
157
  # is documented as an array but the input is not
158
- if attributes[self.class.attribute_map[key]].is_a?(Array)
159
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ if attributes[attribute_map[key]].is_a?(Array)
159
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
160
160
  end
161
- elsif !attributes[self.class.attribute_map[key]].nil?
162
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
+ elsif !attributes[attribute_map[key]].nil?
162
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
163
163
  end # or else data not found in attributes(hash), not an issue as the data can be optional
164
164
  end
165
165
 
@@ -203,7 +203,12 @@ module OpenapiClient
203
203
  end
204
204
  end
205
205
  else # model
206
- OpenapiClient.const_get(type).build_from_hash(value)
206
+ klass = OpenapiClient.const_get(type)
207
+ if klass.respond_to?(:openapi_discriminator_name)
208
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
209
+ end
210
+
211
+ klass.build_from_hash(value)
207
212
  end
208
213
  end
209
214
 
@@ -221,11 +226,15 @@ module OpenapiClient
221
226
 
222
227
  # Returns the object in the form of hash
223
228
  # @return [Hash] Returns the object in the form of hash
224
- def to_hash
229
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
225
230
  hash = {}
226
- self.class.attribute_map.each_pair do |attr, param|
231
+ attribute_map.each_pair do |attr, param|
227
232
  value = self.send(attr)
228
- next if value.nil?
233
+ if value.nil?
234
+ is_nullable = openapi_nullable.include?(attr)
235
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
236
+ end
237
+
229
238
  hash[param] = _to_hash(value)
230
239
  end
231
240
  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
 
@@ -133,17 +133,17 @@ module OpenapiClient
133
133
  # Builds the object from hash
134
134
  # @param [Hash] attributes Model attributes in the form of hash
135
135
  # @return [Object] Returns the model itself
136
- def build_from_hash(attributes)
136
+ def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
137
137
  return nil unless attributes.is_a?(Hash)
138
- self.class.openapi_types.each_pair do |key, type|
138
+ openapi_types.each_pair do |key, type|
139
139
  if type =~ /\AArray<(.*)>/i
140
140
  # check to ensure the input is an array given that the attribute
141
141
  # is documented as an array but the input is not
142
- if attributes[self.class.attribute_map[key]].is_a?(Array)
143
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
142
+ if attributes[attribute_map[key]].is_a?(Array)
143
+ self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
144
144
  end
145
- elsif !attributes[self.class.attribute_map[key]].nil?
146
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
+ elsif !attributes[attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
147
147
  end # or else data not found in attributes(hash), not an issue as the data can be optional
148
148
  end
149
149
 
@@ -187,7 +187,12 @@ module OpenapiClient
187
187
  end
188
188
  end
189
189
  else # model
190
- OpenapiClient.const_get(type).build_from_hash(value)
190
+ klass = OpenapiClient.const_get(type)
191
+ if klass.respond_to?(:openapi_discriminator_name)
192
+ klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
193
+ end
194
+
195
+ klass.build_from_hash(value)
191
196
  end
192
197
  end
193
198
 
@@ -205,11 +210,15 @@ module OpenapiClient
205
210
 
206
211
  # Returns the object in the form of hash
207
212
  # @return [Hash] Returns the object in the form of hash
208
- def to_hash
213
+ def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
209
214
  hash = {}
210
- self.class.attribute_map.each_pair do |attr, param|
215
+ attribute_map.each_pair do |attr, param|
211
216
  value = self.send(attr)
212
- next if value.nil?
217
+ if value.nil?
218
+ is_nullable = openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
213
222
  hash[param] = _to_hash(value)
214
223
  end
215
224
  hash