cybersource_rest_client 0.0.79 → 0.0.81

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 (291) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +17 -7
  3. data/lib/AuthenticationSDK/core/Authorization.rb +2 -2
  4. data/lib/AuthenticationSDK/core/MerchantConfig.rb +278 -23
  5. data/lib/AuthenticationSDK/util/Cache.rb +158 -8
  6. data/lib/AuthenticationSDK/util/CachedMLEKId.rb +17 -0
  7. data/lib/AuthenticationSDK/util/CertificateUtility.rb +109 -29
  8. data/lib/AuthenticationSDK/util/Constants.rb +6 -0
  9. data/lib/AuthenticationSDK/util/JWT/JWTExceptions.rb +81 -0
  10. data/lib/AuthenticationSDK/util/JWT/JWTUtility.rb +154 -0
  11. data/lib/AuthenticationSDK/util/MLEUtility.rb +167 -11
  12. data/lib/AuthenticationSDK/util/Utility.rb +37 -1
  13. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +13 -5
  14. data/lib/cybersource_rest_client/api/batches_api.rb +50 -18
  15. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +33 -9
  16. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +11 -3
  17. data/lib/cybersource_rest_client/api/capture_api.rb +11 -3
  18. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +11 -3
  19. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +11 -3
  20. data/lib/cybersource_rest_client/api/conversion_details_api.rb +11 -3
  21. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +35 -11
  22. data/lib/cybersource_rest_client/api/credit_api.rb +11 -3
  23. data/lib/cybersource_rest_client/api/customer_api.rb +44 -12
  24. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +55 -15
  25. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +55 -15
  26. data/lib/cybersource_rest_client/api/decision_manager_api.rb +57 -17
  27. data/lib/cybersource_rest_client/api/device_de_association_api.rb +24 -8
  28. data/lib/cybersource_rest_client/api/device_search_api.rb +26 -10
  29. data/lib/cybersource_rest_client/api/download_dtd_api.rb +11 -3
  30. data/lib/cybersource_rest_client/api/download_xsd_api.rb +11 -3
  31. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +22 -6
  32. data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
  33. data/lib/cybersource_rest_client/api/flex_api_api.rb +11 -3
  34. data/lib/cybersource_rest_client/api/instructions_api.rb +452 -0
  35. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +66 -18
  36. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +11 -3
  37. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +22 -6
  38. data/lib/cybersource_rest_client/api/invoices_api.rb +77 -21
  39. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +81 -25
  40. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +24 -8
  41. data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +50 -18
  42. data/lib/cybersource_rest_client/api/microform_integration_api.rb +11 -3
  43. data/lib/cybersource_rest_client/api/net_fundings_api.rb +11 -3
  44. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +11 -3
  45. data/lib/cybersource_rest_client/api/offers_api.rb +24 -8
  46. data/lib/cybersource_rest_client/api/orders_api.rb +22 -6
  47. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +33 -9
  48. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +11 -3
  49. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +44 -12
  50. data/lib/cybersource_rest_client/api/payment_links_api.rb +44 -12
  51. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +11 -3
  52. data/lib/cybersource_rest_client/api/payments_api.rb +66 -18
  53. data/lib/cybersource_rest_client/api/payouts_api.rb +11 -3
  54. data/lib/cybersource_rest_client/api/plans_api.rb +88 -24
  55. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +11 -3
  56. data/lib/cybersource_rest_client/api/push_funds_api.rb +11 -3
  57. data/lib/cybersource_rest_client/api/refund_api.rb +22 -6
  58. data/lib/cybersource_rest_client/api/report_definitions_api.rb +22 -6
  59. data/lib/cybersource_rest_client/api/report_downloads_api.rb +11 -3
  60. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +55 -15
  61. data/lib/cybersource_rest_client/api/reports_api.rb +33 -9
  62. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +11 -3
  63. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +11 -3
  64. data/lib/cybersource_rest_client/api/reversal_api.rb +22 -6
  65. data/lib/cybersource_rest_client/api/search_transactions_api.rb +22 -6
  66. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +22 -6
  67. data/lib/cybersource_rest_client/api/subscriptions_api.rb +97 -33
  68. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +22 -6
  69. data/lib/cybersource_rest_client/api/taxes_api.rb +22 -6
  70. data/lib/cybersource_rest_client/api/token_api.rb +24 -8
  71. data/lib/cybersource_rest_client/api/tokenize_api.rb +107 -0
  72. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +126 -9
  73. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +44 -12
  74. data/lib/cybersource_rest_client/api/transaction_details_api.rb +11 -3
  75. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +22 -6
  76. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +11 -3
  77. data/lib/cybersource_rest_client/api/user_management_api.rb +11 -3
  78. data/lib/cybersource_rest_client/api/user_management_search_api.rb +11 -3
  79. data/lib/cybersource_rest_client/api/verification_api.rb +22 -6
  80. data/lib/cybersource_rest_client/api/void_api.rb +55 -15
  81. data/lib/cybersource_rest_client/api_client.rb +20 -3
  82. data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +232 -0
  83. data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +405 -0
  84. data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +191 -0
  85. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconf_processor_info_payment_instrument_verifi_results.rb +213 -0
  86. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_confirmation_data.rb +229 -0
  87. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_merchant_information.rb +258 -0
  88. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_order_information.rb +377 -0
  89. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_order_information_shipping_details.rb +206 -0
  90. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +425 -0
  91. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +190 -0
  92. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_attachments.rb +258 -0
  93. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_client_reference_information.rb +215 -0
  94. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_mandate_reference_data.rb +205 -0
  95. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_merchant_information.rb +334 -0
  96. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_merchant_information_merchant_descriptor.rb +250 -0
  97. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information.rb +228 -0
  98. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +354 -0
  99. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_items.rb +367 -0
  100. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_items_additional_info.rb +231 -0
  101. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_items_policies.rb +346 -0
  102. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_line_items.rb +190 -0
  103. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_ship_to.rb +686 -0
  104. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_payment_options.rb +217 -0
  105. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_transaction_data.rb +348 -0
  106. data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +313 -0
  107. data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +237 -0
  108. data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +191 -0
  109. data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +400 -0
  110. data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +229 -0
  111. data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information_personal_identification.rb +212 -0
  112. data/lib/cybersource_rest_client/models/acpv1tokens_consent_data.rb +297 -0
  113. data/lib/cybersource_rest_client/models/{rbsv1subscriptions_client_reference_information.rb → acpv1tokens_consumer_identity.rb} +73 -61
  114. data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +378 -0
  115. data/lib/cybersource_rest_client/models/acpv1tokens_device_information_device_data.rb +302 -0
  116. data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +207 -0
  117. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +215 -0
  118. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information_customer.rb +197 -0
  119. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information_instrument_identifier.rb +206 -0
  120. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information_payment_instrument.rb +197 -0
  121. data/lib/cybersource_rest_client/models/agentic_cancel_purchase_intent_request.rb +257 -0
  122. data/lib/cybersource_rest_client/models/agentic_card_enrollment_bad_request_response400.rb +189 -0
  123. data/lib/cybersource_rest_client/models/agentic_card_enrollment_bad_request_response400_error.rb +238 -0
  124. data/lib/cybersource_rest_client/models/agentic_card_enrollment_bad_request_response400_error_detail.rb +224 -0
  125. data/lib/cybersource_rest_client/models/agentic_card_enrollment_request.rb +325 -0
  126. data/lib/cybersource_rest_client/models/agentic_card_enrollment_response200.rb +206 -0
  127. data/lib/cybersource_rest_client/models/agentic_card_enrollment_response202.rb +219 -0
  128. data/lib/cybersource_rest_client/models/agentic_confirm_transaction_events_request.rb +247 -0
  129. data/lib/cybersource_rest_client/models/agentic_confirm_transaction_events_response202.rb +195 -0
  130. data/lib/cybersource_rest_client/models/agentic_create_purchase_intent_request.rb +327 -0
  131. data/lib/cybersource_rest_client/models/agentic_create_purchase_intent_response200.rb +222 -0
  132. data/lib/cybersource_rest_client/models/agentic_pending_purchase_intent_response202.rb +241 -0
  133. data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_request.rb +247 -0
  134. data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_response200.rb +200 -0
  135. data/lib/cybersource_rest_client/models/{rbsv1plans_client_reference_information.rb → agentic_retrieve_payment_credentials_response200_transaction_response_complete.rb} +52 -47
  136. data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_response200_transaction_response_with_pending_events.rb +235 -0
  137. data/lib/cybersource_rest_client/models/agentic_update_purchase_intent_request.rb +315 -0
  138. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +36 -1
  139. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_localized_names.rb +254 -0
  140. data/lib/cybersource_rest_client/models/create_plan_request.rb +1 -11
  141. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  142. data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +1 -1
  143. data/lib/cybersource_rest_client/models/create_subscription_response.rb +15 -5
  144. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +13 -2
  145. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb +196 -0
  146. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb +11 -1
  147. data/lib/cybersource_rest_client/models/get_subscription_response.rb +11 -1
  148. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +1 -1
  149. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb +1 -1
  150. data/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +1 -1
  151. data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +22 -22
  152. data/lib/cybersource_rest_client/models/inline_response_200.rb +9 -44
  153. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +29 -31
  154. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +33 -37
  155. data/lib/cybersource_rest_client/models/{inline_response_200_9_devices.rb → inline_response_200_10_devices.rb} +2 -2
  156. data/lib/cybersource_rest_client/models/{inline_response_200_9_payment_processor_to_terminal_map.rb → inline_response_200_10_payment_processor_to_terminal_map.rb} +1 -1
  157. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +47 -86
  158. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded.rb → inline_response_200_11__embedded.rb} +2 -2
  159. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links.rb → inline_response_200_11__embedded__links.rb} +2 -2
  160. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links_reports.rb → inline_response_200_11__embedded__links_reports.rb} +1 -1
  161. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_batches.rb → inline_response_200_11__embedded_batches.rb} +3 -3
  162. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_totals.rb → inline_response_200_11__embedded_totals.rb} +1 -1
  163. data/lib/cybersource_rest_client/models/inline_response_200_11__links.rb +16 -17
  164. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +47 -49
  165. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +201 -0
  166. data/lib/cybersource_rest_client/models/{inline_response_200_11__links_report.rb → inline_response_200_12__links_report.rb} +1 -1
  167. data/lib/cybersource_rest_client/models/{inline_response_200_11_billing.rb → inline_response_200_12_billing.rb} +1 -1
  168. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +102 -31
  169. data/lib/cybersource_rest_client/models/{inline_response_200_12_records.rb → inline_response_200_13_records.rb} +3 -3
  170. data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record.rb → inline_response_200_13_response_record.rb} +2 -2
  171. data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record_additional_updates.rb → inline_response_200_13_response_record_additional_updates.rb} +1 -1
  172. data/lib/cybersource_rest_client/models/{inline_response_200_12_source_record.rb → inline_response_200_13_source_record.rb} +1 -1
  173. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +18 -84
  174. data/lib/cybersource_rest_client/models/inline_response_200_15.rb +287 -0
  175. data/lib/cybersource_rest_client/models/{inline_response_200_14_client_reference_information.rb → inline_response_200_15_client_reference_information.rb} +1 -1
  176. data/lib/cybersource_rest_client/models/{inline_response_200_content.rb → inline_response_200_1_content.rb} +1 -1
  177. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +32 -103
  178. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded.rb → inline_response_200_2__embedded.rb} +3 -3
  179. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture.rb → inline_response_200_2__embedded_capture.rb} +2 -2
  180. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links.rb → inline_response_200_2__embedded_capture__links.rb} +2 -2
  181. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links_self.rb → inline_response_200_2__embedded_capture__links_self.rb} +1 -1
  182. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal.rb → inline_response_200_2__embedded_reversal.rb} +2 -2
  183. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links.rb → inline_response_200_2__embedded_reversal__links.rb} +2 -2
  184. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links_self.rb → inline_response_200_2__embedded_reversal__links_self.rb} +1 -1
  185. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +100 -54
  186. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +65 -25
  187. data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information.rb → inline_response_200_4_integration_information.rb} +2 -2
  188. data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information_tenant_configurations.rb → inline_response_200_4_integration_information_tenant_configurations.rb} +1 -1
  189. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +25 -126
  190. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +1 -12
  191. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +129 -51
  192. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +55 -10
  193. data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +1 -1
  194. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +10 -55
  195. data/lib/cybersource_rest_client/models/{inline_response_200_10__links.rb → inline_response_200_details.rb} +18 -17
  196. data/lib/cybersource_rest_client/models/inline_response_200_errors.rb +213 -0
  197. data/lib/cybersource_rest_client/models/inline_response_200_responses.rb +224 -0
  198. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +15 -5
  199. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +9 -9
  200. data/lib/cybersource_rest_client/models/patch_customer_request.rb +9 -9
  201. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +3 -3
  202. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +9 -9
  203. data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb +8 -8
  204. data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
  205. data/lib/cybersource_rest_client/models/payments_products.rb +15 -5
  206. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +9 -9
  207. data/lib/cybersource_rest_client/models/post_customer_request.rb +9 -9
  208. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +3 -3
  209. data/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb +211 -0
  210. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +9 -9
  211. data/lib/cybersource_rest_client/models/post_tokenize_request.rb +199 -0
  212. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +22 -5
  213. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +22 -5
  214. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +39 -5
  215. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information.rb +246 -0
  216. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit.rb +189 -0
  217. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit_airline.rb +889 -0
  218. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit_airline_ancillary_information.rb +259 -0
  219. data/lib/cybersource_rest_client/models/{rbsv1subscriptions_client_reference_information_partner.rb → ptsv2paymentsidrefunds_travel_information_transit_airline_ancillary_information_service.rb} +24 -24
  220. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  221. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  222. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +1 -1
  223. data/lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb +190 -0
  224. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information.rb → tms_merchant_information.rb} +2 -2
  225. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb → tms_merchant_information_merchant_descriptor.rb} +1 -1
  226. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb → tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb} +1 -1
  227. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb → tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb} +2 -2
  228. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb → tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb} +1 -1
  229. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb → tmsv2tokenize_default_payment_instrument_instrument_identifier.rb} +1 -1
  230. data/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb +205 -0
  231. data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb +247 -0
  232. data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb +289 -0
  233. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded.rb → tmsv2tokenize_token_information_customer__embedded.rb} +3 -3
  234. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb} +10 -10
  235. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb} +1 -1
  236. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb} +3 -3
  237. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb} +1 -1
  238. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bank_account.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb} +1 -1
  239. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bill_to.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb} +1 -1
  240. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb} +2 -2
  241. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb} +2 -2
  242. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb} +1 -1
  243. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb} +4 -4
  244. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb} +3 -3
  245. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_customer.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb} +1 -1
  246. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb} +1 -1
  247. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb} +1 -1
  248. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_ship_to.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb} +1 -1
  249. data/lib/cybersource_rest_client/models/{tmsv2customers__links.rb → tmsv2tokenize_token_information_customer__links.rb} +4 -4
  250. data/lib/cybersource_rest_client/models/{tmsv2customers__links_payment_instruments.rb → tmsv2tokenize_token_information_customer__links_payment_instruments.rb} +1 -1
  251. data/lib/cybersource_rest_client/models/{tmsv2customers__links_self.rb → tmsv2tokenize_token_information_customer__links_self.rb} +1 -1
  252. data/lib/cybersource_rest_client/models/{tmsv2customers__links_shipping_address.rb → tmsv2tokenize_token_information_customer__links_shipping_address.rb} +1 -1
  253. data/lib/cybersource_rest_client/models/{tmsv2customers_buyer_information.rb → tmsv2tokenize_token_information_customer_buyer_information.rb} +1 -1
  254. data/lib/cybersource_rest_client/models/{tmsv2customers_client_reference_information.rb → tmsv2tokenize_token_information_customer_client_reference_information.rb} +1 -1
  255. data/lib/cybersource_rest_client/models/{tmsv2customers_default_payment_instrument.rb → tmsv2tokenize_token_information_customer_default_payment_instrument.rb} +1 -1
  256. data/lib/cybersource_rest_client/models/{tmsv2customers_default_shipping_address.rb → tmsv2tokenize_token_information_customer_default_shipping_address.rb} +1 -1
  257. data/lib/cybersource_rest_client/models/{tmsv2customers_merchant_defined_information.rb → tmsv2tokenize_token_information_customer_merchant_defined_information.rb} +1 -1
  258. data/lib/cybersource_rest_client/models/{tmsv2customers_metadata.rb → tmsv2tokenize_token_information_customer_metadata.rb} +1 -1
  259. data/lib/cybersource_rest_client/models/{tmsv2customers_object_information.rb → tmsv2tokenize_token_information_customer_object_information.rb} +1 -1
  260. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb +230 -0
  261. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb +189 -0
  262. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb +189 -0
  263. data/lib/cybersource_rest_client/models/update_subscription.rb +1 -1
  264. data/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb +28 -6
  265. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb +41 -5
  266. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb +1 -0
  267. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb +3 -3
  268. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb +24 -5
  269. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb +196 -0
  270. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_defined_information.rb +3 -2
  271. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb +124 -5
  272. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb +15 -5
  273. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb +15 -5
  274. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb +213 -0
  275. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb +213 -0
  276. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb +30 -0
  277. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb +8 -0
  278. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb +7 -0
  279. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb +189 -0
  280. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb +196 -0
  281. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb +1 -0
  282. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb +74 -5
  283. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb +1 -0
  284. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb +39 -5
  285. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +1 -0
  286. data/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +113 -0
  287. data/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb +131 -0
  288. data/lib/cybersource_rest_client/utilities/jwe_utility.rb +1 -1
  289. data/lib/cybersource_rest_client.rb +144 -62
  290. metadata +151 -65
  291. /data/lib/AuthenticationSDK/util/{JWEUtility.rb → AuthJWEUtility.rb} +0 -0
