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
@@ -15,24 +15,30 @@ module CyberSource
15
15
  class Ptsv2paymentsidreversalsPaymentInformation
16
16
  attr_accessor :payment_type
17
17
 
18
+ # Mastercard One Credential merchant limited acceptance indicator. Mastercard One Credential connects multiple Mastercard payment methods and allows cardhollers to access various options and set payment preferences. This field indicates which Mastercard One Credential funding PAN acceptance brands should NOT be assigned for this transaction. This field flows in ISO field 34, DSID 02 tag DB, mapped to Mastercard Data Element (DE) 48, Sub element 02, Subfield 01. Possible values: - `C`: Do not assign a Mastercard One Credential funding PAN containing the Mastercard Credit Acceptance Brand for this transaction - `D`: Do not assign a Mastercard One Credential funding PAN containing the Debit Mastercard Acceptance Brand for this transaction - `M`: Do not assign a Mastercard One Credential funding PAN containing the Maestro Acceptance Brand for this transaction This field is supported for Authorization reversal request. #### Used by **Authorization Reversal Request** Optional field.
19
+ attr_accessor :merchant_limited_acceptance_indicator
20
+
18
21
  # Attribute mapping from ruby-style variable name to JSON key.
19
22
  def self.attribute_map
20
23
  {
21
- :'payment_type' => :'paymentType'
24
+ :'payment_type' => :'paymentType',
25
+ :'merchant_limited_acceptance_indicator' => :'merchantLimitedAcceptanceIndicator'
22
26
  }
23
27
  end
24
28
 
25
29
  # Attribute mapping from JSON key to ruby-style variable name.
26
30
  def self.json_map
27
31
  {
28
- :'payment_type' => :'payment_type'
32
+ :'payment_type' => :'payment_type',
33
+ :'merchant_limited_acceptance_indicator' => :'merchant_limited_acceptance_indicator'
29
34
  }
30
35
  end
31
36
 
32
37
  # Attribute type mapping.
33
38
  def self.swagger_types
34
39
  {
35
- :'payment_type' => :'Ptsv2paymentsidreversalsPaymentInformationPaymentType'
40
+ :'payment_type' => :'Ptsv2paymentsidreversalsPaymentInformationPaymentType',
41
+ :'merchant_limited_acceptance_indicator' => :'String'
36
42
  }
37
43
  end
38
44
 
@@ -47,6 +53,10 @@ module CyberSource
47
53
  if attributes.has_key?(:'paymentType')
48
54
  self.payment_type = attributes[:'paymentType']
49
55
  end
56
+
57
+ if attributes.has_key?(:'merchantLimitedAcceptanceIndicator')
58
+ self.merchant_limited_acceptance_indicator = attributes[:'merchantLimitedAcceptanceIndicator']
59
+ end
50
60
  end
51
61
 
52
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -62,12 +72,19 @@ module CyberSource
62
72
  true
63
73
  end
64
74
 
75
+ # Custom attribute writer method with validation
76
+ # @param [Object] merchant_limited_acceptance_indicator Value to be assigned
77
+ def merchant_limited_acceptance_indicator=(merchant_limited_acceptance_indicator)
78
+ @merchant_limited_acceptance_indicator = merchant_limited_acceptance_indicator
79
+ end
80
+
65
81
  # Checks equality by comparing each attribute.
66
82
  # @param [Object] Object to be compared
67
83
  def ==(o)
68
84
  return true if self.equal?(o)
69
85
  self.class == o.class &&
70
- payment_type == o.payment_type
86
+ payment_type == o.payment_type &&
87
+ merchant_limited_acceptance_indicator == o.merchant_limited_acceptance_indicator
71
88
  end
72
89
 
73
90
  # @see the `==` method
@@ -79,7 +96,7 @@ module CyberSource
79
96
  # Calculates hash code according to all attributes.
80
97
  # @return [Fixnum] Hash code
