cybersource_rest_client 0.0.83 → 0.0.84

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 (222) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +46 -27
  3. data/lib/AuthenticationSDK/core/MerchantConfig.rb +82 -48
  4. data/lib/AuthenticationSDK/util/Cache.rb +7 -4
  5. data/lib/AuthenticationSDK/util/Constants.rb +6 -0
  6. data/lib/AuthenticationSDK/util/MLEUtility.rb +9 -0
  7. data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
  8. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +14 -22
  9. data/lib/cybersource_rest_client/api/credentials_api.rb +104 -0
  10. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
  11. data/lib/cybersource_rest_client/api/enrollment_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/instructions_api.rb +10 -10
  13. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -28
  15. data/lib/cybersource_rest_client/api/network_tokens_api.rb +654 -0
  16. data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
  17. data/lib/cybersource_rest_client/api/subscriptions_api.rb +183 -1
  18. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +1 -1
  19. data/lib/cybersource_rest_client/api_client.rb +4 -0
  20. data/lib/cybersource_rest_client/models/account_validations_request.rb +15 -5
  21. data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +1 -1
  22. data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +1 -1
  23. data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +1 -1
  24. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +1 -1
  25. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +1 -1
  26. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +1 -1
  27. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge.rb +369 -0
  28. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge_encryption_jwk.rb +336 -0
  29. data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +7 -7
  30. data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +1 -1
  31. data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +1 -1
  32. data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +1 -1
  33. data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +1 -1
  34. data/lib/cybersource_rest_client/models/acpv1tokens_consumer_identity.rb +1 -1
  35. data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +1 -1
  36. data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +1 -1
  37. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +1 -1
  38. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +11 -1
  39. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information.rb +32 -6
  40. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank.rb +1 -1
  41. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account.rb +1 -1
  42. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_customer.rb +196 -0
  43. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_instrument_identifier.rb +196 -0
  44. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_payment_instrument.rb +196 -0
  45. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_token_information.rb +208 -0
  46. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +105 -1
  47. data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +15 -5
  48. data/lib/cybersource_rest_client/models/create_credit_request.rb +15 -5
  49. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +22 -5
  50. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response.rb +247 -0
  51. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_1.rb +224 -0
  52. data/lib/cybersource_rest_client/models/{pbl_payment_links_post201_response__links.rb → get_subscriptions_payments_response_1__links.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response__links.rb +209 -0
  54. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_cycles_completed_count.rb +191 -0
  55. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_subscription_payment.rb +356 -0
  56. data/lib/cybersource_rest_client/models/inline_response_201_1_tokenized_card.rb +26 -5
  57. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_commerce_solutions.rb +15 -5
  58. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_payments.rb +25 -5
  59. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_risk.rb +15 -5
  60. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_value_added_services.rb +25 -5
  61. data/lib/cybersource_rest_client/models/inline_response_400_10.rb +30 -75
  62. data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_10_details.rb} +1 -1
  63. data/lib/cybersource_rest_client/models/inline_response_400_11.rb +235 -0
  64. data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_11_details.rb} +3 -3
  65. data/lib/cybersource_rest_client/models/inline_response_400_12.rb +281 -0
  66. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +37 -60
  67. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +6 -6
  68. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +58 -36
  69. data/lib/cybersource_rest_client/models/{inline_response_400_6_fields.rb → inline_response_400_8_fields.rb} +1 -1
  70. data/lib/cybersource_rest_client/models/inline_response_400_9.rb +16 -16
  71. data/lib/cybersource_rest_client/models/inline_response_400_9_details.rb +2 -2
  72. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
  74. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +73 -5
  75. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +11 -1
  76. data/lib/cybersource_rest_client/models/mpp_credentials_request.rb +221 -0
  77. data/lib/cybersource_rest_client/models/mpp_credentials_response200.rb +338 -0
  78. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
  79. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  80. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
  81. data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded.rb +1 -1
  82. data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
  83. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded__embedded.rb → payment_instrument_list__embedded__embedded.rb} +1 -1
  84. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded_payment_instruments.rb → payment_instrument_list__embedded_payment_instruments.rb} +2 -2
  85. data/lib/cybersource_rest_client/models/payments_products.rb +25 -5
  86. data/lib/cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors.rb +14 -2
  87. data/lib/cybersource_rest_client/models/payments_products_microform.rb +199 -0
  88. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information.rb +199 -0
  89. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations.rb +189 -0
  90. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features.rb +189 -0
  91. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features_gateway_agnostic.rb +189 -0
  92. data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +227 -0
  93. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
  94. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
  95. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
  96. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  97. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
  98. data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +15 -5
  99. data/lib/cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information.rb +80 -1
  100. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +41 -1
  101. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_merchant_information.rb +196 -0
  102. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_account_information.rb +189 -0
  103. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +15 -5
  104. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information_account_features.rb +196 -0
  105. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_token_information.rb +189 -0
  106. data/lib/cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information.rb +35 -1
  107. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +22 -5
  108. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +1 -1
  109. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details.rb +1 -1
  110. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +106 -5
  111. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +22 -5
  112. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +15 -5
  113. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_payment_information_tokenized_card.rb → pts_v2_payments_post201_response_payment_account_information_tokenized_card.rb} +1 -1
  114. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
  115. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +18 -1
  116. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +23 -6
  117. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +15 -5
  118. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_third_party_token.rb +213 -0
  119. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  120. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +1 -1
  121. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +18 -1
  122. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +19 -2
  123. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +1 -1
  124. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +7 -1
  125. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +45 -5
  126. data/lib/cybersource_rest_client/models/{pull_funds201_response_processor_information_avs.rb → pts_v2_payouts_post201_response_processor_information_avs.rb} +1 -1
  127. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_customer.rb +196 -0
  128. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_electronic_verification_results.rb +281 -0
  129. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_buyer_information.rb +196 -0
  130. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +1 -1
  131. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +18 -5
  132. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +19 -6
  133. data/lib/cybersource_rest_client/models/ptsv2billingagreements_agreement_information.rb +84 -5
  134. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb +12 -2
  135. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_amount_details.rb +230 -0
  136. data/lib/cybersource_rest_client/models/{ptsv2intents_order_information_invoice_details.rb → ptsv2billingagreements_order_information_invoice_details.rb} +1 -1
  137. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank.rb +15 -5
  138. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account_alias.rb +207 -0
  139. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +18 -1
  140. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information.rb +56 -5
  141. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_processing_information.rb +18 -1
  142. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +35 -5
  143. data/lib/cybersource_rest_client/models/ptsv2credits_token_information.rb +228 -0
  144. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +1 -1
  145. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +1 -1
  146. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +15 -5
  147. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +16 -5
  148. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +28 -1
  149. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_digital_currency.rb +231 -0
  150. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +23 -6
  151. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +32 -5
  152. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +15 -5
  153. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account_alias.rb +207 -0
  154. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_third_party_token.rb +196 -0
  155. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -1
  156. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +72 -6
  157. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_program_indicators.rb +202 -0
  158. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +56 -5
  159. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +16 -5
  160. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +16 -5
  161. data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +32 -5
  162. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information.rb +193 -0
  163. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information_authenticated_identities.rb +252 -0
  164. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +15 -5
  165. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +100 -5
  166. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +22 -5
  167. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +18 -1
  168. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information.rb +39 -5
  169. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +15 -5
  170. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_shipping_details.rb +196 -0
  171. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +32 -5
  172. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_device_information.rb +196 -0
  173. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information.rb +22 -5
  174. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +18 -5
  175. data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +36 -6
  176. data/lib/cybersource_rest_client/models/pull_funds_request.rb +11 -1
  177. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +45 -5
  178. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  179. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +39 -5
  180. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +1 -1
  181. data/lib/cybersource_rest_client/models/tms_card_art.rb +23 -1
  182. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to.rb +22 -5
  183. data/lib/cybersource_rest_client/models/tms_tokenized_card_delete_request.rb +189 -0
  184. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments__embedded.rb +190 -0
  185. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +22 -1
  186. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -1
  187. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +16 -5
  188. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +41 -8
  189. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_bank_applications.rb +201 -0
  190. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_capabilities.rb +257 -0
  191. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_verification_results.rb +202 -0
  192. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +200 -0
  193. data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv2tokenizedcards_bill_to.rb} +1 -1
  194. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_iddelete_reason.rb +208 -0
  195. data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_order_information.rb +1 -1
  196. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +1 -1
  197. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +1 -1
  198. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +44 -14
  199. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +325 -0
  200. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +366 -0
  201. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +22 -5
  202. data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +196 -0
  203. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +22 -5
  204. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +18 -1
  205. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +16 -6
  206. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +86 -12
  207. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details.rb +242 -0
  208. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details_transaction_advice_addendum.rb +196 -0
  209. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_line_items.rb +702 -0
  210. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_shipping_details.rb +213 -0
  211. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +38 -1
  212. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_bank_transfer_options.rb +196 -0
  213. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +192 -0
  214. data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +107 -53
  215. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information.rb +376 -0
  216. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information_account.rb +213 -0
  217. data/lib/cybersource_rest_client/models/update_payments.rb +192 -0
  218. data/lib/cybersource_rest_client/models/value_added_services_products.rb +25 -5
  219. data/lib/cybersource_rest_client.rb +71 -12
  220. metadata +78 -19
  221. data/lib/cybersource_rest_client/api/token_api.rb +0 -306
  222. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +0 -371
