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
@@ -0,0 +1,252 @@
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 Ptsv2paymentsTokenInformationTokenAuthenticationInformationAuthenticatedIdentities
16
+ # Data related to the authenticated identity. Contains verification payload from the identity provider.
17
+ attr_accessor :data
18
+
19
+ # Provider of the authenticated identity. Identifies the authentication service or identity provider. Possible values: - CLIENT_DEVICE_CERT_JWS - VISA_PAYMENT_PASSKEY
20
+ attr_accessor :provider
21
+
22
+ # Unique identifier for the authenticated identity. A distinctive and non-transparent identifier for correlation purposes.
23
+ attr_accessor :id
24
+
25
+ # Identifier of the relying party that requested the authentication.
26
+ attr_accessor :relying_party_id
27
+
28
+ # The method used to authenticate the user. Possible values: - USERNAME_PASSWORD - PASSCODE_PASSWORD - PASSCODE - PASSWORD - PATTERN - BIOMETRIC_FINGERPRINT - BIOMETRIC_FACIAL - BIOMETRIC_IRIS - BIOMETRIC_VOICE - BIOMETRIC_BEHAVIORAL - DEVICE_UNLOCKED_METHOD_UNKNOWN - OTP_SMS - OTP_EMAIL - OTP_SMS_KNOWLEDGE - KNOWLEDGE_BASED_AUTHENTICATION - USER_UNVERIFIED - BIOMETRIC
29
+ attr_accessor :user_authentication_method
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'data' => :'data',
35
+ :'provider' => :'provider',
36
+ :'id' => :'id',
37
+ :'relying_party_id' => :'relyingPartyId',
38
+ :'user_authentication_method' => :'userAuthenticationMethod'
39
+ }
40
+ end
41
+
42
+ # Attribute mapping from JSON key to ruby-style variable name.
43
+ def self.json_map
44
+ {
45
+ :'data' => :'data',
46
+ :'provider' => :'provider',
47
+ :'id' => :'id',
48
+ :'relying_party_id' => :'relying_party_id',
49
+ :'user_authentication_method' => :'user_authentication_method'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'data' => :'String',
57
+ :'provider' => :'String',
58
+ :'id' => :'String',
59
+ :'relying_party_id' => :'String',
60
+ :'user_authentication_method' => :'String'
61
+ }
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ return unless attributes.is_a?(Hash)
68
+
69
+ # convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
71
+
72
+ if attributes.has_key?(:'data')
73
+ self.data = attributes[:'data']
74
+ end
75
+
76
+ if attributes.has_key?(:'provider')
77
+ self.provider = attributes[:'provider']
78
+ end
79
+
80
+ if attributes.has_key?(:'id')
81
+ self.id = attributes[:'id']
82
+ end
83
+
84
+ if attributes.has_key?(:'relyingPartyId')
85
+ self.relying_party_id = attributes[:'relyingPartyId']
86
+ end
87
+
88
+ if attributes.has_key?(:'userAuthenticationMethod')
89
+ self.user_authentication_method = attributes[:'userAuthenticationMethod']
90
+ end
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properties with the reasons
95
+ def list_invalid_properties
96
+ invalid_properties = Array.new
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ true
104
+ end
105
+
106
+ # Custom attribute writer method with validation
107
+ # @param [Object] data Value to be assigned
108
+ def data=(data)
109
+ @data = data
110
+ end
111
+
112
+ # Custom attribute writer method with validation
113
+ # @param [Object] id Value to be assigned
114
+ def id=(id)
115
+ @id = id
116
+ end
117
+
118
+ # Custom attribute writer method with validation
119
+ # @param [Object] relying_party_id Value to be assigned
120
+ def relying_party_id=(relying_party_id)
121
+ @relying_party_id = relying_party_id
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ data == o.data &&
130
+ provider == o.provider &&
131
+ id == o.id &&
132
+ relying_party_id == o.relying_party_id &&
133
+ user_authentication_method == o.user_authentication_method
134
+ end
135
+
136
+ # @see the `==` method
137
+ # @param [Object] Object to be compared
138
+ def eql?(o)
139
+ self == o
140
+ end
141
+
142
+ # Calculates hash code according to all attributes.
143
+ # @return [Fixnum] Hash code
144
+ def hash
145
+ [data, provider, id, relying_party_id, user_authentication_method].hash
146
+ end
147
+
148
+ # Builds the object from hash
149
+ # @param [Hash] attributes Model attributes in the form of hash
150
+ # @return [Object] Returns the model itself
151
+ def build_from_hash(attributes)
152
+ return nil unless attributes.is_a?(Hash)
153
+ self.class.swagger_types.each_pair do |key, type|
154
+ if type =~ /\AArray<(.*)>/i
155
+ # check to ensure the input is an array given that the the attribute
156
+ # is documented as an array but the input is not
157
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
158
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
159
+ end
160
+ elsif !attributes[self.class.attribute_map[key]].nil?
161
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
162
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
163
+ end
164
+
165
+ self
166
+ end
167
+
168
+ # Deserializes the data based on type
169
+ # @param string type Data type
170
+ # @param string value Value to be deserialized
171
+ # @return [Object] Deserialized data
172
+ def _deserialize(type, value)
173
+ case type.to_sym
174
+ when :DateTime
175
+ DateTime.parse(value)
176
+ when :Date
177
+ Date.parse(value)
178
+ when :String
179
+ value.to_s
180
+ when :Integer
181
+ value.to_i
182
+ when :Float
183
+ value.to_f
184
+ when :BOOLEAN
185
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
186
+ true
187
+ else
188
+ false
189
+ end
190
+ when :Object
191
+ # generic object (usually a Hash), return directly
192
+ value
193
+ when /\AArray<(?<inner_type>.+)>\z/
194
+ inner_type = Regexp.last_match[:inner_type]
195
+ value.map { |v| _deserialize(inner_type, v) }
196
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
197
+ k_type = Regexp.last_match[:k_type]
198
+ v_type = Regexp.last_match[:v_type]
199
+ {}.tap do |hash|
200
+ value.each do |k, v|
201
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
202
+ end
203
+ end
204
+ else # model
205
+ temp_model = CyberSource.const_get(type).new
206
+ temp_model.build_from_hash(value)
207
+ end
208
+ end
209
+
210
+ # Returns the string representation of the object
211
+ # @return [String] String presentation of the object
212
+ def to_s
213
+ to_hash.to_s
214
+ end
215
+
216
+ # to_body is an alias to to_hash (backward compatibility)
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_body
219
+ to_hash
220
+ end
221
+
222
+ # Returns the object in the form of hash
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_hash
225
+ hash = {}
226
+ self.class.attribute_map.each_pair do |attr, param|
227
+ value = self.send(attr)
228
+ next if value.nil?
229
+ hash[param] = _to_hash(value)
230
+ end
231
+ hash
232
+ end
233
+
234
+ # Outputs non-array value in the form of hash
235
+ # For object, use to_hash. Otherwise, just return the value
236
+ # @param [Object] value Any valid value
237
+ # @return [Hash] Returns the value in the form of hash
238
+ def _to_hash(value)
239
+ if value.is_a?(Array)
240
+ value.compact.map { |v| _to_hash(v) }
241
+ elsif value.is_a?(Hash)
242
+ {}.tap do |hash|
243
+ value.each { |k, v| hash[k] = _to_hash(v) }
244
+ end
245
+ elsif value.respond_to? :to_hash
246
+ value.to_hash
247
+ else
248
+ value
249
+ end
250
+ end
251
+ end
252
+ end
@@ -40,6 +40,8 @@ module CyberSource
40
40
  # The ID you assigned to your sub-merchant. CyberSource through VisaNet: For American Express transaction, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCRB - Position: 65-84 - Field: American Express Seller ID For Mastercard transactions, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 117-131 - Field: Sub-Merchant ID FDC Compass: This value must consist of uppercase characters. American Express Direct: String (20) CyberSource through VisaNet with American Express: String (20) CyberSource through VisaNet with Visa,Mastercard and Discover: String (15) FDC Compass: String (20) FDC Nashville Global: String (14)