@@ -0,0 +1,259 @@
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 Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformation
16
+ # Ticket number, which consists of the carrier code, form, and serial number, without the check digit. **Important** This field is required in the U.S. in order for you to qualify for either the custom payment service (CPS) or the electronic interchange reimbursement fee (EIRF) program. Format: English characters only. Optional field for ancillary services.
17
+ attr_accessor :ticket_number
18
+
19
+ # Name of the passenger. If the passenger's name is not available, this value is the cardholder's name. If neither the passenger's name nor the cardholder's name is available, this value is a description of the ancillary purchase. **Important** This field is required in the U.S. in order for you to qualify for either the custom payment service (CPS) or the electronic interchange reimbursement fee (EIRF) program. Format: English characters only. Optional field for ancillary service.
20
+ attr_accessor :passenger_name
21
+
22
+ # Number for the airline ticket to which the ancillary purchase is connected. If this purchase has a connection or relationship to another purchase such as a baggage fee for a passenger transport ticket, this field must contain the ticket number for the other purchase. For a stand-alone purchase, the value for this field must be the same as the value for the `travelInformation.transit.airline.ancillaryInformation.ticketNumber` field. **Important** This field is required in the U.S. in order for you to qualify for either the custom payment service (CPS) or the electronic interchange reimbursement fee (EIRF) program. Format: English characters only. Optional request field for ancillary services.
23
+ attr_accessor :connected_ticket_number
24
+
25
+ # Reason for the credit. Possible values: - `A`: Cancellation of the ancillary passenger transport purchase. - `B`: Cancellation of the airline ticket and the passenger transport ancillary purchase. - `C`: Cancellation of the airline ticket. - `O`: Other. - `P`: Partial refund of the airline ticket. Format: English characters only. Optional field for ancillary services.
26
+ attr_accessor :credit_reason_indicator
27
+
28
+ attr_accessor :service
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'ticket_number' => :'ticketNumber',
34
+ :'passenger_name' => :'passengerName',
35
+ :'connected_ticket_number' => :'connectedTicketNumber',
36
+ :'credit_reason_indicator' => :'creditReasonIndicator',
37
+ :'service' => :'service'
38
+ }
39
+ end
40
+
41
+ # Attribute mapping from JSON key to ruby-style variable name.
42
+ def self.json_map
43
+ {
44
+ :'ticket_number' => :'ticket_number',
45
+ :'passenger_name' => :'passenger_name',
46
+ :'connected_ticket_number' => :'connected_ticket_number',
47
+ :'credit_reason_indicator' => :'credit_reason_indicator',
48
+ :'service' => :'service'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'ticket_number' => :'String',
56
+ :'passenger_name' => :'String',
57
+ :'connected_ticket_number' => :'String',
58
+ :'credit_reason_indicator' => :'String',
59
+ :'service' => :'Array<Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformationService>'
60
+ }
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ return unless attributes.is_a?(Hash)
67
+
68
+ # convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
70
+
71
+ if attributes.has_key?(:'ticketNumber')
72
+ self.ticket_number = attributes[:'ticketNumber']
73
+ end
74
+
75
+ if attributes.has_key?(:'passengerName')
76
+ self.passenger_name = attributes[:'passengerName']
77
+ end
78
+
79
+ if attributes.has_key?(:'connectedTicketNumber')
80
+ self.connected_ticket_number = attributes[:'connectedTicketNumber']
81
+ end
82
+
83
+ if attributes.has_key?(:'creditReasonIndicator')
84
+ self.credit_reason_indicator = attributes[:'creditReasonIndicator']
85
+ end
86
+
87
+ if attributes.has_key?(:'service')
88
+ if (value = attributes[:'service']).is_a?(Array)
89
+ self.service = value
90
+ end
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ true
105
+ end
106
+
107
+ # Custom attribute writer method with validation
108
+ # @param [Object] ticket_number Value to be assigned
109
+ def ticket_number=(ticket_number)
110
+ @ticket_number = ticket_number
111
+ end
112
+
113
+ # Custom attribute writer method with validation
114
+ # @param [Object] passenger_name Value to be assigned
115
+ def passenger_name=(passenger_name)
116
+ @passenger_name = passenger_name
117
+ end
118
+
119
+ # Custom attribute writer method with validation
120
+ # @param [Object] connected_ticket_number Value to be assigned
121
+ def connected_ticket_number=(connected_ticket_number)
122
+ @connected_ticket_number = connected_ticket_number
123
+ end
124
+
125
+ # Custom attribute writer method with validation
126
+ # @param [Object] credit_reason_indicator Value to be assigned
127
+ def credit_reason_indicator=(credit_reason_indicator)
128
+ @credit_reason_indicator = credit_reason_indicator
129
+ end
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param [Object] Object to be compared
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ ticket_number == o.ticket_number &&
137
+ passenger_name == o.passenger_name &&
138
+ connected_ticket_number == o.connected_ticket_number &&
139
+ credit_reason_indicator == o.credit_reason_indicator &&
140
+ service == o.service
141
+ end
142
+
143
+ # @see the `==` method
144
+ # @param [Object] Object to be compared
145
+ def eql?(o)
146
+ self == o
147
+ end
148
+
149
+ # Calculates hash code according to all attributes.
150
+ # @return [Fixnum] Hash code
151
+ def hash
152
+ [ticket_number, passenger_name, connected_ticket_number, credit_reason_indicator, service].hash
153
+ end
154
+
155
+ # Builds the object from hash
156
+ # @param [Hash] attributes Model attributes in the form of hash
157
+ # @return [Object] Returns the model itself
158
+ def build_from_hash(attributes)
159
+ return nil unless attributes.is_a?(Hash)
160
+ self.class.swagger_types.each_pair do |key, type|
161
+ if type =~ /\AArray<(.*)>/i
162
+ # check to ensure the input is an array given that the the attribute
163
+ # is documented as an array but the input is not
164
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
165
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
166
+ end
167
+ elsif !attributes[self.class.attribute_map[key]].nil?
168
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
169
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
170
+ end
171
+
172
+ self
173
+ end
174
+
175
+ # Deserializes the data based on type
176
+ # @param string type Data type
177
+ # @param string value Value to be deserialized
178
+ # @return [Object] Deserialized data
179
+ def _deserialize(type, value)
180
+ case type.to_sym
181
+ when :DateTime
182
+ DateTime.parse(value)
183
+ when :Date
184
+ Date.parse(value)
185
+ when :String
186
+ value.to_s
187
+ when :Integer
188
+ value.to_i
189
+ when :Float
190
+ value.to_f
191
+ when :BOOLEAN
192
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
193
+ true
194
+ else
195
+ false
196
+ end
197
+ when :Object
198
+ # generic object (usually a Hash), return directly
199
+ value
200
+ when /\AArray<(?<inner_type>.+)>\z/
201
+ inner_type = Regexp.last_match[:inner_type]
202
+ value.map { |v| _deserialize(inner_type, v) }
203
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
204
+ k_type = Regexp.last_match[:k_type]
205
+ v_type = Regexp.last_match[:v_type]
206
+ {}.tap do |hash|
207
+ value.each do |k, v|
208
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
209
+ end
210
+ end
211
+ else # model
212
+ temp_model = CyberSource.const_get(type).new
213
+ temp_model.build_from_hash(value)
214
+ end
215
+ end
216
+
217
+ # Returns the string representation of the object
218
+ # @return [String] String presentation of the object
219
+ def to_s
220
+ to_hash.to_s
221
+ end
222
+
223
+ # to_body is an alias to to_hash (backward compatibility)
224
+ # @return [Hash] Returns the object in the form of hash
225
+ def to_body
226
+ to_hash
227
+ end
228
+
229
+ # Returns the object in the form of hash
230
+ # @return [Hash] Returns the object in the form of hash
231
+ def to_hash
232
+ hash = {}
233
+ self.class.attribute_map.each_pair do |attr, param|
234
+ value = self.send(attr)
235
+ next if value.nil?
236
+ hash[param] = _to_hash(value)
237
+ end
238
+ hash
239
+ end
240
+
241
+ # Outputs non-array value in the form of hash
242
+ # For object, use to_hash. Otherwise, just return the value
243
+ # @param [Object] value Any valid value
244
+ # @return [Hash] Returns the value in the form of hash
245
+ def _to_hash(value)
246
+ if value.is_a?(Array)
247
+ value.compact.map { |v| _to_hash(v) }
248
+ elsif value.is_a?(Hash)
249
+ {}.tap do |hash|
250
+ value.each { |k, v| hash[k] = _to_hash(v) }
251
+ end
252
+ elsif value.respond_to? :to_hash
253
+ value.to_hash
254
+ else
255
+ value
256
+ end
257
+ end
258
+ end
259
+ end
@@ -12,34 +12,34 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Rbsv1subscriptionsClientReferenceInformationPartner
16
- # > This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription. Identifier for the developer that helped integrate a partner solution to CyberSource. Send this value in all requests that are sent through the partner solutions built by that developer. CyberSource assigns the ID to the developer. **Note** When you see a developer ID of 999 in reports, the developer ID that was submitted is incorrect.
17
- attr_accessor :developer_id
15
+ class Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformationService
16
+ # Category code for the ancillary service that is provided. Obtain the codes from the International Air Transport Association (IATA). **Note** `#` is either 0, 1, 2, or 3. **Important** This field is required in the U.S. in order for you to qualify for either the custom payment service (CPS) or the electronic interchange reimbursement fee (EIRF)program. Format: English characters only. Optional request field for ancillary services.
17
+ attr_accessor :category_code
18
18
 
