cybersource_rest_client 0.0.49 → 0.0.51

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 (278) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +5 -0
  3. data/lib/AuthenticationSDK/util/Constants.rb +2 -0
  4. data/lib/cybersource_rest_client/api/batches_api.rb +330 -0
  5. data/lib/cybersource_rest_client/api/customer_api.rb +55 -47
  6. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +112 -104
  7. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +112 -104
  8. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +93 -81
  9. data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
  10. data/lib/cybersource_rest_client/api/microform_integration_api.rb +89 -0
  11. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +55 -49
  12. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  13. data/lib/cybersource_rest_client/api/plans_api.rb +573 -0
  14. data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
  15. data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
  16. data/lib/cybersource_rest_client/api/token_api.rb +112 -0
  17. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
  18. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
  19. data/lib/cybersource_rest_client/api_client.rb +11 -0
  20. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included.rb +185 -0
  21. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
  22. data/lib/cybersource_rest_client/models/body.rb +42 -32
  23. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +13 -4
  24. data/lib/cybersource_rest_client/models/create_payment_request.rb +13 -4
  25. data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
  26. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
  27. data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
  28. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +216 -0
  29. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  30. data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
  31. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
  32. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
  34. data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
  38. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
  39. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
  41. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
  42. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
  43. data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
  44. data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
  45. data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
  46. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
  47. data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
  48. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
  49. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
  50. data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
  51. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
  52. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
  53. data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
  54. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
  55. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
  56. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
  57. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
  58. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
  59. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
  60. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
  61. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
  62. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → inline_response_200_6_plan_information.rb} +40 -41
  63. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
  64. data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
  65. data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
  66. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
  67. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
  68. data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → inline_response_200_9.rb} +50 -21
  69. data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
  70. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
  71. data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
  72. data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
  73. data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
  74. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
  75. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
  76. data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
  77. data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
  78. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
  79. data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
  80. data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
  81. data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
  82. data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
  83. data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
  84. data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
  85. data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
  86. data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
  87. data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
  88. data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
  89. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
  90. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
  91. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
  92. data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
  93. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
  94. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
  95. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
  96. data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
  97. data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
  98. data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
  99. data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
  100. data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
  101. data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
  102. data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
  103. data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
  104. data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
  105. data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
  106. data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
  107. data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
  108. data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
  109. data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
  110. data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
  111. data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
  112. data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
  113. data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
  114. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
  115. data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
  116. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  117. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
  118. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  119. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
  120. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
  121. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
  122. data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
  123. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
  124. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  125. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
  126. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
  127. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
  128. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
  129. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  130. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
  131. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
  132. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
  133. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
  134. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
  135. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +13 -4
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +1 -1
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +13 -4
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to.rb +206 -0
  143. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
  144. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  145. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +22 -6
  146. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +102 -6
  147. data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb → pts_v2_payments_post201_response_watchlist_screening_information.rb} +2 -20
  148. data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list.rb} +2 -2
  149. data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches.rb} +1 -1
  150. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
  151. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
  152. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
  153. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
  154. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
  155. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +26 -19
  156. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  157. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +238 -0
  158. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +36 -4
  159. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
  160. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +27 -23
  161. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
  162. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +1 -21
  163. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  164. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +22 -6
  165. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
  166. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
  167. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
  168. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
  169. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
  170. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
  171. data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +215 -0
  172. data/lib/cybersource_rest_client/models/{riskv1exportcomplianceinquiries_export_compliance_information_weights.rb → ptsv2payments_watchlist_screening_information_weights.rb} +1 -1
  173. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
  174. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
  175. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  176. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
  177. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
  178. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
  179. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
  180. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
  181. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
  182. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  183. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +20 -4
  184. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
  185. data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
  186. data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
  187. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
  188. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
  189. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
  190. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
  191. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
  192. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
  193. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
  194. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
  195. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
  196. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
  197. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
  198. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
  199. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
  200. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
  201. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
  202. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
  203. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
  204. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +10 -1
  205. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
  206. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
  207. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
  208. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
  209. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
  210. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
  211. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
  212. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  213. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  214. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
  215. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
  216. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
  217. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
  218. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  219. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  220. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  221. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
  222. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +27 -23
  223. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
  224. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  225. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  226. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +2 -2
  227. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
  228. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
  229. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
  230. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  231. data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
  232. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
  233. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
  234. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
  235. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
  236. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
  237. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
  238. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
  239. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
  240. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
  241. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
  242. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
  243. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
  244. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
  245. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
  246. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
  247. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
  248. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
  249. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
  250. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
  251. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
  252. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
  253. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
  254. data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
  255. data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
  256. data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
  257. data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
  258. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
  259. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
  260. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  261. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
  262. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
  263. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  264. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
  265. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
  266. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
  267. data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
  268. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
  269. data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
  270. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
  271. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
  272. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
  273. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
  274. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
  275. data/lib/cybersource_rest_client.rb +119 -17
  276. metadata +121 -19
  277. data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
  278. data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -58,6 +58,8 @@ module CyberSource
