cybersource_rest_client 0.0.64 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  3. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  4. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +3 -3
  5. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +6 -6
  6. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  7. data/lib/cybersource_rest_client/models/bin_lookupv400_response.rb +224 -224
  8. data/lib/cybersource_rest_client/models/binv1binlookup_client_reference_information.rb +222 -222
  9. data/lib/cybersource_rest_client/models/binv1binlookup_payment_information.rb +219 -219
  10. data/lib/cybersource_rest_client/models/binv1binlookup_payment_information_card.rb +196 -196
  11. data/lib/cybersource_rest_client/models/binv1binlookup_processing_information.rb +200 -200
  12. data/lib/cybersource_rest_client/models/binv1binlookup_processing_information_payout_options.rb +213 -213
  13. data/lib/cybersource_rest_client/models/binv1binlookup_token_information.rb +207 -207
  14. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +321 -321
  15. data/lib/cybersource_rest_client/models/create_bin_lookup_request.rb +219 -219
  16. data/lib/cybersource_rest_client/models/create_payment_request.rb +462 -452
  17. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +253 -247
  18. data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information.rb → inline_response_200_1_integration_information.rb} +204 -204
  19. data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information_tenant_configurations.rb → inline_response_200_1_integration_information_tenant_configurations.rb} +296 -296
  20. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +25 -65
  21. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +335 -213
  22. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +251 -335
  23. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded.rb → inline_response_200_5__embedded.rb} +191 -191
  24. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links.rb → inline_response_200_5__embedded__links.rb} +191 -191
  25. data/lib/cybersource_rest_client/models/{inline_response_200_7__links_report.rb → inline_response_200_5__embedded__links_reports.rb} +190 -189
  26. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_batches.rb → inline_response_200_5__embedded_batches.rb} +295 -295
  27. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_totals.rb → inline_response_200_5__embedded_totals.rb} +229 -229
  28. data/lib/cybersource_rest_client/models/inline_response_200_5__links.rb +200 -0
  29. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +290 -251
  30. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +201 -200
  31. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links_reports.rb → inline_response_200_6__links_report.rb} +189 -190
  32. data/lib/cybersource_rest_client/models/{inline_response_200_7_billing.rb → inline_response_200_6_billing.rb} +219 -219
  33. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +292 -290
  34. data/lib/cybersource_rest_client/models/{inline_response_200_8_records.rb → inline_response_200_7_records.rb} +209 -209
  35. data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record.rb → inline_response_200_7_response_record.rb} +307 -307
  36. data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record_additional_updates.rb → inline_response_200_7_response_record_additional_updates.rb} +242 -242
  37. data/lib/cybersource_rest_client/models/{inline_response_200_8_source_record.rb → inline_response_200_7_source_record.rb} +295 -295
  38. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +248 -248
  39. data/lib/cybersource_rest_client/models/inline_response_201_1_issuer_information.rb +264 -264
  40. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information.rb +209 -209
  41. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card.rb +277 -277
  42. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card_brands.rb +213 -213
  43. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_features.rb +320 -320
  44. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_network.rb +190 -190
  45. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information.rb +216 -216
  46. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_pull_funds.rb +213 -213
  47. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_push_funds.rb +417 -417
  48. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +315 -315
  49. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information.rb +192 -192
  50. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +286 -286
  51. data/lib/cybersource_rest_client/models/inline_response_201_2_organization_information.rb +217 -217
  52. data/lib/cybersource_rest_client/models/inline_response_201_2_product_information_setups.rb +214 -214
  53. data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +256 -256
  54. data/lib/cybersource_rest_client/models/inline_response_201_2_setups.rb +219 -219
  55. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_commerce_solutions.rb +209 -209
  56. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +15 -5
  57. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing.rb +199 -199
  58. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +299 -299
  59. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +278 -278
  60. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_digital_payments.rb +189 -189
  61. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_risk.rb +199 -199
  62. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_value_added_services.rb +199 -199
  63. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +222 -222
  64. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information.rb +300 -300
  65. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information.rb +202 -202
  66. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information_details.rb +201 -201
  67. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +347 -347
  68. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +222 -222
  69. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +269 -234
  70. data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_5_details.rb} +201 -201
  71. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +275 -235
  72. data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_6_details.rb} +199 -199
  73. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +269 -269
  74. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +269 -269
  75. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +257 -223
  76. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +225 -225
  77. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +225 -225
  78. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +333 -333
  79. data/lib/cybersource_rest_client/models/merchant_initiated_transaction_object.rb +241 -241
  80. data/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb +244 -243
  81. data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +219 -219
  82. data/lib/cybersource_rest_client/models/payments_products.rb +369 -359
  83. data/lib/cybersource_rest_client/models/{kms_v2_keys_asym_get200_response.rb → payments_products_service_fee.rb} +199 -200
  84. data/lib/cybersource_rest_client/models/{inline_response_200_7__links.rb → payments_products_service_fee_configuration_information.rb} +189 -201
  85. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → payments_products_service_fee_configuration_information_configurations.rb} +266 -292
  86. data/lib/cybersource_rest_client/models/{kms_v2_keys_sym_deletes_post200_response_key_information.rb → payments_products_service_fee_configuration_information_configurations_merchant_information.rb} +239 -234
  87. data/lib/cybersource_rest_client/models/{inline_response_400_8.rb → payments_products_service_fee_configuration_information_configurations_payment_information.rb} +280 -275
  88. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb +190 -0
  89. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +284 -284
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information.rb +233 -233
  91. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +249 -249
  92. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_2_processor_information.rb +264 -264
  93. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +765 -765
  94. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb +212 -212
  95. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  96. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +264 -264
  97. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  98. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information.rb +199 -199
  99. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_orchestration.rb +192 -192
  100. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +230 -230
  101. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +223 -223
  102. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +217 -217
  103. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +18 -1
  104. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +230 -230
  105. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +196 -196
  106. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +232 -232
  107. data/lib/cybersource_rest_client/models/ptsv2billingagreements_buyer_information.rb +247 -247
  108. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +326 -326
  109. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +285 -285
  110. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +241 -241
  111. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  112. data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +196 -196
  113. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +453 -453
  114. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_line_items.rb +361 -361
  115. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_ship_to.rb +485 -485
  116. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +366 -366
  117. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +1075 -1075
  118. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +416 -416
  119. data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +196 -196
  120. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +464 -464
  121. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +405 -405
  122. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +641 -641
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_order.rb +332 -332
  124. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +286 -286
  125. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +444 -444
  126. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +699 -699
  127. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +496 -496
  128. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +346 -346
  129. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference.rb +196 -196
  130. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  131. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +633 -633
  132. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +704 -704
  133. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +467 -456
  134. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +213 -213
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +205 -205
  136. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +72 -4
  137. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +298 -0
  138. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +332 -332
  139. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  140. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +267 -267
  141. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +287 -287
  142. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +206 -206
  143. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +362 -362
  144. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +257 -257
  145. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +502 -502
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +299 -299
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +342 -342
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +192 -192
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +213 -213
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +287 -287
  151. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +234 -234
  152. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +286 -286
  153. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +301 -301
  154. data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +190 -190
  155. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +269 -280
  156. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +80 -1
  157. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +279 -290
  158. data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +235 -235
  159. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +840 -840
  160. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +290 -290
  161. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +312 -337
  162. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -258
  163. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  164. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +434 -366
  165. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +497 -497
  166. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
  167. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  168. data/lib/cybersource_rest_client/models/{kmsv2keyssym_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +240 -217
  169. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  170. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +213 -213
  171. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +812 -820
  172. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +223 -223
  173. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +416 -416
  174. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  175. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +314 -314
  176. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +196 -196
  177. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account.rb +207 -207
  178. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info.rb +200 -200
  179. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options.rb +196 -196
  180. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +236 -236
  181. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +292 -292
  182. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +349 -349
  183. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +222 -222
  184. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
  185. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +241 -241
  186. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +231 -231
  187. data/lib/cybersource_rest_client/models/validate_request.rb +249 -249
  188. data/lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb +196 -196
  189. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +403 -403
  190. data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +0 -5
  191. data/lib/cybersource_rest_client.rb +24 -57
  192. metadata +26 -59
  193. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +0 -307
  194. data/lib/cybersource_rest_client/api/key_management_api.rb +0 -120
  195. data/lib/cybersource_rest_client/api/key_management_password_api.rb +0 -98
  196. data/lib/cybersource_rest_client/api/key_management_pgp_api.rb +0 -98
  197. data/lib/cybersource_rest_client/api/key_management_scmp_api.rb +0 -98
  198. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +0 -308
  199. data/lib/cybersource_rest_client/models/create_p12_keys_request.rb +0 -201
  200. data/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb +0 -201
  201. data/lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb +0 -201
  202. data/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb +0 -201
  203. data/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb +0 -201
  204. data/lib/cybersource_rest_client/models/inline_response_200_1_keys.rb +0 -323
  205. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +0 -269
  206. data/lib/cybersource_rest_client/models/inline_response_500_3.rb +0 -257
  207. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +0 -234
  208. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb +0 -212
  209. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb +0 -245
  210. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb +0 -267
  211. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb +0 -235
  212. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information.rb +0 -223
  213. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb +0 -278
  214. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb +0 -223
  215. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb +0 -211
  216. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information.rb +0 -245
  217. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb +0 -223
  218. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information.rb +0 -202
  219. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +0 -284
  220. data/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +0 -223
  221. data/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +0 -207
  222. data/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +0 -223
  223. data/lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb +0 -254
  224. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -290
  225. data/lib/cybersource_rest_client/models/update_asym_keys_request.rb +0 -211
  226. data/lib/cybersource_rest_client/models/update_password_keys_request.rb +0 -211
  227. data/lib/cybersource_rest_client/models/update_pgp_keys_request.rb +0 -211
  228. data/lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb +0 -234
@@ -1,456 +1,467 @@
1
- =begin
2
- #CyberSource Merged Spec
3
-
4
- #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
-
6
- OpenAPI spec version: 0.0.1
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.38
10
- =end
11
-
12
- require 'date'
13
-
14
- module CyberSource
15
- class Ptsv2paymentsProcessingInformationAuthorizationOptions
16
- # Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization.
17
- attr_accessor :auth_type
18
-
19
- # #### Visa Platform Connect The field contains the PAN translation indicator for American Express Contactless Transaction. Valid value is  1- Expresspay Translation, PAN request 2- Expresspay Translation, PAN and Expiry date request
20
- attr_accessor :pan_return_indicator
21
-
22
- # Authorization code. #### Forced Capture Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit purchase. #### Verbal Authorization Use this field in CAPTURE API to send the verbally received authorization code.
23
- attr_accessor :verbal_auth_code
24
-
25
- # Transaction ID (TID). #### FDMS South This field is required for verbal authorizations and forced captures with the American Express card type to comply with the CAPN requirements: - Forced capture: Obtain the value for this field from the authorization response. - Verbal authorization: You cannot obtain a value for this field so CyberSource uses the default value of `000000000000000` (15 zeros).
26
- attr_accessor :verbal_auth_transaction_id
27
-
28
- # Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. #### Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. #### CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file.
29
- attr_accessor :auth_indicator
30
-
31
- # Flag that indicates whether the transaction is enabled for partial authorization. When the request includes this field, this value overrides the information in your account. Possible values: - `true`: Enable the transaction for partial authorization. - `false`: Do not enable the transaction for partial authorization. #### PIN debit Required field for partial authorizations that use PIN debit purchase; otherwise, not used. #### Used by **Authorization** Optional field. #### CyberSource through VisaNet To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators
32
- attr_accessor :partial_auth_indicator
33
-
34
- # Flag that indicates whether the transaction is an extended authorization.
35
- attr_accessor :extend_auth_indicator
36
-
37
- # Flag that indicates whether to return balance information. Possible values: - `true`: Return balance information. - `false`: Do not return balance information. #### Used by **Authorization** Required for a balance inquiry; otherwise, not used. #### PIN debit Required for a balance inquiry request of a PIN debit purchase; otherwise, not used.
38
- attr_accessor :balance_inquiry
39
-
40
- # Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives an AVS decline, as indicated by a reply flag value of DAVSNO. Possible values: - `true`: Ignore the results of AVS checking and run the capture service. - `false` (default): If the authorization receives an AVS decline, do not run the capture service. When the value of this field is `true`, the list in the `processingInformation.authorizationOptions.declineAvsFlags` field is ignored. #### Used by **Authorization** Optional field. String (3)
41
- attr_accessor :ignore_avs_result
42
-
43
- # Comma-separated list of AVS flags that cause the reply flag `DAVSNO` to be returned. **Important** To receive declines for the AVS code `N`, you must include the value `N` in the comma-separated list. ### AVS Codes for Cielo 3.0 and CyberSource Latin American Processing **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this section is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. |AVS Code|Description| |--- |--- | |D|Partial match: postal code and address match.| |E|Not supported: AVS is not supported for this card type. _or_ Invalid: the acquirer returned an unrecognized value for the AVS response.| |F|Partial match: postal code matches, but CPF and address do not match.*| |G|Not supported: AVS not supported or not verified.| |I|No match: AVS information is not available.| |K|Partial match: CPF matches, but postal code and address do not match.*| |L|Partial match: postal code and CPF match, but address does not match.*| |N|No match: postal code, CPF, and address do not match.*| |O|Partial match: CPF and address match, but postal code does not match.*| |R|Not supported: your implementation does not support AVS _or_ System unavailable.| |T|Partial match: address matches, but postal code and CPF do not match.*| |V|Match: postal code, CPF, and address match.*| |* CPF (Cadastro de Pessoas Fisicas) is required only for Redecard in Brazil.|| ### AVS Codes for All Other Processors **Note** The list of AVS codes for all other processors follows these descriptions of the processor-specific information for these codes. #### American Express Cards For American Express cards only, you can receive Visa and CyberSource AVS codes in addition to the American Express AVS codes. **Note** For CyberSource through VisaNet, the American Express AVS codes are converted to Visa AVS codes before they are returned to you. As a result, you will not receive American Express AVS codes for the American Express card type.<br/><br/> _American Express Card codes_: `F`, `H`, `K`, `L`, `O`, `T`, `V` #### Domestic and International Visa Cards The international and domestic alphabetic AVS codes are the Visa standard AVS codes. CyberSource maps the standard AVS return codes for other types of payment cards, including American Express cards, to the Visa standard AVS codes. AVS is considered either domestic or international, depending on the location of the bank that issued the customer's payment card: - When the bank is in the U.S., the AVS is domestic. - When the bank is outside the U.S., the AVS is international. You should be prepared to handle both domestic and international AVS result codes: - For international cards, you can receive domestic AVS codes in addition to the international AVS codes. - For domestic cards, you can receive international AVS codes in addition to the domestic AVS codes. _International Visa Codes_: `B`, `C`, `D`, `G`, `I`, `M`, `P` _Domestic Visa Codes_: `A`, `E`,`N`, `R`, `S`, `U`, `W`, `X`, `Y`, `Z` #### CyberSource Codes The numeric AVS codes are created by CyberSource and are not standard Visa codes. These AVS codes can be returned for any card type. _CyberSource Codes_: `1`, `2`, `3`, `4` ### Table of AVS Codes for All Other Processors |AVS Code|Description| |--- |--- | |A|Partial match: street address matches, but 5-digit and 9-digit postal codes do not match.| |B|Partial match: street address matches, but postal code is not verified. Returned only for Visa cards not issued in the U.S.| |C|No match: street address and postal code do not match. Returned only for Visa cards not issued in the U.S.| |D & M|Match: street address and postal code match. Returned only for Visa cards not issued in the U.S.| |E|Invalid: AVS data is invalid or AVS is not allowed for this card type.| |F|Partial match: card member's name does not match, but billing postal code matches.| |G|Not supported: issuing bank outside the U.S. does not support AVS.| |H|Partial match: card member's name does not match, but street address and postal code match. Returned only for the American Express card type.| |I|No match: address not verified. Returned only for Visa cards not issued in the U.S.| |K|Partial match: card member's name matches, but billing address and billing postal code do not match. Returned only for the American Express card type.| |L|Partial match: card member's name and billing postal code match, but billing address does not match. Returned only for the American Express card type.| |M|See the entry for D & M.| |N|No match: one of the following: street address and postal code do not match _or_ (American Express card type only) card member's name, street address, and postal code do not match.| |O|Partial match: card member's name and billing address match, but billing postal code does not match. Returned only for the American Express card type.| |P|Partial match: postal code matches, but street address not verified. Returned only for Visa cards not issued in the U.S.| |R|System unavailable.| |S|Not supported: issuing bank in the U.S. does not support AVS.| |T|Partial match: card member's name does not match, but street address matches. Returned only for the American Express card type.| |U|System unavailable: address information unavailable for one of these reasons: The U.S. bank does not support AVS outside the U.S. _or_ The AVS in a U.S. bank is not functioning properly.| |V|Match: card member's name, billing address, and billing postal code match. Returned only for the American Express card type.| |W|Partial match: street address does not match, but 9-digit postal code matches.| |X|Match: street address and 9-digit postal code match.| |Y|Match: street address and 5-digit postal code match.| |Z|Partial match: street address does not match, but 5-digit postal code matches.| |1|Not supported: one of the following: AVS is not supported for this processor or card type _or_ AVS is disabled for your CyberSource account. To enable AVS, contact CyberSource Customer Support.| |2|Unrecognized: the processor returned an unrecognized value for the AVS response.| |3|Match: address is confirmed. Returned only for PayPal Express Checkout.| |4|No match: address is not confirmed. Returned only for PayPal Express Checkout.| |5|No match: no AVS code was returned by the processor.|
44
- attr_accessor :decline_avs_flags
45
-
46
- # Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives a CVN decline, as indicated by an `processorInformation.cardVerification.resultCode` value of `D` or `N`. Possible values: - `true`: Ignore the results of CVN checking and run the capture service. - `false` (default): If the authorization receives a CVN decline, do not run the capture service. #### Used by **Authorization** Optional field.
47
- attr_accessor :ignore_cv_result
48
-
49
- attr_accessor :initiator
50
-
51
- # Indicates payment for bill or payment towards existing contractual loan. Possible values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment. Optional request field.
52
- attr_accessor :bill_payment
53
-
54
- # Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment - 005: Installment based repayment The value for this field corresponds to the following data in the TC 33A capture file (applicable to Brazil): - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier The value for this field corresponds to the following data in the TC 33A capture file (applicable to Installment) based Repayment): - Record: CP01 TCR6 - Position: 154-156 - Field: Bill Payment Transaction Type Identifier This field is supported for 1. Bill payments in Brazil with Mastercard on CyberSource through VisaNet. 2. Installment based repayment transactions on Cybersource through VisaNet.
55
- attr_accessor :bill_payment_type
56
-
57
- # Flag that indicates the payment request is a redemption inquiry. Possible values: - `true` - `false`
58
- attr_accessor :redemption_inquiry
59
-
60
- # Type of transportation mode : Possible Values: - 00 = Unknown - 01 = Urban bus - 02 = Interurban bus - 03=Lighttrainmasstransit(Underground Metro LTR) - 04 = Train - 05 = Commuter train - 06 = Water-borne vehicle - 07 = Toll - 08 = Parking - 09 = Taxi - 10 = High-speed train - 11 = Rural bus - 12 = Express commuter train - 13 = Para transit - 14 = Self drive vehicle - 15 = Coach - 16 = Locomotive - 17 = Powered motor coach - 18 = Trailer - 19 = Regional train - 20 = Inter-city - 21 = Funicular train - 22 = Cable car
61
- attr_accessor :transportation_mode
62
-
63
- # Indicates if transaction is an aggregated auth Possible values: - **true** - **false**
64
- attr_accessor :aggregated_auth_indicator
65
-
66
- # Indicates if transaction is a debt recovery request Possible values: - **true** - **false**
67
- attr_accessor :debt_recovery_indicator
68
-
69
- # Flag that indicates whether the authorization request was delayed because connectivity was interrupted. Possible values: - `true` (Deferred authorization) - `false` (default: Not a deferred authorization)
70
- attr_accessor :deferred_auth_indicator
71
-
72
- # This API field enables the merchant to indicate that a given transaction is Cash Advance. Cash advance or Cash disbursement functionality allows a merchant to dispense cash at a point of sale. It provides the ability of a POS system to act like an ATM. These terminals are typically seen in bank branches where customers can use their card and withdraw cash or at merchant locations where ATMs are sparse. Possible values: - `true` (Cash advance is supported) - `false` (default: cash advance is not supported)
73
- attr_accessor :cash_advance_indicator
74
-
75
- # #### Visa Platform Connect Indicates split payment transaction. A split payment allows the use of two payment methods for a single transaction. Possible values: - `true` (split payment transaction is supported) - `false` (default: split payment transaction is not supported)
76
- attr_accessor :split_payment_transaction
77
-
78
- # This API field will indicate whether a card verification check is being performed during the transaction Possible values: - `true` - `false` (default value)
79
- attr_accessor :card_verification_indicator
80
-
81
- # Attribute mapping from ruby-style variable name to JSON key.
82
- def self.attribute_map
83
- {
84
- :'auth_type' => :'authType',
85
- :'pan_return_indicator' => :'panReturnIndicator',
86
- :'verbal_auth_code' => :'verbalAuthCode',
87
- :'verbal_auth_transaction_id' => :'verbalAuthTransactionId',
88
- :'auth_indicator' => :'authIndicator',
89
- :'partial_auth_indicator' => :'partialAuthIndicator',
90
- :'extend_auth_indicator' => :'extendAuthIndicator',
91
- :'balance_inquiry' => :'balanceInquiry',
92
- :'ignore_avs_result' => :'ignoreAvsResult',
93
- :'decline_avs_flags' => :'declineAvsFlags',
94
- :'ignore_cv_result' => :'ignoreCvResult',
95
- :'initiator' => :'initiator',
96
- :'bill_payment' => :'billPayment',
97
- :'bill_payment_type' => :'billPaymentType',
98
- :'redemption_inquiry' => :'redemptionInquiry',
99
- :'transportation_mode' => :'transportationMode',
100
- :'aggregated_auth_indicator' => :'aggregatedAuthIndicator',
101
- :'debt_recovery_indicator' => :'debtRecoveryIndicator',
102
- :'deferred_auth_indicator' => :'deferredAuthIndicator',
103
- :'cash_advance_indicator' => :'cashAdvanceIndicator',
104
- :'split_payment_transaction' => :'splitPaymentTransaction',
105
- :'card_verification_indicator' => :'cardVerificationIndicator'
106
- }
107
- end
108
-
109
- # Attribute mapping from JSON key to ruby-style variable name.
110
- def self.json_map
111
- {
112
- :'auth_type' => :'auth_type',
113
- :'pan_return_indicator' => :'pan_return_indicator',
114
- :'verbal_auth_code' => :'verbal_auth_code',
115
- :'verbal_auth_transaction_id' => :'verbal_auth_transaction_id',
116
- :'auth_indicator' => :'auth_indicator',
117
- :'partial_auth_indicator' => :'partial_auth_indicator',
118
- :'extend_auth_indicator' => :'extend_auth_indicator',
119
- :'balance_inquiry' => :'balance_inquiry',
120
- :'ignore_avs_result' => :'ignore_avs_result',
121
- :'decline_avs_flags' => :'decline_avs_flags',
122
- :'ignore_cv_result' => :'ignore_cv_result',
123
- :'initiator' => :'initiator',
124
- :'bill_payment' => :'bill_payment',
125
- :'bill_payment_type' => :'bill_payment_type',
126
- :'redemption_inquiry' => :'redemption_inquiry',
127
- :'transportation_mode' => :'transportation_mode',
128
- :'aggregated_auth_indicator' => :'aggregated_auth_indicator',
129
- :'debt_recovery_indicator' => :'debt_recovery_indicator',
130
- :'deferred_auth_indicator' => :'deferred_auth_indicator',
131
- :'cash_advance_indicator' => :'cash_advance_indicator',
132
- :'split_payment_transaction' => :'split_payment_transaction',
133
- :'card_verification_indicator' => :'card_verification_indicator'
134
- }
135
- end
136
-
137
- # Attribute type mapping.
138
- def self.swagger_types
139
- {
140
- :'auth_type' => :'String',
141
- :'pan_return_indicator' => :'String',
142
- :'verbal_auth_code' => :'String',
143
- :'verbal_auth_transaction_id' => :'String',
144
- :'auth_indicator' => :'String',
145
- :'partial_auth_indicator' => :'BOOLEAN',
146
- :'extend_auth_indicator' => :'String',
147
- :'balance_inquiry' => :'BOOLEAN',
148
- :'ignore_avs_result' => :'BOOLEAN',
149
- :'decline_avs_flags' => :'Array<String>',
150
- :'ignore_cv_result' => :'BOOLEAN',
151
- :'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator',
152
- :'bill_payment' => :'BOOLEAN',
153
- :'bill_payment_type' => :'String',
154
- :'redemption_inquiry' => :'BOOLEAN',
155
- :'transportation_mode' => :'String',
156
- :'aggregated_auth_indicator' => :'String',
157
- :'debt_recovery_indicator' => :'String',
158
- :'deferred_auth_indicator' => :'BOOLEAN',
159
- :'cash_advance_indicator' => :'BOOLEAN',
160
- :'split_payment_transaction' => :'BOOLEAN',
161
- :'card_verification_indicator' => :'BOOLEAN'
162
- }
163
- end
164
-
165
- # Initializes the object
166
- # @param [Hash] attributes Model attributes in the form of hash
167
- def initialize(attributes = {})
168
- return unless attributes.is_a?(Hash)
169
-
170
- # convert string to symbol for hash key
171
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
172
-
173
- if attributes.has_key?(:'authType')
174
- self.auth_type = attributes[:'authType']
175
- end
176
-
177
- if attributes.has_key?(:'panReturnIndicator')
178
- self.pan_return_indicator = attributes[:'panReturnIndicator']
179
- end
180
-
181
- if attributes.has_key?(:'verbalAuthCode')
182
- self.verbal_auth_code = attributes[:'verbalAuthCode']
183
- end
184
-
185
- if attributes.has_key?(:'verbalAuthTransactionId')
186
- self.verbal_auth_transaction_id = attributes[:'verbalAuthTransactionId']
187
- end
188
-
189
- if attributes.has_key?(:'authIndicator')
190
- self.auth_indicator = attributes[:'authIndicator']
191
- end
192
-
193
- if attributes.has_key?(:'partialAuthIndicator')
194
- self.partial_auth_indicator = attributes[:'partialAuthIndicator']
195
- end
196
-
197
- if attributes.has_key?(:'extendAuthIndicator')
198
- self.extend_auth_indicator = attributes[:'extendAuthIndicator']
199
- end
200
-
201
- if attributes.has_key?(:'balanceInquiry')
202
- self.balance_inquiry = attributes[:'balanceInquiry']
203
- end
204
-
205
- if attributes.has_key?(:'ignoreAvsResult')
206
- self.ignore_avs_result = attributes[:'ignoreAvsResult']
207
- else
208
- self.ignore_avs_result = false
209
- end
210
-
211
- if attributes.has_key?(:'declineAvsFlags')
212
- if (value = attributes[:'declineAvsFlags']).is_a?(Array)
213
- self.decline_avs_flags = value
214
- end
215
- end
216
-
217
- if attributes.has_key?(:'ignoreCvResult')
218
- self.ignore_cv_result = attributes[:'ignoreCvResult']
219
- else
220
- self.ignore_cv_result = false
221
- end
222
-
223
- if attributes.has_key?(:'initiator')
224
- self.initiator = attributes[:'initiator']
225
- end
226
-
227
- if attributes.has_key?(:'billPayment')
228
- self.bill_payment = attributes[:'billPayment']
229
- end
230
-
231
- if attributes.has_key?(:'billPaymentType')
232
- self.bill_payment_type = attributes[:'billPaymentType']
233
- end
234
-
235
- if attributes.has_key?(:'redemptionInquiry')
236
- self.redemption_inquiry = attributes[:'redemptionInquiry']
237
- end
238
-
239
- if attributes.has_key?(:'transportationMode')
240
- self.transportation_mode = attributes[:'transportationMode']
241
- end
242
-
243
- if attributes.has_key?(:'aggregatedAuthIndicator')
244
- self.aggregated_auth_indicator = attributes[:'aggregatedAuthIndicator']
245
- end
246
-
247
- if attributes.has_key?(:'debtRecoveryIndicator')
248
- self.debt_recovery_indicator = attributes[:'debtRecoveryIndicator']
249
- end
250
-
251
- if attributes.has_key?(:'deferredAuthIndicator')
252
- self.deferred_auth_indicator = attributes[:'deferredAuthIndicator']
253
- end
254
-
255
- if attributes.has_key?(:'cashAdvanceIndicator')
256
- self.cash_advance_indicator = attributes[:'cashAdvanceIndicator']
257
- end
258
-
259
- if attributes.has_key?(:'splitPaymentTransaction')
260
- self.split_payment_transaction = attributes[:'splitPaymentTransaction']
261
- end
262
-
263
- if attributes.has_key?(:'cardVerificationIndicator')
264
- self.card_verification_indicator = attributes[:'cardVerificationIndicator']
265
- end
266
- end
267
-
268
- # Show invalid properties with the reasons. Usually used together with valid?
269
- # @return Array for valid properties with the reasons
270
- def list_invalid_properties
271
- invalid_properties = Array.new
272
- invalid_properties
273
- end
274
-
275
- # Check to see if the all the properties in the model are valid
276
- # @return true if the model is valid
277
- def valid?
278
- true
279
- end
280
-
281
- # Custom attribute writer method with validation
282
- # @param [Object] auth_type Value to be assigned
283
- def auth_type=(auth_type)
284
- @auth_type = auth_type
285
- end
286
-
287
- # Custom attribute writer method with validation
288
- # @param [Object] pan_return_indicator Value to be assigned
289
- def pan_return_indicator=(pan_return_indicator)
290
- @pan_return_indicator = pan_return_indicator
291
- end
292
-
293
- # Custom attribute writer method with validation
294
- # @param [Object] verbal_auth_code Value to be assigned
295
- def verbal_auth_code=(verbal_auth_code)
296
- @verbal_auth_code = verbal_auth_code
297
- end
298
-
299
- # Custom attribute writer method with validation
300
- # @param [Object] verbal_auth_transaction_id Value to be assigned
301
- def verbal_auth_transaction_id=(verbal_auth_transaction_id)
302
- @verbal_auth_transaction_id = verbal_auth_transaction_id
303
- end
304
-
305
- # Custom attribute writer method with validation
306
- # @param [Object] auth_indicator Value to be assigned
307
- def auth_indicator=(auth_indicator)
308
- @auth_indicator = auth_indicator
309
- end
310
-
311
- # Checks equality by comparing each attribute.
312
- # @param [Object] Object to be compared
313
- def ==(o)
314
- return true if self.equal?(o)
315
- self.class == o.class &&
316
- auth_type == o.auth_type &&
317
- pan_return_indicator == o.pan_return_indicator &&
318
- verbal_auth_code == o.verbal_auth_code &&
319
- verbal_auth_transaction_id == o.verbal_auth_transaction_id &&
320
- auth_indicator == o.auth_indicator &&
321
- partial_auth_indicator == o.partial_auth_indicator &&
322
- extend_auth_indicator == o.extend_auth_indicator &&
323
- balance_inquiry == o.balance_inquiry &&
324
- ignore_avs_result == o.ignore_avs_result &&
325
- decline_avs_flags == o.decline_avs_flags &&
326
- ignore_cv_result == o.ignore_cv_result &&
327
- initiator == o.initiator &&
328
- bill_payment == o.bill_payment &&
329
- bill_payment_type == o.bill_payment_type &&
330
- redemption_inquiry == o.redemption_inquiry &&
331
- transportation_mode == o.transportation_mode &&
332
- aggregated_auth_indicator == o.aggregated_auth_indicator &&
333
- debt_recovery_indicator == o.debt_recovery_indicator &&
334
- deferred_auth_indicator == o.deferred_auth_indicator &&
335
- cash_advance_indicator == o.cash_advance_indicator &&
336
- split_payment_transaction == o.split_payment_transaction &&
337
- card_verification_indicator == o.card_verification_indicator
338
- end
339
-
340
- # @see the `==` method
341
- # @param [Object] Object to be compared
342
- def eql?(o)
343
- self == o
344
- end
345
-
346
- # Calculates hash code according to all attributes.
347
- # @return [Fixnum] Hash code
348
- def hash
349
- [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator].hash
350
- end
351
-
352
- # Builds the object from hash
353
- # @param [Hash] attributes Model attributes in the form of hash
354
- # @return [Object] Returns the model itself
355
- def build_from_hash(attributes)
356
- return nil unless attributes.is_a?(Hash)
357
- self.class.swagger_types.each_pair do |key, type|
358
- if type =~ /\AArray<(.*)>/i
359
- # check to ensure the input is an array given that the the attribute
360
- # is documented as an array but the input is not
361
- if attributes[self.class.attribute_map[key]].is_a?(Array)
362
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
363
- end
364
- elsif !attributes[self.class.attribute_map[key]].nil?
365
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
366
- end # or else data not found in attributes(hash), not an issue as the data can be optional
367
- end
368
-
369
- self
370
- end
371
-
372
- # Deserializes the data based on type
373
- # @param string type Data type
374
- # @param string value Value to be deserialized
375
- # @return [Object] Deserialized data
376
- def _deserialize(type, value)
377
- case type.to_sym
378
- when :DateTime
379
- DateTime.parse(value)
380
- when :Date
381
- Date.parse(value)
382
- when :String
383
- value.to_s
384
- when :Integer
385
- value.to_i
386
- when :Float
387
- value.to_f
388
- when :BOOLEAN
389
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
390
- true
391
- else
392
- false
393
- end
394
- when :Object
395
- # generic object (usually a Hash), return directly
396
- value
397
- when /\AArray<(?<inner_type>.+)>\z/
398
- inner_type = Regexp.last_match[:inner_type]
399
- value.map { |v| _deserialize(inner_type, v) }
400
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
401
- k_type = Regexp.last_match[:k_type]
402
- v_type = Regexp.last_match[:v_type]
403
- {}.tap do |hash|
404
- value.each do |k, v|
405
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
406
- end
407
- end
408
- else # model
409
- temp_model = CyberSource.const_get(type).new
410
- temp_model.build_from_hash(value)
411
- end
412
- end
413
-
414
- # Returns the string representation of the object
415
- # @return [String] String presentation of the object
416
- def to_s
417
- to_hash.to_s
418
- end
419
-
420
- # to_body is an alias to to_hash (backward compatibility)
421
- # @return [Hash] Returns the object in the form of hash
422
- def to_body
423
- to_hash
424
- end
425
-
426
- # Returns the object in the form of hash
427
- # @return [Hash] Returns the object in the form of hash
428
- def to_hash
429
- hash = {}
430
- self.class.attribute_map.each_pair do |attr, param|
431
- value = self.send(attr)
432
- next if value.nil?
433
- hash[param] = _to_hash(value)
434
- end
435
- hash
436
- end
437
-
438
- # Outputs non-array value in the form of hash
439
- # For object, use to_hash. Otherwise, just return the value
440
- # @param [Object] value Any valid value
441
- # @return [Hash] Returns the value in the form of hash
442
- def _to_hash(value)
443
- if value.is_a?(Array)
444
- value.compact.map { |v| _to_hash(v) }
445
- elsif value.is_a?(Hash)
446
- {}.tap do |hash|
447
- value.each { |k, v| hash[k] = _to_hash(v) }
448
- end
449
- elsif value.respond_to? :to_hash
450
- value.to_hash
451
- else
452
- value
453
- end
454
- end
455
- end
456
- end
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module CyberSource
15
+ class Ptsv2paymentsProcessingInformationAuthorizationOptions
16
+ # Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization.
17
+ attr_accessor :auth_type
18
+
19
+ # #### Visa Platform Connect The field contains the PAN translation indicator for American Express Contactless Transaction. Valid value is  1- Expresspay Translation, PAN request 2- Expresspay Translation, PAN and Expiry date request
20
+ attr_accessor :pan_return_indicator
21
+
22
+ # Authorization code. #### Forced Capture Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit purchase. #### Verbal Authorization Use this field in CAPTURE API to send the verbally received authorization code.
23
+ attr_accessor :verbal_auth_code
24
+
25
+ # Transaction ID (TID). #### FDMS South This field is required for verbal authorizations and forced captures with the American Express card type to comply with the CAPN requirements: - Forced capture: Obtain the value for this field from the authorization response. - Verbal authorization: You cannot obtain a value for this field so CyberSource uses the default value of `000000000000000` (15 zeros).
26
+ attr_accessor :verbal_auth_transaction_id
27
+
28
+ # Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. #### Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. #### CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file.
29
+ attr_accessor :auth_indicator
30
+
31
+ # Flag that indicates whether the transaction is enabled for partial authorization. When the request includes this field, this value overrides the information in your account. Possible values: - `true`: Enable the transaction for partial authorization. - `false`: Do not enable the transaction for partial authorization. #### PIN debit Required field for partial authorizations that use PIN debit purchase; otherwise, not used. #### Used by **Authorization** Optional field. #### CyberSource through VisaNet To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators
32
+ attr_accessor :partial_auth_indicator
33
+
34
+ # Flag that indicates whether the transaction is an extended authorization.
35
+ attr_accessor :extend_auth_indicator
36
+
37
+ # Flag that indicates whether to return balance information. Possible values: - `true`: Return balance information. - `false`: Do not return balance information. #### Used by **Authorization** Required for a balance inquiry; otherwise, not used. #### PIN debit Required for a balance inquiry request of a PIN debit purchase; otherwise, not used.
38
+ attr_accessor :balance_inquiry
39
+
40
+ # Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives an AVS decline, as indicated by a reply flag value of DAVSNO. Possible values: - `true`: Ignore the results of AVS checking and run the capture service. - `false` (default): If the authorization receives an AVS decline, do not run the capture service. When the value of this field is `true`, the list in the `processingInformation.authorizationOptions.declineAvsFlags` field is ignored. #### Used by **Authorization** Optional field. String (3)
41
+ attr_accessor :ignore_avs_result
42
+
43
+ # Comma-separated list of AVS flags that cause the reply flag `DAVSNO` to be returned. **Important** To receive declines for the AVS code `N`, you must include the value `N` in the comma-separated list. ### AVS Codes for Cielo 3.0 and CyberSource Latin American Processing **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this section is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. |AVS Code|Description| |--- |--- | |D|Partial match: postal code and address match.| |E|Not supported: AVS is not supported for this card type. _or_ Invalid: the acquirer returned an unrecognized value for the AVS response.| |F|Partial match: postal code matches, but CPF and address do not match.*| |G|Not supported: AVS not supported or not verified.| |I|No match: AVS information is not available.| |K|Partial match: CPF matches, but postal code and address do not match.*| |L|Partial match: postal code and CPF match, but address does not match.*| |N|No match: postal code, CPF, and address do not match.*| |O|Partial match: CPF and address match, but postal code does not match.*| |R|Not supported: your implementation does not support AVS _or_ System unavailable.| |T|Partial match: address matches, but postal code and CPF do not match.*| |V|Match: postal code, CPF, and address match.*| |* CPF (Cadastro de Pessoas Fisicas) is required only for Redecard in Brazil.|| ### AVS Codes for All Other Processors **Note** The list of AVS codes for all other processors follows these descriptions of the processor-specific information for these codes. #### American Express Cards For American Express cards only, you can receive Visa and CyberSource AVS codes in addition to the American Express AVS codes. **Note** For CyberSource through VisaNet, the American Express AVS codes are converted to Visa AVS codes before they are returned to you. As a result, you will not receive American Express AVS codes for the American Express card type.<br/><br/> _American Express Card codes_: `F`, `H`, `K`, `L`, `O`, `T`, `V` #### Domestic and International Visa Cards The international and domestic alphabetic AVS codes are the Visa standard AVS codes. CyberSource maps the standard AVS return codes for other types of payment cards, including American Express cards, to the Visa standard AVS codes. AVS is considered either domestic or international, depending on the location of the bank that issued the customer's payment card: - When the bank is in the U.S., the AVS is domestic. - When the bank is outside the U.S., the AVS is international. You should be prepared to handle both domestic and international AVS result codes: - For international cards, you can receive domestic AVS codes in addition to the international AVS codes. - For domestic cards, you can receive international AVS codes in addition to the domestic AVS codes. _International Visa Codes_: `B`, `C`, `D`, `G`, `I`, `M`, `P` _Domestic Visa Codes_: `A`, `E`,`N`, `R`, `S`, `U`, `W`, `X`, `Y`, `Z` #### CyberSource Codes The numeric AVS codes are created by CyberSource and are not standard Visa codes. These AVS codes can be returned for any card type. _CyberSource Codes_: `1`, `2`, `3`, `4` ### Table of AVS Codes for All Other Processors |AVS Code|Description| |--- |--- | |A|Partial match: street address matches, but 5-digit and 9-digit postal codes do not match.| |B|Partial match: street address matches, but postal code is not verified. Returned only for Visa cards not issued in the U.S.| |C|No match: street address and postal code do not match. Returned only for Visa cards not issued in the U.S.| |D & M|Match: street address and postal code match. Returned only for Visa cards not issued in the U.S.| |E|Invalid: AVS data is invalid or AVS is not allowed for this card type.| |F|Partial match: card member's name does not match, but billing postal code matches.| |G|Not supported: issuing bank outside the U.S. does not support AVS.| |H|Partial match: card member's name does not match, but street address and postal code match. Returned only for the American Express card type.| |I|No match: address not verified. Returned only for Visa cards not issued in the U.S.| |K|Partial match: card member's name matches, but billing address and billing postal code do not match. Returned only for the American Express card type.| |L|Partial match: card member's name and billing postal code match, but billing address does not match. Returned only for the American Express card type.| |M|See the entry for D & M.| |N|No match: one of the following: street address and postal code do not match _or_ (American Express card type only) card member's name, street address, and postal code do not match.| |O|Partial match: card member's name and billing address match, but billing postal code does not match. Returned only for the American Express card type.| |P|Partial match: postal code matches, but street address not verified. Returned only for Visa cards not issued in the U.S.| |R|System unavailable.| |S|Not supported: issuing bank in the U.S. does not support AVS.| |T|Partial match: card member's name does not match, but street address matches. Returned only for the American Express card type.| |U|System unavailable: address information unavailable for one of these reasons: The U.S. bank does not support AVS outside the U.S. _or_ The AVS in a U.S. bank is not functioning properly.| |V|Match: card member's name, billing address, and billing postal code match. Returned only for the American Express card type.| |W|Partial match: street address does not match, but 9-digit postal code matches.| |X|Match: street address and 9-digit postal code match.| |Y|Match: street address and 5-digit postal code match.| |Z|Partial match: street address does not match, but 5-digit postal code matches.| |1|Not supported: one of the following: AVS is not supported for this processor or card type _or_ AVS is disabled for your CyberSource account. To enable AVS, contact CyberSource Customer Support.| |2|Unrecognized: the processor returned an unrecognized value for the AVS response.| |3|Match: address is confirmed. Returned only for PayPal Express Checkout.| |4|No match: address is not confirmed. Returned only for PayPal Express Checkout.| |5|No match: no AVS code was returned by the processor.|
44
+ attr_accessor :decline_avs_flags
45
+
46
+ # Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives a CVN decline, as indicated by an `processorInformation.cardVerification.resultCode` value of `D` or `N`. Possible values: - `true`: Ignore the results of CVN checking and run the capture service. - `false` (default): If the authorization receives a CVN decline, do not run the capture service. #### Used by **Authorization** Optional field.
47
+ attr_accessor :ignore_cv_result
48
+
49
+ attr_accessor :initiator
50
+
51
+ # Indicates payment for bill or payment towards existing contractual loan. Possible values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment. Optional request field.
52
+ attr_accessor :bill_payment
53
+
54
+ # Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment - 005: Installment based repayment The value for this field corresponds to the following data in the TC 33A capture file (applicable to Brazil): - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier The value for this field corresponds to the following data in the TC 33A capture file (applicable to Installment) based Repayment): - Record: CP01 TCR6 - Position: 154-156 - Field: Bill Payment Transaction Type Identifier This field is supported for 1. Bill payments in Brazil with Mastercard on CyberSource through VisaNet. 2. Installment based repayment transactions on Cybersource through VisaNet.
55
+ attr_accessor :bill_payment_type
56
+
57
+ # Flag that indicates the payment request is a redemption inquiry. Possible values: - `true` - `false`
58
+ attr_accessor :redemption_inquiry
59
+
60
+ # Type of transportation mode : Possible Values: - 00 = Unknown - 01 = Urban bus - 02 = Interurban bus - 03=Lighttrainmasstransit(Underground Metro LTR) - 04 = Train - 05 = Commuter train - 06 = Water-borne vehicle - 07 = Toll - 08 = Parking - 09 = Taxi - 10 = High-speed train - 11 = Rural bus - 12 = Express commuter train - 13 = Para transit - 14 = Self drive vehicle - 15 = Coach - 16 = Locomotive - 17 = Powered motor coach - 18 = Trailer - 19 = Regional train - 20 = Inter-city - 21 = Funicular train - 22 = Cable car
61
+ attr_accessor :transportation_mode
62
+
63
+ # Indicates if transaction is an aggregated auth Possible values: - **true** - **false**
64
+ attr_accessor :aggregated_auth_indicator
65
+
66
+ # Indicates if transaction is a debt recovery request Possible values: - **true** - **false**
67
+ attr_accessor :debt_recovery_indicator
68
+
69
+ # Flag that indicates whether the authorization request was delayed because connectivity was interrupted. Possible values: - `true` (Deferred authorization) - `false` (default: Not a deferred authorization)
70
+ attr_accessor :deferred_auth_indicator
71
+
72
+ # This API field enables the merchant to indicate that a given transaction is Cash Advance. Cash advance or Cash disbursement functionality allows a merchant to dispense cash at a point of sale. It provides the ability of a POS system to act like an ATM. These terminals are typically seen in bank branches where customers can use their card and withdraw cash or at merchant locations where ATMs are sparse. Possible values: - `true` (Cash advance is supported) - `false` (default: cash advance is not supported)
73
+ attr_accessor :cash_advance_indicator
74
+
75
+ # #### Visa Platform Connect Indicates split payment transaction. A split payment allows the use of two payment methods for a single transaction. Possible values: - `true` (split payment transaction is supported) - `false` (default: split payment transaction is not supported)
76
+ attr_accessor :split_payment_transaction
77
+
78
+ # This API field will indicate whether a card verification check is being performed during the transaction Possible values: - `true` - `false` (default value)
79
+ attr_accessor :card_verification_indicator
80
+
81
+ # Indicates whether the transaction is an Account Funding Transaction (AFT). This field is mandatory for Account Funding Transactions (AFT). Possible values: - `true` (This is an AFT transaction) - `false` (default value) (This is not an AFT transaction)
82
+ attr_accessor :aft_indicator
83
+
84
+ # Attribute mapping from ruby-style variable name to JSON key.
85
+ def self.attribute_map
86
+ {
87
+ :'auth_type' => :'authType',
88
+ :'pan_return_indicator' => :'panReturnIndicator',
89
+ :'verbal_auth_code' => :'verbalAuthCode',
90
+ :'verbal_auth_transaction_id' => :'verbalAuthTransactionId',
91
+ :'auth_indicator' => :'authIndicator',
92
+ :'partial_auth_indicator' => :'partialAuthIndicator',
93
+ :'extend_auth_indicator' => :'extendAuthIndicator',
94
+ :'balance_inquiry' => :'balanceInquiry',
95
+ :'ignore_avs_result' => :'ignoreAvsResult',
96
+ :'decline_avs_flags' => :'declineAvsFlags',
97
+ :'ignore_cv_result' => :'ignoreCvResult',
98
+ :'initiator' => :'initiator',
99
+ :'bill_payment' => :'billPayment',
100
+ :'bill_payment_type' => :'billPaymentType',
101
+ :'redemption_inquiry' => :'redemptionInquiry',
102
+ :'transportation_mode' => :'transportationMode',
103
+ :'aggregated_auth_indicator' => :'aggregatedAuthIndicator',
104
+ :'debt_recovery_indicator' => :'debtRecoveryIndicator',
105
+ :'deferred_auth_indicator' => :'deferredAuthIndicator',
106
+ :'cash_advance_indicator' => :'cashAdvanceIndicator',
107
+ :'split_payment_transaction' => :'splitPaymentTransaction',
108
+ :'card_verification_indicator' => :'cardVerificationIndicator',
109
+ :'aft_indicator' => :'aftIndicator'
110
+ }
111
+ end
112
+
113
+ # Attribute mapping from JSON key to ruby-style variable name.
114
+ def self.json_map
115
+ {
116
+ :'auth_type' => :'auth_type',
117
+ :'pan_return_indicator' => :'pan_return_indicator',
118
+ :'verbal_auth_code' => :'verbal_auth_code',
119
+ :'verbal_auth_transaction_id' => :'verbal_auth_transaction_id',
120
+ :'auth_indicator' => :'auth_indicator',
121
+ :'partial_auth_indicator' => :'partial_auth_indicator',
122
+ :'extend_auth_indicator' => :'extend_auth_indicator',
123
+ :'balance_inquiry' => :'balance_inquiry',
124
+ :'ignore_avs_result' => :'ignore_avs_result',
125
+ :'decline_avs_flags' => :'decline_avs_flags',
126
+ :'ignore_cv_result' => :'ignore_cv_result',
127
+ :'initiator' => :'initiator',
128
+ :'bill_payment' => :'bill_payment',
129
+ :'bill_payment_type' => :'bill_payment_type',
130
+ :'redemption_inquiry' => :'redemption_inquiry',
131
+ :'transportation_mode' => :'transportation_mode',
132
+ :'aggregated_auth_indicator' => :'aggregated_auth_indicator',
133
+ :'debt_recovery_indicator' => :'debt_recovery_indicator',
134
+ :'deferred_auth_indicator' => :'deferred_auth_indicator',
135
+ :'cash_advance_indicator' => :'cash_advance_indicator',
136
+ :'split_payment_transaction' => :'split_payment_transaction',
137
+ :'card_verification_indicator' => :'card_verification_indicator',
138
+ :'aft_indicator' => :'aft_indicator'
139
+ }
140
+ end
141
+
142
+ # Attribute type mapping.
143
+ def self.swagger_types
144
+ {
145
+ :'auth_type' => :'String',
146
+ :'pan_return_indicator' => :'String',
147
+ :'verbal_auth_code' => :'String',
148
+ :'verbal_auth_transaction_id' => :'String',
149
+ :'auth_indicator' => :'String',
150
+ :'partial_auth_indicator' => :'BOOLEAN',
151
+ :'extend_auth_indicator' => :'String',
152
+ :'balance_inquiry' => :'BOOLEAN',
153
+ :'ignore_avs_result' => :'BOOLEAN',
154
+ :'decline_avs_flags' => :'Array<String>',
155
+ :'ignore_cv_result' => :'BOOLEAN',
156
+ :'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator',
157
+ :'bill_payment' => :'BOOLEAN',
158
+ :'bill_payment_type' => :'String',
159
+ :'redemption_inquiry' => :'BOOLEAN',
160
+ :'transportation_mode' => :'String',
161
+ :'aggregated_auth_indicator' => :'String',
162
+ :'debt_recovery_indicator' => :'String',
163
+ :'deferred_auth_indicator' => :'BOOLEAN',
164
+ :'cash_advance_indicator' => :'BOOLEAN',
165
+ :'split_payment_transaction' => :'BOOLEAN',
166
+ :'card_verification_indicator' => :'BOOLEAN',
167
+ :'aft_indicator' => :'BOOLEAN'
168
+ }
169
+ end
170
+
171
+ # Initializes the object
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ def initialize(attributes = {})
174
+ return unless attributes.is_a?(Hash)
175
+
176
+ # convert string to symbol for hash key
177
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
178
+
179
+ if attributes.has_key?(:'authType')
180
+ self.auth_type = attributes[:'authType']
181
+ end
182
+
183
+ if attributes.has_key?(:'panReturnIndicator')
184
+ self.pan_return_indicator = attributes[:'panReturnIndicator']
185
+ end
186
+
187
+ if attributes.has_key?(:'verbalAuthCode')
188
+ self.verbal_auth_code = attributes[:'verbalAuthCode']
189
+ end
190
+
191
+ if attributes.has_key?(:'verbalAuthTransactionId')
192
+ self.verbal_auth_transaction_id = attributes[:'verbalAuthTransactionId']
193
+ end
194
+
195
+ if attributes.has_key?(:'authIndicator')
196
+ self.auth_indicator = attributes[:'authIndicator']
197
+ end
198
+
199
+ if attributes.has_key?(:'partialAuthIndicator')
200
+ self.partial_auth_indicator = attributes[:'partialAuthIndicator']
201
+ end
202
+
203
+ if attributes.has_key?(:'extendAuthIndicator')
204
+ self.extend_auth_indicator = attributes[:'extendAuthIndicator']
205
+ end
206
+
207
+ if attributes.has_key?(:'balanceInquiry')
208
+ self.balance_inquiry = attributes[:'balanceInquiry']
209
+ end
210
+
211
+ if attributes.has_key?(:'ignoreAvsResult')
212
+ self.ignore_avs_result = attributes[:'ignoreAvsResult']
213
+ else
214
+ self.ignore_avs_result = false
215
+ end
216
+
217
+ if attributes.has_key?(:'declineAvsFlags')
218
+ if (value = attributes[:'declineAvsFlags']).is_a?(Array)
219
+ self.decline_avs_flags = value
220
+ end
221
+ end
222
+
223
+ if attributes.has_key?(:'ignoreCvResult')
224
+ self.ignore_cv_result = attributes[:'ignoreCvResult']
225
+ else
226
+ self.ignore_cv_result = false
227
+ end
228
+
229
+ if attributes.has_key?(:'initiator')
230
+ self.initiator = attributes[:'initiator']
231
+ end
232
+
233
+ if attributes.has_key?(:'billPayment')
234
+ self.bill_payment = attributes[:'billPayment']
235
+ end
236
+
237
+ if attributes.has_key?(:'billPaymentType')
238
+ self.bill_payment_type = attributes[:'billPaymentType']
239
+ end
240
+
241
+ if attributes.has_key?(:'redemptionInquiry')
242
+ self.redemption_inquiry = attributes[:'redemptionInquiry']
243
+ end
244
+
245
+ if attributes.has_key?(:'transportationMode')
246
+ self.transportation_mode = attributes[:'transportationMode']
247
+ end
248
+
249
+ if attributes.has_key?(:'aggregatedAuthIndicator')
250
+ self.aggregated_auth_indicator = attributes[:'aggregatedAuthIndicator']
251
+ end
252
+
253
+ if attributes.has_key?(:'debtRecoveryIndicator')
254
+ self.debt_recovery_indicator = attributes[:'debtRecoveryIndicator']
255
+ end
256
+
257
+ if attributes.has_key?(:'deferredAuthIndicator')
258
+ self.deferred_auth_indicator = attributes[:'deferredAuthIndicator']
259
+ end
260
+
261
+ if attributes.has_key?(:'cashAdvanceIndicator')
262
+ self.cash_advance_indicator = attributes[:'cashAdvanceIndicator']
263
+ end
264
+
265
+ if attributes.has_key?(:'splitPaymentTransaction')
266
+ self.split_payment_transaction = attributes[:'splitPaymentTransaction']
267
+ end
268
+
269
+ if attributes.has_key?(:'cardVerificationIndicator')
270
+ self.card_verification_indicator = attributes[:'cardVerificationIndicator']
271
+ end
272
+
273
+ if attributes.has_key?(:'aftIndicator')
274
+ self.aft_indicator = attributes[:'aftIndicator']
275
+ end
276
+ end
277
+
278
+ # Show invalid properties with the reasons. Usually used together with valid?
279
+ # @return Array for valid properties with the reasons
280
+ def list_invalid_properties
281
+ invalid_properties = Array.new
282
+ invalid_properties
283
+ end
284
+
285
+ # Check to see if the all the properties in the model are valid
286
+ # @return true if the model is valid
287
+ def valid?
288
+ true
289
+ end
290
+
291
+ # Custom attribute writer method with validation
292
+ # @param [Object] auth_type Value to be assigned
293
+ def auth_type=(auth_type)
294
+ @auth_type = auth_type
295
+ end
296
+
297
+ # Custom attribute writer method with validation
298
+ # @param [Object] pan_return_indicator Value to be assigned
299
+ def pan_return_indicator=(pan_return_indicator)
300
+ @pan_return_indicator = pan_return_indicator
301
+ end
302
+
303
+ # Custom attribute writer method with validation
304
+ # @param [Object] verbal_auth_code Value to be assigned
305
+ def verbal_auth_code=(verbal_auth_code)
306
+ @verbal_auth_code = verbal_auth_code
307
+ end
308
+
309
+ # Custom attribute writer method with validation
310
+ # @param [Object] verbal_auth_transaction_id Value to be assigned
311
+ def verbal_auth_transaction_id=(verbal_auth_transaction_id)
312
+ @verbal_auth_transaction_id = verbal_auth_transaction_id
313
+ end
314
+
315
+ # Custom attribute writer method with validation
316
+ # @param [Object] auth_indicator Value to be assigned
317
+ def auth_indicator=(auth_indicator)
318
+ @auth_indicator = auth_indicator
319
+ end
320
+
321
+ # Checks equality by comparing each attribute.
322
+ # @param [Object] Object to be compared
323
+ def ==(o)
324
+ return true if self.equal?(o)
325
+ self.class == o.class &&
326
+ auth_type == o.auth_type &&
327
+ pan_return_indicator == o.pan_return_indicator &&
328
+ verbal_auth_code == o.verbal_auth_code &&
329
+ verbal_auth_transaction_id == o.verbal_auth_transaction_id &&
330
+ auth_indicator == o.auth_indicator &&
331
+ partial_auth_indicator == o.partial_auth_indicator &&
332
+ extend_auth_indicator == o.extend_auth_indicator &&
333
+ balance_inquiry == o.balance_inquiry &&
334
+ ignore_avs_result == o.ignore_avs_result &&
335
+ decline_avs_flags == o.decline_avs_flags &&
336
+ ignore_cv_result == o.ignore_cv_result &&
337
+ initiator == o.initiator &&
338
+ bill_payment == o.bill_payment &&
339
+ bill_payment_type == o.bill_payment_type &&
340
+ redemption_inquiry == o.redemption_inquiry &&
341
+ transportation_mode == o.transportation_mode &&
342
+ aggregated_auth_indicator == o.aggregated_auth_indicator &&
343
+ debt_recovery_indicator == o.debt_recovery_indicator &&
344
+ deferred_auth_indicator == o.deferred_auth_indicator &&
345
+ cash_advance_indicator == o.cash_advance_indicator &&
346
+ split_payment_transaction == o.split_payment_transaction &&
347
+ card_verification_indicator == o.card_verification_indicator &&
348
+ aft_indicator == o.aft_indicator
349
+ end
350
+
351
+ # @see the `==` method
352
+ # @param [Object] Object to be compared
353
+ def eql?(o)
354
+ self == o
355
+ end
356
+
357
+ # Calculates hash code according to all attributes.
358
+ # @return [Fixnum] Hash code
359
+ def hash
360
+ [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator, aft_indicator].hash
361
+ end
362
+
363
+ # Builds the object from hash
364
+ # @param [Hash] attributes Model attributes in the form of hash
365
+ # @return [Object] Returns the model itself
366
+ def build_from_hash(attributes)
367
+ return nil unless attributes.is_a?(Hash)
368
+ self.class.swagger_types.each_pair do |key, type|
369
+ if type =~ /\AArray<(.*)>/i
370
+ # check to ensure the input is an array given that the the attribute
371
+ # is documented as an array but the input is not
372
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
373
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
374
+ end
375
+ elsif !attributes[self.class.attribute_map[key]].nil?
376
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
377
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
378
+ end
379
+
380
+ self
381
+ end
382
+
383
+ # Deserializes the data based on type
384
+ # @param string type Data type
385
+ # @param string value Value to be deserialized
386
+ # @return [Object] Deserialized data
387
+ def _deserialize(type, value)
388
+ case type.to_sym
389
+ when :DateTime
390
+ DateTime.parse(value)
391
+ when :Date
392
+ Date.parse(value)
393
+ when :String
394
+ value.to_s
395
+ when :Integer
396
+ value.to_i
397
+ when :Float
398
+ value.to_f
399
+ when :BOOLEAN
400
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
401
+ true
402
+ else
403
+ false
404
+ end
405
+ when :Object
406
+ # generic object (usually a Hash), return directly
407
+ value
408
+ when /\AArray<(?<inner_type>.+)>\z/
409
+ inner_type = Regexp.last_match[:inner_type]
410
+ value.map { |v| _deserialize(inner_type, v) }
411
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
412
+ k_type = Regexp.last_match[:k_type]
413
+ v_type = Regexp.last_match[:v_type]
414
+ {}.tap do |hash|
415
+ value.each do |k, v|
416
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
417
+ end
418
+ end
419
+ else # model
420
+ temp_model = CyberSource.const_get(type).new
421
+ temp_model.build_from_hash(value)
422
+ end
423
+ end
424
+
425
+ # Returns the string representation of the object
426
+ # @return [String] String presentation of the object
427
+ def to_s
428
+ to_hash.to_s
429
+ end
430
+
431
+ # to_body is an alias to to_hash (backward compatibility)
432
+ # @return [Hash] Returns the object in the form of hash
433
+ def to_body
434
+ to_hash
435
+ end
436
+
437
+ # Returns the object in the form of hash
438
+ # @return [Hash] Returns the object in the form of hash
439
+ def to_hash
440
+ hash = {}
441
+ self.class.attribute_map.each_pair do |attr, param|
442
+ value = self.send(attr)
443
+ next if value.nil?
444
+ hash[param] = _to_hash(value)
445
+ end
446
+ hash
447
+ end
448
+
449
+ # Outputs non-array value in the form of hash
450
+ # For object, use to_hash. Otherwise, just return the value
451
+ # @param [Object] value Any valid value
452
+ # @return [Hash] Returns the value in the form of hash
453
+ def _to_hash(value)
454
+ if value.is_a?(Array)
455
+ value.compact.map { |v| _to_hash(v) }
456
+ elsif value.is_a?(Hash)
457
+ {}.tap do |hash|
458
+ value.each { |k, v| hash[k] = _to_hash(v) }
459
+ end
460
+ elsif value.respond_to? :to_hash
461
+ value.to_hash
462
+ else
463
+ value
464
+ end
465
+ end
466
+ end
467
+ end