19
- # > This field is ignored when you provide the `subscriptionInformation.originalTransactionId` or update the subscription. Identifier for the partner that is integrated to CyberSource. Send this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner. **Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.
20
- attr_accessor :solution_id
19
+ # Subcategory code for the ancillary service category. Obtain the codes from the International Air Transport Association (IATA). **Note** `#` is either 0, 1, 2, or 3. Format English characters only. Optional request field for ancillary services.
20
+ attr_accessor :sub_category_code
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'developer_id' => :'developerId',
26
- :'solution_id' => :'solutionId'
25
+ :'category_code' => :'categoryCode',
26
+ :'sub_category_code' => :'subCategoryCode'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute mapping from JSON key to ruby-style variable name.
31
31
  def self.json_map
32
32
  {
33
- :'developer_id' => :'developer_id',
34
- :'solution_id' => :'solution_id'
33
+ :'category_code' => :'category_code',
34
+ :'sub_category_code' => :'sub_category_code'
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'developer_id' => :'String',
42
- :'solution_id' => :'String'
41
+ :'category_code' => :'String',
42
+ :'sub_category_code' => :'String'
43
43
  }
44
44
  end
45
45
 
@@ -51,12 +51,12 @@ module CyberSource
51
51
  # convert string to symbol for hash key