58
58
 
59
59
  attr_accessor :consumer_authentication_information
60
60
 
61
+ attr_accessor :watchlist_screening_information
62
+
61
63
  # Attribute mapping from ruby-style variable name to JSON key.
62
64
  def self.attribute_map
63
65
  {
@@ -80,7 +82,8 @@ module CyberSource
80
82
  :'token_information' => :'tokenInformation',
81
83
  :'buyer_information' => :'buyerInformation',
82
84
  :'risk_information' => :'riskInformation',
83
- :'consumer_authentication_information' => :'consumerAuthenticationInformation'
85
+ :'consumer_authentication_information' => :'consumerAuthenticationInformation',
86
+ :'watchlist_screening_information' => :'watchlistScreeningInformation'
84
87
  }
85
88
  end
86
89
 
@@ -106,7 +109,8 @@ module CyberSource
106
109
  :'token_information' => :'PtsV2PaymentsPost201ResponseTokenInformation',
107
110
  :'buyer_information' => :'PtsV2PaymentsPost201ResponseBuyerInformation',
108
111
  :'risk_information' => :'PtsV2PaymentsPost201ResponseRiskInformation',
109
- :'consumer_authentication_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation'
112
+ :'consumer_authentication_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation',
113
+ :'watchlist_screening_information' => :'PtsV2PaymentsPost201ResponseWatchlistScreeningInformation'
110
114
  }
111
115
  end
112
116
 
@@ -197,6 +201,10 @@ module CyberSource
197
201
  if attributes.has_key?(:'consumerAuthenticationInformation')
198
202
  self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
199
203
  end
204
+
205
+ if attributes.has_key?(:'watchlistScreeningInformation')
206
+ self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
207
+ end
200
208
  end
201
209
 
202
210
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -248,7 +256,8 @@ module CyberSource
248
256
  token_information == o.token_information &&
249
257
  buyer_information == o.buyer_information &&
250
258
  risk_information == o.risk_information &&
251
- consumer_authentication_information == o.consumer_authentication_information
259
+ consumer_authentication_information == o.consumer_authentication_information &&
260
+ watchlist_screening_information == o.watchlist_screening_information
252
261
  end
253
262
 
254
263
  # @see the `==` method
@@ -260,7 +269,7 @@ module CyberSource
260
269
  # Calculates hash code according to all attributes.
261
270
  # @return [Fixnum] Hash code
262
271
  def hash
263
- [_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, payment_insights_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information].hash
272
+ [_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, payment_insights_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information, watchlist_screening_information].hash
264
273
  end
265
274
 
266
275
  # Builds the object from hash
@@ -29,7 +29,7 @@ module CyberSource
29
29
  # City of the shipping address. Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder’s location when shipTo objects are not present.