@@ -31,6 +31,9 @@ module CyberSource
31
31
  # Contains the ISO 639-2 defined language Code
32
32
  attr_accessor :language_code
33
33
 
34
+ # Account verification code will inform what Payment Account Verification should be performed. With this array of codes, a merchant can choose à la carte what verifications to run. This field is optional, and the default is 1 if it is not passed in. This means that a full validation of the fields will be performed. Valid verification codes: - `1` = Full Account Verification (Card Account, CVN, CAVV, TAVV, Address, Name, eMail, Phone, Identity) - `2` = Card Account Verification - `3` = Address Verification - `4` = Card Authentication Method (CAM) (Cryptogram) - `5` = Cardholder Authentication Verification (CAVV) - `6` = Cardholder Identity Verification - `7` = CVV2 Verification - `8` = eMail Verification - `9` = Name Verification - `10` = Phone Verification
35
+ attr_accessor :account_verification_code
36
+
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
35
38
  def self.attribute_map
36
39
  {
@@ -40,7 +43,8 @@ module CyberSource
40
43
  :'business_application_id' => :'businessApplicationId',
41
44
  :'purpose_of_payment' => :'purposeOfPayment',
42
45
  :'payouts_options' => :'payoutsOptions',
43
- :'language_code' => :'languageCode'
46
+ :'language_code' => :'languageCode',
47
+ :'account_verification_code' => :'accountVerificationCode'
44
48
  }