52
52
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
53
 
54
- if attributes.has_key?(:'developerId')
55
- self.developer_id = attributes[:'developerId']
54
+ if attributes.has_key?(:'categoryCode')
55
+ self.category_code = attributes[:'categoryCode']
56
56
  end
57
57
 
58
- if attributes.has_key?(:'solutionId')
59
- self.solution_id = attributes[:'solutionId']
58
+ if attributes.has_key?(:'subCategoryCode')
59
+ self.sub_category_code = attributes[:'subCategoryCode']
60
60
  end
61
61
  end
62
62
 
@@ -74,15 +74,15 @@ module CyberSource
74
74
  end
75
75
 
76
76
  # Custom attribute writer method with validation
77
- # @param [Object] developer_id Value to be assigned
78
- def developer_id=(developer_id)
79
- @developer_id = developer_id
77
+ # @param [Object] category_code Value to be assigned
78
+ def category_code=(category_code)
79
+ @category_code = category_code
80
80
  end
81
81
 
82
82
  # Custom attribute writer method with validation
83
- # @param [Object] solution_id Value to be assigned
84
- def solution_id=(solution_id)
85
- @solution_id = solution_id
83
+ # @param [Object] sub_category_code Value to be assigned
84
+ def sub_category_code=(sub_category_code)
85
+ @sub_category_code = sub_category_code
86
86
  end