81
98
  def hash
82
- [payment_type].hash
99
+ [payment_type, merchant_limited_acceptance_indicator].hash
83
100
  end
84
101
 
85
102
  # Builds the object from hash
@@ -40,6 +40,9 @@ module CyberSource
40
40
 
41
41
  attr_accessor :purchase_options
42
42
 
43
+ # 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
44
+ attr_accessor :account_verification_code
45
+
43
46
  # Attribute mapping from ruby-style variable name to JSON key.
44
47
  def self.attribute_map
45
48
  {
@@ -52,7 +55,8 @@ module CyberSource
52
55
  :'purpose_of_payment' => :'purposeOfPayment',
53
56
  :'funding_options' => :'fundingOptions',
54
57
  :'language_code' => :'languageCode',
55
- :'purchase_options' => :'purchaseOptions'
58
+ :'purchase_options' => :'purchaseOptions',
59
+ :'account_verification_code' => :'accountVerificationCode'
56
60
  }
57
61
  end
58
62
 
@@ -68,7 +72,8 @@ module CyberSource
68
72
  :'purpose_of_payment' => :'purpose_of_payment',
69
73
  :'funding_options' => :'funding_options',
70
74
  :'language_code' => :'language_code',
71
- :'purchase_options' => :'purchase_options'
75
+ :'purchase_options' => :'purchase_options',
76
+ :'account_verification_code' => :'account_verification_code'
72
77
  }
73
78
  end
74
79
 
@@ -84,7 +89,8 @@ module CyberSource
84
89
  :'purpose_of_payment' => :'String',
85
90
  :'funding_options' => :'Ptsv2payoutsProcessingInformationFundingOptions',
86
91
  :'language_code' => :'String',
87
- :'purchase_options' => :'Ptsv2payoutsProcessingInformationPurchaseOptions'
92
+ :'purchase_options' => :'Ptsv2payoutsProcessingInformationPurchaseOptions',
93
+ :'account_verification_code' => :'Array<String>'
88
94
  }
89
95
  end
90
96
 
@@ -135,6 +141,12 @@ module CyberSource
135
141
  if attributes.has_key?(:'purchaseOptions')
136
142
  self.purchase_options = attributes[:'purchaseOptions']
137
143
  end
144
+
145
+ if attributes.has_key?(:'accountVerificationCode')
146
+ if (value = attributes[:'accountVerificationCode']).is_a?(Array)
147
+ self.account_verification_code = value
148
+ end
149
+ end
138
150
  end
139
151
 
140
152
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -206,7 +218,8 @@ module CyberSource
206
218
  purpose_of_payment == o.purpose_of_payment &&
207
219
  funding_options == o.funding_options &&
208
220
  language_code == o.language_code &&
209
- purchase_options == o.purchase_options
221
+ purchase_options == o.purchase_options &&
222
+ account_verification_code == o.account_verification_code
210
223
  end
211
224
 
212
225
  # @see the `==` method
@@ -218,7 +231,7 @@ module CyberSource
218
231
  # Calculates hash code according to all attributes.
219
232
  # @return [Fixnum] Hash code
220
233
  def hash
221
- [business_application_id, network_routing_order, commerce_indicator, reconciliation_id, payouts_options, transaction_reason, purpose_of_payment, funding_options, language_code, purchase_options].hash
234
+ [business_application_id, network_routing_order, commerce_indicator, reconciliation_id, payouts_options, transaction_reason, purpose_of_payment, funding_options, language_code, purchase_options, account_verification_code].hash
222
235
  end
223
236
 
224
237
  # Builds the object from hash
@@ -35,6 +35,12 @@ module CyberSource
35
35
  # This field might contain information about a decline.
36
36
  attr_accessor :response_details
37
37
 
38
+ attr_accessor :customer
39
+
40
+ attr_accessor :electronic_verification_results
41
+
42
+ attr_accessor :card_verification
43
+
38
44
  # Attribute mapping from ruby-style variable name to JSON key.