41
41
  attr_accessor :id
42
42
 
43
+ attr_accessor :merchant_category_code
44
+
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
@@ -51,7 +53,8 @@ module CyberSource
51
53
  :'country' => :'country',
52
54
  :'email' => :'email',
53
55
  :'phone_number' => :'phoneNumber',
54
- :'id' => :'id'
56
+ :'id' => :'id',
57
+ :'merchant_category_code' => :'merchantCategoryCode'
55
58
  }
56
59
  end
57
60
 
@@ -66,7 +69,8 @@ module CyberSource
66
69
  :'country' => :'country',
67
70
  :'email' => :'email',
68
71
  :'phone_number' => :'phone_number',
69
- :'id' => :'id'
72
+ :'id' => :'id',
73
+ :'merchant_category_code' => :'merchant_category_code'
70
74
  }
71
75
  end
72
76
 
@@ -81,7 +85,8 @@ module CyberSource
81
85
  :'country' => :'String',
82
86
  :'email' => :'String',
83
87
  :'phone_number' => :'String',
84
- :'id' => :'String'
88
+ :'id' => :'String',
89
+ :'merchant_category_code' => :'Float'
85
90
  }
86
91
  end
87
92
 
@@ -128,6 +133,10 @@ module CyberSource
128
133
  if attributes.has_key?(:'id')
