cybersource_rest_client 0.0.68 → 0.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -0
  3. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +9 -0
  4. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +314 -314
  5. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +437 -437
  6. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc.rb +337 -337
  7. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +297 -297
  8. data/lib/cybersource_rest_client/models/boardingv1registrations_registration_information.rb +271 -271
  9. data/lib/cybersource_rest_client/models/card_processing_config_common.rb +433 -433
  10. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer.rb +257 -257
  11. data/lib/cybersource_rest_client/models/card_processing_config_common_merchant_descriptor_information.rb +279 -279
  12. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +719 -719
  13. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations.rb +200 -200
  14. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations_vault.rb +251 -251
  15. data/lib/cybersource_rest_client/models/create_order_request.rb +229 -229
  16. data/lib/cybersource_rest_client/models/create_payment_request.rb +11 -1
  17. data/lib/cybersource_rest_client/models/e_check_config_common_internal_only_processors.rb +267 -267
  18. data/lib/cybersource_rest_client/models/e_check_config_common_processors.rb +273 -273
  19. data/lib/cybersource_rest_client/models/e_check_config_features_account_validation_service_internal_only_processors.rb +193 -193
  20. data/lib/cybersource_rest_client/models/e_check_config_features_account_validation_service_processors.rb +285 -285
  21. data/lib/cybersource_rest_client/models/flexv2sessions_fields.rb +199 -199
  22. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information.rb +209 -209
  23. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details.rb +199 -199
  24. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details_total_amount.rb +189 -189
  25. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_bill_to.rb +309 -309
  26. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_ship_to.rb +289 -289
  27. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information.rb +189 -189
  28. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information_card.rb +229 -229
  29. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +230 -227
  30. data/lib/cybersource_rest_client/models/generate_flex_api_capture_context_request.rb +189 -189
  31. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +283 -293
  32. data/lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb +263 -263
  33. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +2 -2
  34. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +281 -281
  35. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +253 -253
  36. data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +222 -222
  37. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +255 -255
  38. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +234 -234
  39. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +242 -242
  40. data/lib/cybersource_rest_client/models/inline_response_400_1_details.rb +199 -199
  41. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +235 -235
  42. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +235 -235
  43. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +235 -235
  44. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +258 -258
  45. data/lib/cybersource_rest_client/models/inline_response_400_5_fields.rb +213 -213
  46. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +235 -235
  47. data/lib/cybersource_rest_client/models/inline_response_400_6_details.rb +201 -201
  48. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +235 -235
  49. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +235 -235
  50. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +223 -223
  51. data/lib/cybersource_rest_client/models/oct_create_payment_request.rb +15 -5
  52. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +323 -313
  53. data/lib/cybersource_rest_client/models/payments_products_card_present_connect_subscription_information.rb +202 -202
  54. data/lib/cybersource_rest_client/models/payments_products_card_processing_subscription_information.rb +215 -215
  55. data/lib/cybersource_rest_client/models/payments_products_differential_fee_subscription_information.rb +212 -212
  56. data/lib/cybersource_rest_client/models/payments_products_digital_payments_subscription_information.rb +215 -215
  57. data/lib/cybersource_rest_client/models/payments_products_e_check_subscription_information.rb +215 -215
  58. data/lib/cybersource_rest_client/models/payments_products_payer_authentication_subscription_information.rb +202 -202
  59. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb +234 -234
  60. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +323 -313
  61. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +323 -313
  62. data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +1 -1
  63. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response.rb +269 -269
  64. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_buyer_information.rb +196 -196
  65. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_processor_information.rb +224 -224
  66. data/lib/cybersource_rest_client/models/pts_v2_create_order_post400_response.rb +224 -224
  67. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +213 -213
  68. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +312 -295
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +305 -305
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions.rb +189 -189
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions_ap_capture.rb +190 -190
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +263 -263
  73. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification.rb +207 -207
  74. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information_e_wallet.rb +241 -241
  75. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +18 -1
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions.rb +25 -5
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_create.rb +212 -0
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_update.rb +212 -0
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +22 -5
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +247 -227
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_authorization_options.rb +196 -0
  83. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_capture_options.rb +196 -196
  84. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_purchase_options.rb +247 -0
  85. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +831 -814
  86. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_seller_protection.rb +237 -237
  87. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +313 -313
  88. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +305 -305
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +320 -309
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +224 -224
  91. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +15 -5
  92. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processing_information.rb +189 -0
  93. data/lib/cybersource_rest_client/models/pts_v2_update_order_patch201_response.rb +200 -200
  94. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +205 -205
  95. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +302 -302
  96. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +189 -189
  97. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information_emv.rb +196 -196
  98. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +318 -318
  99. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +282 -282
  100. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +446 -446
  101. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +321 -321
  102. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +256 -256
  103. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +533 -533
  104. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +222 -222
  105. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +317 -317
  106. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +256 -256
  107. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +1 -1
  108. data/lib/cybersource_rest_client/models/ptsv2intents_client_reference_information.rb +196 -196
  109. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information.rb +223 -223
  110. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +207 -207
  111. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +231 -231
  112. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_amount_details.rb +315 -315
  113. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +196 -196
  114. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_invoice_details.rb +190 -190
  115. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +309 -309
  116. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +332 -332
  117. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +189 -189
  118. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type.rb +200 -200
  119. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type_method.rb +190 -190
  120. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +219 -219
  121. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information_authorization_options.rb +196 -196
  122. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +189 -189
  123. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +221 -221
  124. data/lib/cybersource_rest_client/models/ptsv2intentsid_processing_information.rb +192 -192
  125. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +90 -5
  126. data/lib/cybersource_rest_client/models/ptsv2payments_agreement_information.rb +207 -207
  127. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +229 -229
  128. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +56 -5
  129. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +1 -1
  130. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +22 -5
  131. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +651 -651
  132. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_octsurcharge.rb +196 -196
  133. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  134. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +19 -2
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +789 -721
  136. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +529 -467
  137. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +298 -264
  138. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +339 -339
  139. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options_bonuses.rb +213 -213
  140. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +56 -5
  141. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +502 -383
  142. data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +363 -363
  143. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +359 -298
  144. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information_account.rb +230 -0
  145. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_unscheduled_payment_information.rb → ptsv2payments_unscheduled_payment_information.rb} +7 -1
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +256 -256
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +230 -230
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +264 -247
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +22 -5
  151. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +22 -5
  152. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +22 -5
  153. data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_aggregator_information.rb → ptsv2payouts_aggregator_information.rb} +325 -240
  154. data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb → ptsv2payouts_aggregator_information_sub_merchant.rb} +196 -196
  155. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +32 -5
  156. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_purchase_options.rb +213 -0
  157. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +90 -5
  158. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +22 -5
  159. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +192 -192
  160. data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +7 -1
  161. data/lib/cybersource_rest_client/models/push_funds201_response.rb +337 -337
  162. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +225 -225
  163. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information.rb +189 -189
  164. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information_tokenized_card.rb +205 -205
  165. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information.rb +189 -189
  166. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information_domestic_national_net.rb +197 -197
  167. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +329 -329
  168. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_routing.rb +196 -196
  169. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_settlement.rb +207 -207
  170. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +206 -206
  171. data/lib/cybersource_rest_client/models/push_funds502_response.rb +246 -246
  172. data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -264
  173. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +206 -206
  174. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +219 -219
  175. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
  176. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_customer.rb +222 -222
  177. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +205 -205
  178. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +795 -795
  179. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +305 -305
  180. data/lib/cybersource_rest_client/models/sa_config_payment_methods.rb +191 -191
  181. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset.rb → tms_bin_lookup.rb} +200 -200
  182. data/lib/cybersource_rest_client/models/{inline_response_201_1_issuer_information.rb → tms_bin_lookup_issuer_information.rb} +1 -1
  183. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information.rb → tms_bin_lookup_payment_account_information.rb} +4 -4
  184. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_card.rb → tms_bin_lookup_payment_account_information_card.rb} +2 -2
  185. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_card_brands.rb → tms_bin_lookup_payment_account_information_card_brands.rb} +1 -1
  186. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_features.rb → tms_bin_lookup_payment_account_information_features.rb} +1 -1
  187. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_network.rb → tms_bin_lookup_payment_account_information_network.rb} +1 -1
  188. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art.rb → tms_card_art.rb} +231 -250
  189. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset.rb → tms_card_art_brand_logo_asset.rb} +201 -200
  190. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset__links.rb → tms_card_art_brand_logo_asset__links.rb} +189 -189
  191. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset__links_self.rb → tms_card_art_brand_logo_asset__links_self.rb} +190 -190
  192. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset.rb → tms_card_art_combined_asset.rb} +201 -200
  193. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset__links.rb → tms_card_art_combined_asset__links.rb} +189 -189
  194. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset__links_self.rb → tms_card_art_combined_asset__links_self.rb} +190 -190
  195. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset.rb → tms_card_art_icon_asset.rb} +201 -200
  196. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links.rb → tms_card_art_icon_asset__links.rb} +189 -189
  197. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links_self.rb → tms_card_art_icon_asset__links_self.rb} +190 -190
  198. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset.rb → tms_card_art_issuer_logo_asset.rb} +201 -200
  199. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset__links.rb → tms_card_art_issuer_logo_asset__links.rb} +189 -189
  200. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset__links_self.rb → tms_card_art_issuer_logo_asset__links_self.rb} +190 -190
  201. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier.rb +323 -313
  202. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier__embedded.rb +189 -0
  203. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account.rb +1 -1
  204. data/lib/cybersource_rest_client/models/tms_network_token_services.rb +239 -239
  205. data/lib/cybersource_rest_client/models/tms_network_token_services_american_express_token_service.rb +253 -253
  206. data/lib/cybersource_rest_client/models/tms_network_token_services_mastercard_digital_enablement_service.rb +227 -227
  207. data/lib/cybersource_rest_client/models/tms_network_token_services_notifications.rb +190 -190
  208. data/lib/cybersource_rest_client/models/tms_network_token_services_payment_credentials.rb +190 -190
  209. data/lib/cybersource_rest_client/models/tms_network_token_services_synchronous_provisioning.rb +190 -190
  210. data/lib/cybersource_rest_client/models/tms_network_token_services_visa_token_service.rb +244 -244
  211. data/lib/cybersource_rest_client/models/tms_nullify.rb +212 -212
  212. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info.rb +1 -1
  213. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options.rb +1 -1
  214. data/lib/cybersource_rest_client/models/tms_sensitive_privileges.rb +190 -190
  215. data/lib/cybersource_rest_client/models/tms_token_formats.rb +223 -223
  216. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +407 -321
  217. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card__links.rb +189 -0
  218. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card__links_self.rb +190 -0
  219. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +253 -225
  220. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +200 -189
  221. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +213 -0
  222. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_passcode.rb +191 -0
  223. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +1 -1
  224. data/lib/cybersource_rest_client/models/token_permissions.rb +223 -223
  225. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +1 -1
  226. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  227. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +326 -326
  228. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +251 -245
  229. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options.rb +322 -322
  230. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
  231. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing.rb +235 -235
  232. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +241 -241
  233. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +223 -223
  234. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +392 -392
  235. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  236. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +253 -253
  237. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_amount_details.rb +201 -201
  238. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_basic_information.rb +273 -273
  239. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_payment_information.rb +315 -315
  240. data/lib/cybersource_rest_client.rb +35 -30
  241. metadata +38 -33
  242. data/lib/cybersource_rest_client/models/microformv2sessions_checkout_api_initialization.rb +0 -281
  243. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links.rb +0 -189
  244. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links_self.rb +0 -190
  245. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset.rb +0 -200
  246. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links.rb +0 -189
  247. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links_self.rb +0 -190
  248. data/lib/cybersource_rest_client/models/upv1capturecontexts_checkout_api_initialization.rb +0 -280