45
49
  end
46
50
 
@@ -53,7 +57,8 @@ module CyberSource
53
57
  :'business_application_id' => :'business_application_id',
54
58
  :'purpose_of_payment' => :'purpose_of_payment',
55
59
  :'payouts_options' => :'payouts_options',
56
- :'language_code' => :'language_code'
60
+ :'language_code' => :'language_code',
61
+ :'account_verification_code' => :'account_verification_code'
57
62
  }
58
63
  end
59
64
 
@@ -66,7 +71,8 @@ module CyberSource
66
71
  :'business_application_id' => :'String',
67
72
  :'purpose_of_payment' => :'String',
68
73
  :'payouts_options' => :'Ptsv1pullfundstransferProcessingInformationPayoutsOptions',
69
- :'language_code' => :'String'
74
+ :'language_code' => :'String',
75
+ :'account_verification_code' => :'Array<String>'
70
76
  }
71
77
  end
72
78
 
@@ -105,6 +111,12 @@ module CyberSource
105
111
  if attributes.has_key?(:'languageCode')
106
112
  self.language_code = attributes[:'languageCode']
107
113
  end
114
+
115
+ if attributes.has_key?(:'accountVerificationCode')
116
+ if (value = attributes[:'accountVerificationCode']).is_a?(Array)
117
+ self.account_verification_code = value
118
+ end
119
+ end
108
120
  end