129
134
  self.id = attributes[:'id']
130
135
  end
136
+
137
+ if attributes.has_key?(:'merchantCategoryCode')
138
+ self.merchant_category_code = attributes[:'merchantCategoryCode']
139
+ end
131
140
  end
132
141
 
133
142
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -210,7 +219,8 @@ module CyberSource
210
219
  country == o.country &&
211
220
  email == o.email &&
212
221
  phone_number == o.phone_number &&
213
- id == o.id
222
+ id == o.id &&
223
+ merchant_category_code == o.merchant_category_code
214
224
  end
215
225
 
216
226
  # @see the `==` method
@@ -222,7 +232,7 @@ module CyberSource
222
232
  # Calculates hash code according to all attributes.
223
233
  # @return [Fixnum] Hash code
224
234
  def hash
225
- [name, address1, locality, administrative_area, postal_code, country, email, phone_number, id].hash
235
+ [name, address1, locality, administrative_area, postal_code, country, email, phone_number, id, merchant_category_code].hash
226
236
  end
227
237
 
228
238
  # Builds the object from hash
@@ -12,28 +12,59 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
+ # Contains shipping details information for Klarna Advantage Plus Capture transactions.
15
16
  class Ptsv2paymentsidcapturesOrderInformationShippingDetails
16
17
  # Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions.
17
18
  attr_accessor :ship_from_postal_code
18
19
 
20
+ # Shipment tracking number provided by the merchant. Used to track the shipment of goods to the customer.
21
+ attr_accessor :tracking_number
22
+
23
+ # URL where the customer can track their shipment. Provides real-time tracking information for the delivery.
24
+ attr_accessor :tracking_url
25
+
26
+ # Name of the shipping carrier/company handling the delivery.
27
+ attr_accessor :shipping_carrier
28
+
29
+ # Estimated delivery date for the shipment provided by Merchant. Format: YYYYMMDD (e.g., 20251115 for November 15, 2025)
30
+ attr_accessor :estimated_delivery_date
31
+
32
+ # 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
33
+ attr_accessor :shipping_method
34
+
19
35
  # Attribute mapping from ruby-style variable name to JSON key.
20
36
  def self.attribute_map
21
37
  {
22
- :'ship_from_postal_code' => :'shipFromPostalCode'
38
+ :'ship_from_postal_code' => :'shipFromPostalCode',
39
+ :'tracking_number' => :'trackingNumber',
40
+ :'tracking_url' => :'trackingUrl',
41
+ :'shipping_carrier' => :'shippingCarrier',
42
+ :'estimated_delivery_date' => :'estimatedDeliveryDate',
43
+ :'shipping_method' => :'shippingMethod'
23
44
  }
24
45
  end
25
46
 
26
47
  # Attribute mapping from JSON key to ruby-style variable name.
27
48
  def self.json_map
28
49
  {
29
- :'ship_from_postal_code' => :'ship_from_postal_code'
50
+ :'ship_from_postal_code' => :'ship_from_postal_code',
51
+ :'tracking_number' => :'tracking_number',
52
+ :'tracking_url' => :'tracking_url',
53
+ :'shipping_carrier' => :'shipping_carrier',
54
+ :'estimated_delivery_date' => :'estimated_delivery_date',
55
+ :'shipping_method' => :'shipping_method'
30
56
  }
31
57
  end
32
58
 
33
59
  # Attribute type mapping.
34
60
  def self.swagger_types