39
45
  def self.attribute_map
40
46
  {
@@ -45,7 +51,10 @@ module CyberSource
45
51
  :'consumer_authentication_response' => :'consumerAuthenticationResponse',
46
52
  :'retrieval_reference_number' => :'retrievalReferenceNumber',
47
53
  :'avs' => :'avs',
48
- :'response_details' => :'responseDetails'
54
+ :'response_details' => :'responseDetails',
55
+ :'customer' => :'customer',
56
+ :'electronic_verification_results' => :'electronicVerificationResults',
57
+ :'card_verification' => :'cardVerification'
49
58
  }
50
59
  end
51
60
 
@@ -59,7 +68,10 @@ module CyberSource
59
68
  :'consumer_authentication_response' => :'consumer_authentication_response',
60
69
  :'retrieval_reference_number' => :'retrieval_reference_number',
61
70
  :'avs' => :'avs',
62
- :'response_details' => :'response_details'
71
+ :'response_details' => :'response_details',
72
+ :'customer' => :'customer',
73
+ :'electronic_verification_results' => :'electronic_verification_results',
74
+ :'card_verification' => :'card_verification'
63
75
  }
64
76
  end
65
77
 
@@ -72,8 +84,11 @@ module CyberSource
72
84
  :'transaction_id' => :'String',
73
85
  :'consumer_authentication_response' => :'PullFunds201ResponseProcessorInformationConsumerAuthenticationResponse',
74
86
  :'retrieval_reference_number' => :'String',
75
- :'avs' => :'PullFunds201ResponseProcessorInformationAvs',
76
- :'response_details' => :'String'
87
+ :'avs' => :'PtsV2PayoutsPost201ResponseProcessorInformationAvs',
88
+ :'response_details' => :'String',
89
+ :'customer' => :'PtsV2PayoutsPost201ResponseProcessorInformationCustomer',
90
+ :'electronic_verification_results' => :'PtsV2PayoutsPost201ResponseProcessorInformationElectronicVerificationResults',
91
+ :'card_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification'
77
92
  }
78
93
  end
79
94
 
@@ -116,6 +131,18 @@ module CyberSource
116
131
  if attributes.has_key?(:'responseDetails')
117
132
  self.response_details = attributes[:'responseDetails']
118
133
  end
134
+
135
+ if attributes.has_key?(:'customer')
136
+ self.customer = attributes[:'customer']
137
+ end
138
+
139
+ if attributes.has_key?(:'electronicVerificationResults')
140
+ self.electronic_verification_results = attributes[:'electronicVerificationResults']
141
+ end
142
+
143
+ if attributes.has_key?(:'cardVerification')
144
+ self.card_verification = attributes[:'cardVerification']
145
+ end
119
146
  end
120
147
 
121
148
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -179,7 +206,10 @@ module CyberSource
179
206
  consumer_authentication_response == o.consumer_authentication_response &&
180
207
  retrieval_reference_number == o.retrieval_reference_number &&
181
208
  avs == o.avs &&
182
- response_details == o.response_details
209
+ response_details == o.response_details &&
210
+ customer == o.customer &&
211
+ electronic_verification_results == o.electronic_verification_results &&
212
+ card_verification == o.card_verification
183
213
  end
184
214
 
185
215
  # @see the `==` method
@@ -191,7 +221,7 @@ module CyberSource
191
221
  # Calculates hash code according to all attributes.
192
222
  # @return [Fixnum] Hash code
193
223
  def hash
194
- [system_trace_audit_number, approval_code, response_code, transaction_id, consumer_authentication_response, retrieval_reference_number, avs, response_details].hash
224
+ [system_trace_audit_number, approval_code, response_code, transaction_id, consumer_authentication_response, retrieval_reference_number, avs, response_details, customer, electronic_verification_results, card_verification].hash
195
225
  end
196
226
 