30
30
  attr_accessor :locality
31
31
 
32
- # State or province of the shipping address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder’s location when shipTo objects are not present.
32
+ # State or province of the shipping address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) (maximum length: 2) Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder’s location when shipTo objects are not present.
33
33
  attr_accessor :administrative_area
34
34
 
35
35
  # Postal code for the shipping address. The postal code must consist of 5 to 9 digits. Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. 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 #### American Express Direct Before sending the postal code to the processor, all nonalphanumeric characters are removed and, if the remaining value is longer than nine characters, the value is truncated starting from the right side. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder’s location when shipTo objects are not present.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class PtsV2PaymentsPost201ResponseErrorInformation
17
- # The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION - ACH_VERIFICATION_FAILED - DECISION_PROFILE_REVIEW - CONSUMER_AUTHENTICATION_REQUIRED - CONSUMER_AUTHENTICATION_FAILED - ALLOWABLE_PIN_RETRIES_EXCEEDED - PROCESSOR_ERROR
17
+ # The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION - ACH_VERIFICATION_FAILED - DECISION_PROFILE_REVIEW - CONSUMER_AUTHENTICATION_REQUIRED - CONSUMER_AUTHENTICATION_FAILED - ALLOWABLE_PIN_RETRIES_EXCEEDED - PROCESSOR_ERROR - CUSTOMER_WATCHLIST_MATCH - ADDRESS_COUNTRY_WATCHLIST_MATCH - EMAIL_COUNTRY_WATCHLIST_MATCH - IP_COUNTRY_WATCHLIST_MATCH - INVALID_MERCHANT_CONFIGURATION
18
18
  attr_accessor :reason
19
19
 
20
20
  # The detail message related to the status and reason listed above.
@@ -273,22 +273,12 @@ module CyberSource
273
273
  # @return Array for valid properties with the reasons
274
274
  def list_invalid_properties
275
275
  invalid_properties = Array.new
276
- if !@sequence.nil? && @sequence > 99
277
- invalid_properties.push('invalid value for "sequence", must be smaller than or equal to 99.')
278
- end
279
-
280
- if !@total_count.nil? && @total_count > 99
281
- invalid_properties.push('invalid value for "total_count", must be smaller than or equal to 99.')
282
- end
283
-
284
276
  invalid_properties
285
277
  end
286
278
 
287
279
  # Check to see if the all the properties in the model are valid
288
280
  # @return true if the model is valid
289
281
  def valid?
290
- return false if !@sequence.nil? && @sequence > 99
291
- return false if !@total_count.nil? && @total_count > 99
292
282
  true
293
283
  end
294
284
 
@@ -397,10 +387,6 @@ module CyberSource
397
387
  # Custom attribute writer method with validation
398
388
  # @param [Object] sequence Value to be assigned
399
389
  def sequence=(sequence)
400
- if !sequence.nil? && sequence > 99
401
- fail ArgumentError, 'invalid value for "sequence", must be smaller than or equal to 99.'
402
- end
403
-
404
390
  @sequence = sequence
405
391
  end
406
392
 
@@ -425,10 +411,6 @@ module CyberSource
425
411
  # Custom attribute writer method with validation
426
412
  # @param [Object] total_count Value to be assigned
427
413
  def total_count=(total_count)
428
- if !total_count.nil? && total_count > 99
429
- fail ArgumentError, 'invalid value for "total_count", must be smaller than or equal to 99.'
430
- end
431
-
432
414
  @total_count = total_count
433
415
  end
434
416
 
@@ -20,12 +20,15 @@ module CyberSource
20
20
 
21
21
  attr_accessor :reward_points_details
22
22
 
23
+ attr_accessor :bill_to
24
+
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
26
28
  :'amount_details' => :'amountDetails',
27
29
  :'invoice_details' => :'invoiceDetails',