35
61
  {
36
- :'ship_from_postal_code' => :'String'
62
+ :'ship_from_postal_code' => :'String',
63
+ :'tracking_number' => :'String',
64
+ :'tracking_url' => :'String',
65
+ :'shipping_carrier' => :'String',
66
+ :'estimated_delivery_date' => :'String',
67
+ :'shipping_method' => :'String'
37
68
  }
38
69
  end
39
70
 
@@ -48,18 +79,43 @@ module CyberSource
48
79
  if attributes.has_key?(:'shipFromPostalCode')
49
80
  self.ship_from_postal_code = attributes[:'shipFromPostalCode']
50
81
  end
82
+
83
+ if attributes.has_key?(:'trackingNumber')
84
+ self.tracking_number = attributes[:'trackingNumber']
85
+ end
86
+
87
+ if attributes.has_key?(:'trackingUrl')
88
+ self.tracking_url = attributes[:'trackingUrl']
89
+ end
90
+
91
+ if attributes.has_key?(:'shippingCarrier')
92
+ self.shipping_carrier = attributes[:'shippingCarrier']
93
+ end
94
+
95
+ if attributes.has_key?(:'estimatedDeliveryDate')
96
+ self.estimated_delivery_date = attributes[:'estimatedDeliveryDate']
97
+ end
98
+
99
+ if attributes.has_key?(:'shippingMethod')
100
+ self.shipping_method = attributes[:'shippingMethod']
101
+ end
51
102
  end
52
103
 
53
104
  # Show invalid properties with the reasons. Usually used together with valid?
54
105
  # @return Array for valid properties with the reasons
55
106
  def list_invalid_properties
56
107
  invalid_properties = Array.new
108
+ #if !@estimated_delivery_date.nil? && @estimated_delivery_date !~ Regexp.new(/^[0-9]{8}$/)
109
+ #invalid_properties.push('invalid value for "estimated_delivery_date", must conform to the pattern /^[0-9]{8}$/.')
110
+ #end
111
+
57
112
  invalid_properties
58
113
  end
59
114
 
60
115
  # Check to see if the all the properties in the model are valid
61
116
  # @return true if the model is valid
62
117
  def valid?
118
+ #return false if !@estimated_delivery_date.nil? && @estimated_delivery_date !~ Regexp.new(/^[0-9]{8}$/)
63
119
  true
64
120
  end
65
121
 
@@ -69,12 +125,51 @@ module CyberSource
69
125
  @ship_from_postal_code = ship_from_postal_code
70
126
  end
71
127
 
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] tracking_number Value to be assigned
130
+ def tracking_number=(tracking_number)
131
+ @tracking_number = tracking_number
132
+ end
133
+
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] tracking_url Value to be assigned
136
+ def tracking_url=(tracking_url)
137
+ @tracking_url = tracking_url
138
+ end
139
+
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] shipping_carrier Value to be assigned
142
+ def shipping_carrier=(shipping_carrier)
143
+ @shipping_carrier = shipping_carrier
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] estimated_delivery_date Value to be assigned
148
+ def estimated_delivery_date=(estimated_delivery_date)
149
+ #if !estimated_delivery_date.nil? && estimated_delivery_date !~ Regexp.new(/^[0-9]{8}$/)
150
+ #fail ArgumentError, 'invalid value for "estimated_delivery_date", must conform to the pattern /^[0-9]{8}$/.'
151
+ #end
152
+
153
+ @estimated_delivery_date = estimated_delivery_date
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] shipping_method Value to be assigned
158
+ def shipping_method=(shipping_method)
159
+ @shipping_method = shipping_method
160
+ end
161
+
72
162
  # Checks equality by comparing each attribute.
73
163
  # @param [Object] Object to be compared
74
164
  def ==(o)
75
165
  return true if self.equal?(o)
76
166
  self.class == o.class &&
77
- ship_from_postal_code == o.ship_from_postal_code
167
+ ship_from_postal_code == o.ship_from_postal_code &&
168
+ tracking_number == o.tracking_number &&
169
+ tracking_url == o.tracking_url &&
170
+ shipping_carrier == o.shipping_carrier &&
171
+ estimated_delivery_date == o.estimated_delivery_date &&
172
+ shipping_method == o.shipping_method
78
173
  end
79
174
 
80
175
  # @see the `==` method
@@ -86,7 +181,7 @@ module CyberSource
86
181
  # Calculates hash code according to all attributes.
87
182
  # @return [Fixnum] Hash code