197
227
  # Builds the object from hash
@@ -23,6 +23,8 @@ module CyberSource
23
23
 
24
24
  attr_accessor :sender_information
25
25
 
26
+ attr_accessor :buyer_information
27
+
26
28
  attr_accessor :aggregator_information
27
29
 
28
30
  attr_accessor :merchant_information
@@ -35,6 +37,7 @@ module CyberSource
35
37
  :'processing_information' => :'processingInformation',
36
38
  :'recipient_information' => :'recipientInformation',
37
39
  :'sender_information' => :'senderInformation',
40
+ :'buyer_information' => :'buyerInformation',
38
41
  :'aggregator_information' => :'aggregatorInformation',
39
42
  :'merchant_information' => :'merchantInformation'
40
43
  }
@@ -48,6 +51,7 @@ module CyberSource
48
51
  :'processing_information' => :'processing_information',
49
52
  :'recipient_information' => :'recipient_information',
50
53
  :'sender_information' => :'sender_information',
54
+ :'buyer_information' => :'buyer_information',
51
55
  :'aggregator_information' => :'aggregator_information',
52
56
  :'merchant_information' => :'merchant_information'
53
57
  }
@@ -61,6 +65,7 @@ module CyberSource
61
65
  :'processing_information' => :'Ptsv1pullfundstransferProcessingInformation',
62
66
  :'recipient_information' => :'Ptsv1pullfundstransferRecipientInformation',
63
67
  :'sender_information' => :'Ptsv1pullfundstransferSenderInformation',
68
+ :'buyer_information' => :'Ptsv1pullfundstransferBuyerInformation',
64
69
  :'aggregator_information' => :'Ptsv1pullfundstransferAggregatorInformation',
65
70
  :'merchant_information' => :'Ptsv1pullfundstransferMerchantInformation'
66
71
  }
@@ -94,6 +99,10 @@ module CyberSource
94
99
  self.sender_information = attributes[:'senderInformation']
95
100
  end
96
101
 
102
+ if attributes.has_key?(:'buyerInformation')
103
+ self.buyer_information = attributes[:'buyerInformation']
104
+ end
105
+
97
106
  if attributes.has_key?(:'aggregatorInformation')
98
107
  self.aggregator_information = attributes[:'aggregatorInformation']
99
108
  end
@@ -126,6 +135,7 @@ module CyberSource
126
135
  processing_information == o.processing_information &&
127
136
  recipient_information == o.recipient_information &&
128
137
  sender_information == o.sender_information &&
138
+ buyer_information == o.buyer_information &&
129
139
  aggregator_information == o.aggregator_information &&
130
140
  merchant_information == o.merchant_information
131
141
  end
@@ -139,7 +149,7 @@ module CyberSource
139
149
  # Calculates hash code according to all attributes.
140
150
  # @return [Fixnum] Hash code
141
151
  def hash
142
- [client_reference_information, order_information, processing_information, recipient_information, sender_information, aggregator_information, merchant_information].hash
152
+ [client_reference_information, order_information, processing_information, recipient_information, sender_information, buyer_information, aggregator_information, merchant_information].hash
143
153
  end
144
154
 
145
155
  # Builds the object from hash
@@ -43,6 +43,14 @@ module CyberSource
43
43
 
44
44
  attr_accessor :merchant_advice
45
45
 
46
+ attr_accessor :avs
47
+
48
+ attr_accessor :customer
49
+
50
+ attr_accessor :electronic_verification_results
51
+
52
+ attr_accessor :card_verification
53
+
46
54
  # Attribute mapping from ruby-style variable name to JSON key.
47
55
  def self.attribute_map
