cybersource_rest_client 0.0.55 → 0.0.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +6 -0
  3. data/lib/cybersource_rest_client/api/batches_api.rb +25 -23
  4. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -0
  5. data/lib/cybersource_rest_client/api/capture_api.rb +2 -0
  6. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +269 -0
  7. data/lib/cybersource_rest_client/api/credit_api.rb +2 -0
  8. data/lib/cybersource_rest_client/api/customer_api.rb +4 -0
  9. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +4 -0
  10. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +4 -0
  11. data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -0
  12. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +2 -0
  13. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +6 -0
  14. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +6 -4
  15. data/lib/cybersource_rest_client/api/invoices_api.rb +16 -12
  16. data/lib/cybersource_rest_client/api/keymanagementpassword_api.rb +2 -0
  17. data/lib/cybersource_rest_client/api/keymanagementpgp_api.rb +2 -0
  18. data/lib/cybersource_rest_client/api/keymanagementscmp_api.rb +2 -0
  19. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +507 -0
  20. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +169 -0
  21. data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -0
  22. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -0
  23. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +4 -0
  24. data/lib/cybersource_rest_client/api/payments_api.rb +6 -0
  25. data/lib/cybersource_rest_client/api/payouts_api.rb +2 -0
  26. data/lib/cybersource_rest_client/api/plans_api.rb +4 -0
  27. data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -0
  28. data/lib/cybersource_rest_client/api/refund_api.rb +4 -0
  29. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +4 -0
  30. data/lib/cybersource_rest_client/api/reports_api.rb +2 -0
  31. data/lib/cybersource_rest_client/api/reversal_api.rb +4 -0
  32. data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -0
  33. data/lib/cybersource_rest_client/api/subscriptions_api.rb +4 -0
  34. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +6 -0
  35. data/lib/cybersource_rest_client/api/taxes_api.rb +4 -0
  36. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -0
  37. data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -0
  38. data/lib/cybersource_rest_client/api/verification_api.rb +4 -0
  39. data/lib/cybersource_rest_client/api/void_api.rb +10 -0
  40. data/lib/cybersource_rest_client/models/boardingv1registrations_document_information.rb +192 -0
  41. data/lib/cybersource_rest_client/models/boardingv1registrations_document_information_signed_documents.rb +196 -0
  42. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information.rb +205 -0
  43. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_oauth2.rb +221 -0
  44. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb +225 -0
  45. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_information.rb +197 -0
  46. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +356 -0
  47. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +484 -0
  48. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_address.rb +360 -0
  49. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_business_contact.rb +341 -0
  50. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc.rb +382 -0
  51. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +331 -0
  52. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_owners.rb +526 -0
  53. data/lib/cybersource_rest_client/models/boardingv1registrations_product_information.rb +190 -0
  54. data/lib/cybersource_rest_client/models/boardingv1registrations_product_information_selected_products.rb +220 -0
  55. data/lib/cybersource_rest_client/models/boardingv1registrations_registration_information.rb +330 -0
  56. data/lib/cybersource_rest_client/models/capture_payment_request.rb +11 -1
  57. data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +210 -0
  58. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater.rb +200 -0
  59. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information.rb +200 -0
  60. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations.rb +242 -0
  61. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_amex.rb +221 -0
  62. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_master_card.rb +222 -0
  63. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_visa.rb +222 -0
  64. data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup.rb +200 -0
  65. data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information.rb +190 -0
  66. data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information_configurations.rb +202 -0
  67. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management.rb +200 -0
  68. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information.rb +200 -0
  69. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations.rb +191 -0
  70. data/lib/cybersource_rest_client/models/create_credit_request.rb +11 -1
  71. data/lib/cybersource_rest_client/models/create_payment_request.rb +11 -1
  72. data/lib/cybersource_rest_client/models/create_webhook.rb +290 -0
  73. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +54 -52
  74. data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information.rb +205 -0
  75. data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations.rb +297 -0
  76. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +26 -103
  77. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +126 -83
  78. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +252 -0
  79. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded.rb → inline_response_200_5__embedded.rb} +2 -2
  80. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded__links.rb → inline_response_200_5__embedded__links.rb} +2 -2
  81. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded__links_reports.rb → inline_response_200_5__embedded__links_reports.rb} +1 -1
  82. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_batches.rb → inline_response_200_5__embedded_batches.rb} +3 -3
  83. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_totals.rb → inline_response_200_5__embedded_totals.rb} +1 -1
  84. data/lib/cybersource_rest_client/models/{inline_response_200_2__links.rb → inline_response_200_5__links.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +291 -0
  86. data/lib/cybersource_rest_client/models/{inline_response_200_3__links.rb → inline_response_200_6__links.rb} +2 -2
  87. data/lib/cybersource_rest_client/models/{inline_response_200_3__links_report.rb → inline_response_200_6__links_report.rb} +1 -1
  88. data/lib/cybersource_rest_client/models/{inline_response_200_3_billing.rb → inline_response_200_6_billing.rb} +1 -1
  89. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +293 -0
  90. data/lib/cybersource_rest_client/models/{inline_response_200_4_records.rb → inline_response_200_7_records.rb} +3 -3
  91. data/lib/cybersource_rest_client/models/{inline_response_200_4_response_record.rb → inline_response_200_7_response_record.rb} +2 -2
  92. data/lib/cybersource_rest_client/models/{inline_response_200_4_response_record_additional_updates.rb → inline_response_200_7_response_record_additional_updates.rb} +1 -1
  93. data/lib/cybersource_rest_client/models/{inline_response_200_4_source_record.rb → inline_response_200_7_source_record.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +316 -0
  95. data/lib/cybersource_rest_client/models/inline_response_201_1_integration_information.rb +193 -0
  96. data/lib/cybersource_rest_client/models/inline_response_201_1_integration_information_tenant_configurations.rb +287 -0
  97. data/lib/cybersource_rest_client/models/inline_response_201_1_organization_information.rb +218 -0
  98. data/lib/cybersource_rest_client/models/inline_response_201_1_product_information_setups.rb +215 -0
  99. data/lib/cybersource_rest_client/models/inline_response_201_1_registration_information.rb +257 -0
  100. data/lib/cybersource_rest_client/models/inline_response_201_1_setups.rb +220 -0
  101. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_commerce_solutions.rb +210 -0
  102. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments.rb +340 -0
  103. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_card_processing.rb +200 -0
  104. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_card_processing_configuration_status.rb +300 -0
  105. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_card_processing_subscription_status.rb +279 -0
  106. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_digital_payments.rb +190 -0
  107. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_risk.rb +200 -0
  108. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_value_added_services.rb +200 -0
  109. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +223 -0
  110. data/lib/cybersource_rest_client/models/inline_response_201_2_key_information.rb +301 -0
  111. data/lib/cybersource_rest_client/models/inline_response_201_2_key_information_error_information.rb +203 -0
  112. data/lib/cybersource_rest_client/models/inline_response_201_2_key_information_error_information_details.rb +202 -0
  113. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +348 -0
  114. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +223 -0
  115. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +37 -43
  116. data/lib/cybersource_rest_client/models/inline_response_400_7_details.rb +17 -15
  117. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +276 -0
  118. data/lib/cybersource_rest_client/models/inline_response_400_8_details.rb +200 -0
  119. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +270 -0
  120. data/lib/cybersource_rest_client/models/inline_response_404_2.rb +212 -0
  121. data/lib/cybersource_rest_client/models/inline_response_404_2_details.rb +200 -0
  122. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +270 -0
  123. data/lib/cybersource_rest_client/models/inline_response_500_3.rb +258 -0
  124. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +6 -0
  125. data/lib/cybersource_rest_client/models/kmsegressv2keysasym_client_reference_information.rb +198 -0
  126. data/lib/cybersource_rest_client/models/kmsegressv2keysasym_key_information.rb +280 -0
  127. data/lib/cybersource_rest_client/models/kmsegressv2keyssym_client_reference_information.rb +198 -0
  128. data/lib/cybersource_rest_client/models/kmsegressv2keyssym_key_information.rb +280 -0
  129. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1productsorganization_id_event_types.rb +234 -0
  130. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_notification_scope.rb +206 -0
  131. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_products.rb +203 -0
  132. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_retry_policy.rb +271 -0
  133. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy.rb +202 -0
  134. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1.rb +213 -0
  135. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config.rb +224 -0
  136. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config_additional_config.rb +221 -0
  137. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_config.rb +214 -0
  138. data/lib/cybersource_rest_client/models/nrtfv1webhookswebhook_idreplays_by_delivery_status.rb +244 -0
  139. data/lib/cybersource_rest_client/models/payment_products.rb +350 -0
  140. data/lib/cybersource_rest_client/models/payment_products_card_present_connect.rb +200 -0
  141. data/lib/cybersource_rest_client/models/payment_products_card_present_connect_configuration_information.rb +200 -0
  142. data/lib/cybersource_rest_client/models/payment_products_card_present_connect_configuration_information_configurations.rb +191 -0
  143. data/lib/cybersource_rest_client/models/payment_products_card_present_connect_subscription_information.rb +237 -0
  144. data/lib/cybersource_rest_client/models/payment_products_card_processing.rb +200 -0
  145. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present.rb +236 -0
  146. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_installment.rb +202 -0
  147. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_payouts.rb +281 -0
  148. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_processors.rb +245 -0
  149. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_present_processors.rb +259 -0
  150. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_common_merchant_descriptor_info.rb +269 -0
  151. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_features_card_not_present_payouts_currencies.rb +258 -0
  152. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information.rb +200 -0
  153. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations.rb +200 -0
  154. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common.rb +446 -0
  155. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_acquirer.rb +236 -0
  156. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_currencies.rb +258 -0
  157. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_currencies_1.rb +225 -0
  158. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_payment_types.rb +203 -0
  159. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_processors.rb +721 -0
  160. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_features.rb +200 -0
  161. data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_features_card_present.rb +204 -0
  162. data/lib/cybersource_rest_client/models/payment_products_card_processing_subscription_information.rb +250 -0
  163. data/lib/cybersource_rest_client/models/payment_products_card_processing_subscription_information_features.rb +190 -0
  164. data/lib/cybersource_rest_client/models/payment_products_currency_conversion.rb +200 -0
  165. data/lib/cybersource_rest_client/models/payment_products_currency_conversion_configuration_information.rb +200 -0
  166. data/lib/cybersource_rest_client/models/payment_products_currency_conversion_configuration_information_configurations.rb +192 -0
  167. data/lib/cybersource_rest_client/models/payment_products_currency_conversion_configuration_information_configurations_processors.rb +201 -0
  168. data/lib/cybersource_rest_client/models/payment_products_cybs_ready_terminal.rb +190 -0
  169. data/lib/cybersource_rest_client/models/payment_products_differential_fee.rb +190 -0
  170. data/lib/cybersource_rest_client/models/payment_products_differential_fee_subscription_information.rb +247 -0
  171. data/lib/cybersource_rest_client/models/payment_products_differential_fee_subscription_information_features.rb +190 -0
  172. data/lib/cybersource_rest_client/models/payment_products_digital_payments.rb +190 -0
  173. data/lib/cybersource_rest_client/models/payment_products_digital_payments_subscription_information.rb +250 -0
  174. data/lib/cybersource_rest_client/models/payment_products_e_check.rb +200 -0
  175. data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service.rb +203 -0
  176. data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service_internal_only.rb +193 -0
  177. data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service_processors.rb +262 -0
  178. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information.rb +200 -0
  179. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations.rb +210 -0
  180. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common.rb +296 -0
  181. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common_internal_only.rb +206 -0
  182. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common_internal_only_processors.rb +242 -0
  183. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common_processors.rb +261 -0
  184. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_features.rb +190 -0
  185. data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_underwriting.rb +334 -0
  186. data/lib/cybersource_rest_client/models/payment_products_e_check_subscription_information.rb +250 -0
  187. data/lib/cybersource_rest_client/models/payment_products_payer_authentication.rb +200 -0
  188. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_j_cbj_secure.rb +221 -0
  189. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_verified.rb +204 -0
  190. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_verified_currencies.rb +244 -0
  191. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information.rb +200 -0
  192. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information_configurations.rb +190 -0
  193. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information_configurations_card_types.rb +260 -0
  194. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information_configurations_card_types_cb.rb +221 -0
  195. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_subscription_information.rb +237 -0
  196. data/lib/cybersource_rest_client/models/payment_products_payouts.rb +200 -0
  197. data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information.rb +190 -0
  198. data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations.rb +204 -0
  199. data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations_processor_account.rb +237 -0
  200. data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations_pullfunds.rb +311 -0
  201. data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations_pushfunds.rb +336 -0
  202. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance.rb +200 -0
  203. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_notifications_customer_notifications.rb +258 -0
  204. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_notifications_merchant_notifications.rb +235 -0
  205. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_payment_types_card_types.rb +220 -0
  206. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_payment_types_card_types_discover.rb +257 -0
  207. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information.rb +200 -0
  208. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations.rb +251 -0
  209. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_checkout.rb +213 -0
  210. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_contact_information.rb +221 -0
  211. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_notifications.rb +200 -0
  212. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_payment_methods.rb +214 -0
  213. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_payment_types.rb +191 -0
  214. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_service.rb +257 -0
  215. data/lib/cybersource_rest_client/models/payment_products_tax.rb +190 -0
  216. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal.rb +200 -0
  217. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_global_payment_info.rb +210 -0
  218. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_global_payment_info_basic_info.rb +318 -0
  219. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_merchant_defined_data_fields.rb +430 -0
  220. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_payment_info.rb +338 -0
  221. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info.rb +210 -0
  222. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_email_receipt.rb +190 -0
  223. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_header.rb +190 -0
  224. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_order_info.rb +200 -0
  225. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_configuration_information.rb +200 -0
  226. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_configuration_information_configurations.rb +200 -0
  227. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_configuration_information_configurations_card_not_present.rb +200 -0
  228. data/lib/cybersource_rest_client/models/post_registration_body.rb +230 -0
  229. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +22 -5
  230. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  231. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +1 -1
  232. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +18 -1
  233. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_secure_information.rb +249 -0
  234. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  235. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +22 -5
  236. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +15 -5
  237. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_vehicle_data.rb +214 -0
  238. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +22 -5
  239. data/lib/cybersource_rest_client/models/replay_webhooks.rb +202 -0
  240. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +1 -0
  241. data/lib/cybersource_rest_client/models/risk_products.rb +200 -0
  242. data/lib/cybersource_rest_client/models/risk_products_decision_manager.rb +200 -0
  243. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_accurint.rb +200 -0
  244. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_accurint_creds.rb +200 -0
  245. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_credilink.rb +220 -0
  246. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_credilink_creds.rb +210 -0
  247. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_ekata_creds.rb +190 -0
  248. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_emailage.rb +220 -0
  249. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_perseuss.rb +210 -0
  250. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_signifyd.rb +200 -0
  251. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_signifyd_creds.rb +220 -0
  252. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_targus.rb +210 -0
  253. data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_targus_creds.rb +210 -0
  254. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information.rb +200 -0
  255. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations.rb +220 -0
  256. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_organization.rb +191 -0
  257. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_portfolio_controls.rb +200 -0
  258. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_processing_options.rb +190 -0
  259. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_thirdparty.rb +190 -0
  260. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_thirdparty_provider.rb +250 -0
  261. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_thirdparty_provider_ekata.rb +220 -0
  262. data/lib/cybersource_rest_client/models/risk_products_fraud_management_essentials.rb +200 -0
  263. data/lib/cybersource_rest_client/models/risk_products_fraud_management_essentials_configuration_information.rb +190 -0
  264. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  265. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  266. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  267. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +1 -1
  268. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  269. data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +216 -0
  270. data/lib/cybersource_rest_client/models/save_sym_egress_key.rb +216 -0
  271. data/lib/cybersource_rest_client/models/update_webhook.rb +315 -0
  272. data/lib/cybersource_rest_client/models/value_added_services_products.rb +200 -0
  273. data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +71 -0
  274. data/lib/cybersource_rest_client.rb +214 -13
  275. metadata +216 -29
@@ -0,0 +1,200 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class PaymentProductsSecureAcceptance
17
+ attr_accessor :subscription_information
18
+
19
+ attr_accessor :configuration_information
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'subscription_information' => :'subscriptionInformation',
25
+ :'configuration_information' => :'configurationInformation'
26
+ }
27
+ end
28
+
29
+ # Attribute mapping from JSON key to ruby-style variable name.
30
+ def self.json_map
31
+ {
32
+ :'subscription_information' => :'subscription_information',
33
+ :'configuration_information' => :'configuration_information'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'subscription_information' => :'PaymentProductsPayerAuthenticationSubscriptionInformation',
41
+ :'configuration_information' => :'PaymentProductsSecureAcceptanceConfigurationInformation'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+
53
+ if attributes.has_key?(:'subscriptionInformation')
54
+ self.subscription_information = attributes[:'subscriptionInformation']
55
+ end
56
+
57
+ if attributes.has_key?(:'configurationInformation')
58
+ self.configuration_information = attributes[:'configurationInformation']
59
+ end
60
+ end
61
+
62
+ # Show invalid properties with the reasons. Usually used together with valid?
63
+ # @return Array for valid properties with the reasons
64
+ def list_invalid_properties
65
+ invalid_properties = Array.new
66
+ invalid_properties
67
+ end
68
+
69
+ # Check to see if the all the properties in the model are valid
70
+ # @return true if the model is valid
71
+ def valid?
72
+ true
73
+ end
74
+
75
+ # Checks equality by comparing each attribute.
76
+ # @param [Object] Object to be compared
77
+ def ==(o)
78
+ return true if self.equal?(o)
79
+ self.class == o.class &&
80
+ subscription_information == o.subscription_information &&
81
+ configuration_information == o.configuration_information
82
+ end
83
+
84
+ # @see the `==` method
85
+ # @param [Object] Object to be compared
86
+ def eql?(o)
87
+ self == o
88
+ end
89
+
90
+ # Calculates hash code according to all attributes.
91
+ # @return [Fixnum] Hash code
92
+ def hash
93
+ [subscription_information, configuration_information].hash
94
+ end
95
+
96
+ # Builds the object from hash
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ # @return [Object] Returns the model itself
99
+ def build_from_hash(attributes)
100
+ return nil unless attributes.is_a?(Hash)
101
+ self.class.swagger_types.each_pair do |key, type|
102
+ if type =~ /\AArray<(.*)>/i
103
+ # check to ensure the input is an array given that the the attribute
104
+ # is documented as an array but the input is not
105
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
106
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
107
+ end
108
+ elsif !attributes[self.class.attribute_map[key]].nil?
109
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
110
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
111
+ end
112
+
113
+ self
114
+ end
115
+
116
+ # Deserializes the data based on type
117
+ # @param string type Data type
118
+ # @param string value Value to be deserialized
119
+ # @return [Object] Deserialized data
120
+ def _deserialize(type, value)
121
+ case type.to_sym
122
+ when :DateTime
123
+ DateTime.parse(value)
124
+ when :Date
125
+ Date.parse(value)
126
+ when :String
127
+ value.to_s
128
+ when :Integer
129
+ value.to_i
130
+ when :Float
131
+ value.to_f
132
+ when :BOOLEAN
133
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
134
+ true
135
+ else
136
+ false
137
+ end
138
+ when :Object
139
+ # generic object (usually a Hash), return directly
140
+ value
141
+ when /\AArray<(?<inner_type>.+)>\z/
142
+ inner_type = Regexp.last_match[:inner_type]
143
+ value.map { |v| _deserialize(inner_type, v) }
144
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
145
+ k_type = Regexp.last_match[:k_type]
146
+ v_type = Regexp.last_match[:v_type]
147
+ {}.tap do |hash|
148
+ value.each do |k, v|
149
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
150
+ end
151
+ end
152
+ else # model
153
+ temp_model = CyberSource.const_get(type).new
154
+ temp_model.build_from_hash(value)
155
+ end
156
+ end
157
+
158
+ # Returns the string representation of the object
159
+ # @return [String] String presentation of the object
160
+ def to_s
161
+ to_hash.to_s
162
+ end
163
+
164
+ # to_body is an alias to to_hash (backward compatibility)
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_body
167
+ to_hash
168
+ end
169
+
170
+ # Returns the object in the form of hash
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_hash
173
+ hash = {}
174
+ self.class.attribute_map.each_pair do |attr, param|
175
+ value = self.send(attr)
176
+ next if value.nil?
177
+ hash[param] = _to_hash(value)
178
+ end
179
+ hash
180
+ end
181
+
182
+ # Outputs non-array value in the form of hash
183
+ # For object, use to_hash. Otherwise, just return the value
184
+ # @param [Object] value Any valid value
185
+ # @return [Hash] Returns the value in the form of hash
186
+ def _to_hash(value)
187
+ if value.is_a?(Array)
188
+ value.compact.map { |v| _to_hash(v) }
189
+ elsif value.is_a?(Hash)
190
+ {}.tap do |hash|
191
+ value.each { |k, v| hash[k] = _to_hash(v) }
192
+ end
193
+ elsif value.respond_to? :to_hash
194
+ value.to_hash
195
+ else
196
+ value
197
+ end
198
+ end
199
+ end
200
+ end
@@ -0,0 +1,258 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ # Features relating to notifications being sent directly to the payer using the Hosted Checkout.
17
+ class PaymentProductsSecureAcceptanceConfigurationInformationConfigurationsNotificationsCustomerNotifications
18
+ # Toggles the custom receipt page, where merchants can receive the results of the transaction and display appropriate messaging. Usually set by web developers integrating to Secure Acceptance.
19
+ attr_accessor :custom_receipt_page_enabled
20
+
21
+ # Email address where a copy of the payer's receipt email is sent, when notificationReceiptEmailEnabled is true.
22
+ attr_accessor :receipt_email_address
23
+
24
+ # Toggles an email receipt sent to the payer's email address on payment success.
25
+ attr_accessor :customer_receipt_email_enabled
26
+
27
+ # URL to which transaction results are POSTed when the payer clicks 'Cancel' on the Hosted Checkout. Triggered when customCancelPageEnabled is true. Usually set by web developers integrating to Secure Acceptance.
28
+ attr_accessor :custom_cancel_page
29
+
30
+ # URL to which transaction results are POSTed when the payer requests a payment on the Hosted Checkout. Triggered when customCancelPageEnabled is true. Usually set by web developers integrating to Secure Acceptance.
31
+ attr_accessor :custom_receipt_page
32
+
33
+ # Toggles the custom cancel page, where merchants can receive notice that the payer has canceled, and display appropriate messaging and direction. Usually set by web developers integrating to Secure Acceptance.
34
+ attr_accessor :custom_cancel_page_enabled
35
+
36
+ # Toggles whether merchant receives a copy of the payer's receipt email.
37
+ attr_accessor :notification_receipt_email_enabled
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'custom_receipt_page_enabled' => :'customReceiptPageEnabled',
43
+ :'receipt_email_address' => :'receiptEmailAddress',
44
+ :'customer_receipt_email_enabled' => :'customerReceiptEmailEnabled',
45
+ :'custom_cancel_page' => :'customCancelPage',
46
+ :'custom_receipt_page' => :'customReceiptPage',
47
+ :'custom_cancel_page_enabled' => :'customCancelPageEnabled',
48
+ :'notification_receipt_email_enabled' => :'notificationReceiptEmailEnabled'
49
+ }
50
+ end
51
+
52
+ # Attribute mapping from JSON key to ruby-style variable name.
53
+ def self.json_map
54
+ {
55
+ :'custom_receipt_page_enabled' => :'custom_receipt_page_enabled',
56
+ :'receipt_email_address' => :'receipt_email_address',
57
+ :'customer_receipt_email_enabled' => :'customer_receipt_email_enabled',
58
+ :'custom_cancel_page' => :'custom_cancel_page',
59
+ :'custom_receipt_page' => :'custom_receipt_page',
60
+ :'custom_cancel_page_enabled' => :'custom_cancel_page_enabled',
61
+ :'notification_receipt_email_enabled' => :'notification_receipt_email_enabled'
62
+ }
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.swagger_types
67
+ {
68
+ :'custom_receipt_page_enabled' => :'BOOLEAN',
69
+ :'receipt_email_address' => :'String',
70
+ :'customer_receipt_email_enabled' => :'BOOLEAN',
71
+ :'custom_cancel_page' => :'String',
72
+ :'custom_receipt_page' => :'String',
73
+ :'custom_cancel_page_enabled' => :'BOOLEAN',
74
+ :'notification_receipt_email_enabled' => :'BOOLEAN'
75
+ }
76
+ end
77
+
78
+ # Initializes the object
79
+ # @param [Hash] attributes Model attributes in the form of hash
80
+ def initialize(attributes = {})
81
+ return unless attributes.is_a?(Hash)
82
+
83
+ # convert string to symbol for hash key
84
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
85
+
86
+ if attributes.has_key?(:'customReceiptPageEnabled')
87
+ self.custom_receipt_page_enabled = attributes[:'customReceiptPageEnabled']
88
+ end
89
+
90
+ if attributes.has_key?(:'receiptEmailAddress')
91
+ self.receipt_email_address = attributes[:'receiptEmailAddress']
92
+ end
93
+
94
+ if attributes.has_key?(:'customerReceiptEmailEnabled')
95
+ self.customer_receipt_email_enabled = attributes[:'customerReceiptEmailEnabled']
96
+ end
97
+
98
+ if attributes.has_key?(:'customCancelPage')
99
+ self.custom_cancel_page = attributes[:'customCancelPage']
100
+ end
101
+
102
+ if attributes.has_key?(:'customReceiptPage')
103
+ self.custom_receipt_page = attributes[:'customReceiptPage']
104
+ end
105
+
106
+ if attributes.has_key?(:'customCancelPageEnabled')
107
+ self.custom_cancel_page_enabled = attributes[:'customCancelPageEnabled']
108
+ end
109
+
110
+ if attributes.has_key?(:'notificationReceiptEmailEnabled')
111
+ self.notification_receipt_email_enabled = attributes[:'notificationReceiptEmailEnabled']
112
+ end
113
+ end
114
+
115
+ # Show invalid properties with the reasons. Usually used together with valid?
116
+ # @return Array for valid properties with the reasons
117
+ def list_invalid_properties
118
+ invalid_properties = Array.new
119
+ invalid_properties
120
+ end
121
+
122
+ # Check to see if the all the properties in the model are valid
123
+ # @return true if the model is valid
124
+ def valid?
125
+ true
126
+ end
127
+
128
+ # Checks equality by comparing each attribute.
129
+ # @param [Object] Object to be compared
130
+ def ==(o)
131
+ return true if self.equal?(o)
132
+ self.class == o.class &&
133
+ custom_receipt_page_enabled == o.custom_receipt_page_enabled &&
134
+ receipt_email_address == o.receipt_email_address &&
135
+ customer_receipt_email_enabled == o.customer_receipt_email_enabled &&
136
+ custom_cancel_page == o.custom_cancel_page &&
137
+ custom_receipt_page == o.custom_receipt_page &&
138
+ custom_cancel_page_enabled == o.custom_cancel_page_enabled &&
139
+ notification_receipt_email_enabled == o.notification_receipt_email_enabled
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Fixnum] Hash code
150
+ def hash
151
+ [custom_receipt_page_enabled, receipt_email_address, customer_receipt_email_enabled, custom_cancel_page, custom_receipt_page, custom_cancel_page_enabled, notification_receipt_email_enabled].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ self.class.swagger_types.each_pair do |key, type|
160
+ if type =~ /\AArray<(.*)>/i
161
+ # check to ensure the input is an array given that the the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
164
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
165
+ end
166
+ elsif !attributes[self.class.attribute_map[key]].nil?
167
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
169
+ end
170
+
171
+ self
172
+ end
173
+
174
+ # Deserializes the data based on type
175
+ # @param string type Data type
176
+ # @param string value Value to be deserialized
177
+ # @return [Object] Deserialized data
178
+ def _deserialize(type, value)
179
+ case type.to_sym
180
+ when :DateTime
181
+ DateTime.parse(value)
182
+ when :Date
183
+ Date.parse(value)
184
+ when :String
185
+ value.to_s
186
+ when :Integer
187
+ value.to_i
188
+ when :Float
189
+ value.to_f
190
+ when :BOOLEAN
191
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
+ true
193
+ else
194
+ false
195
+ end
196
+ when :Object
197
+ # generic object (usually a Hash), return directly
198
+ value
199
+ when /\AArray<(?<inner_type>.+)>\z/
200
+ inner_type = Regexp.last_match[:inner_type]
201
+ value.map { |v| _deserialize(inner_type, v) }
202
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
+ k_type = Regexp.last_match[:k_type]
204
+ v_type = Regexp.last_match[:v_type]
205
+ {}.tap do |hash|
206
+ value.each do |k, v|
207
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
+ end
209
+ end
210
+ else # model
211
+ temp_model = CyberSource.const_get(type).new
212
+ temp_model.build_from_hash(value)
213
+ end
214
+ end
215
+
216
+ # Returns the string representation of the object
217
+ # @return [String] String presentation of the object
218
+ def to_s
219
+ to_hash.to_s
220
+ end
221
+
222
+ # to_body is an alias to to_hash (backward compatibility)
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_body
225
+ to_hash
226
+ end
227
+
228
+ # Returns the object in the form of hash
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_hash
231
+ hash = {}
232
+ self.class.attribute_map.each_pair do |attr, param|
233
+ value = self.send(attr)
234
+ next if value.nil?
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map { |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+ end
258
+ end
@@ -0,0 +1,235 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class PaymentProductsSecureAcceptanceConfigurationInformationConfigurationsNotificationsMerchantNotifications
17
+ # Enables Webhook transaction confirmation messages sent to URL defined in backofficePostUrl. Usually enabled by web developers integrating to Secure Acceptance.
18
+ attr_accessor :backoffice_post_enabled
19
+
20
+ # Email address to receive transaction confirmation messages.
21
+ attr_accessor :backoffice_email_address
22
+
23
+ # Enables email transaction confirmation messages, sent to the address specified in backofficeEmailAddress.
24
+ attr_accessor :backoffice_email_enabled
25
+
26
+ # Webhook URL to which transaction confirmation is sent. Usually completed by the web developers integrating to Secure Acceptance.
27
+ attr_accessor :backoffice_post_url
28
+
29
+ # Format in which the card number should be masked in the notifications. Valid values: `1` - Display first 6 digits only (e.g. \"444433**********\") `2` - Display last four digits only (e.g. \"************1111\") `3` - Display First six and last four digits (e.g. \"444433******1111\")
30
+ attr_accessor :card_number_format
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'backoffice_post_enabled' => :'backofficePostEnabled',
36
+ :'backoffice_email_address' => :'backofficeEmailAddress',
37
+ :'backoffice_email_enabled' => :'backofficeEmailEnabled',
38
+ :'backoffice_post_url' => :'backofficePostUrl',
39
+ :'card_number_format' => :'cardNumberFormat'
40
+ }
41
+ end
42
+
43
+ # Attribute mapping from JSON key to ruby-style variable name.
44
+ def self.json_map
45
+ {
46
+ :'backoffice_post_enabled' => :'backoffice_post_enabled',
47
+ :'backoffice_email_address' => :'backoffice_email_address',
48
+ :'backoffice_email_enabled' => :'backoffice_email_enabled',
49
+ :'backoffice_post_url' => :'backoffice_post_url',
50
+ :'card_number_format' => :'card_number_format'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'backoffice_post_enabled' => :'BOOLEAN',
58
+ :'backoffice_email_address' => :'String',
59
+ :'backoffice_email_enabled' => :'BOOLEAN',
60
+ :'backoffice_post_url' => :'String',
61
+ :'card_number_format' => :'String'
62
+ }
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ return unless attributes.is_a?(Hash)
69
+
70
+ # convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
+
73
+ if attributes.has_key?(:'backofficePostEnabled')
74
+ self.backoffice_post_enabled = attributes[:'backofficePostEnabled']
75
+ end
76
+
77
+ if attributes.has_key?(:'backofficeEmailAddress')
78
+ self.backoffice_email_address = attributes[:'backofficeEmailAddress']
79
+ end
80
+
81
+ if attributes.has_key?(:'backofficeEmailEnabled')
82
+ self.backoffice_email_enabled = attributes[:'backofficeEmailEnabled']
83
+ end
84
+
85
+ if attributes.has_key?(:'backofficePostUrl')
86
+ self.backoffice_post_url = attributes[:'backofficePostUrl']
87
+ end
88
+
89
+ if attributes.has_key?(:'cardNumberFormat')
90
+ self.card_number_format = attributes[:'cardNumberFormat']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ true
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ backoffice_post_enabled == o.backoffice_post_enabled &&
113
+ backoffice_email_address == o.backoffice_email_address &&
114
+ backoffice_email_enabled == o.backoffice_email_enabled &&
115
+ backoffice_post_url == o.backoffice_post_url &&
116
+ card_number_format == o.card_number_format
117
+ end
118
+
119
+ # @see the `==` method
120
+ # @param [Object] Object to be compared
121
+ def eql?(o)
122
+ self == o
123
+ end
124
+
125
+ # Calculates hash code according to all attributes.
126
+ # @return [Fixnum] Hash code
127
+ def hash
128
+ [backoffice_post_enabled, backoffice_email_address, backoffice_email_enabled, backoffice_post_url, card_number_format].hash
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def build_from_hash(attributes)
135
+ return nil unless attributes.is_a?(Hash)
136
+ self.class.swagger_types.each_pair do |key, type|
137
+ if type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the the attribute
139
+ # is documented as an array but the input is not
140
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
141
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
142
+ end
143
+ elsif !attributes[self.class.attribute_map[key]].nil?
144
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
146
+ end
147
+
148
+ self
149
+ end
150
+
151
+ # Deserializes the data based on type
152
+ # @param string type Data type
153
+ # @param string value Value to be deserialized
154
+ # @return [Object] Deserialized data
155
+ def _deserialize(type, value)
156
+ case type.to_sym
157
+ when :DateTime
158
+ DateTime.parse(value)
159
+ when :Date
160
+ Date.parse(value)
161
+ when :String
162
+ value.to_s
163
+ when :Integer
164
+ value.to_i
165
+ when :Float
166
+ value.to_f
167
+ when :BOOLEAN
168
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
169
+ true
170
+ else
171
+ false
172
+ end
173
+ when :Object
174
+ # generic object (usually a Hash), return directly
175
+ value
176
+ when /\AArray<(?<inner_type>.+)>\z/
177
+ inner_type = Regexp.last_match[:inner_type]
178
+ value.map { |v| _deserialize(inner_type, v) }
179
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
180
+ k_type = Regexp.last_match[:k_type]
181
+ v_type = Regexp.last_match[:v_type]
182
+ {}.tap do |hash|
183
+ value.each do |k, v|
184
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
185
+ end
186
+ end
187
+ else # model
188
+ temp_model = CyberSource.const_get(type).new
189
+ temp_model.build_from_hash(value)
190
+ end
191
+ end
192
+
193
+ # Returns the string representation of the object
194
+ # @return [String] String presentation of the object
195
+ def to_s
196
+ to_hash.to_s
197
+ end
198
+
199
+ # to_body is an alias to to_hash (backward compatibility)
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_body
202
+ to_hash
203
+ end
204
+
205
+ # Returns the object in the form of hash
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_hash
208
+ hash = {}
209
+ self.class.attribute_map.each_pair do |attr, param|
210
+ value = self.send(attr)
211
+ next if value.nil?
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+ end
235
+ end