109
121
 
110
122
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -173,7 +185,8 @@ module CyberSource
173
185
  business_application_id == o.business_application_id &&
174
186
  purpose_of_payment == o.purpose_of_payment &&
175
187
  payouts_options == o.payouts_options &&
176
- language_code == o.language_code
188
+ language_code == o.language_code &&
189
+ account_verification_code == o.account_verification_code
177
190
  end
178
191
 
179
192
  # @see the `==` method
@@ -185,7 +198,7 @@ module CyberSource
185
198
  # Calculates hash code according to all attributes.
186
199
  # @return [Fixnum] Hash code
187
200
  def hash
188
- [commerce_indicator, funding_options, recurring_options, business_application_id, purpose_of_payment, payouts_options, language_code].hash
201
+ [commerce_indicator, funding_options, recurring_options, business_application_id, purpose_of_payment, payouts_options, language_code, account_verification_code].hash
189
202
  end
190
203
 
191
204
  # Builds the object from hash
@@ -21,7 +21,7 @@ module CyberSource
21
21
  # Fee Program Indicator. This field identifies the interchange fee program applicable to each financial transaction. Fee program indicator (FPI) values correspond to the fee descriptor and rate for each existing fee program.
22
22
  attr_accessor :fee_program_id
23
23
 
24
- # Merchant payment gateway ID that is assigned by Mastercard and is provided by the acquirer when a registered merchant payment gateway service provider is involved in the transaction.
24
+ # Merchant payment gateway ID that is assigned by Mastercard and is provided by the acquirer when a registered merchant payment gateway service provider is involved in the transaction. This field is supported for Visa Platform Connect, Chase Paymentech Salem.
25
25
  attr_accessor :network_partner_id
26
26
 
27
27
  # This field contains coding that identifies (1) the customer transaction type and (2) the customer account types affected by the transaction. Default: 5402 (Original Credit Transaction) Contains codes that combined with some other fields such as the BAI (Business Application Id) identify some unique use cases. For Sales Tax rebates this field should be populated with the value 5120 (Value-added tax/Sales Tax) along with the businessApplicationId field set to the value 'FD' which indicates this push funds transfer is being conducted in order to facilitate a sales tax refund.
@@ -36,6 +36,9 @@ module CyberSource
36
36
  # Transaction's reference number.
37
37
  attr_accessor :reconciliation_id
38
38
 
39
+ # Account verification code will inform what Payment Account Verification should be performed. With this array of codes, a merchant can choose à la carte what verifications to run. This field is optional, and the default is 1 if it is not passed in. This means that a full validation of the fields will be performed. Valid verification codes: - `1` = Full Account Verification (Card Account, CVN, CAVV, TAVV, Address, Name, eMail, Phone, Identity) - `2` = Card Account Verification - `3` = Address Verification - `4` = Card Authentication Method (CAM) (Cryptogram) - `5` = Cardholder Authentication Verification (CAVV) - `6` = Cardholder Identity Verification - `7` = CVV2 Verification - `8` = eMail Verification - `9` = Name Verification - `10` = Phone Verification
40
+ attr_accessor :account_verification_code
41
+
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
@@ -46,7 +49,8 @@ module CyberSource
46
49
  :'processing_code' => :'processingCode',
47
50
  :'sharing_group_code' => :'sharingGroupCode',
48
51
  :'purpose_of_payment' => :'purposeOfPayment',