87
87
 
88
88
  # Checks equality by comparing each attribute.
@@ -90,8 +90,8 @@ module CyberSource
90
90
  def ==(o)
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
- developer_id == o.developer_id &&
94
- solution_id == o.solution_id
93
+ category_code == o.category_code &&
94
+ sub_category_code == o.sub_category_code
95
95
  end
96
96
 
97
97
  # @see the `==` method
@@ -103,7 +103,7 @@ module CyberSource
103
103
  # Calculates hash code according to all attributes.
104
104
  # @return [Fixnum] Hash code
105
105
  def hash
106
- [developer_id, solution_id].hash
106
+ [category_code, sub_category_code].hash
107
107
  end
108
108
 
109
109
  # Builds the object from hash
@@ -91,7 +91,7 @@ module CyberSource
91
91
  :'aggregator_information' => :'Ptsv2paymentsidcapturesAggregatorInformation',
92
92
  :'point_of_sale_information' => :'Ptsv2paymentsidrefundsPointOfSaleInformation',
93
93
  :'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>',
94
- :'travel_information' => :'Ptsv2paymentsTravelInformation',
94
+ :'travel_information' => :'Ptsv2paymentsidrefundsTravelInformation',
95
95
  :'promotion_information' => :'Ptsv2paymentsPromotionInformation',