48
56
  {
@@ -56,7 +64,11 @@ module CyberSource
56
64
  :'name' => :'name',
57
65
  :'routing' => :'routing',
58
66
  :'settlement' => :'settlement',
59
- :'merchant_advice' => :'merchantAdvice'
67
+ :'merchant_advice' => :'merchantAdvice',
68
+ :'avs' => :'avs',
69
+ :'customer' => :'customer',
70
+ :'electronic_verification_results' => :'electronicVerificationResults',
71
+ :'card_verification' => :'cardVerification'
60
72
  }
61
73
  end
62
74
 
@@ -73,7 +85,11 @@ module CyberSource
73
85
  :'name' => :'name',
74
86
  :'routing' => :'routing',
75
87
  :'settlement' => :'settlement',
76
- :'merchant_advice' => :'merchant_advice'
88
+ :'merchant_advice' => :'merchant_advice',
89
+ :'avs' => :'avs',
90
+ :'customer' => :'customer',
91
+ :'electronic_verification_results' => :'electronic_verification_results',
92
+ :'card_verification' => :'card_verification'
77
93
  }
78
94
  end
79
95
 
@@ -90,7 +106,11 @@ module CyberSource
90
106
  :'name' => :'String',
91
107
  :'routing' => :'PushFunds201ResponseProcessorInformationRouting',
92
108
  :'settlement' => :'PushFunds201ResponseProcessorInformationSettlement',
93
- :'merchant_advice' => :'PushFunds201ResponseProcessorInformationMerchantAdvice'
109
+ :'merchant_advice' => :'PushFunds201ResponseProcessorInformationMerchantAdvice',
110
+ :'avs' => :'PtsV2PayoutsPost201ResponseProcessorInformationAvs',
111
+ :'customer' => :'PtsV2PayoutsPost201ResponseProcessorInformationCustomer',
112
+ :'electronic_verification_results' => :'PtsV2PayoutsPost201ResponseProcessorInformationElectronicVerificationResults',
113
+ :'card_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification'
94
114
  }
95
115
  end
96
116
 
@@ -145,6 +165,22 @@ module CyberSource
145
165
  if attributes.has_key?(:'merchantAdvice')
146
166
  self.merchant_advice = attributes[:'merchantAdvice']
147
167
  end
168
+
169
+ if attributes.has_key?(:'avs')
170
+ self.avs = attributes[:'avs']
171
+ end
172
+
173
+ if attributes.has_key?(:'customer')
174
+ self.customer = attributes[:'customer']
175
+ end
176
+
177
+ if attributes.has_key?(:'electronicVerificationResults')
178
+ self.electronic_verification_results = attributes[:'electronicVerificationResults']
179
+ end
180
+
181
+ if attributes.has_key?(:'cardVerification')
182
+ self.card_verification = attributes[:'cardVerification']
183
+ end
148
184
  end
149
185
 
150
186
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -217,7 +253,11 @@ module CyberSource
217
253
  name == o.name &&
218
254
  routing == o.routing &&
219
255
  settlement == o.settlement &&
220
- merchant_advice == o.merchant_advice
256
+ merchant_advice == o.merchant_advice &&
257
+ avs == o.avs &&
258
+ customer == o.customer &&
259
+ electronic_verification_results == o.electronic_verification_results &&
260
+ card_verification == o.card_verification
221
261
  end
222
262
 
223
263
  # @see the `==` method
@@ -229,7 +269,7 @@ module CyberSource
229
269
  # Calculates hash code according to all attributes.
230
270
  # @return [Fixnum] Hash code
231
271
  def hash
232
- [transaction_id, response_code, system_trace_audit_number, retrieval_reference_number, action_code, approval_code, fee_program_indicator, name, routing, settlement, merchant_advice].hash
272
+ [transaction_id, response_code, system_trace_audit_number, retrieval_reference_number, action_code, approval_code, fee_program_indicator, name, routing, settlement, merchant_advice, avs, customer, electronic_verification_results, card_verification].hash
233
273
  end
234
274
 
235
275
  # Builds the object from hash
@@ -19,12 +19,15 @@ module CyberSource
19
19
 