49
- :'reconciliation_id' => :'reconciliationId'
52
+ :'reconciliation_id' => :'reconciliationId',
53
+ :'account_verification_code' => :'accountVerificationCode'
50
54
  }
51
55
  end
52
56
 
@@ -60,7 +64,8 @@ module CyberSource
60
64
  :'processing_code' => :'processing_code',
61
65
  :'sharing_group_code' => :'sharing_group_code',
62
66
  :'purpose_of_payment' => :'purpose_of_payment',
63
- :'reconciliation_id' => :'reconciliation_id'
67
+ :'reconciliation_id' => :'reconciliation_id',
68
+ :'account_verification_code' => :'account_verification_code'
64
69
  }
65
70
  end
66
71
 
@@ -74,7 +79,8 @@ module CyberSource
74
79
  :'processing_code' => :'String',
75
80
  :'sharing_group_code' => :'String',
76
81
  :'purpose_of_payment' => :'String',
77
- :'reconciliation_id' => :'String'
82
+ :'reconciliation_id' => :'String',
83
+ :'account_verification_code' => :'Array<String>'
78
84
  }
79
85
  end
80
86
 
@@ -117,6 +123,12 @@ module CyberSource
117
123
  if attributes.has_key?(:'reconciliationId')
118
124
  self.reconciliation_id = attributes[:'reconciliationId']
119
125
  end
126
+
127
+ if attributes.has_key?(:'accountVerificationCode')
128
+ if (value = attributes[:'accountVerificationCode']).is_a?(Array)
129
+ self.account_verification_code = value
130
+ end
131
+ end
120
132
  end
121
133
 
122
134
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -213,7 +225,8 @@ module CyberSource
213
225
  processing_code == o.processing_code &&
214
226
  sharing_group_code == o.sharing_group_code &&
215
227
  purpose_of_payment == o.purpose_of_payment &&
216
- reconciliation_id == o.reconciliation_id
228
+ reconciliation_id == o.reconciliation_id &&
229
+ account_verification_code == o.account_verification_code
217
230
  end
218
231
 
219
232
  # @see the `==` method
@@ -225,7 +238,7 @@ module CyberSource
225
238
  # Calculates hash code according to all attributes.
226
239
  # @return [Fixnum] Hash code
227
240
  def hash
228
- [business_application_id, payouts_options, fee_program_id, network_partner_id, processing_code, sharing_group_code, purpose_of_payment, reconciliation_id].hash
241
+ [business_application_id, payouts_options, fee_program_id, network_partner_id, processing_code, sharing_group_code, purpose_of_payment, reconciliation_id, account_verification_code].hash
229
242
  end
230
243
 
231
244
  # Builds the object from hash
@@ -19,11 +19,31 @@ module CyberSource
19
19
  # Date the mandate has been signed. Format YYYYMMdd #### SEPA/BACS Required for Import Mandate
20
20
  attr_accessor :date_signed
21
21
 
22
+ # Identifies the type of schedule as either recurring, one-off, split or usage. Possible values: - recurring - oneoff - split - usage
23
+ attr_accessor :type
24
+
25
+ # Regularity with which the event occurs. Possible values: - annual - monthly - quarterly - semiannual - weekly - daily - adhoc - intraday - fortnightly
26
+ attr_accessor :frequency
27
+
28
+ # Number of occurrences during the specified period.
29
+ attr_accessor :occurrences_per_period
30
+
31
+ # Start date of the schedule. Format YYYYMMdd
32
+ attr_accessor :start_date
33
+
34
+ # End date of the schedule. Format YYYYMMdd
35
+ attr_accessor :end_date
36
+
22
37
  # Attribute mapping from ruby-style variable name to JSON key.
23
38
  def self.attribute_map
24
39
  {
25
40
  :'id' => :'id',
26
- :'date_signed' => :'dateSigned'
41
+ :'date_signed' => :'dateSigned',
42
+ :'type' => :'type',
43
+ :'frequency' => :'frequency',
44
+ :'occurrences_per_period' => :'occurrencesPerPeriod',
45
+ :'start_date' => :'startDate',
46
+ :'end_date' => :'endDate'
27
47
  }