@@ -1,467 +1,529 @@
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. #### for PayPal ptsV2CreateOrderPost400Response Set this field to 'AUTHORIZE' or 'CAPTURE' depending on whether you want to invoke delayed capture or sale respectively.
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
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. #### for PayPal ptsV2CreateOrderPost400Response Set this field to 'AUTHORIZE' or 'CAPTURE' depending on whether you want to invoke delayed capture or sale respectively.
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
+ # Indicates Authorization extension transaction. Extension transaction is used to prolong the settlement period by one additional settlement cycle period. Possible values: - true: Transaction is an Authorization Extension transaction. - false: Transaction is not an Authorization Extension transaction.
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: Public utilities / Utility payment - 002: Government services - 003: Cellular / Mobile phone top-up - 004: Coupon payment - 005: Installment based repayment - 006: Billing payment - 007: Tax payment - 008: Tax payment refunds 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
+ # Transaction mode identifier. Identifies the specific channel from which the transaction originates. Possible values: - M Mobile Order - T Telephone Order
82
+ attr_accessor :transaction_mode
83
+
84
+ # 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)
85
+ attr_accessor :aft_indicator
86
+
87
+ # Field is used for back-to-back funding transaction and can be defined as a payment flow that automatically transfers funds through a real-time funding or a live-load. This type of transaction can also be connected to a purchase. In back-to-back funding of general purpose card that is used to make a purchase, two separate accounts are involved: - account one is used to make the purchase - account two is used to automatically fund or reimburse account one Possible values: - 0B = back to back funding transaction - 00 = normal transaction - 01 = originator hold - 02 = Visa deferred OCT hold, default interval - 03 = Visa deferred OCT hold, user-defined interval - 09 = Cancel pending deferred OCT request - 0I = Visa Direct custom program 1 - 0Q = uery the status of the deferred OCT - A0 = Alias Directory 2
88
+ attr_accessor :service_type
89
+
90
+ # Merchant to inform Cybersource whether a transaction is Money load with Balance Update. Possible values: - `true` (This is a Money load with balance update transaction) - `false` (default value) (This is not a Money load with balance update transaction)
91
+ attr_accessor :balance_update
92
+
93
+ # Merchant to inform Cybersource whether a transaction is Money load with Money load only. Possible values: - `true` (This is a money load transaction) - `false` (default value) (This is not a money load transaction)
94
+ attr_accessor :money_load
95
+
96
+ # Attribute mapping from ruby-style variable name to JSON key.
97
+ def self.attribute_map
98
+ {
99
+ :'auth_type' => :'authType',
100
+ :'pan_return_indicator' => :'panReturnIndicator',
101
+ :'verbal_auth_code' => :'verbalAuthCode',
102
+ :'verbal_auth_transaction_id' => :'verbalAuthTransactionId',
103
+ :'auth_indicator' => :'authIndicator',
104
+ :'partial_auth_indicator' => :'partialAuthIndicator',
105
+ :'extend_auth_indicator' => :'extendAuthIndicator',
106
+ :'balance_inquiry' => :'balanceInquiry',
107
+ :'ignore_avs_result' => :'ignoreAvsResult',
108
+ :'decline_avs_flags' => :'declineAvsFlags',
109
+ :'ignore_cv_result' => :'ignoreCvResult',
110
+ :'initiator' => :'initiator',
111
+ :'bill_payment' => :'billPayment',
112
+ :'bill_payment_type' => :'billPaymentType',
113
+ :'redemption_inquiry' => :'redemptionInquiry',
114
+ :'transportation_mode' => :'transportationMode',
115
+ :'aggregated_auth_indicator' => :'aggregatedAuthIndicator',
116
+ :'debt_recovery_indicator' => :'debtRecoveryIndicator',
117
+ :'deferred_auth_indicator' => :'deferredAuthIndicator',
118
+ :'cash_advance_indicator' => :'cashAdvanceIndicator',
119
+ :'split_payment_transaction' => :'splitPaymentTransaction',
120
+ :'card_verification_indicator' => :'cardVerificationIndicator',
121
+ :'transaction_mode' => :'transactionMode',
122
+ :'aft_indicator' => :'aftIndicator',
123
+ :'service_type' => :'serviceType',
124
+ :'balance_update' => :'balanceUpdate',
125
+ :'money_load' => :'moneyLoad'
126
+ }
127
+ end
128
+
129
+ # Attribute mapping from JSON key to ruby-style variable name.
130
+ def self.json_map
131
+ {
132
+ :'auth_type' => :'auth_type',
133
+ :'pan_return_indicator' => :'pan_return_indicator',
134
+ :'verbal_auth_code' => :'verbal_auth_code',
135
+ :'verbal_auth_transaction_id' => :'verbal_auth_transaction_id',
136
+ :'auth_indicator' => :'auth_indicator',
137
+ :'partial_auth_indicator' => :'partial_auth_indicator',
138
+ :'extend_auth_indicator' => :'extend_auth_indicator',
139
+ :'balance_inquiry' => :'balance_inquiry',
140
+ :'ignore_avs_result' => :'ignore_avs_result',
141
+ :'decline_avs_flags' => :'decline_avs_flags',
142
+ :'ignore_cv_result' => :'ignore_cv_result',
143
+ :'initiator' => :'initiator',
144
+ :'bill_payment' => :'bill_payment',
145
+ :'bill_payment_type' => :'bill_payment_type',
146
+ :'redemption_inquiry' => :'redemption_inquiry',
147
+ :'transportation_mode' => :'transportation_mode',
148
+ :'aggregated_auth_indicator' => :'aggregated_auth_indicator',
149
+ :'debt_recovery_indicator' => :'debt_recovery_indicator',
150
+ :'deferred_auth_indicator' => :'deferred_auth_indicator',
151
+ :'cash_advance_indicator' => :'cash_advance_indicator',
152
+ :'split_payment_transaction' => :'split_payment_transaction',
153
+ :'card_verification_indicator' => :'card_verification_indicator',
154
+ :'transaction_mode' => :'transaction_mode',
155
+ :'aft_indicator' => :'aft_indicator',
156
+ :'service_type' => :'service_type',
157
+ :'balance_update' => :'balance_update',
158
+ :'money_load' => :'money_load'
159
+ }
160
+ end
161
+
162
+ # Attribute type mapping.
163
+ def self.swagger_types
164
+ {
165
+ :'auth_type' => :'String',
166
+ :'pan_return_indicator' => :'String',
167
+ :'verbal_auth_code' => :'String',
168
+ :'verbal_auth_transaction_id' => :'String',
169
+ :'auth_indicator' => :'String',
170
+ :'partial_auth_indicator' => :'BOOLEAN',
171
+ :'extend_auth_indicator' => :'String',
172
+ :'balance_inquiry' => :'BOOLEAN',
173
+ :'ignore_avs_result' => :'BOOLEAN',
174
+ :'decline_avs_flags' => :'Array<String>',
175
+ :'ignore_cv_result' => :'BOOLEAN',
176
+ :'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator',
177
+ :'bill_payment' => :'BOOLEAN',
178
+ :'bill_payment_type' => :'String',
179
+ :'redemption_inquiry' => :'BOOLEAN',
180
+ :'transportation_mode' => :'String',
181
+ :'aggregated_auth_indicator' => :'String',
182
+ :'debt_recovery_indicator' => :'String',
183
+ :'deferred_auth_indicator' => :'BOOLEAN',
184
+ :'cash_advance_indicator' => :'BOOLEAN',
185
+ :'split_payment_transaction' => :'BOOLEAN',
186
+ :'card_verification_indicator' => :'BOOLEAN',
187
+ :'transaction_mode' => :'String',
188
+ :'aft_indicator' => :'BOOLEAN',
189
+ :'service_type' => :'String',
190
+ :'balance_update' => :'BOOLEAN',
191
+ :'money_load' => :'BOOLEAN'
192
+ }
193
+ end
194
+
195
+ # Initializes the object
196
+ # @param [Hash] attributes Model attributes in the form of hash
197
+ def initialize(attributes = {})
198
+ return unless attributes.is_a?(Hash)
199
+
200
+ # convert string to symbol for hash key
201
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
202
+
203
+ if attributes.has_key?(:'authType')
204
+ self.auth_type = attributes[:'authType']
205
+ end
206
+
207
+ if attributes.has_key?(:'panReturnIndicator')
208
+ self.pan_return_indicator = attributes[:'panReturnIndicator']
209
+ end
210
+
211
+ if attributes.has_key?(:'verbalAuthCode')
212
+ self.verbal_auth_code = attributes[:'verbalAuthCode']
213
+ end
214
+
215
+ if attributes.has_key?(:'verbalAuthTransactionId')
216
+ self.verbal_auth_transaction_id = attributes[:'verbalAuthTransactionId']
217
+ end
218
+
219
+ if attributes.has_key?(:'authIndicator')
220
+ self.auth_indicator = attributes[:'authIndicator']
221
+ end
222
+
223
+ if attributes.has_key?(:'partialAuthIndicator')
224
+ self.partial_auth_indicator = attributes[:'partialAuthIndicator']
225
+ end
226
+
227
+ if attributes.has_key?(:'extendAuthIndicator')
228
+ self.extend_auth_indicator = attributes[:'extendAuthIndicator']
229
+ end
230
+
231
+ if attributes.has_key?(:'balanceInquiry')
232
+ self.balance_inquiry = attributes[:'balanceInquiry']
233
+ end
234
+
235
+ if attributes.has_key?(:'ignoreAvsResult')
236
+ self.ignore_avs_result = attributes[:'ignoreAvsResult']
237
+ else
238
+ self.ignore_avs_result = false
239
+ end
240
+
241
+ if attributes.has_key?(:'declineAvsFlags')
242
+ if (value = attributes[:'declineAvsFlags']).is_a?(Array)
243
+ self.decline_avs_flags = value
244
+ end
245
+ end
246
+
247
+ if attributes.has_key?(:'ignoreCvResult')
248
+ self.ignore_cv_result = attributes[:'ignoreCvResult']
249
+ else
250
+ self.ignore_cv_result = false
251
+ end
252
+
253
+ if attributes.has_key?(:'initiator')
254
+ self.initiator = attributes[:'initiator']
255
+ end
256
+
257
+ if attributes.has_key?(:'billPayment')
258
+ self.bill_payment = attributes[:'billPayment']
259
+ end
260
+
261
+ if attributes.has_key?(:'billPaymentType')
262
+ self.bill_payment_type = attributes[:'billPaymentType']
263
+ end
264
+
265
+ if attributes.has_key?(:'redemptionInquiry')
266
+ self.redemption_inquiry = attributes[:'redemptionInquiry']
267
+ end
268
+
269
+ if attributes.has_key?(:'transportationMode')
270
+ self.transportation_mode = attributes[:'transportationMode']
271
+ end
272
+
273
+ if attributes.has_key?(:'aggregatedAuthIndicator')
274
+ self.aggregated_auth_indicator = attributes[:'aggregatedAuthIndicator']
275
+ end
276
+
277
+ if attributes.has_key?(:'debtRecoveryIndicator')
278
+ self.debt_recovery_indicator = attributes[:'debtRecoveryIndicator']
279
+ end
280
+
281
+ if attributes.has_key?(:'deferredAuthIndicator')
282
+ self.deferred_auth_indicator = attributes[:'deferredAuthIndicator']
283
+ end
284
+
285
+ if attributes.has_key?(:'cashAdvanceIndicator')
286
+ self.cash_advance_indicator = attributes[:'cashAdvanceIndicator']
287
+ end
288
+
289
+ if attributes.has_key?(:'splitPaymentTransaction')
290
+ self.split_payment_transaction = attributes[:'splitPaymentTransaction']
291
+ end
292
+
293
+ if attributes.has_key?(:'cardVerificationIndicator')
294
+ self.card_verification_indicator = attributes[:'cardVerificationIndicator']
295
+ end
296
+
297
+ if attributes.has_key?(:'transactionMode')
298
+ self.transaction_mode = attributes[:'transactionMode']
299
+ end
300
+
301
+ if attributes.has_key?(:'aftIndicator')
302
+ self.aft_indicator = attributes[:'aftIndicator']
303
+ end
304
+
305
+ if attributes.has_key?(:'serviceType')
306
+ self.service_type = attributes[:'serviceType']
307
+ end
308
+
309
+ if attributes.has_key?(:'balanceUpdate')
310
+ self.balance_update = attributes[:'balanceUpdate']
311
+ end
312
+
313
+ if attributes.has_key?(:'moneyLoad')
314
+ self.money_load = attributes[:'moneyLoad']
315
+ end
316
+ end
317
+
318
+ # Show invalid properties with the reasons. Usually used together with valid?
319
+ # @return Array for valid properties with the reasons
320
+ def list_invalid_properties
321
+ invalid_properties = Array.new
322
+ invalid_properties
323
+ end
324
+
325
+ # Check to see if the all the properties in the model are valid
326
+ # @return true if the model is valid
327
+ def valid?
328
+ true
329
+ end
330
+
331
+ # Custom attribute writer method with validation
332
+ # @param [Object] auth_type Value to be assigned
333
+ def auth_type=(auth_type)
334
+ @auth_type = auth_type
335
+ end
336
+
337
+ # Custom attribute writer method with validation
338
+ # @param [Object] pan_return_indicator Value to be assigned
339
+ def pan_return_indicator=(pan_return_indicator)
340
+ @pan_return_indicator = pan_return_indicator
341
+ end
342
+
343
+ # Custom attribute writer method with validation
344
+ # @param [Object] verbal_auth_code Value to be assigned
345
+ def verbal_auth_code=(verbal_auth_code)
346
+ @verbal_auth_code = verbal_auth_code
347
+ end
348
+
349
+ # Custom attribute writer method with validation
350
+ # @param [Object] verbal_auth_transaction_id Value to be assigned
351
+ def verbal_auth_transaction_id=(verbal_auth_transaction_id)
352
+ @verbal_auth_transaction_id = verbal_auth_transaction_id
353
+ end
354
+
355
+ # Custom attribute writer method with validation
356
+ # @param [Object] auth_indicator Value to be assigned
357
+ def auth_indicator=(auth_indicator)
358
+ @auth_indicator = auth_indicator
359
+ end
360
+
361
+ # Custom attribute writer method with validation
362
+ # @param [Object] extend_auth_indicator Value to be assigned
363
+ def extend_auth_indicator=(extend_auth_indicator)
364
+ @extend_auth_indicator = extend_auth_indicator
365
+ end
366
+
367
+ # Custom attribute writer method with validation
368
+ # @param [Object] transaction_mode Value to be assigned
369
+ def transaction_mode=(transaction_mode)
370
+ @transaction_mode = transaction_mode
371
+ end
372
+
373
+ # Custom attribute writer method with validation
374
+ # @param [Object] service_type Value to be assigned
375
+ def service_type=(service_type)
376
+ @service_type = service_type
377
+ end
378
+
379
+ # Checks equality by comparing each attribute.
380
+ # @param [Object] Object to be compared
381
+ def ==(o)
382
+ return true if self.equal?(o)
383
+ self.class == o.class &&
384
+ auth_type == o.auth_type &&
385
+ pan_return_indicator == o.pan_return_indicator &&
386
+ verbal_auth_code == o.verbal_auth_code &&
387
+ verbal_auth_transaction_id == o.verbal_auth_transaction_id &&
388
+ auth_indicator == o.auth_indicator &&
389
+ partial_auth_indicator == o.partial_auth_indicator &&
390
+ extend_auth_indicator == o.extend_auth_indicator &&
391
+ balance_inquiry == o.balance_inquiry &&
392
+ ignore_avs_result == o.ignore_avs_result &&
393
+ decline_avs_flags == o.decline_avs_flags &&
394
+ ignore_cv_result == o.ignore_cv_result &&
395
+ initiator == o.initiator &&
396
+ bill_payment == o.bill_payment &&
397
+ bill_payment_type == o.bill_payment_type &&
398
+ redemption_inquiry == o.redemption_inquiry &&
399
+ transportation_mode == o.transportation_mode &&
400
+ aggregated_auth_indicator == o.aggregated_auth_indicator &&
401
+ debt_recovery_indicator == o.debt_recovery_indicator &&
402
+ deferred_auth_indicator == o.deferred_auth_indicator &&
403
+ cash_advance_indicator == o.cash_advance_indicator &&
404
+ split_payment_transaction == o.split_payment_transaction &&
405
+ card_verification_indicator == o.card_verification_indicator &&
406
+ transaction_mode == o.transaction_mode &&
407
+ aft_indicator == o.aft_indicator &&
408
+ service_type == o.service_type &&
409
+ balance_update == o.balance_update &&
410
+ money_load == o.money_load
411
+ end
412
+
413
+ # @see the `==` method
414
+ # @param [Object] Object to be compared
415
+ def eql?(o)
416
+ self == o
417
+ end
418
+
419
+ # Calculates hash code according to all attributes.
420
+ # @return [Fixnum] Hash code
421
+ def hash
422
+ [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, transaction_mode, aft_indicator, service_type, balance_update, money_load].hash
423
+ end
424
+
425
+ # Builds the object from hash
426
+ # @param [Hash] attributes Model attributes in the form of hash
427
+ # @return [Object] Returns the model itself
428
+ def build_from_hash(attributes)
429
+ return nil unless attributes.is_a?(Hash)
430
+ self.class.swagger_types.each_pair do |key, type|
431
+ if type =~ /\AArray<(.*)>/i
432
+ # check to ensure the input is an array given that the the attribute
433
+ # is documented as an array but the input is not
434
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
435
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
436
+ end
437
+ elsif !attributes[self.class.attribute_map[key]].nil?
438
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
439
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
440
+ end
441
+
442
+ self
443
+ end
444
+
445
+ # Deserializes the data based on type
446
+ # @param string type Data type
447
+ # @param string value Value to be deserialized
448
+ # @return [Object] Deserialized data
449
+ def _deserialize(type, value)
450
+ case type.to_sym
451
+ when :DateTime
452
+ DateTime.parse(value)
453
+ when :Date
454
+ Date.parse(value)
455
+ when :String
456
+ value.to_s
457
+ when :Integer
458
+ value.to_i
459
+ when :Float
460
+ value.to_f
461
+ when :BOOLEAN
462
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
463
+ true
464
+ else
465
+ false
466
+ end
467
+ when :Object
468
+ # generic object (usually a Hash), return directly
469
+ value
470
+ when /\AArray<(?<inner_type>.+)>\z/
471
+ inner_type = Regexp.last_match[:inner_type]
472
+ value.map { |v| _deserialize(inner_type, v) }
473
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
474
+ k_type = Regexp.last_match[:k_type]
475
+ v_type = Regexp.last_match[:v_type]
476
+ {}.tap do |hash|
477
+ value.each do |k, v|
478
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
479
+ end
480
+ end
481
+ else # model
482
+ temp_model = CyberSource.const_get(type).new
483
+ temp_model.build_from_hash(value)
484
+ end
485
+ end
486
+
487
+ # Returns the string representation of the object
488
+ # @return [String] String presentation of the object
489
+ def to_s
490
+ to_hash.to_s
491
+ end
492
+
493
+ # to_body is an alias to to_hash (backward compatibility)
494
+ # @return [Hash] Returns the object in the form of hash
495
+ def to_body
496
+ to_hash
497
+ end
498
+
499
+ # Returns the object in the form of hash
500
+ # @return [Hash] Returns the object in the form of hash
501
+ def to_hash
502
+ hash = {}
503
+ self.class.attribute_map.each_pair do |attr, param|
504
+ value = self.send(attr)
505
+ next if value.nil?
506
+ hash[param] = _to_hash(value)
507
+ end
508
+ hash
509
+ end
510
+
511
+ # Outputs non-array value in the form of hash
512
+ # For object, use to_hash. Otherwise, just return the value
513
+ # @param [Object] value Any valid value
514
+ # @return [Hash] Returns the value in the form of hash
515
+ def _to_hash(value)
516
+ if value.is_a?(Array)
517
+ value.compact.map { |v| _to_hash(v) }
518
+ elsif value.is_a?(Hash)
519
+ {}.tap do |hash|
520
+ value.each { |k, v| hash[k] = _to_hash(v) }
521
+ end
522
+ elsif value.respond_to? :to_hash
523
+ value.to_hash
524
+ else
525
+ value
526
+ end
527
+ end
528
+ end
529
+ end