20
20
  attr_accessor :portfolio_risk_controls
21
21
 
22
+ attr_accessor :enhanced_authentication
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'fraud_management_essentials' => :'fraudManagementEssentials',
26
28
  :'decision_manager' => :'decisionManager',
27
- :'portfolio_risk_controls' => :'portfolioRiskControls'
29
+ :'portfolio_risk_controls' => :'portfolioRiskControls',
30
+ :'enhanced_authentication' => :'enhancedAuthentication'
28
31
  }
29
32
  end
30
33
 
@@ -33,7 +36,8 @@ module CyberSource
33
36
  {
34
37
  :'fraud_management_essentials' => :'fraud_management_essentials',
35
38
  :'decision_manager' => :'decision_manager',
36
- :'portfolio_risk_controls' => :'portfolio_risk_controls'
39
+ :'portfolio_risk_controls' => :'portfolio_risk_controls',
40
+ :'enhanced_authentication' => :'enhanced_authentication'
37
41
  }
38
42
  end
39
43
 
@@ -42,7 +46,8 @@ module CyberSource
42
46
  {
43
47
  :'fraud_management_essentials' => :'RiskProductsFraudManagementEssentials',
44
48
  :'decision_manager' => :'RiskProductsDecisionManager',
45
- :'portfolio_risk_controls' => :'RiskProductsPortfolioRiskControls'
49
+ :'portfolio_risk_controls' => :'RiskProductsPortfolioRiskControls',
50
+ :'enhanced_authentication' => :'PaymentsProductsPayerAuthentication'
46
51
  }
47
52
  end
48
53
 
@@ -65,6 +70,10 @@ module CyberSource
65
70
  if attributes.has_key?(:'portfolioRiskControls')
66
71
  self.portfolio_risk_controls = attributes[:'portfolioRiskControls']
67
72
  end
73
+
74
+ if attributes.has_key?(:'enhancedAuthentication')
75
+ self.enhanced_authentication = attributes[:'enhancedAuthentication']
76
+ end
68
77
  end
69
78
 
70
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -87,7 +96,8 @@ module CyberSource
87
96
  self.class == o.class &&
88
97
  fraud_management_essentials == o.fraud_management_essentials &&
89
98
  decision_manager == o.decision_manager &&
90
- portfolio_risk_controls == o.portfolio_risk_controls
99
+ portfolio_risk_controls == o.portfolio_risk_controls &&
100
+ enhanced_authentication == o.enhanced_authentication
91
101
  end
92
102
 
93
103
  # @see the `==` method
@@ -99,7 +109,7 @@ module CyberSource
99
109
  # Calculates hash code according to all attributes.
100
110
  # @return [Fixnum] Hash code
101
111
  def hash
102
- [fraud_management_essentials, decision_manager, portfolio_risk_controls].hash
112
+ [fraud_management_essentials, decision_manager, portfolio_risk_controls, enhanced_authentication].hash
103
113
  end
104
114
 
105
115
  # Builds the object from hash
@@ -55,6 +55,12 @@ module CyberSource
55
55
  # Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription Required for American Express SafeKey (U.S.).
56
56
  attr_accessor :method
57
57
 
58
+ # Email of the recipient.
59
+ attr_accessor :email
60
+
61
+ # Name of the customer's company.
62
+ attr_accessor :company
63
+
58
64
  # Attribute mapping from ruby-style variable name to JSON key.
59
65
  def self.attribute_map
60
66
  {
@@ -71,7 +77,9 @@ module CyberSource
71
77
  :'phone_number' => :'phoneNumber',
72
78
  :'postal_code' => :'postalCode',
73
79
  :'destination_code' => :'destinationCode',
74
- :'method' => :'method'
80
+ :'method' => :'method',
81
+ :'email' => :'email',
82
+ :'company' => :'company'
75
83
  }
76
84
  end
77
85
 
@@ -91,7 +99,9 @@ module CyberSource
91
99
  :'phone_number' => :'phone_number',