28
48
  end
29
49
 
@@ -31,7 +51,12 @@ module CyberSource
31
51
  def self.json_map
32
52
  {
33
53
  :'id' => :'id',
34
- :'date_signed' => :'date_signed'
54
+ :'date_signed' => :'date_signed',
55
+ :'type' => :'type',
56
+ :'frequency' => :'frequency',
57
+ :'occurrences_per_period' => :'occurrences_per_period',
58
+ :'start_date' => :'start_date',
59
+ :'end_date' => :'end_date'
35
60
  }
36
61
  end
37
62
 
@@ -39,7 +64,12 @@ module CyberSource
39
64
  def self.swagger_types
40
65
  {
41
66
  :'id' => :'String',
42
- :'date_signed' => :'String'
67
+ :'date_signed' => :'String',
68
+ :'type' => :'String',
69
+ :'frequency' => :'String',
70
+ :'occurrences_per_period' => :'Integer',
71
+ :'start_date' => :'String',
72
+ :'end_date' => :'String'
43
73
  }
44
74
  end
45
75
 
@@ -58,6 +88,26 @@ module CyberSource
58
88
  if attributes.has_key?(:'dateSigned')
59
89
  self.date_signed = attributes[:'dateSigned']
60
90
  end
91
+
92
+ if attributes.has_key?(:'type')
93
+ self.type = attributes[:'type']
94
+ end
95
+
96
+ if attributes.has_key?(:'frequency')
97
+ self.frequency = attributes[:'frequency']
98
+ end
99
+
100
+ if attributes.has_key?(:'occurrencesPerPeriod')
101
+ self.occurrences_per_period = attributes[:'occurrencesPerPeriod']
102
+ end
103
+
104
+ if attributes.has_key?(:'startDate')
105
+ self.start_date = attributes[:'startDate']
106
+ end
107
+
108
+ if attributes.has_key?(:'endDate')
109
+ self.end_date = attributes[:'endDate']
110
+ end
61
111
  end
62
112
 
63
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -85,13 +135,42 @@ module CyberSource
85
135
  @date_signed = date_signed
86
136
  end
87
137
 
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] type Value to be assigned
140
+ def type=(type)
141
+ @type = type
142
+ end
143
+
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] frequency Value to be assigned
146
+ def frequency=(frequency)
147
+ @frequency = frequency
148
+ end
149
+
150
+ # Custom attribute writer method with validation
151
+ # @param [Object] start_date Value to be assigned
152
+ def start_date=(start_date)
153
+ @start_date = start_date
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] end_date Value to be assigned
158
+ def end_date=(end_date)
159
+ @end_date = end_date
160
+ end
161
+
88
162
  # Checks equality by comparing each attribute.
89
163
  # @param [Object] Object to be compared
90
164
  def ==(o)
91
165
  return true if self.equal?(o)
92
166
  self.class == o.class &&
93
167
  id == o.id &&
94
- date_signed == o.date_signed
168
+ date_signed == o.date_signed &&
169
+ type == o.type &&
170
+ frequency == o.frequency &&
171
+ occurrences_per_period == o.occurrences_per_period &&
172
+ start_date == o.start_date &&
173
+ end_date == o.end_date
95
174
  end
96
175
 
97
176
  # @see the `==` method
@@ -103,7 +182,7 @@ module CyberSource
103
182
  # Calculates hash code according to all attributes.
104
183
  # @return [Fixnum] Hash code
105
184
  def hash
106
- [id, date_signed].hash
185
+ [id, date_signed, type, frequency, occurrences_per_period, start_date, end_date].hash
107
186
  end
108
187
 
109
188
  # Builds the object from hash
@@ -15,12 +15,15 @@ module CyberSource
15
15
  class Ptsv2billingagreementsOrderInformation
16
16
  attr_accessor :amount_details
17
17
 