96
96
  :'processor_information' => :'Ptsv2reversalsProcessorInformation'
97
97
  }
@@ -91,7 +91,7 @@ module CyberSource
91
91
  :'aggregator_information' => :'Ptsv2paymentsidcapturesAggregatorInformation',
92
92
  :'point_of_sale_information' => :'Ptsv2paymentsidrefundsPointOfSaleInformation',
93
93
  :'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>',
94
- :'travel_information' => :'Ptsv2paymentsTravelInformation',
94
+ :'travel_information' => :'Ptsv2paymentsidrefundsTravelInformation',
95
95
  :'promotion_information' => :'Ptsv2paymentsPromotionInformation',
96
96
  :'processor_information' => :'Ptsv2reversalsProcessorInformation'
97
97
  }
@@ -33,7 +33,7 @@ module CyberSource
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'shipping_addresses' => :'Array<Tmsv2customersEmbeddedDefaultShippingAddress>'
36
+ :'shipping_addresses' => :'Array<Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress>'
37
37
  }
38
38
  end
39
39
 
@@ -0,0 +1,190 @@
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 Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset
16
+ # Set to \"true\" to simulate an update to the combined card art asset associated with the Tokenized Card.
17
+ attr_accessor :update
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'update' => :'update'
23
+ }
24
+ end
25
+
26
+ # Attribute mapping from JSON key to ruby-style variable name.
27
+ def self.json_map
28
+ {
29
+ :'update' => :'update'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'update' => :'String'
37
+ }
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ return unless attributes.is_a?(Hash)
44
+
45
+ # convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
+
48
+ if attributes.has_key?(:'update')
49
+ self.update = attributes[:'update']
50
+ end
51
+ end
52
+
53
+ # Show invalid properties with the reasons. Usually used together with valid?
54
+ # @return Array for valid properties with the reasons
55
+ def list_invalid_properties
56
+ invalid_properties = Array.new
57
+ invalid_properties
58
+ end
59
+
60
+ # Check to see if the all the properties in the model are valid
61
+ # @return true if the model is valid
62
+ def valid?
63
+ true
64
+ end
65
+
66
+ # Checks equality by comparing each attribute.
67
+ # @param [Object] Object to be compared
68
+ def ==(o)
69
+ return true if self.equal?(o)
70
+ self.class == o.class &&
71
+ update == o.update
72
+ end
73
+
74
+ # @see the `==` method
75
+ # @param [Object] Object to be compared
76
+ def eql?(o)
77
+ self == o
78
+ end
79
+
80
+ # Calculates hash code according to all attributes.
81
+ # @return [Fixnum] Hash code
82
+ def hash
83
+ [update].hash
84
+ end
85
+
86
+ # Builds the object from hash
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ # @return [Object] Returns the model itself
89
+ def build_from_hash(attributes)
90
+ return nil unless attributes.is_a?(Hash)
91
+ self.class.swagger_types.each_pair do |key, type|
92
+ if type =~ /\AArray<(.*)>/i
93
+ # check to ensure the input is an array given that the the attribute
94
+ # is documented as an array but the input is not
95
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
96
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
+ end
98
+ elsif !attributes[self.class.attribute_map[key]].nil?
99
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
100
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
101
+ end
102
+
103
+ self
104
+ end
105
+
106
+ # Deserializes the data based on type
107
+ # @param string type Data type
108
+ # @param string value Value to be deserialized
109
+ # @return [Object] Deserialized data
110
+ def _deserialize(type, value)
111
+ case type.to_sym
112
+ when :DateTime
113
+ DateTime.parse(value)
114
+ when :Date
115
+ Date.parse(value)
116
+ when :String
117
+ value.to_s
118
+ when :Integer
119
+ value.to_i
120
+ when :Float
121
+ value.to_f
122
+ when :BOOLEAN
123
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
124
+ true
125
+ else
126
+ false
127
+ end
128
+ when :Object
129
+ # generic object (usually a Hash), return directly
130
+ value
131
+ when /\AArray<(?<inner_type>.+)>\z/
132
+ inner_type = Regexp.last_match[:inner_type]
133
+ value.map { |v| _deserialize(inner_type, v) }
134
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
135
+ k_type = Regexp.last_match[:k_type]
136
+ v_type = Regexp.last_match[:v_type]
137
+ {}.tap do |hash|
138
+ value.each do |k, v|
139
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
140
+ end
141
+ end
142
+ else # model
143
+ temp_model = CyberSource.const_get(type).new
144
+ temp_model.build_from_hash(value)
145
+ end
146
+ end
147
+
148
+ # Returns the string representation of the object
149
+ # @return [String] String presentation of the object
150
+ def to_s
151
+ to_hash.to_s
152
+ end
153
+
154
+ # to_body is an alias to to_hash (backward compatibility)
155
+ # @return [Hash] Returns the object in the form of hash
156
+ def to_body
157
+ to_hash
158
+ end
159
+
160
+ # Returns the object in the form of hash
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_hash
163
+ hash = {}
164
+ self.class.attribute_map.each_pair do |attr, param|
165
+ value = self.send(attr)
166
+ next if value.nil?
167
+ hash[param] = _to_hash(value)
168
+ end
169
+ hash
170
+ end
171
+
172
+ # Outputs non-array value in the form of hash
173
+ # For object, use to_hash. Otherwise, just return the value
174
+ # @param [Object] value Any valid value
175
+ # @return [Hash] Returns the value in the form of hash
176
+ def _to_hash(value)
177
+ if value.is_a?(Array)
178
+ value.compact.map { |v| _to_hash(v) }
179
+ elsif value.is_a?(Hash)
180
+ {}.tap do |hash|
181
+ value.each { |k, v| hash[k] = _to_hash(v) }
182
+ end
183
+ elsif value.respond_to? :to_hash
184
+ value.to_hash
185
+ else
186
+ value
187
+ end
188
+ end
189
+ end
190
+ end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation
15
+ class TmsMerchantInformation
16
16
  attr_accessor :merchant_descriptor
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -32,7 +32,7 @@ module CyberSource
32
32
  # Attribute type mapping.