28
- :'reward_points_details' => :'rewardPointsDetails'
30
+ :'reward_points_details' => :'rewardPointsDetails',
31
+ :'bill_to' => :'billTo'
29
32
  }
30
33
  end
31
34
 
@@ -34,7 +37,8 @@ module CyberSource
34
37
  {
35
38
  :'amount_details' => :'PtsV2PaymentsPost201ResponseOrderInformationAmountDetails',
36
39
  :'invoice_details' => :'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails',
37
- :'reward_points_details' => :'PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails'
40
+ :'reward_points_details' => :'PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails',
41
+ :'bill_to' => :'PtsV2PaymentsPost201ResponseOrderInformationBillTo'
38
42
  }
39
43
  end
40
44
 
@@ -57,6 +61,10 @@ module CyberSource
57
61
  if attributes.has_key?(:'rewardPointsDetails')
58
62
  self.reward_points_details = attributes[:'rewardPointsDetails']
59
63
  end
64
+
65
+ if attributes.has_key?(:'billTo')
66
+ self.bill_to = attributes[:'billTo']
67
+ end
60
68
  end
61
69
 
62
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -79,7 +87,8 @@ module CyberSource
79
87
  self.class == o.class &&
80
88
  amount_details == o.amount_details &&
81
89
  invoice_details == o.invoice_details &&
82
- reward_points_details == o.reward_points_details
90
+ reward_points_details == o.reward_points_details &&
91
+ bill_to == o.bill_to
83
92
  end
84
93
 
85
94
  # @see the `==` method
@@ -91,7 +100,7 @@ module CyberSource
91
100
  # Calculates hash code according to all attributes.
92
101
  # @return [Fixnum] Hash code
93
102
  def hash
94
- [amount_details, invoice_details, reward_points_details].hash
103
+ [amount_details, invoice_details, reward_points_details, bill_to].hash
95
104
  end
96
105
 
97
106
  # Builds the object from hash
