first_data_gateway 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (455) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +2 -2
  4. data/docs/AccountVerificationRequest.md +2 -0
  5. data/docs/AdditionalDetails.md +7 -1
  6. data/docs/AdditionalTransactionDetails.md +3 -1
  7. data/docs/ChinaDomestic.md +3 -1
  8. data/docs/CurrencyConversionResponse.md +19 -0
  9. data/docs/DecryptedApplePay.md +2 -6
  10. data/docs/DecryptedGooglePay.md +2 -6
  11. data/docs/DecryptedSamsungPay.md +2 -6
  12. data/docs/DisbursementTransactionType.md +1 -2
  13. data/docs/{ExchangeRateResponseAllOf.md → ExchangeRateDetails.md} +7 -11
  14. data/docs/ExchangeRateResponse.md +4 -20
  15. data/docs/FraudOrder.md +3 -1
  16. data/docs/FraudOrderItems.md +4 -4
  17. data/docs/FundingTransactionType.md +1 -2
  18. data/docs/PaymentCardSaleTransaction.md +1 -3
  19. data/docs/PaymentCardSaleTransactionAllOf.md +1 -3
  20. data/docs/PaymentTokenizationErrorResponse.md +4 -0
  21. data/docs/PaymentTokenizationRequest.md +2 -0
  22. data/docs/PaymentTokenizationResponse.md +5 -1
  23. data/docs/ProcessorData.md +3 -1
  24. data/docs/Receipt.md +19 -0
  25. data/docs/ReceiptRequestInfo.md +21 -0
  26. data/docs/ScoreOnlyResponse.md +3 -5
  27. data/docs/ScoreOnlyResponseFraudScore.md +3 -1
  28. data/docs/Secure3D10AuthenticationRequest.md +1 -2
  29. data/docs/Secure3D21AuthenticationRequest.md +2 -2
  30. data/docs/Secure3D21AuthenticationRequestAllOf.md +2 -2
  31. data/docs/SoftDescriptor.md +5 -1
  32. data/docs/TeleCheckCBPPaymentMethod.md +1 -2
  33. data/docs/TransactionErrorResponse.md +2 -0
  34. data/docs/TransactionResponse.md +3 -1
  35. data/docs/VoidPreAuthTransactions.md +1 -2
  36. data/docs/VoidTransaction.md +1 -2
  37. data/first_data_gateway.gemspec +4 -4
  38. data/lib/openapi_client.rb +11 -37
  39. data/lib/openapi_client/api/authentication_api.rb +4 -4
  40. data/lib/openapi_client/api/currency_conversion_api.rb +4 -4
  41. data/lib/openapi_client/api/fraud_detect_api.rb +8 -8
  42. data/lib/openapi_client/api/information_lookup_api.rb +6 -6
  43. data/lib/openapi_client/api/order_api.rb +6 -6
  44. data/lib/openapi_client/api/payment_api.rb +7 -7
  45. data/lib/openapi_client/api/payment_schedules_api.rb +2 -2
  46. data/lib/openapi_client/api/payment_token_api.rb +2 -2
  47. data/lib/openapi_client/api/payment_url_api.rb +2 -2
  48. data/lib/openapi_client/api/verification_api.rb +2 -2
  49. data/lib/openapi_client/api_client.rb +7 -9
  50. data/lib/openapi_client/api_error.rb +2 -2
  51. data/lib/openapi_client/configuration.rb +4 -4
  52. data/lib/openapi_client/models/access_token_request.rb +3 -9
  53. data/lib/openapi_client/models/access_token_response.rb +3 -9
  54. data/lib/openapi_client/models/account_info_lookup_request.rb +3 -9
  55. data/lib/openapi_client/models/account_updater_response.rb +3 -9
  56. data/lib/openapi_client/models/account_verification_request.rb +29 -10
  57. data/lib/openapi_client/models/ach_credit_transaction.rb +4 -10
  58. data/lib/openapi_client/models/ach_post_auth_transaction.rb +4 -10
  59. data/lib/openapi_client/models/ach_post_auth_transaction_all_of.rb +3 -9
  60. data/lib/openapi_client/models/ach_pre_auth_transaction.rb +4 -10
  61. data/lib/openapi_client/models/ach_pre_auth_transaction_all_of.rb +3 -9
  62. data/lib/openapi_client/models/ach_recurring_type.rb +2 -2
  63. data/lib/openapi_client/models/ach_response.rb +11 -17
  64. data/lib/openapi_client/models/ach_return_transaction.rb +4 -10
  65. data/lib/openapi_client/models/ach_sale_transaction.rb +4 -10
  66. data/lib/openapi_client/models/ach_void_transaction.rb +4 -10
  67. data/lib/openapi_client/models/acs_response.rb +3 -9
  68. data/lib/openapi_client/models/additional_amount_rate.rb +3 -9
  69. data/lib/openapi_client/models/additional_details.rb +88 -13
  70. data/lib/openapi_client/models/additional_transaction_details.rb +19 -13
  71. data/lib/openapi_client/models/address.rb +3 -9
  72. data/lib/openapi_client/models/airline.rb +3 -9
  73. data/lib/openapi_client/models/airline_ancillary_service_category.rb +3 -9
  74. data/lib/openapi_client/models/airline_travel_route.rb +3 -9
  75. data/lib/openapi_client/models/ali_pay.rb +3 -9
  76. data/lib/openapi_client/models/ali_pay_payment_method.rb +5 -10
  77. data/lib/openapi_client/models/ali_pay_payment_method_all_of.rb +3 -9
  78. data/lib/openapi_client/models/ali_pay_sale_transaction.rb +4 -10
  79. data/lib/openapi_client/models/ali_pay_sale_transaction_all_of.rb +3 -9
  80. data/lib/openapi_client/models/amount.rb +22 -9
  81. data/lib/openapi_client/models/amount_components.rb +3 -9
  82. data/lib/openapi_client/models/authentication_request.rb +3 -9
  83. data/lib/openapi_client/models/authentication_result.rb +3 -9
  84. data/lib/openapi_client/models/authentication_update_request.rb +3 -9
  85. data/lib/openapi_client/models/avs_response.rb +3 -9
  86. data/lib/openapi_client/models/background.rb +3 -9
  87. data/lib/openapi_client/models/background_color.rb +3 -9
  88. data/lib/openapi_client/models/bancontact_qr.rb +3 -9
  89. data/lib/openapi_client/models/basic_response.rb +3 -9
  90. data/lib/openapi_client/models/billing.rb +3 -9
  91. data/lib/openapi_client/models/billing_address.rb +3 -9
  92. data/lib/openapi_client/models/block_card.rb +3 -9
  93. data/lib/openapi_client/models/block_domain.rb +3 -9
  94. data/lib/openapi_client/models/block_ip_address.rb +3 -9
  95. data/lib/openapi_client/models/block_name.rb +3 -9
  96. data/lib/openapi_client/models/blocked_card_number.rb +3 -9
  97. data/lib/openapi_client/models/blocked_items.rb +3 -9
  98. data/lib/openapi_client/models/body.rb +3 -9
  99. data/lib/openapi_client/models/borders.rb +3 -9
  100. data/lib/openapi_client/models/branding_style_configuration_request.rb +3 -9
  101. data/lib/openapi_client/models/branding_style_configuration_response.rb +4 -11
  102. data/lib/openapi_client/models/branding_style_configuration_result.rb +3 -9
  103. data/lib/openapi_client/models/button.rb +3 -9
  104. data/lib/openapi_client/models/car_rental.rb +3 -9
  105. data/lib/openapi_client/models/car_rental_extra_charges.rb +3 -9
  106. data/lib/openapi_client/models/card.rb +3 -9
  107. data/lib/openapi_client/models/card_function.rb +2 -2
  108. data/lib/openapi_client/models/card_info.rb +3 -9
  109. data/lib/openapi_client/models/card_info_lookup_request.rb +3 -9
  110. data/lib/openapi_client/models/card_info_lookup_response.rb +4 -11
  111. data/lib/openapi_client/models/card_verification_request.rb +3 -9
  112. data/lib/openapi_client/models/china_domestic.rb +32 -13
  113. data/lib/openapi_client/models/china_domestic_payment_method.rb +5 -10
  114. data/lib/openapi_client/models/china_domestic_payment_method_all_of.rb +3 -9
  115. data/lib/openapi_client/models/china_pn_r_sale_transaction.rb +4 -10
  116. data/lib/openapi_client/models/china_pn_r_sale_transaction_all_of.rb +3 -9
  117. data/lib/openapi_client/models/classic_mode.rb +3 -9
  118. data/lib/openapi_client/models/clearing_details.rb +3 -9
  119. data/lib/openapi_client/models/clearing_element.rb +3 -9
  120. data/lib/openapi_client/models/client_locale.rb +3 -9
  121. data/lib/openapi_client/models/client_registration.rb +3 -10
  122. data/lib/openapi_client/models/combined_mode.rb +3 -9
  123. data/lib/openapi_client/models/connect_mode.rb +2 -2
  124. data/lib/openapi_client/models/contact.rb +3 -9
  125. data/lib/openapi_client/models/content.rb +3 -9
  126. data/lib/openapi_client/models/country_profile.rb +3 -9
  127. data/lib/openapi_client/models/create_payment_token.rb +3 -9
  128. data/lib/openapi_client/models/currency_conversion.rb +3 -9
  129. data/lib/openapi_client/models/{disbursement_transaction_type_all_of.rb → currency_conversion_response.rb} +24 -24
  130. data/lib/openapi_client/models/customer.rb +3 -9
  131. data/lib/openapi_client/models/customer_address.rb +3 -10
  132. data/lib/openapi_client/models/dcc.rb +4 -10
  133. data/lib/openapi_client/models/dcc_all_of.rb +3 -9
  134. data/lib/openapi_client/models/dcc_exchange_rate_request.rb +4 -10
  135. data/lib/openapi_client/models/dcc_exchange_rate_request_all_of.rb +3 -9
  136. data/lib/openapi_client/models/decrypted_apple_pay.rb +13 -88
  137. data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method.rb +4 -10
  138. data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method_all_of.rb +3 -9
  139. data/lib/openapi_client/models/decrypted_google_pay.rb +13 -88
  140. data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method.rb +4 -10
  141. data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method_all_of.rb +3 -9
  142. data/lib/openapi_client/models/decrypted_samsung_pay.rb +13 -88
  143. data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method.rb +4 -10
  144. data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method_all_of.rb +3 -9
  145. data/lib/openapi_client/models/delete_branding_style_configuration_response.rb +4 -11
  146. data/lib/openapi_client/models/device.rb +3 -9
  147. data/lib/openapi_client/models/disbursement.rb +3 -9
  148. data/lib/openapi_client/models/disbursement_transaction_type.rb +7 -28
  149. data/lib/openapi_client/models/document.rb +3 -9
  150. data/lib/openapi_client/models/dynamic_pricing.rb +4 -10
  151. data/lib/openapi_client/models/dynamic_pricing_all_of.rb +3 -9
  152. data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request.rb +4 -10
  153. data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request_all_of.rb +3 -9
  154. data/lib/openapi_client/models/email_notification_data.rb +3 -9
  155. data/lib/openapi_client/models/encrypted_apple_pay.rb +3 -9
  156. data/lib/openapi_client/models/encrypted_apple_pay_header.rb +3 -9
  157. data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method.rb +4 -10
  158. data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method_all_of.rb +3 -9
  159. data/lib/openapi_client/models/encrypted_google_pay.rb +3 -9
  160. data/lib/openapi_client/models/encrypted_google_pay_data.rb +3 -9
  161. data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method.rb +4 -10
  162. data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method_all_of.rb +3 -9
  163. data/lib/openapi_client/models/encrypted_samsung_pay.rb +3 -9
  164. data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method.rb +4 -10
  165. data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method_all_of.rb +3 -9
  166. data/lib/openapi_client/models/endpoint_response.rb +3 -9
  167. data/lib/openapi_client/models/error.rb +3 -9
  168. data/lib/openapi_client/models/error_details.rb +3 -9
  169. data/lib/openapi_client/models/error_message.rb +3 -9
  170. data/lib/openapi_client/models/error_response.rb +4 -11
  171. data/lib/openapi_client/models/{exchange_rate_response_all_of.rb → exchange_rate_details.rb} +11 -36
  172. data/lib/openapi_client/models/exchange_rate_request.rb +3 -9
  173. data/lib/openapi_client/models/exchange_rate_response.rb +12 -100
  174. data/lib/openapi_client/models/expiration.rb +5 -11
  175. data/lib/openapi_client/models/font_face.rb +2 -2
  176. data/lib/openapi_client/models/font_properties.rb +3 -9
  177. data/lib/openapi_client/models/font_weight.rb +2 -2
  178. data/lib/openapi_client/models/footer.rb +3 -9
  179. data/lib/openapi_client/models/fraud_address.rb +3 -9
  180. data/lib/openapi_client/models/fraud_order.rb +3 -9
  181. data/lib/openapi_client/models/fraud_order_items.rb +3 -9
  182. data/lib/openapi_client/models/fraud_registration.rb +3 -9
  183. data/lib/openapi_client/models/fraud_registration_card.rb +3 -9
  184. data/lib/openapi_client/models/fraud_registration_device.rb +3 -9
  185. data/lib/openapi_client/models/fraud_registration_device_items.rb +3 -9
  186. data/lib/openapi_client/models/fraud_registration_error.rb +3 -9
  187. data/lib/openapi_client/models/fraud_registration_response.rb +4 -10
  188. data/lib/openapi_client/models/fraud_score.rb +3 -9
  189. data/lib/openapi_client/models/fraud_settings.rb +3 -9
  190. data/lib/openapi_client/models/fraud_settings_response.rb +4 -11
  191. data/lib/openapi_client/models/frequency.rb +3 -9
  192. data/lib/openapi_client/models/funding_transaction_type.rb +7 -28
  193. data/lib/openapi_client/models/header.rb +3 -9
  194. data/lib/openapi_client/models/hover.rb +3 -9
  195. data/lib/openapi_client/models/id_info.rb +3 -9
  196. data/lib/openapi_client/models/industry_specific_extensions.rb +3 -9
  197. data/lib/openapi_client/models/initiate_clearing_response.rb +3 -9
  198. data/lib/openapi_client/models/initiate_clearing_response_all_of.rb +3 -9
  199. data/lib/openapi_client/models/installment_options.rb +3 -9
  200. data/lib/openapi_client/models/issuer_response.rb +3 -9
  201. data/lib/openapi_client/models/items.rb +3 -9
  202. data/lib/openapi_client/models/location.rb +3 -9
  203. data/lib/openapi_client/models/lockout_time.rb +3 -9
  204. data/lib/openapi_client/models/lodging.rb +3 -9
  205. data/lib/openapi_client/models/lodging_extra_charges.rb +3 -9
  206. data/lib/openapi_client/models/logo.rb +3 -9
  207. data/lib/openapi_client/models/loyalty.rb +3 -9
  208. data/lib/openapi_client/models/masterpass_wallet_payment_method.rb +4 -10
  209. data/lib/openapi_client/models/masterpass_wallet_payment_method_all_of.rb +3 -9
  210. data/lib/openapi_client/models/maximum_purchase_amount.rb +3 -9
  211. data/lib/openapi_client/models/mcc6012.rb +3 -9
  212. data/lib/openapi_client/models/merchant.rb +3 -9
  213. data/lib/openapi_client/models/method.rb +3 -9
  214. data/lib/openapi_client/models/mobile.rb +3 -9
  215. data/lib/openapi_client/models/mobile_header_area.rb +3 -9
  216. data/lib/openapi_client/models/order.rb +3 -9
  217. data/lib/openapi_client/models/order_error_response.rb +3 -10
  218. data/lib/openapi_client/models/order_response.rb +4 -11
  219. data/lib/openapi_client/models/pay_pal.rb +3 -9
  220. data/lib/openapi_client/models/pay_pal_payment_method.rb +5 -10
  221. data/lib/openapi_client/models/pay_pal_payment_method_all_of.rb +3 -9
  222. data/lib/openapi_client/models/payment.rb +3 -9
  223. data/lib/openapi_client/models/payment_card.rb +10 -16
  224. data/lib/openapi_client/models/payment_card_credit_transaction.rb +4 -10
  225. data/lib/openapi_client/models/payment_card_disbursement_transaction.rb +4 -10
  226. data/lib/openapi_client/models/payment_card_disbursement_transaction_all_of.rb +3 -9
  227. data/lib/openapi_client/models/payment_card_forced_ticket_transaction.rb +4 -10
  228. data/lib/openapi_client/models/payment_card_forced_ticket_transaction_all_of.rb +3 -9
  229. data/lib/openapi_client/models/payment_card_info_lookup_request.rb +4 -10
  230. data/lib/openapi_client/models/payment_card_info_lookup_request_all_of.rb +3 -9
  231. data/lib/openapi_client/models/payment_card_payer_auth_transaction.rb +4 -10
  232. data/lib/openapi_client/models/payment_card_payer_auth_transaction_all_of.rb +3 -9
  233. data/lib/openapi_client/models/payment_card_payment_method.rb +5 -10
  234. data/lib/openapi_client/models/payment_card_payment_method_all_of.rb +3 -9
  235. data/lib/openapi_client/models/payment_card_payment_token_update_request.rb +3 -9
  236. data/lib/openapi_client/models/payment_card_payment_tokenization_request.rb +4 -10
  237. data/lib/openapi_client/models/payment_card_payment_tokenization_request_all_of.rb +3 -9
  238. data/lib/openapi_client/models/payment_card_pre_auth_transaction.rb +5 -10
  239. data/lib/openapi_client/models/payment_card_pre_auth_transaction_all_of.rb +3 -9
  240. data/lib/openapi_client/models/payment_card_sale_transaction.rb +7 -25
  241. data/lib/openapi_client/models/payment_card_sale_transaction_all_of.rb +4 -24
  242. data/lib/openapi_client/models/payment_card_verification_request.rb +4 -10
  243. data/lib/openapi_client/models/payment_card_verification_request_all_of.rb +3 -9
  244. data/lib/openapi_client/models/payment_device.rb +3 -9
  245. data/lib/openapi_client/models/payment_device_credit_transaction.rb +4 -10
  246. data/lib/openapi_client/models/payment_device_credit_transaction_all_of.rb +3 -9
  247. data/lib/openapi_client/models/payment_device_disbursement_transaction.rb +4 -10
  248. data/lib/openapi_client/models/payment_device_disbursement_transaction_all_of.rb +3 -9
  249. data/lib/openapi_client/models/payment_device_payment_method.rb +5 -10
  250. data/lib/openapi_client/models/payment_device_payment_method_all_of.rb +3 -9
  251. data/lib/openapi_client/models/payment_device_payment_tokenization_request.rb +4 -10
  252. data/lib/openapi_client/models/payment_device_payment_tokenization_request_all_of.rb +3 -9
  253. data/lib/openapi_client/models/payment_device_pre_auth_transaction.rb +4 -10
  254. data/lib/openapi_client/models/payment_device_pre_auth_transaction_all_of.rb +3 -9
  255. data/lib/openapi_client/models/payment_device_sale_transaction.rb +4 -10
  256. data/lib/openapi_client/models/payment_device_sale_transaction_all_of.rb +3 -9
  257. data/lib/openapi_client/models/payment_facilitator.rb +3 -9
  258. data/lib/openapi_client/models/payment_method_details.rb +3 -9
  259. data/lib/openapi_client/models/payment_method_payment_schedules_request.rb +4 -10
  260. data/lib/openapi_client/models/payment_method_payment_schedules_request_all_of.rb +3 -9
  261. data/lib/openapi_client/models/payment_method_type.rb +2 -2
  262. data/lib/openapi_client/models/payment_registration.rb +4 -11
  263. data/lib/openapi_client/models/payment_schedules_error_response.rb +3 -10
  264. data/lib/openapi_client/models/payment_schedules_request.rb +3 -9
  265. data/lib/openapi_client/models/payment_schedules_response.rb +4 -11
  266. data/lib/openapi_client/models/payment_token_credit_transaction.rb +4 -10
  267. data/lib/openapi_client/models/payment_token_credit_transaction_all_of.rb +3 -9
  268. data/lib/openapi_client/models/payment_token_details.rb +3 -9
  269. data/lib/openapi_client/models/payment_token_details_all_of.rb +3 -9
  270. data/lib/openapi_client/models/payment_token_disbursement_transaction.rb +4 -10
  271. data/lib/openapi_client/models/payment_token_disbursement_transaction_all_of.rb +3 -9
  272. data/lib/openapi_client/models/payment_token_info_lookup_request.rb +4 -10
  273. data/lib/openapi_client/models/payment_token_info_lookup_request_all_of.rb +3 -9
  274. data/lib/openapi_client/models/payment_token_payment_method.rb +4 -9
  275. data/lib/openapi_client/models/payment_token_payment_method_all_of.rb +3 -9
  276. data/lib/openapi_client/models/payment_token_pre_auth_transaction.rb +4 -10
  277. data/lib/openapi_client/models/payment_token_pre_auth_transaction_all_of.rb +3 -9
  278. data/lib/openapi_client/models/payment_token_sale_transaction.rb +4 -10
  279. data/lib/openapi_client/models/payment_token_sale_transaction_all_of.rb +3 -9
  280. data/lib/openapi_client/models/payment_token_update_response.rb +4 -11
  281. data/lib/openapi_client/models/payment_token_verification_request.rb +4 -10
  282. data/lib/openapi_client/models/payment_token_verification_request_all_of.rb +3 -9
  283. data/lib/openapi_client/models/payment_tokenization_error_response.rb +54 -11
  284. data/lib/openapi_client/models/payment_tokenization_request.rb +29 -10
  285. data/lib/openapi_client/models/payment_tokenization_response.rb +58 -15
  286. data/lib/openapi_client/models/payment_url_detail.rb +3 -9
  287. data/lib/openapi_client/models/payment_url_detail_response.rb +4 -11
  288. data/lib/openapi_client/models/payment_url_error_response.rb +3 -10
  289. data/lib/openapi_client/models/payment_url_request.rb +3 -9
  290. data/lib/openapi_client/models/payment_url_response.rb +4 -11
  291. data/lib/openapi_client/models/payment_url_status.rb +2 -2
  292. data/lib/openapi_client/models/paypal_credit_transaction.rb +4 -10
  293. data/lib/openapi_client/models/paypal_credit_transaction_all_of.rb +3 -9
  294. data/lib/openapi_client/models/phone.rb +3 -9
  295. data/lib/openapi_client/models/post_auth_transaction.rb +4 -10
  296. data/lib/openapi_client/models/post_auth_transaction_all_of.rb +3 -9
  297. data/lib/openapi_client/models/primary.rb +3 -9
  298. data/lib/openapi_client/models/primary_transaction.rb +3 -9
  299. data/lib/openapi_client/models/processor_data.rb +17 -13
  300. data/lib/openapi_client/models/properties.rb +3 -9
  301. data/lib/openapi_client/models/purchase_cards.rb +3 -9
  302. data/lib/openapi_client/models/purchase_cards_level2.rb +3 -9
  303. data/lib/openapi_client/models/purchase_cards_level3.rb +3 -9
  304. data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +3 -9
  305. data/lib/openapi_client/models/{card_info_lookup_response_all_of.rb → receipt.rb} +42 -37
  306. data/lib/openapi_client/models/{payment_token_update_response_all_of.rb → receipt_request_info.rb} +44 -43
  307. data/lib/openapi_client/models/receiver_info.rb +3 -9
  308. data/lib/openapi_client/models/recurring_payment_details.rb +3 -9
  309. data/lib/openapi_client/models/recurring_payment_details_response.rb +4 -11
  310. data/lib/openapi_client/models/referenced_order_payment_schedules_request.rb +4 -10
  311. data/lib/openapi_client/models/referenced_order_payment_schedules_request_all_of.rb +3 -9
  312. data/lib/openapi_client/models/referenced_order_payment_tokenization_request.rb +4 -10
  313. data/lib/openapi_client/models/referenced_order_payment_tokenization_request_all_of.rb +3 -9
  314. data/lib/openapi_client/models/registration_method.rb +3 -9
  315. data/lib/openapi_client/models/remove_fraud_blocked_items_response.rb +4 -11
  316. data/lib/openapi_client/models/response_amount_components.rb +3 -9
  317. data/lib/openapi_client/models/response_amount_components_all_of.rb +3 -9
  318. data/lib/openapi_client/models/response_type.rb +2 -2
  319. data/lib/openapi_client/models/return_transaction.rb +4 -10
  320. data/lib/openapi_client/models/return_transaction_all_of.rb +3 -9
  321. data/lib/openapi_client/models/score_only_request.rb +3 -9
  322. data/lib/openapi_client/models/score_only_response.rb +3 -9
  323. data/lib/openapi_client/models/score_only_response_fraud_score.rb +3 -9
  324. data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +3 -9
  325. data/lib/openapi_client/models/secondary_transaction.rb +3 -9
  326. data/lib/openapi_client/models/secure3_d10_authentication_request.rb +7 -28
  327. data/lib/openapi_client/models/secure3_d10_authentication_result.rb +4 -10
  328. data/lib/openapi_client/models/secure3_d10_authentication_result_all_of.rb +3 -9
  329. data/lib/openapi_client/models/secure3_d10_authentication_update_request.rb +4 -10
  330. data/lib/openapi_client/models/secure3_d10_authentication_update_request_all_of.rb +3 -9
  331. data/lib/openapi_client/models/secure3_d21_authentication_request.rb +6 -12
  332. data/lib/openapi_client/models/secure3_d21_authentication_request_all_of.rb +5 -11
  333. data/lib/openapi_client/models/secure3_d21_authentication_result.rb +4 -10
  334. data/lib/openapi_client/models/secure3_d21_authentication_result_all_of.rb +3 -9
  335. data/lib/openapi_client/models/secure3_d21_authentication_update_request.rb +4 -10
  336. data/lib/openapi_client/models/secure3_d21_authentication_update_request_all_of.rb +3 -9
  337. data/lib/openapi_client/models/secure3_d_authentication_response.rb +3 -9
  338. data/lib/openapi_client/models/secure3_d_authentication_response_params.rb +3 -9
  339. data/lib/openapi_client/models/secure3_d_authentication_response_secure3d_method.rb +3 -9
  340. data/lib/openapi_client/models/secure3d_response.rb +3 -9
  341. data/lib/openapi_client/models/sender_info.rb +3 -9
  342. data/lib/openapi_client/models/sepa.rb +3 -9
  343. data/lib/openapi_client/models/sepa_mandate.rb +21 -27
  344. data/lib/openapi_client/models/sepa_payment_method.rb +4 -9
  345. data/lib/openapi_client/models/sepa_payment_method_all_of.rb +3 -9
  346. data/lib/openapi_client/models/sepa_sale_transaction.rb +4 -10
  347. data/lib/openapi_client/models/sepa_sale_transaction_all_of.rb +3 -9
  348. data/lib/openapi_client/models/shared_secret_configuration_request.rb +3 -9
  349. data/lib/openapi_client/models/shared_secret_configuration_response.rb +4 -11
  350. data/lib/openapi_client/models/ship_to_address.rb +3 -9
  351. data/lib/openapi_client/models/shipping.rb +3 -9
  352. data/lib/openapi_client/models/soft_descriptor.rb +52 -13
  353. data/lib/openapi_client/models/split_shipment.rb +3 -9
  354. data/lib/openapi_client/models/store_branding_style_configuration.rb +3 -9
  355. data/lib/openapi_client/models/store_email_settings.rb +3 -9
  356. data/lib/openapi_client/models/store_email_settings_result.rb +3 -9
  357. data/lib/openapi_client/models/store_fraud_settings.rb +3 -9
  358. data/lib/openapi_client/models/store_fraud_settings_result.rb +3 -9
  359. data/lib/openapi_client/models/store_url_configuration.rb +3 -9
  360. data/lib/openapi_client/models/store_url_configuration_request.rb +3 -9
  361. data/lib/openapi_client/models/store_url_configuration_response.rb +4 -11
  362. data/lib/openapi_client/models/store_url_configuration_result.rb +3 -9
  363. data/lib/openapi_client/models/stored_credential.rb +3 -9
  364. data/lib/openapi_client/models/sub_merchant_data.rb +3 -9
  365. data/lib/openapi_client/models/sub_merchant_split.rb +3 -9
  366. data/lib/openapi_client/models/tele_check_ach_payment_method.rb +3 -9
  367. data/lib/openapi_client/models/tele_check_ach_payment_method_ach_bill_to.rb +3 -9
  368. data/lib/openapi_client/models/tele_check_cbp_payment_method.rb +7 -28
  369. data/lib/openapi_client/models/tele_check_ica_payment_method.rb +4 -10
  370. data/lib/openapi_client/models/tele_check_ica_payment_method_all_of.rb +3 -9
  371. data/lib/openapi_client/models/text.rb +3 -9
  372. data/lib/openapi_client/models/title.rb +3 -9
  373. data/lib/openapi_client/models/token_identifier.rb +3 -9
  374. data/lib/openapi_client/models/top_bar.rb +3 -9
  375. data/lib/openapi_client/models/transaction_error_response.rb +13 -11
  376. data/lib/openapi_client/models/transaction_origin.rb +2 -2
  377. data/lib/openapi_client/models/transaction_response.rb +17 -15
  378. data/lib/openapi_client/models/transaction_type.rb +2 -2
  379. data/lib/openapi_client/models/union_pay_authentication_request.rb +4 -10
  380. data/lib/openapi_client/models/union_pay_authentication_request_all_of.rb +3 -9
  381. data/lib/openapi_client/models/union_pay_authentication_update_request.rb +4 -10
  382. data/lib/openapi_client/models/union_pay_authentication_update_request_all_of.rb +3 -9
  383. data/lib/openapi_client/models/update_email_settings_request.rb +3 -9
  384. data/lib/openapi_client/models/update_email_settings_response.rb +4 -11
  385. data/lib/openapi_client/models/update_fraud_settings_request.rb +3 -9
  386. data/lib/openapi_client/models/update_fraud_settings_response.rb +4 -11
  387. data/lib/openapi_client/models/update_payment_token.rb +3 -9
  388. data/lib/openapi_client/models/use_payment_token.rb +3 -9
  389. data/lib/openapi_client/models/verification3ds.rb +3 -9
  390. data/lib/openapi_client/models/verification_avs.rb +3 -9
  391. data/lib/openapi_client/models/verification_cvv.rb +3 -9
  392. data/lib/openapi_client/models/void_pre_auth_transactions.rb +7 -28
  393. data/lib/openapi_client/models/void_transaction.rb +7 -28
  394. data/lib/openapi_client/models/wallet_payment_method.rb +3 -9
  395. data/lib/openapi_client/models/wallet_pre_auth_transaction.rb +4 -10
  396. data/lib/openapi_client/models/wallet_pre_auth_transaction_all_of.rb +3 -9
  397. data/lib/openapi_client/models/wallet_sale_transaction.rb +4 -10
  398. data/lib/openapi_client/models/wallet_sale_transaction_all_of.rb +3 -9
  399. data/lib/openapi_client/version.rb +3 -3
  400. data/lib/simple/gateway.rb +5 -4
  401. metadata +16 -65
  402. data/docs/BrandingStyleConfigurationResponseAllOf.md +0 -17
  403. data/docs/CardInfoLookupApi.md +0 -70
  404. data/docs/CardInfoLookupResponseAllOf.md +0 -19
  405. data/docs/CardVerificationApi.md +0 -70
  406. data/docs/ClientRegistrationAllOf.md +0 -17
  407. data/docs/CustomerAddressAllOf.md +0 -17
  408. data/docs/DeleteBrandingStyleConfigurationResponseAllOf.md +0 -19
  409. data/docs/DisbursementTransactionTypeAllOf.md +0 -17
  410. data/docs/ErrorResponseAllOf.md +0 -17
  411. data/docs/FraudSettingsResponseAllOf.md +0 -31
  412. data/docs/FundingTransactionTypeAllOf.md +0 -17
  413. data/docs/OrderResponseAllOf.md +0 -25
  414. data/docs/PaymentRegistrationAllOf.md +0 -27
  415. data/docs/PaymentSchedulesResponseAllOf.md +0 -21
  416. data/docs/PaymentTokenUpdateResponseAllOf.md +0 -21
  417. data/docs/PaymentTokenizationResponseAllOf.md +0 -31
  418. data/docs/PaymentUrlDetailResponseAllOf.md +0 -17
  419. data/docs/PaymentUrlResponseAllOf.md +0 -23
  420. data/docs/RecurringPaymentDetailsResponseAllOf.md +0 -17
  421. data/docs/RemoveFraudBlockedItemsResponseAllOf.md +0 -17
  422. data/docs/Secure3D10AuthenticationRequestAllOf.md +0 -17
  423. data/docs/SharedSecretConfigurationResponseAllOf.md +0 -23
  424. data/docs/StoreUrlConfigurationResponseAllOf.md +0 -17
  425. data/docs/TeleCheckCBPPaymentMethodAllOf.md +0 -17
  426. data/docs/TransactionResponseAllOf.md +0 -59
  427. data/docs/UpdateEmailSettingsResponseAllOf.md +0 -17
  428. data/docs/UpdateFraudSettingsResponseAllOf.md +0 -17
  429. data/docs/VoidTransactionAllOf.md +0 -17
  430. data/first_data_gateway-1.7.0.gem +0 -0
  431. data/lib/openapi_client/api/card_info_lookup_api.rb +0 -125
  432. data/lib/openapi_client/api/card_verification_api.rb +0 -125
  433. data/lib/openapi_client/models/branding_style_configuration_response_all_of.rb +0 -213
  434. data/lib/openapi_client/models/client_registration_all_of.rb +0 -212
  435. data/lib/openapi_client/models/customer_address_all_of.rb +0 -211
  436. data/lib/openapi_client/models/delete_branding_style_configuration_response_all_of.rb +0 -222
  437. data/lib/openapi_client/models/error_response_all_of.rb +0 -211
  438. data/lib/openapi_client/models/fraud_settings_response_all_of.rb +0 -291
  439. data/lib/openapi_client/models/funding_transaction_type_all_of.rb +0 -216
  440. data/lib/openapi_client/models/order_response_all_of.rb +0 -251
  441. data/lib/openapi_client/models/payment_registration_all_of.rb +0 -257
  442. data/lib/openapi_client/models/payment_schedules_response_all_of.rb +0 -265
  443. data/lib/openapi_client/models/payment_tokenization_response_all_of.rb +0 -313
  444. data/lib/openapi_client/models/payment_url_detail_response_all_of.rb +0 -214
  445. data/lib/openapi_client/models/payment_url_response_all_of.rb +0 -276
  446. data/lib/openapi_client/models/recurring_payment_details_response_all_of.rb +0 -211
  447. data/lib/openapi_client/models/remove_fraud_blocked_items_response_all_of.rb +0 -212
  448. data/lib/openapi_client/models/secure3_d10_authentication_request_all_of.rb +0 -216
  449. data/lib/openapi_client/models/shared_secret_configuration_response_all_of.rb +0 -242
  450. data/lib/openapi_client/models/store_url_configuration_response_all_of.rb +0 -213
  451. data/lib/openapi_client/models/tele_check_cbp_payment_method_all_of.rb +0 -216
  452. data/lib/openapi_client/models/transaction_response_all_of.rb +0 -502
  453. data/lib/openapi_client/models/update_email_settings_response_all_of.rb +0 -213
  454. data/lib/openapi_client/models/update_fraud_settings_response_all_of.rb +0 -213
  455. data/lib/openapi_client/models/void_transaction_all_of.rb +0 -216