92
100
  :'postal_code' => :'postal_code',
93
101
  :'destination_code' => :'destination_code',
94
- :'method' => :'method'
102
+ :'method' => :'method',
103
+ :'email' => :'email',
104
+ :'company' => :'company'
95
105
  }
96
106
  end
97
107
 
@@ -111,7 +121,9 @@ module CyberSource
111
121
  :'phone_number' => :'String',
112
122
  :'postal_code' => :'String',
113
123
  :'destination_code' => :'Integer',
114
- :'method' => :'String'
124
+ :'method' => :'String',
125
+ :'email' => :'String',
126
+ :'company' => :'String'
115
127
  }
116
128
  end
117
129
 
@@ -178,6 +190,14 @@ module CyberSource
178
190
  if attributes.has_key?(:'method')
179
191
  self.method = attributes[:'method']
180
192
  end
193
+
194
+ if attributes.has_key?(:'email')
195
+ self.email = attributes[:'email']
196
+ end
197
+
198
+ if attributes.has_key?(:'company')
199
+ self.company = attributes[:'company']
200
+ end
181
201
  end
182
202
 
183
203
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -271,6 +291,18 @@ module CyberSource
271
291
  @method = method
272
292
  end
273
293
 
294
+ # Custom attribute writer method with validation
295
+ # @param [Object] email Value to be assigned
296
+ def email=(email)
297
+ @email = email
298
+ end
299
+
300
+ # Custom attribute writer method with validation
301
+ # @param [Object] company Value to be assigned
302
+ def company=(company)
303
+ @company = company
304
+ end
305
+
274
306
  # Checks equality by comparing each attribute.
275
307
  # @param [Object] Object to be compared
276
308
  def ==(o)
@@ -289,7 +321,9 @@ module CyberSource
289
321
  phone_number == o.phone_number &&
290
322
  postal_code == o.postal_code &&
291
323
  destination_code == o.destination_code &&
292
- method == o.method
324
+ method == o.method &&
325
+ email == o.email &&
326
+ company == o.company
293
327
  end
294
328
 
295
329
  # @see the `==` method
@@ -301,7 +335,7 @@ module CyberSource
301
335
  # Calculates hash code according to all attributes.
302
336
  # @return [Fixnum] Hash code
303
337
  def hash
304
- [address1, address2, address3, administrative_area, country, destination_types, locality, first_name, last_name, middle_name, phone_number, postal_code, destination_code, method].hash
338
+ [address1, address2, address3, administrative_area, country, destination_types, locality, first_name, last_name, middle_name, phone_number, postal_code, destination_code, method, email, company].hash
305
339
  end
306
340
 
307
341
  # Builds the object from hash
@@ -17,7 +17,7 @@ module CyberSource
17
17
  # Boolean that indicates whether the customer requested gift wrapping for this purchase. This field can contain one of the following values: - true: The customer requested gift wrapping. - false: The customer did not request gift wrapping.
18
18
  attr_accessor :gift_wrap
19
19
 
20
- # Shipping method for the product. Possible values: - `lowcost`: Lowest-cost service - `sameday`: Courier or same-day service - `oneday`: Next-day or overnight service - `twoday`: Two-day service - `threeday`: Three-day service - `pickup`: Store pick-up - `other`: Other shipping method - `none`: No shipping method because product is a service or subscription
20
+ # Shipping method for the product. Possible values: - `lowcost`: Lowest-cost service - `sameday`: Courier or same-day service - `oneday`: Next-day or overnight service - `twoday`: Two-day service - `threeday`: Three-day service - `pickup`: Store pick-up - `other`: Other shipping method - `none`: No shipping method because product is a service or subscription Klarna Advantage Plus additional values: - `TO_DOOR`: Delivery to door - `TO_CURB`: Delivery to curb - `TO_MAILBOX`: Delivery to mailbox - `PICKUP_BOX`: Pickup from box - `PICKUP_POINT`: Pickup from point - `PICKUP_STORE`: Pickup from store - `PICKUP_WAREHOUSE`: Pickup from warehouse - `DIGITAL_EMAIL`: Digital delivery via email - `DIGITAL_DOWNLOAD`: Digital download - `DIGITAL_OTHER`: Other digital delivery - `PHYSICAL_OTHER`: Other physical delivery
21
21
  attr_accessor :shipping_method
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,6 +17,12 @@ module CyberSource
17
17
  # Card foreground color.