@@ -0,0 +1,206 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class PtsV2PaymentsPost201ResponseOrderInformationBillTo
17
+ # #### Visa Platform Connect Contains one of the following values that will identify the phone number result code in the account verification response message: 'VERIFIED' - Customer verified 'UNVERIFIED' - Customer not verified 'FAILED' - Customer verification failed
18
+ attr_accessor :alternate_phone_number_verification_status
19
+
20
+ # #### Visa Platform Connect Contains one of the following values that will identify the phone number result code in the account verification response message: 'VERIFIED' - Customer verified 'UNVERIFIED' - Customer not verified 'FAILED' - Customer verification failed
21
+ attr_accessor :alternate_email_verification_status
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'alternate_phone_number_verification_status' => :'alternatePhoneNumberVerificationStatus',
27
+ :'alternate_email_verification_status' => :'alternateEmailVerificationStatus'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'alternate_phone_number_verification_status' => :'String',
35
+ :'alternate_email_verification_status' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'alternatePhoneNumberVerificationStatus')
48
+ self.alternate_phone_number_verification_status = attributes[:'alternatePhoneNumberVerificationStatus']
49
+ end
50
+
51
+ if attributes.has_key?(:'alternateEmailVerificationStatus')
52
+ self.alternate_email_verification_status = attributes[:'alternateEmailVerificationStatus']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Custom attribute writer method with validation
70
+ # @param [Object] alternate_phone_number_verification_status Value to be assigned
71
+ def alternate_phone_number_verification_status=(alternate_phone_number_verification_status)
72
+ @alternate_phone_number_verification_status = alternate_phone_number_verification_status
73
+ end
74
+
75
+ # Custom attribute writer method with validation
76
+ # @param [Object] alternate_email_verification_status Value to be assigned
77
+ def alternate_email_verification_status=(alternate_email_verification_status)
78
+ @alternate_email_verification_status = alternate_email_verification_status
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ alternate_phone_number_verification_status == o.alternate_phone_number_verification_status &&
87
+ alternate_email_verification_status == o.alternate_email_verification_status
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Fixnum] Hash code
98
+ def hash
99
+ [alternate_phone_number_verification_status, alternate_email_verification_status].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ self.class.swagger_types.each_pair do |key, type|
108
+ if type =~ /\AArray<(.*)>/i
109
+ # check to ensure the input is an array given that the the attribute
110
+ # is documented as an array but the input is not
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ end
114
+ elsif !attributes[self.class.attribute_map[key]].nil?
115
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
117
+ end
118
+
119
+ self
120
+ end
121
+
122
+ # Deserializes the data based on type
123
+ # @param string type Data type
124
+ # @param string value Value to be deserialized
125
+ # @return [Object] Deserialized data
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ DateTime.parse(value)
130
+ when :Date
131
+ Date.parse(value)
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ temp_model = CyberSource.const_get(type).new
160
+ temp_model.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ # Returns the string representation of the object
165
+ # @return [String] String presentation of the object
166
+ def to_s
167
+ to_hash.to_s
168
+ end
169
+
170
+ # to_body is an alias to to_hash (backward compatibility)
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_body
173
+ to_hash
174
+ end
175
+
176
+ # Returns the object in the form of hash
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_hash
179
+ hash = {}
180
+ self.class.attribute_map.each_pair do |attr, param|
181
+ value = self.send(attr)
182
+ next if value.nil?
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ # Outputs non-array value in the form of hash
189
+ # For object, use to_hash. Otherwise, just return the value
190
+ # @param [Object] value Any valid value
191
+ # @return [Hash] Returns the value in the form of hash
192
+ def _to_hash(value)
193
+ if value.is_a?(Array)
194
+ value.compact.map { |v| _to_hash(v) }
195
+ elsif value.is_a?(Hash)
196
+ {}.tap do |hash|
197
+ value.each { |k, v| hash[k] = _to_hash(v) }
198
+ end
199
+ elsif value.respond_to? :to_hash
200
+ value.to_hash
201
+ else
202
+ value
203
+ end
204
+ end
205
+ end
206
+ end
@@ -57,27 +57,18 @@ module CyberSource
57
57
  # @return Array for valid properties with the reasons
58
58
  def list_invalid_properties
59
59
  invalid_properties = Array.new
60
- if !@sales_slip_number.nil? && @sales_slip_number > 99999
61
- invalid_properties.push('invalid value for "sales_slip_number", must be smaller than or equal to 99999.')
62
- end
63
-
64
60
  invalid_properties
65
61
  end
66
62
 
67
63
  # Check to see if the all the properties in the model are valid
68
64
  # @return true if the model is valid
69
65
  def valid?
70
- return false if !@sales_slip_number.nil? && @sales_slip_number > 99999
71
66
  true
72
67
  end
73
68
 
74
69
  # Custom attribute writer method with validation
75
70
  # @param [Object] sales_slip_number Value to be assigned
76
71
  def sales_slip_number=(sales_slip_number)
77
- if !sales_slip_number.nil? && sales_slip_number > 99999
78
- fail ArgumentError, 'invalid value for "sales_slip_number", must be smaller than or equal to 99999.'
79
- end
80
-
81
72
  @sales_slip_number = sales_slip_number
82
73
  end
83
74
 
@@ -23,7 +23,7 @@ module CyberSource
23
23
  # Four-digit year in which the payment card expires. Format: `YYYY`. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`1900` through `3000`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (**_type_**`=039`), if there is no expiration date on the card, use `2021`. #### FDMS Nashville Required field. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response.
24
24
  attr_accessor :expiration_year
25
25
 
26
- # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
26
+ # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
27
27
  attr_accessor :type
28
28
 
29
29
  # Bank Identification Number (BIN). This is the initial four to six numbers on a credit card account number. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response.
@@ -20,10 +20,10 @@ module CyberSource
20
20
  # Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For details, see `token_suffix` field description in [Google Pay Using the SCMP API.] (https://apps.cybersource.com/library/documentation/dev_guides/Google_Pay_SCMP_API/html/)