18
+ attr_accessor :invoice_details
19
+
18
20
  attr_accessor :bill_to
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
25
  :'amount_details' => :'amountDetails',
26
+ :'invoice_details' => :'invoiceDetails',
24
27
  :'bill_to' => :'billTo'
25
28
  }
26
29
  end
@@ -29,6 +32,7 @@ module CyberSource
29
32
  def self.json_map
30
33
  {
31
34
  :'amount_details' => :'amount_details',
35
+ :'invoice_details' => :'invoice_details',
32
36
  :'bill_to' => :'bill_to'
33
37
  }
34
38
  end
@@ -36,7 +40,8 @@ module CyberSource
36
40
  # Attribute type mapping.
37
41
  def self.swagger_types
38
42
  {
39
- :'amount_details' => :'Ptsv2paymentsidreversalsReversalInformationAmountDetails',
43
+ :'amount_details' => :'Ptsv2billingagreementsOrderInformationAmountDetails',
44
+ :'invoice_details' => :'Ptsv2billingagreementsOrderInformationInvoiceDetails',
40
45
  :'bill_to' => :'Ptsv2billingagreementsOrderInformationBillTo'
41
46
  }
42
47
  end
@@ -53,6 +58,10 @@ module CyberSource
53
58
  self.amount_details = attributes[:'amountDetails']
54
59
  end
55
60
 
61
+ if attributes.has_key?(:'invoiceDetails')
62
+ self.invoice_details = attributes[:'invoiceDetails']
63
+ end
64
+
56
65
  if attributes.has_key?(:'billTo')
57
66
  self.bill_to = attributes[:'billTo']
58
67
  end
@@ -77,6 +86,7 @@ module CyberSource
77
86
  return true if self.equal?(o)
78
87
  self.class == o.class &&
79
88
  amount_details == o.amount_details &&
89
+ invoice_details == o.invoice_details &&
80
90
  bill_to == o.bill_to
81
91
  end
82
92
 
@@ -89,7 +99,7 @@ module CyberSource
89
99
  # Calculates hash code according to all attributes.
90
100
  # @return [Fixnum] Hash code
91
101
  def hash
92
- [amount_details, bill_to].hash
102
+ [amount_details, invoice_details, bill_to].hash
93
103
  end
94
104
 
95
105
  # Builds the object from hash
@@ -0,0 +1,230 @@
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 Ptsv2billingagreementsOrderInformationAmountDetails
16
+ # Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Card Present Required to include either this field or `orderInformation.lineItems[].unitPrice` for the order. #### Invoicing / Pay By Link Required for creating a new invoice or payment link. #### PIN Debit Amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit; however, for all other processors, these fields are required. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. #### DCC for First Data Not used.
17
+ attr_accessor :total_amount
18
+
19
+ # Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency.
20
+ attr_accessor :currency
21
+
22
+ # Maximum amount that may be collected from the customer's account.
23
+ attr_accessor :total_max_amount
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'total_amount' => :'totalAmount',
29
+ :'currency' => :'currency',
30
+ :'total_max_amount' => :'totalMaxAmount'
31
+ }
32
+ end
33
+
34
+ # Attribute mapping from JSON key to ruby-style variable name.
35
+ def self.json_map
36
+ {
37
+ :'total_amount' => :'total_amount',
38
+ :'currency' => :'currency',
39
+ :'total_max_amount' => :'total_max_amount'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.swagger_types
45
+ {
46
+ :'total_amount' => :'String',
47
+ :'currency' => :'String',
48
+ :'total_max_amount' => :'String'
49
+ }
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ return unless attributes.is_a?(Hash)
56
+
57
+ # convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
59
+
60
+ if attributes.has_key?(:'totalAmount')
61
+ self.total_amount = attributes[:'totalAmount']
62
+ end
63
+
64
+ if attributes.has_key?(:'currency')
65
+ self.currency = attributes[:'currency']
66
+ end
67
+
68
+ if attributes.has_key?(:'totalMaxAmount')
69
+ self.total_max_amount = attributes[:'totalMaxAmount']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Custom attribute writer method with validation
87
+ # @param [Object] total_amount Value to be assigned
88
+ def total_amount=(total_amount)
89
+ @total_amount = total_amount
90
+ end
91
+
92
+ # Custom attribute writer method with validation
93
+ # @param [Object] currency Value to be assigned
94
+ def currency=(currency)
95
+ @currency = currency
96
+ end
97
+
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] total_max_amount Value to be assigned
100
+ def total_max_amount=(total_max_amount)
101
+ @total_max_amount = total_max_amount
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ total_amount == o.total_amount &&
110
+ currency == o.currency &&
111
+ total_max_amount == o.total_max_amount
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Fixnum] Hash code
122
+ def hash
123
+ [total_amount, currency, total_max_amount].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ self.class.swagger_types.each_pair do |key, type|
132
+ if type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :DateTime
153
+ DateTime.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :BOOLEAN
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ temp_model = CyberSource.const_get(type).new
184
+ temp_model.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ next if value.nil?
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+ end
230
+ end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Ptsv2intentsOrderInformationInvoiceDetails
15
+ class Ptsv2billingagreementsOrderInformationInvoiceDetails
16
16
  # Brief description of item.