18
18
  attr_accessor :foreground_color
19
19
 
20
+ # Card background color.
21
+ attr_accessor :background_color
22
+
23
+ # Card label color.
24
+ attr_accessor :label_color
25
+
20
26
  attr_accessor :combined_asset
21
27
 
22
28
  attr_accessor :brand_logo_asset
@@ -29,6 +35,8 @@ module CyberSource
29
35
  def self.attribute_map
30
36
  {
31
37
  :'foreground_color' => :'foregroundColor',
38
+ :'background_color' => :'backgroundColor',
39
+ :'label_color' => :'labelColor',
32
40
  :'combined_asset' => :'combinedAsset',
33
41
  :'brand_logo_asset' => :'brandLogoAsset',
34
42
  :'issuer_logo_asset' => :'issuerLogoAsset',
@@ -40,6 +48,8 @@ module CyberSource
40
48
  def self.json_map
41
49
  {
42
50
  :'foreground_color' => :'foreground_color',
51
+ :'background_color' => :'background_color',
52
+ :'label_color' => :'label_color',
43
53
  :'combined_asset' => :'combined_asset',
44
54
  :'brand_logo_asset' => :'brand_logo_asset',
45
55
  :'issuer_logo_asset' => :'issuer_logo_asset',
@@ -51,6 +61,8 @@ module CyberSource
51
61
  def self.swagger_types
52
62
  {
53
63
  :'foreground_color' => :'String',
64
+ :'background_color' => :'String',
65
+ :'label_color' => :'String',
54
66
  :'combined_asset' => :'TmsCardArtCombinedAsset',
55
67
  :'brand_logo_asset' => :'TmsCardArtBrandLogoAsset',
56
68
  :'issuer_logo_asset' => :'TmsCardArtIssuerLogoAsset',
@@ -70,6 +82,14 @@ module CyberSource
70
82
  self.foreground_color = attributes[:'foregroundColor']
71
83
  end
72
84
 
85
+ if attributes.has_key?(:'backgroundColor')
86
+ self.background_color = attributes[:'backgroundColor']
87
+ end
88
+
89
+ if attributes.has_key?(:'labelColor')
90
+ self.label_color = attributes[:'labelColor']
91
+ end
92
+
73
93
  if attributes.has_key?(:'combinedAsset')
74
94
  self.combined_asset = attributes[:'combinedAsset']
75
95
  end
@@ -106,6 +126,8 @@ module CyberSource
106
126
  return true if self.equal?(o)
107
127
  self.class == o.class &&
108
128
  foreground_color == o.foreground_color &&
129
+ background_color == o.background_color &&
130
+ label_color == o.label_color &&
109
131
  combined_asset == o.combined_asset &&
110
132
  brand_logo_asset == o.brand_logo_asset &&
111
133
  issuer_logo_asset == o.issuer_logo_asset &&
@@ -121,7 +143,7 @@ module CyberSource
121
143
  # Calculates hash code according to all attributes.
122
144
  # @return [Fixnum] Hash code
123
145
  def hash
124
- [foreground_color, combined_asset, brand_logo_asset, issuer_logo_asset, icon_asset].hash
146
+ [foreground_color, background_color, label_color, combined_asset, brand_logo_asset, issuer_logo_asset, icon_asset].hash
125
147
  end
126
148
 
127
149
  # Builds the object from hash