21
21
  attr_accessor :suffix
22
22
 
23
- # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
23
+ # Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
24
24
  attr_accessor :type
25
25
 
26
- # Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. Returned by PIN debit credit or PIN debit purchase.
26
+ # Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. Returned by PIN debit credit or PIN debit purchase. **Note** Merchants supported for **CyberSource through VisaNet**/**Visa Platform Connect** are advised not to use this field.
27
27
  attr_accessor :assurance_level
28
28
 
29
29
  # One of two possible meanings: - The two-digit month in which a token expires. - The two-digit month in which a card expires. Format: `MM` Possible values: `01` through `12` **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_type=039`), if there is no expiration date on the card, use `12`.\\ **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Samsung Pay and Apple Pay Month in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For processor-specific information, see the `customer_cc_expmo` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
@@ -35,6 +35,9 @@ module CyberSource
35
35
  # 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 for **CyberSource through VisaNet** and **FDC Nashville Global**. #### PIN debit Optional field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
36
36
  attr_accessor :requestor_id
37
37
 
38
+ # Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **Visa Platform Connect**
39
+ attr_accessor :assurance_method
40
+
38
41
  # Attribute mapping from ruby-style variable name to JSON key.
39
42
  def self.attribute_map
40
43
  {
@@ -44,7 +47,8 @@ module CyberSource
44
47
  :'assurance_level' => :'assuranceLevel',
45
48
  :'expiration_month' => :'expirationMonth',
46
49
  :'expiration_year' => :'expirationYear',
47
- :'requestor_id' => :'requestorId'
50
+ :'requestor_id' => :'requestorId',
51
+ :'assurance_method' => :'assuranceMethod'
48
52
  }
49
53
  end
50
54
 
@@ -57,7 +61,8 @@ module CyberSource
57
61
  :'assurance_level' => :'String',
58
62
  :'expiration_month' => :'String',
59
63
  :'expiration_year' => :'String',
60
- :'requestor_id' => :'String'
64
+ :'requestor_id' => :'String',
65
+ :'assurance_method' => :'String'
61
66
  }
62
67
  end
63
68
 
@@ -96,6 +101,10 @@ module CyberSource
96
101
  if attributes.has_key?(:'requestorId')
97
102
  self.requestor_id = attributes[:'requestorId']
98
103
  end
104
+
105
+ if attributes.has_key?(:'assuranceMethod')
106
+ self.assurance_method = attributes[:'assuranceMethod']
107
+ end
99
108
  end
100
109
 
101
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -147,6 +156,12 @@ module CyberSource
147
156
  @requestor_id = requestor_id
148
157
  end
149
158
 
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] assurance_method Value to be assigned
161
+ def assurance_method=(assurance_method)
162
+ @assurance_method = assurance_method
163
+ end
164
+
150
165
  # Checks equality by comparing each attribute.
151
166
  # @param [Object] Object to be compared
152
167
  def ==(o)
@@ -158,7 +173,8 @@ module CyberSource
158
173
  assurance_level == o.assurance_level &&
159
174
  expiration_month == o.expiration_month &&
160
175
  expiration_year == o.expiration_year &&
161
- requestor_id == o.requestor_id
176
+ requestor_id == o.requestor_id &&
177
+ assurance_method == o.assurance_method
162
178
  end
163
179
 
164
180
  # @see the `==` method
@@ -170,7 +186,7 @@ module CyberSource
170
186
  # Calculates hash code according to all attributes.
171
187
  # @return [Fixnum] Hash code
172
188
  def hash
173
- [prefix, suffix, type, assurance_level, expiration_month, expiration_year, requestor_id].hash
189
+ [prefix, suffix, type, assurance_level, expiration_month, expiration_year, requestor_id, assurance_method].hash
174
190
  end
175
191
 
176
192
  # Builds the object from hash