17
17
  attr_accessor :product_description
18
18
 
@@ -24,13 +24,16 @@ module CyberSource
24
24
  # The scheme that sets the rules for the direct debit process. Possible values: - SEPA - BACS #### SEPA/BACS Required for mandates services
25
25
  attr_accessor :scheme
26
26
 
27
+ attr_accessor :account_alias
28
+
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
28
30
  def self.attribute_map
29
31
  {
30
32
  :'account' => :'account',
31
33
  :'iban' => :'iban',
32
34
  :'swift_code' => :'swiftCode',
33
- :'scheme' => :'scheme'
35
+ :'scheme' => :'scheme',
36
+ :'account_alias' => :'accountAlias'
34
37
  }
35
38
  end
36
39
 
@@ -40,7 +43,8 @@ module CyberSource
40
43
  :'account' => :'account',
41
44
  :'iban' => :'iban',
42
45
  :'swift_code' => :'swift_code',
43
- :'scheme' => :'scheme'
46
+ :'scheme' => :'scheme',
47
+ :'account_alias' => :'account_alias'
44
48
  }
45
49
  end
46
50
 
@@ -50,7 +54,8 @@ module CyberSource
50
54
  :'account' => :'Ptsv2billingagreementsPaymentInformationBankAccount',
51
55
  :'iban' => :'String',
52
56
  :'swift_code' => :'String',
53
- :'scheme' => :'String'
57
+ :'scheme' => :'String',
58
+ :'account_alias' => :'Ptsv2billingagreementsPaymentInformationBankAccountAlias'
54
59
  }
55
60
  end
56
61
 
@@ -77,6 +82,10 @@ module CyberSource
77
82
  if attributes.has_key?(:'scheme')
78
83
  self.scheme = attributes[:'scheme']
79
84
  end
85
+
86
+ if attributes.has_key?(:'accountAlias')
87
+ self.account_alias = attributes[:'accountAlias']
88
+ end
80
89
  end
81
90
 
82
91
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -118,7 +127,8 @@ module CyberSource
118
127
  account == o.account &&
119
128
  iban == o.iban &&
120
129
  swift_code == o.swift_code &&
121
- scheme == o.scheme
130
+ scheme == o.scheme &&
131
+ account_alias == o.account_alias
122
132
  end
123
133
 
124
134
  # @see the `==` method
@@ -130,7 +140,7 @@ module CyberSource
130
140
  # Calculates hash code according to all attributes.
131
141
  # @return [Fixnum] Hash code
132
142
  def hash
133
- [account, iban, swift_code, scheme].hash
143
+ [account, iban, swift_code, scheme, account_alias].hash
134
144
  end
135
145
 
136
146
  # Builds the object from hash