88
183
  def hash
89
- [ship_from_postal_code].hash
184
+ [ship_from_postal_code, tracking_number, tracking_url, shipping_carrier, estimated_delivery_date, shipping_method].hash
90
185
  end
91
186
 
92
187
  # Builds the object from hash
@@ -18,11 +18,15 @@ module CyberSource
18
18
  # Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value.
19
19
  attr_accessor :amex_capn_data
20
20
 
21
+ # Identifies the Zone PIN Key (ZPK) used for Online PIN processing by providing the 10‑digit Key Set Identifier (KSI). This value indicates that the PIN block is encrypted under a ZPK and enables the Payment Security Service (PSS) to perform the correct ZPK→ZPK PIN translation during card‑present EMV PIN transactions.
22
+ attr_accessor :encrypted_key_id
23
+
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
27
  :'emv' => :'emv',
25
- :'amex_capn_data' => :'amexCapnData'
28
+ :'amex_capn_data' => :'amexCapnData',
29
+ :'encrypted_key_id' => :'encryptedKeyId'
26
30
  }
27
31
  end
28
32
 
@@ -30,7 +34,8 @@ module CyberSource
30
34
  def self.json_map
31
35
  {
32
36
  :'emv' => :'emv',
33
- :'amex_capn_data' => :'amex_capn_data'
37
+ :'amex_capn_data' => :'amex_capn_data',
38
+ :'encrypted_key_id' => :'encrypted_key_id'
34
39
  }
35
40
  end
36
41
 
@@ -38,7 +43,8 @@ module CyberSource
38
43
  def self.swagger_types
39
44
  {
40
45
  :'emv' => :'Ptsv2paymentsidcapturesPointOfSaleInformationEmv',
41
- :'amex_capn_data' => :'String'
46
+ :'amex_capn_data' => :'String',
47
+ :'encrypted_key_id' => :'String'
42
48
  }
43
49
  end
44
50
 
@@ -57,6 +63,10 @@ module CyberSource
57
63
  if attributes.has_key?(:'amexCapnData')
58
64
  self.amex_capn_data = attributes[:'amexCapnData']
59
65
  end
66
+
67
+ if attributes.has_key?(:'encryptedKeyId')
68
+ self.encrypted_key_id = attributes[:'encryptedKeyId']
69
+ end
60
70
  end
61
71
 
62
72
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -78,13 +88,20 @@ module CyberSource
78
88
  @amex_capn_data = amex_capn_data
79
89
  end
80
90
 
91
+ # Custom attribute writer method with validation
92
+ # @param [Object] encrypted_key_id Value to be assigned
93
+ def encrypted_key_id=(encrypted_key_id)
94
+ @encrypted_key_id = encrypted_key_id
95
+ end
96
+
81
97
  # Checks equality by comparing each attribute.
82
98
  # @param [Object] Object to be compared
83
99
  def ==(o)
84
100
  return true if self.equal?(o)
85
101
  self.class == o.class &&
86
102
  emv == o.emv &&
87
- amex_capn_data == o.amex_capn_data
103
+ amex_capn_data == o.amex_capn_data &&
104
+ encrypted_key_id == o.encrypted_key_id
88
105
  end
89
106
 
90
107
  # @see the `==` method
@@ -96,7 +113,7 @@ module CyberSource
96
113
  # Calculates hash code according to all attributes.
97
114
  # @return [Fixnum] Hash code
98
115
  def hash
99
- [emv, amex_capn_data].hash
116
+ [emv, amex_capn_data, encrypted_key_id].hash
100
117
  end
101
118
 
102
119
  # Builds the object from hash
@@ -34,6 +34,9 @@ module CyberSource
34
34
  # Indicates that the transaction includes industry-specific data. Possible Values: - `airline` - `restaurant` - `lodging` - `auto_rental` - `transit` - `healthcare_medical` - `healthcare_transit` - `transit` #### Card Present, Airlines and Auto Rental You must set this field to `airline` in order for airline data to be sent to the processor. For example, if this field is not set to `airline` or is not included in the request, no airline data is sent to the processor. You must set this field to `restaurant` in order for restaurant data to be sent to the processor. When this field is not set to `restaurant` or is not included in the request, no restaurant data is sent to the processor. You must set this field to `auto_rental` in order for auto rental data to be sent to the processor. For example, if this field is not set to `auto_rental` or is not included in the request, no auto rental data is sent to the processor. Restaurant data is supported only on CyberSource through VisaNet.