@@ -1,212 +0,0 @@
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.12.0.20200605.001
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: unset
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module OpenapiClient
16
- class RemoveFraudBlockedItemsResponseAllOf
17
- # Status from delete fraud blocked items operation.
18
- attr_accessor :status
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'status' => :'status'
24
- }
25
- end
26
-
27
- # Attribute type mapping.
28
- def self.openapi_types
29
- {
30
- :'status' => :'String'
31
- }
32
- end
33
-
34
- # List of attributes with nullable: true
35
- def self.openapi_nullable
36
- Set.new([
37
- ])
38
- end
39
-
40
- # Initializes the object
41
- # @param [Hash] attributes Model attributes in the form of hash
42
- def initialize(attributes = {})
43
- if (!attributes.is_a?(Hash))
44
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::RemoveFraudBlockedItemsResponseAllOf` initialize method"
45
- end
46
-
47
- # check to see if the attribute exists and convert string to symbol for hash key
48
- attributes = attributes.each_with_object({}) { |(k, v), h|
49
- if (!self.class.attribute_map.key?(k.to_sym))
50
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::RemoveFraudBlockedItemsResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
- end
52
- h[k.to_sym] = v
53
- }
54
-
55
- if attributes.key?(:'status')
56
- self.status = attributes[:'status']
57
- end
58
- end
59
-
60
- # Show invalid properties with the reasons. Usually used together with valid?
61
- # @return Array for valid properties with the reasons
62
- def list_invalid_properties
63
- invalid_properties = Array.new
64
- invalid_properties
65
- end
66
-
67
- # Check to see if the all the properties in the model are valid
68
- # @return true if the model is valid
69
- def valid?
70
- true
71
- end
72
-
73
- # Checks equality by comparing each attribute.
74
- # @param [Object] Object to be compared
75
- def ==(o)
76
- return true if self.equal?(o)
77
- self.class == o.class &&
78
- status == o.status
79
- end
80
-
81
- # @see the `==` method
82
- # @param [Object] Object to be compared
83
- def eql?(o)
84
- self == o
85
- end
86
-
87
- # Calculates hash code according to all attributes.
88
- # @return [Integer] Hash code
89
- def hash
90
- [status].hash
91
- end
92
-
93
- # Builds the object from hash
94
- # @param [Hash] attributes Model attributes in the form of hash
95
- # @return [Object] Returns the model itself
96
- def self.build_from_hash(attributes)
97
- new.build_from_hash(attributes)
98
- end
99
-
100
- # Builds the object from hash
101
- # @param [Hash] attributes Model attributes in the form of hash
102
- # @return [Object] Returns the model itself
103
- def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
104
- return nil unless attributes.is_a?(Hash)
105
- openapi_types.each_pair do |key, type|
106
- if type =~ /\AArray<(.*)>/i
107
- # check to ensure the input is an array given that the attribute
108
- # is documented as an array but the input is not
109
- if attributes[attribute_map[key]].is_a?(Array)
110
- self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
111
- end
112
- elsif !attributes[attribute_map[key]].nil?
113
- self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
114
- end # or else data not found in attributes(hash), not an issue as the data can be optional
115
- end
116
-
117
- self
118
- end
119
-
120
- # Deserializes the data based on type
121
- # @param string type Data type
122
- # @param string value Value to be deserialized
123
- # @return [Object] Deserialized data
124
- def _deserialize(type, value)
125
- case type.to_sym
126
- when :DateTime
127
- DateTime.parse(value)
128
- when :Date
129
- Date.parse(value)
130
- when :String
131
- value.to_s
132
- when :Integer
133
- value.to_i
134
- when :Float
135
- value.to_f
136
- when :Boolean
137
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
138
- true
139
- else
140
- false
141
- end
142
- when :Object
143
- # generic object (usually a Hash), return directly
144
- value
145
- when /\AArray<(?<inner_type>.+)>\z/
146
- inner_type = Regexp.last_match[:inner_type]
147
- value.map { |v| _deserialize(inner_type, v) }
148
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
149
- k_type = Regexp.last_match[:k_type]
150
- v_type = Regexp.last_match[:v_type]
151
- {}.tap do |hash|
152
- value.each do |k, v|
153
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
154
- end
155
- end
156
- else # model
157
- klass = OpenapiClient.const_get(type)
158
- if klass.respond_to?(:openapi_discriminator_name)
159
- klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
160
- end
161
-
162
- klass.build_from_hash(value)
163
- end
164
- end
165
-
166
- # Returns the string representation of the object
167
- # @return [String] String presentation of the object
168
- def to_s
169
- to_hash.to_s
170
- end
171
-
172
- # to_body is an alias to to_hash (backward compatibility)
173
- # @return [Hash] Returns the object in the form of hash
174
- def to_body
175
- to_hash
176
- end
177
-
178
- # Returns the object in the form of hash
179
- # @return [Hash] Returns the object in the form of hash
180
- def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
181
- hash = {}
182
- attribute_map.each_pair do |attr, param|
183
- value = self.send(attr)
184
- if value.nil?
185
- is_nullable = openapi_nullable.include?(attr)
186
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
- end
188
-
189
- hash[param] = _to_hash(value)
190
- end
191
- hash
192
- end
193
-
194
- # Outputs non-array value in the form of hash
195
- # For object, use to_hash. Otherwise, just return the value
196
- # @param [Object] value Any valid value
197
- # @return [Hash] Returns the value in the form of hash
198
- def _to_hash(value)
199
- if value.is_a?(Array)
200
- value.compact.map { |v| _to_hash(v) }
201
- elsif value.is_a?(Hash)
202
- {}.tap do |hash|
203
- value.each { |k, v| hash[k] = _to_hash(v) }
204
- end
205
- elsif value.respond_to? :to_hash
206
- value.to_hash
207
- else
208
- value
209
- end
210
- end
211
- end
212
- end
@@ -1,216 +0,0 @@
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.12.0.20200605.001
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: unset
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module OpenapiClient
16
- class Secure3D10AuthenticationRequestAllOf
17
- attr_accessor :authentication_type
18
-
19
- # Attribute mapping from ruby-style variable name to JSON key.
20
- def self.attribute_map
21
- {
22
- :'authentication_type' => :'authenticationType'
23
- }
24
- end
25
-
26
- # Attribute type mapping.
27
- def self.openapi_types
28
- {
29
- :'authentication_type' => :'String'
30
- }
31
- end
32
-
33
- # List of attributes with nullable: true
34
- def self.openapi_nullable
35
- Set.new([
36
- ])
37
- end
38
-
39
- # Initializes the object
40
- # @param [Hash] attributes Model attributes in the form of hash
41
- def initialize(attributes = {})
42
- if (!attributes.is_a?(Hash))
43
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3D10AuthenticationRequestAllOf` initialize method"
44
- end
45
-
46
- # check to see if the attribute exists and convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}) { |(k, v), h|
48
- if (!self.class.attribute_map.key?(k.to_sym))
49
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3D10AuthenticationRequestAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
- end
51
- h[k.to_sym] = v
52
- }
53
-
54
- if attributes.key?(:'authentication_type')
55
- self.authentication_type = attributes[:'authentication_type']
56
- end
57
- end
58
-
59
- # Show invalid properties with the reasons. Usually used together with valid?
60
- # @return Array for valid properties with the reasons
61
- def list_invalid_properties
62
- invalid_properties = Array.new
63
- if @authentication_type.nil?
64
- invalid_properties.push('invalid value for "authentication_type", authentication_type cannot be nil.')
65
- end
66
-
67
- invalid_properties
68
- end
69
-
70
- # Check to see if the all the properties in the model are valid
71
- # @return true if the model is valid
72
- def valid?
73
- return false if @authentication_type.nil?
74
- true
75
- end
76
-
77
- # Checks equality by comparing each attribute.
78
- # @param [Object] Object to be compared
79
- def ==(o)
80
- return true if self.equal?(o)
81
- self.class == o.class &&
82
- authentication_type == o.authentication_type
83
- end
84
-
85
- # @see the `==` method
86
- # @param [Object] Object to be compared
87
- def eql?(o)
88
- self == o
89
- end
90
-
91
- # Calculates hash code according to all attributes.
92
- # @return [Integer] Hash code
93
- def hash
94
- [authentication_type].hash
95
- end
96
-
97
- # Builds the object from hash
98
- # @param [Hash] attributes Model attributes in the form of hash
99
- # @return [Object] Returns the model itself
100
- def self.build_from_hash(attributes)
101
- new.build_from_hash(attributes)
102
- end
103
-
104
- # Builds the object from hash
105
- # @param [Hash] attributes Model attributes in the form of hash
106
- # @return [Object] Returns the model itself
107
- def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
108
- return nil unless attributes.is_a?(Hash)
109
- openapi_types.each_pair do |key, type|
110
- if type =~ /\AArray<(.*)>/i
111
- # check to ensure the input is an array given that the attribute
112
- # is documented as an array but the input is not
113
- if attributes[attribute_map[key]].is_a?(Array)
114
- self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
115
- end
116
- elsif !attributes[attribute_map[key]].nil?
117
- self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
118
- end # or else data not found in attributes(hash), not an issue as the data can be optional
119
- end
120
-
121
- self
122
- end
123
-
124
- # Deserializes the data based on type
125
- # @param string type Data type
126
- # @param string value Value to be deserialized
127
- # @return [Object] Deserialized data
128
- def _deserialize(type, value)
129
- case type.to_sym
130
- when :DateTime
131
- DateTime.parse(value)
132
- when :Date
133
- Date.parse(value)
134
- when :String
135
- value.to_s
136
- when :Integer
137
- value.to_i
138
- when :Float
139
- value.to_f
140
- when :Boolean
141
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
142
- true
143
- else
144
- false
145
- end
146
- when :Object
147
- # generic object (usually a Hash), return directly
148
- value
149
- when /\AArray<(?<inner_type>.+)>\z/
150
- inner_type = Regexp.last_match[:inner_type]
151
- value.map { |v| _deserialize(inner_type, v) }
152
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
153
- k_type = Regexp.last_match[:k_type]
154
- v_type = Regexp.last_match[:v_type]
155
- {}.tap do |hash|
156
- value.each do |k, v|
157
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
158
- end
159
- end
160
- else # model
161
- klass = OpenapiClient.const_get(type)
162
- if klass.respond_to?(:openapi_discriminator_name)
163
- klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
164
- end
165
-
166
- klass.build_from_hash(value)
167
- end
168
- end
169
-
170
- # Returns the string representation of the object
171
- # @return [String] String presentation of the object
172
- def to_s
173
- to_hash.to_s
174
- end
175
-
176
- # to_body is an alias to to_hash (backward compatibility)
177
- # @return [Hash] Returns the object in the form of hash
178
- def to_body
179
- to_hash
180
- end
181
-
182
- # Returns the object in the form of hash
183
- # @return [Hash] Returns the object in the form of hash
184
- def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
185
- hash = {}
186
- attribute_map.each_pair do |attr, param|
187
- value = self.send(attr)
188
- if value.nil?
189
- is_nullable = openapi_nullable.include?(attr)
190
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
191
- end
192
-
193
- hash[param] = _to_hash(value)
194
- end
195
- hash
196
- end
197
-
198
- # Outputs non-array value in the form of hash
199
- # For object, use to_hash. Otherwise, just return the value
200
- # @param [Object] value Any valid value
201
- # @return [Hash] Returns the value in the form of hash
202
- def _to_hash(value)
203
- if value.is_a?(Array)
204
- value.compact.map { |v| _to_hash(v) }
205
- elsif value.is_a?(Hash)
206
- {}.tap do |hash|
207
- value.each { |k, v| hash[k] = _to_hash(v) }
208
- end
209
- elsif value.respond_to? :to_hash
210
- value.to_hash
211
- else
212
- value
213
- end
214
- end
215
- end
216
- end
@@ -1,242 +0,0 @@
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.12.0.20200605.001
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: unset
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module OpenapiClient
16
- class SharedSecretConfigurationResponseAllOf
17
- # An optional outlet ID for clients that support multiple stores in the same developer app.
18
- attr_accessor :store_id
19
-
20
- # Shared secret/password for Connect.
21
- attr_accessor :shared_secret
22
-
23
- # The message/status received after updating shared secret service config.
24
- attr_accessor :response_message
25
-
26
- # Response timestamp.
27
- attr_accessor :response_timestamp
28
-
29
- # Attribute mapping from ruby-style variable name to JSON key.
30
- def self.attribute_map
31
- {
32
- :'store_id' => :'storeId',
33
- :'shared_secret' => :'sharedSecret',
34
- :'response_message' => :'responseMessage',
35
- :'response_timestamp' => :'responseTimestamp'
36
- }
37
- end
38
-
39
- # Attribute type mapping.
40
- def self.openapi_types
41
- {
42
- :'store_id' => :'String',
43
- :'shared_secret' => :'String',
44
- :'response_message' => :'String',
45
- :'response_timestamp' => :'Integer'
46
- }
47
- end
48
-
49
- # List of attributes with nullable: true
50
- def self.openapi_nullable
51
- Set.new([
52
- ])
53
- end
54
-
55
- # Initializes the object
56
- # @param [Hash] attributes Model attributes in the form of hash
57
- def initialize(attributes = {})
58
- if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::SharedSecretConfigurationResponseAllOf` initialize method"
60
- end
61
-
62
- # check to see if the attribute exists and convert string to symbol for hash key
63
- attributes = attributes.each_with_object({}) { |(k, v), h|
64
- if (!self.class.attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::SharedSecretConfigurationResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
- end
67
- h[k.to_sym] = v
68
- }
69
-
70
- if attributes.key?(:'store_id')
71
- self.store_id = attributes[:'store_id']
72
- end
73
-
74
- if attributes.key?(:'shared_secret')
75
- self.shared_secret = attributes[:'shared_secret']
76
- end
77
-
78
- if attributes.key?(:'response_message')
79
- self.response_message = attributes[:'response_message']
80
- end
81
-
82
- if attributes.key?(:'response_timestamp')
83
- self.response_timestamp = attributes[:'response_timestamp']
84
- end
85
- end
86
-
87
- # Show invalid properties with the reasons. Usually used together with valid?
88
- # @return Array for valid properties with the reasons
89
- def list_invalid_properties
90
- invalid_properties = Array.new
91
- invalid_properties
92
- end
93
-
94
- # Check to see if the all the properties in the model are valid
95
- # @return true if the model is valid
96
- def valid?
97
- true
98
- end
99
-
100
- # Checks equality by comparing each attribute.
101
- # @param [Object] Object to be compared
102
- def ==(o)
103
- return true if self.equal?(o)
104
- self.class == o.class &&
105
- store_id == o.store_id &&
106
- shared_secret == o.shared_secret &&
107
- response_message == o.response_message &&
108
- response_timestamp == o.response_timestamp
109
- end
110
-
111
- # @see the `==` method
112
- # @param [Object] Object to be compared
113
- def eql?(o)
114
- self == o
115
- end
116
-
117
- # Calculates hash code according to all attributes.
118
- # @return [Integer] Hash code
119
- def hash
120
- [store_id, shared_secret, response_message, response_timestamp].hash
121
- end
122
-
123
- # Builds the object from hash
124
- # @param [Hash] attributes Model attributes in the form of hash
125
- # @return [Object] Returns the model itself
126
- def self.build_from_hash(attributes)
127
- new.build_from_hash(attributes)
128
- end
129
-
130
- # Builds the object from hash
131
- # @param [Hash] attributes Model attributes in the form of hash
132
- # @return [Object] Returns the model itself
133
- def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
134
- return nil unless attributes.is_a?(Hash)
135
- openapi_types.each_pair do |key, type|
136
- if type =~ /\AArray<(.*)>/i
137
- # check to ensure the input is an array given that the attribute
138
- # is documented as an array but the input is not
139
- if attributes[attribute_map[key]].is_a?(Array)
140
- self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
141
- end
142
- elsif !attributes[attribute_map[key]].nil?
143
- self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
144
- end # or else data not found in attributes(hash), not an issue as the data can be optional
145
- end
146
-
147
- self
148
- end
149
-
150
- # Deserializes the data based on type
151
- # @param string type Data type
152
- # @param string value Value to be deserialized
153
- # @return [Object] Deserialized data
154
- def _deserialize(type, value)
155
- case type.to_sym
156
- when :DateTime
157
- DateTime.parse(value)
158
- when :Date
159
- Date.parse(value)
160
- when :String
161
- value.to_s
162
- when :Integer
163
- value.to_i
164
- when :Float
165
- value.to_f
166
- when :Boolean
167
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
- true
169
- else
170
- false
171
- end
172
- when :Object
173
- # generic object (usually a Hash), return directly
174
- value
175
- when /\AArray<(?<inner_type>.+)>\z/
176
- inner_type = Regexp.last_match[:inner_type]
177
- value.map { |v| _deserialize(inner_type, v) }
178
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
- k_type = Regexp.last_match[:k_type]
180
- v_type = Regexp.last_match[:v_type]
181
- {}.tap do |hash|
182
- value.each do |k, v|
183
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
- end
185
- end
186
- else # model
187
- klass = OpenapiClient.const_get(type)
188
- if klass.respond_to?(:openapi_discriminator_name)
189
- klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
190
- end
191
-
192
- klass.build_from_hash(value)
193
- end
194
- end
195
-
196
- # Returns the string representation of the object
197
- # @return [String] String presentation of the object
198
- def to_s
199
- to_hash.to_s
200
- end
201
-
202
- # to_body is an alias to to_hash (backward compatibility)
203
- # @return [Hash] Returns the object in the form of hash
204
- def to_body
205
- to_hash
206
- end
207
-
208
- # Returns the object in the form of hash
209
- # @return [Hash] Returns the object in the form of hash
210
- def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
211
- hash = {}
212
- attribute_map.each_pair do |attr, param|
213
- value = self.send(attr)
214
- if value.nil?
215
- is_nullable = openapi_nullable.include?(attr)
216
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
- end
218
-
219
- hash[param] = _to_hash(value)
220
- end
221
- hash
222
- end
223
-
224
- # Outputs non-array value in the form of hash
225
- # For object, use to_hash. Otherwise, just return the value
226
- # @param [Object] value Any valid value
227
- # @return [Hash] Returns the value in the form of hash
228
- def _to_hash(value)
229
- if value.is_a?(Array)
230
- value.compact.map { |v| _to_hash(v) }
231
- elsif value.is_a?(Hash)
232
- {}.tap do |hash|
233
- value.each { |k, v| hash[k] = _to_hash(v) }
234
- end
235
- elsif value.respond_to? :to_hash
236
- value.to_hash
237
- else
238
- value
239
- end
240
- end
241
- end
242
- end