33
33
  def self.swagger_types
34
34
  {
35
- :'merchant_descriptor' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor'
35
+ :'merchant_descriptor' => :'TmsMerchantInformationMerchantDescriptor'
36
36
  }
37
37
  end
38
38
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor
15
+ class TmsMerchantInformationMerchantDescriptor
16
16
  # Alternate contact information for your business,such as an email address or URL. This value might be displayed on the cardholder's statement. When you do not include this value in your capture or credit request, the merchant URL from your CyberSource account is used. Important This value must consist of English characters
17
17
  attr_accessor :alternate_name
18
18
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy
15
+ class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy
16
16
  # The State or province where the customer's driver's license was issued. Use the two-character State, Province, and Territory Codes for the United States and Canada.
17
17
  attr_accessor :administrative_area
18
18
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification
15
+ class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification
16
16
  # The value of the identification type.
17
17
  attr_accessor :id
18
18
 
@@ -44,7 +44,7 @@ module CyberSource
44
44
  {
45
45
  :'id' => :'String',
46
46
  :'type' => :'String',
47
- :'issued_by' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy'
47
+ :'issued_by' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy'
48
48
  }
49
49
  end
50
50
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation
15
+ class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation
16
16
  # Value that identifies your business and indicates that the cardholder's account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider's database. **Note** This field is supported only through **VisaNet** and **FDC Nashville Global**.
17
17
  attr_accessor :requestor_id
18
18
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier
15
+ class Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier
16
16
  # The Id of the Instrument Identifier linked to the Payment Instrument.
17
17
  attr_accessor :id
18
18