35
35
  attr_accessor :industry_data_type
36
36
 
37
+ # Mastercard Digital Enablement Service (MDES) digital service indicators for force capture scenarios. This field is used when the client is doing authorization with a different gateway and capture with CyberSource. This field is in ANS, EBCDIC format and flows in Field 34, DSID 04 Tag DF1F, mapped to Mastercard Data Element DE119, Sub-element 004. #### Used by **Capture Request** Request field for force capture support when auth is done with a different gateway.
38
+ attr_accessor :digital_service_indicator
39
+
37
40
  attr_accessor :issuer
38
41
 
39
42
  attr_accessor :authorization_options
@@ -60,6 +63,7 @@ module CyberSource
60
63
  :'visa_checkout_id' => :'visaCheckoutId',
61
64
  :'purchase_level' => :'purchaseLevel',
62
65
  :'industry_data_type' => :'industryDataType',
66
+ :'digital_service_indicator' => :'digitalServiceIndicator',
63
67
  :'issuer' => :'issuer',
64
68
  :'authorization_options' => :'authorizationOptions',
65
69
  :'capture_options' => :'captureOptions',
@@ -80,6 +84,7 @@ module CyberSource
80
84
  :'visa_checkout_id' => :'visa_checkout_id',
81
85
  :'purchase_level' => :'purchase_level',
82
86
  :'industry_data_type' => :'industry_data_type',
87
+ :'digital_service_indicator' => :'digital_service_indicator',
83
88
  :'issuer' => :'issuer',
84
89
  :'authorization_options' => :'authorization_options',
85
90
  :'capture_options' => :'capture_options',
@@ -100,6 +105,7 @@ module CyberSource
100
105
  :'visa_checkout_id' => :'String',
101
106
  :'purchase_level' => :'String',
102
107
  :'industry_data_type' => :'String',
108
+ :'digital_service_indicator' => :'String',
103
109
  :'issuer' => :'Ptsv2paymentsIssuerInformation',
104
110
  :'authorization_options' => :'Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions',
105
111
  :'capture_options' => :'Ptsv2paymentsidcapturesProcessingInformationCaptureOptions',
@@ -146,6 +152,10 @@ module CyberSource
146
152
  self.industry_data_type = attributes[:'industryDataType']
147
153
  end
148
154
 
155
+ if attributes.has_key?(:'digitalServiceIndicator')
156
+ self.digital_service_indicator = attributes[:'digitalServiceIndicator']
157
+ end
158
+
149
159
  if attributes.has_key?(:'issuer')
150
160
  self.issuer = attributes[:'issuer']
151
161
  end
@@ -232,6 +242,12 @@ module CyberSource
232
242
  @industry_data_type = industry_data_type
233
243
  end
234
244
 
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] digital_service_indicator Value to be assigned
247
+ def digital_service_indicator=(digital_service_indicator)
248
+ @digital_service_indicator = digital_service_indicator
249
+ end
250
+
235
251
  # Checks equality by comparing each attribute.
236
252
  # @param [Object] Object to be compared
237
253
  def ==(o)
@@ -244,6 +260,7 @@ module CyberSource
244
260
  visa_checkout_id == o.visa_checkout_id &&
245
261
  purchase_level == o.purchase_level &&
246
262
  industry_data_type == o.industry_data_type &&
263
+ digital_service_indicator == o.digital_service_indicator &&
247
264
  issuer == o.issuer &&
248
265
  authorization_options == o.authorization_options &&
249
266
  capture_options == o.capture_options &&
@@ -262,7 +279,7 @@ module CyberSource
262
279
  # Calculates hash code according to all attributes.
263
280
  # @return [Fixnum] Hash code
264
281
  def hash
265
- [payment_solution, reconciliation_id, link_id, report_group, visa_checkout_id, purchase_level, industry_data_type, issuer, authorization_options, capture_options, loan_options, pay_by_points_indicator, action_list, japan_payment_options].hash
282
+ [payment_solution, reconciliation_id, link_id, report_group, visa_checkout_id, purchase_level, industry_data_type, digital_service_indicator, issuer, authorization_options, capture_options, loan_options, pay_by_points_indicator, action_list, japan_payment_options].hash
266
283
  end
267
284
 
268
285
  # Builds the object from hash