cybersource_rest_client 0.0.49 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) 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/plans_api.rb +573 -0
  13. data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
  14. data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/token_api.rb +112 -0
  16. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
  18. data/lib/cybersource_rest_client/api_client.rb +11 -0
  19. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included.rb +185 -0
  20. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
  21. data/lib/cybersource_rest_client/models/body.rb +42 -32
  22. data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
  23. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
  24. data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
  25. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +216 -0
  26. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  27. data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
  28. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
  29. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
  30. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
  31. data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
  32. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
  34. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
  35. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
  38. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
  39. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
  41. data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
  42. data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
  43. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
  44. data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
  45. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
  46. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
  47. data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
  48. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
  49. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
  50. data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
  51. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
  52. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
  53. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
  54. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
  55. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
  56. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
  57. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
  58. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
  59. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → inline_response_200_6_plan_information.rb} +40 -41
  60. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
  61. data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
  62. data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
  63. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
  64. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
  65. data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → inline_response_200_9.rb} +50 -21
  66. data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
  67. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
  68. data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
  69. data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
  70. data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
  71. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
  72. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
  73. data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
  74. data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
  75. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
  76. data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
  77. data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
  78. data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
  79. data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
  80. data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
  81. data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
  82. data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
  83. data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
  84. data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
  85. data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
  86. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
  87. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
  88. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
  89. data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
  90. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
  91. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
  92. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
  93. data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
  95. data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
  96. data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
  97. data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
  98. data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
  99. data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
  100. data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
  101. data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
  102. data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
  103. data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
  104. data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
  105. data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
  106. data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
  107. data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
  108. data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
  109. data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
  110. data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
  111. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
  112. data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
  113. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  114. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
  115. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  116. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
  117. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
  118. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
  119. data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
  120. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
  121. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  122. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
  123. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
  124. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
  125. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
  126. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  127. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
  128. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
  129. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
  130. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
  131. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
  132. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
  133. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
  134. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +1 -1
  135. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
  143. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
  144. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +0 -18
  145. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
  146. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -19
  147. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +1 -21
  149. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  150. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  151. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
  152. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
  153. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
  154. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
  155. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
  156. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
  157. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  158. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
  159. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
  160. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
  161. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
  162. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
  163. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
  164. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  165. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
  166. data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
  167. data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
  168. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
  169. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
  170. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
  171. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
  172. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
  173. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
  174. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
  175. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
  176. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
  177. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
  178. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
  179. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
  180. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
  181. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
  182. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
  183. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
  184. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
  185. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
  186. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +0 -18
  187. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
  188. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
  189. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
  190. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
  191. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  192. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  193. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
  194. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
  195. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
  196. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
  197. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  198. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  199. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  200. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
  201. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -19
  202. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
  203. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  204. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  205. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
  206. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
  207. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  208. data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
  209. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
  210. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
  211. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
  212. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
  213. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
  214. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
  215. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
  216. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
  217. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
  218. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
  219. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
  220. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
  221. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
  222. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
  223. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
  224. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
  225. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
  226. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
  227. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
  228. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
  229. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
  230. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
  231. data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
  232. data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
  233. data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
  234. data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
  235. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
  236. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
  237. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  238. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
  239. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  240. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
  241. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
  242. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
  243. data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
  244. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
  245. data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
  246. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
  247. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
  248. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
  249. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
  250. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
  251. data/lib/cybersource_rest_client.rb +112 -13
  252. metadata +114 -15
  253. data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
  254. data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentCard
17
- # Two-digit month in which the payment card expires. Format: `MM`. Valid values: `01` through `12`.
17
+ # Two-digit month in which the payment card expires. Format: `MM`. Possible Values: `01` through `12`.
18
18
  attr_accessor :expiration_month
19
19
 
20
20
  # Four-digit year in which the credit card expires. Format: `YYYY`.
21
21
  attr_accessor :expiration_year
22
22
 
23
- # Value that indicates the card type. Valid v2 : v1 - description values: * 001 : visa * 002 : mastercard - Eurocard—European regional brand of Mastercard * 003 : american express * 004 : discover * 005 : diners club * 006 : carte blanche * 007 : jcb * 008 : optima * 011 : twinpay credit * 012 : twinpay debit * 013 : walmart * 014 : enRoute * 015 : lowes consumer * 016 : home depot consumer * 017 : mbna * 018 : dicks sportswear * 019 : casual corner * 020 : sears * 021 : jal * 023 : disney * 024 : maestro uk domestic * 025 : sams club consumer * 026 : sams club business * 028 : bill me later * 029 : bebe * 030 : restoration hardware * 031 : delta online — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * 032 : solo * 033 : visa electron * 034 : dankort * 035 : laser * 036 : carte bleue — formerly Cartes Bancaires * 037 : carta si * 038 : pinless debit * 039 : encoded account * 040 : uatp * 041 : household * 042 : maestro international * 043 : ge money uk * 044 : korean cards * 045 : style * 046 : jcrew * 047 : payease china processing ewallet * 048 : payease china processing bank transfer * 049 : meijer private label * 050 : hipercard — supported only by the Comercio Latino processor. * 051 : aura — supported only by the Comercio Latino processor. * 052 : redecard * 054 : elo — supported only by the Comercio Latino processor. * 055 : capital one private label * 056 : synchrony private label * 057 : costco private label * 060 : mada * 062 : china union pay * 063 : falabella private label
23
+ # Value that indicates the card type. Possible Values v2 : v1: * 001 : visa * 002 : mastercard - Eurocard—European regional brand of Mastercard * 003 : american express * 004 : discover * 005 : diners club * 006 : carte blanche * 007 : jcb * 008 : optima * 011 : twinpay credit * 012 : twinpay debit * 013 : walmart * 014 : enRoute * 015 : lowes consumer * 016 : home depot consumer * 017 : mbna * 018 : dicks sportswear * 019 : casual corner * 020 : sears * 021 : jal * 023 : disney * 024 : maestro uk domestic * 025 : sams club consumer * 026 : sams club business * 028 : bill me later * 029 : bebe * 030 : restoration hardware * 031 : delta online — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * 032 : solo * 033 : visa electron * 034 : dankort * 035 : laser * 036 : carte bleue — formerly Cartes Bancaires * 037 : carta si * 038 : pinless debit * 039 : encoded account * 040 : uatp * 041 : household * 042 : maestro international * 043 : ge money uk * 044 : korean cards * 045 : style * 046 : jcrew * 047 : payease china processing ewallet * 048 : payease china processing bank transfer * 049 : meijer private label * 050 : hipercard — supported only by the Comercio Latino processor. * 051 : aura — supported only by the Comercio Latino processor. * 052 : redecard * 054 : elo — supported only by the Comercio Latino processor. * 055 : capital one private label * 056 : synchrony private label * 057 : costco private label * 060 : mada * 062 : china union pay * 063 : falabella private label
24
24
  attr_accessor :type
25
25
 
26
26
  # Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. **Note** The issue number is not required for Maestro (UK Domestic) transactions.
27
27
  attr_accessor :issue_number
28
28
 
29
- # Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Valid values: 01 through 12. **Note** The start date is not required for Maestro (UK Domestic) transactions.
29
+ # Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible Values: 01 through 12. **Note** The start date is not required for Maestro (UK Domestic) transactions.
30
30
  attr_accessor :start_month
31
31
 
32
32
  # Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. **Note** The start date is not required for Maestro (UK Domestic) transactions.
@@ -35,6 +35,11 @@ module CyberSource
35
35
  # 'Payment Instrument was created / updated as part of a pinless debit transaction.'
36
36
  attr_accessor :use_as
37
37
 
38
+ # Hash value representing the card.
39
+ attr_accessor :hash
40
+ alias :hash_value :hash
41
+ alias :hash_value= :hash=
42
+
38
43
  attr_accessor :tokenized_information
39
44
 
40
45
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,6 +52,7 @@ module CyberSource
47
52
  :'start_month' => :'startMonth',
48
53
  :'start_year' => :'startYear',
49
54
  :'use_as' => :'useAs',
55
+ :'hash_value' => :'hashValue',
50
56
  :'tokenized_information' => :'tokenizedInformation'
51
57
  }
52
58
  end
@@ -61,6 +67,7 @@ module CyberSource
61
67
  :'start_month' => :'String',
62
68
  :'start_year' => :'String',
63
69
  :'use_as' => :'String',
70
+ :'hash_value' => :'String',
64
71
  :'tokenized_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation'
65
72
  }
66
73
  end
@@ -101,6 +108,10 @@ module CyberSource
101
108
  self.use_as = attributes[:'useAs']
102
109
  end
103
110
 
111
+ if attributes.has_key?(:'hashValue')
112
+ self.hash_value = attributes[:'hashValue']
113
+ end
114
+
104
115
  if attributes.has_key?(:'tokenizedInformation')
105
116
  self.tokenized_information = attributes[:'tokenizedInformation']
106
117
  end
@@ -149,6 +160,12 @@ module CyberSource
149
160
  @start_year = start_year
150
161
  end
151
162
 
163
+ # Custom attribute writer method with validation
164
+ # @param [Object] hash Value to be assigned
165
+ def hash_value=(hash_value)
166
+ @hash_value = hash_value
167
+ end
168
+
152
169
  # Checks equality by comparing each attribute.
153
170
  # @param [Object] Object to be compared
154
171
  def ==(o)
@@ -161,6 +178,7 @@ module CyberSource
161
178
  start_month == o.start_month &&
162
179
  start_year == o.start_year &&
163
180
  use_as == o.use_as &&
181
+ hash_value == o.hash_value &&
164
182
  tokenized_information == o.tokenized_information
165
183
  end
166
184
 
@@ -173,7 +191,7 @@ module CyberSource
173
191
  # Calculates hash code according to all attributes.
174
192
  # @return [Fixnum] Hash code
175
193
  def hash
176
- [expiration_month, expiration_year, type, issue_number, start_month, start_year, use_as, tokenized_information].hash
194
+ [expiration_month, expiration_year, type, issue_number, start_month, start_year, use_as, hash_value, tokenized_information].hash
177
195
  end
178
196
 
179
197
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation
17
- # 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**.
17
+ # 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**.
18
18
  attr_accessor :requestor_id
19
19
 
20
20
  # Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier
17
- # The id of the Instrument Identifier token linked to the Payment Instrument.
17
+ # The Id of the Instrument Identifier linked to the Payment Instrument.
18
18
  attr_accessor :id
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor
17
- # 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, CyberSource uses the merchant URL from your CyberSource account. Important This value must consist of English characters
17
+ # 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
18
18
  attr_accessor :alternate_name
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata
17
- # The creator of the Payment Instrument token.
17
+ # The creator of the Payment Instrument.
18
18
  attr_accessor :creator
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformation
17
- # Flag that indicates that this is a payment for a bill or for an existing contractual loan. For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) Valid values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment.
17
+ # Flag that indicates that this is a payment for a bill or for an existing contractual loan. For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) Possible Values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment.
18
18
  attr_accessor :bill_payment_program_enabled
19
19
 
20
20
  attr_accessor :bank_transfer_options
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions
17
- # Specifies the authorization method for the transaction. #### TeleCheck Valid values: - `ARC`: account receivable conversion - `CCD`: corporate cash disbursement - `POP`: point of purchase conversion - `PPD`: prearranged payment and deposit entry - `TEL`: telephone-initiated entry - `WEB`: internet-initiated entry For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
17
+ # Specifies the authorization method for the transaction. #### TeleCheck Possible Values: - `ARC`: account receivable conversion - `CCD`: corporate cash disbursement - `POP`: point of purchase conversion - `PPD`: prearranged payment and deposit entry - `TEL`: telephone-initiated entry - `WEB`: internet-initiated entry For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
18
18
  attr_accessor :sec_code
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -16,10 +16,10 @@ module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultShippingAddress
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Shipping Address Token.
19
+ # The Id of the Shipping Address Token.
20
20
  attr_accessor :id
21
21
 
22
- # Flag that indicates whether customer shipping address is the dafault. Valid values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default.
22
+ # Flag that indicates whether customer shipping address is the dafault. Possible Values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default.
23
23
  attr_accessor :default
24
24
 
25
25
  attr_accessor :ship_to
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultShippingAddressMetadata
17
- # The creator of the Shipping Address token.
17
+ # The creator of the Shipping Address.
18
18
  attr_accessor :creator
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # State or province of the shipping address. Use 2 character the State, Province, and Territory Codes for the United States and Canada.
36
36
  attr_accessor :administrative_area
37
37
 
38
- # Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 **American Express Direct**\\ Before sending the postal code to the processor, CyberSource removes all nonalphanumeric characters and, if the remaining value is longer than nine characters, truncates the value starting from the right side.
38
+ # Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 **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, truncates the value starting from the right side.
39
39
  attr_accessor :postal_code
40
40
 
41
41
  # Country of the shipping address. Use the two-character ISO Standard Country Codes.
@@ -17,17 +17,22 @@ module CyberSource
17
17
  # Network transaction identifier that was returned in the payment response field _processorInformation.transactionID_ in the reply message for either the original merchant-initiated payment in the series or the previous merchant-initiated payment in the series.
18
18
  attr_accessor :previous_transaction_id
19
19
 
20
+ # Amount of the original authorization.
21
+ attr_accessor :original_authorized_amount
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'previous_transaction_id' => :'previousTransactionId'
26
+ :'previous_transaction_id' => :'previousTransactionId',
27
+ :'original_authorized_amount' => :'originalAuthorizedAmount'
24
28
  }
25
29
  end
26
30
 
27
31
  # Attribute type mapping.
28
32
  def self.swagger_types
29
33
  {
30
- :'previous_transaction_id' => :'String'
34
+ :'previous_transaction_id' => :'String',
35
+ :'original_authorized_amount' => :'String'
31
36
  }
32
37
  end
33
38
 
@@ -42,6 +47,10 @@ module CyberSource
42
47
  if attributes.has_key?(:'previousTransactionId')
43
48
  self.previous_transaction_id = attributes[:'previousTransactionId']
44
49
  end
50
+
51
+ if attributes.has_key?(:'originalAuthorizedAmount')
52
+ self.original_authorized_amount = attributes[:'originalAuthorizedAmount']
53
+ end
45
54
  end
46
55
 
47
56
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -63,12 +72,19 @@ module CyberSource
63
72
  @previous_transaction_id = previous_transaction_id
64
73
  end
65
74
 
75
+ # Custom attribute writer method with validation
76
+ # @param [Object] original_authorized_amount Value to be assigned
77
+ def original_authorized_amount=(original_authorized_amount)
78
+ @original_authorized_amount = original_authorized_amount
79
+ end
80
+
66
81
  # Checks equality by comparing each attribute.
67
82
  # @param [Object] Object to be compared
68
83
  def ==(o)
69
84
  return true if self.equal?(o)
70
85
  self.class == o.class &&
71
- previous_transaction_id == o.previous_transaction_id
86
+ previous_transaction_id == o.previous_transaction_id &&
87
+ original_authorized_amount == o.original_authorized_amount
72
88
  end
73
89
 
74
90
  # @see the `==` method
@@ -80,7 +96,7 @@ module CyberSource
80
96
  # Calculates hash code according to all attributes.
81
97
  # @return [Fixnum] Hash code
82
98
  def hash
83
- [previous_transaction_id].hash
99
+ [previous_transaction_id, original_authorized_amount].hash
84
100
  end
85
101
 
86
102
  # Builds the object from hash
@@ -14,16 +14,19 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard
17
- # The network token card association brand Valid values: - visa - mastercard
17
+ # The network token card association brand Possible Values: - visa - mastercard
18
18
  attr_accessor :type
19
19
 
20
- # Issuers state for the network token Valid values: - ACTIVE - SUSPENDED : This state can change to ACTIVE or DELETED. - DELETED : This is a final state for the network token.
20
+ # State of the network token or network token provision Possible Values: - ACTIVE : Network token is active. - SUSPENDED : Network token is suspended. This state can change back to ACTIVE. - DELETED : This is a final state for a network token instance. - UNPROVISIONED : A previous network token provision was unsuccessful.
21
21
  attr_accessor :state
22
22
 
23
- # The token requestors customer’s payment network token
23
+ # Issuers state for the network token Possible Values: - INVALID_REQUEST : The network token provision request contained invalid data. - CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified. - CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization. - CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization. - DECLINED : Card can currently not be used with issuer for tokenization. - SERVICE_UNAVAILABLE : The network token service was unavailable or timed out. - SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.
24
+ attr_accessor :reason
25
+
26
+ # The token requestors network token
24
27
  attr_accessor :number
25
28
 
26
- # Two-digit month in which the network token expires. Format: `MM`. Valid values: `01` through `12`.
29
+ # Two-digit month in which the network token expires. Format: `MM`. Possible Values: `01` through `12`.
27
30
  attr_accessor :expiration_month
28
31
 
29
32
  # Four-digit year in which the network token expires. Format: `YYYY`.
@@ -39,6 +42,7 @@ module CyberSource
39
42
  {
40
43
  :'type' => :'type',
41
44
  :'state' => :'state',
45
+ :'reason' => :'reason',
42
46
  :'number' => :'number',
43
47
  :'expiration_month' => :'expirationMonth',
44
48
  :'expiration_year' => :'expirationYear',
@@ -52,6 +56,7 @@ module CyberSource
52
56
  {
53
57
  :'type' => :'String',
54
58
  :'state' => :'String',
59
+ :'reason' => :'String',
55
60
  :'number' => :'String',
56
61
  :'expiration_month' => :'String',
57
62
  :'expiration_year' => :'String',
@@ -76,6 +81,10 @@ module CyberSource
76
81
  self.state = attributes[:'state']
77
82
  end
78
83
 
84
+ if attributes.has_key?(:'reason')
85
+ self.reason = attributes[:'reason']
86
+ end
87
+
79
88
  if attributes.has_key?(:'number')
80
89
  self.number = attributes[:'number']
81
90
  end
@@ -129,6 +138,7 @@ module CyberSource
129
138
  self.class == o.class &&
130
139
  type == o.type &&
131
140
  state == o.state &&
141
+ reason == o.reason &&
132
142
  number == o.number &&
133
143
  expiration_month == o.expiration_month &&
134
144
  expiration_year == o.expiration_year &&
@@ -145,7 +155,7 @@ module CyberSource
145
155
  # Calculates hash code according to all attributes.
146
156
  # @return [Fixnum] Hash code
147
157
  def hash
148
- [type, state, number, expiration_month, expiration_year, cryptogram, card].hash
158
+ [type, state, reason, number, expiration_month, expiration_year, cryptogram, card].hash
149
159
  end
150
160
 
151
161
  # Builds the object from hash
@@ -18,7 +18,7 @@ module CyberSource
18
18
  # The customer’s latest payment card number suffix
19
19
  attr_accessor :suffix
20
20
 
21
- # Two-digit month in which the customer’s latest payment card expires. Format: `MM`. Valid values: `01` through `12`.
21
+ # Two-digit month in which the customer’s latest payment card expires. Format: `MM`. Possible Values: `01` through `12`.
22
22
  attr_accessor :expiration_month
23
23
 
24
24
  # Four-digit year in which the customer’s latest payment card expires. Format: `YYYY`.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersDefaultPaymentInstrument
17
- # The id of the Customers default Payment Instrument
17
+ # The Id of the Customers default Payment Instrument
18
18
  attr_accessor :id
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersDefaultShippingAddress
17
- # The id of the Customers default Shipping Address
17
+ # The Id of the Customers default Shipping Address
18
18
  attr_accessor :id
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersMerchantDefinedInformation
17
- # The number you assign as the name for your merchant-defined data or secure field. Valid values are data1 to data4 and sensitive1 to sensitive4 For example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2 Valid values: - data1 - data2 - data3 - data4 - sensitive1 - sensitive2 - sensitive3 - sensitive4
17
+ # The number you assign as the name for your merchant-defined data or secure field. Possible Values are data1 to data4 and sensitive1 to sensitive4 For example, to set the name for merchant-defined data 2 field, you would reference merchantDefinedInformation[x].name as data2 Possible Values: - data1 - data2 - data3 - data4 - sensitive1 - sensitive2 - sensitive3 - sensitive4
18
18
  attr_accessor :name
19
19
 
20
- # The value you assign for your merchant-defined data field. **Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not limited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV, CVC2, CVV2, CID, CVN). In the event CyberSource discovers that a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, CyberSource will immediately suspend the merchant's account, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.
20
+ # The value you assign for your merchant-defined data field. **Warning** Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not limited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV, CVC2, CVV2, CID, CVN). In the event it is discovered a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, the merchant's account will immediately be suspended, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.
21
21
  attr_accessor :value
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Tmsv2customersMetadata
17
- # The creator of the Customer token.
17
+ # The creator of the Customer.
18
18
  attr_accessor :creator
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -48,27 +48,18 @@ module CyberSource
48
48
  # @return Array for valid properties with the reasons
49
49
  def list_invalid_properties
50
50
  invalid_properties = Array.new
51
- if !@sales_slip_number.nil? && @sales_slip_number > 99999
52
- invalid_properties.push('invalid value for "sales_slip_number", must be smaller than or equal to 99999.')
53
- end
54
-
55
51
  invalid_properties
56
52
  end
57
53
 
58
54
  # Check to see if the all the properties in the model are valid
59
55
  # @return true if the model is valid
60
56
  def valid?
61
- return false if !@sales_slip_number.nil? && @sales_slip_number > 99999
62
57
  true
63
58
  end
64
59
 
65
60
  # Custom attribute writer method with validation
66
61
  # @param [Object] sales_slip_number Value to be assigned
67
62
  def sales_slip_number=(sales_slip_number)
68
- if !sales_slip_number.nil? && sales_slip_number > 99999
69
- fail ArgumentError, 'invalid value for "sales_slip_number", must be smaller than or equal to 99999.'
70
- end
71
-
72
63
  @sales_slip_number = sales_slip_number
73
64
  end
74
65
 
@@ -102,22 +102,12 @@ module CyberSource
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if !@quantity.nil? && @quantity > 999999999
106
- invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 999999999.')
107
- end
108
-
109
- if !@quantity.nil? && @quantity < 1
110
- invalid_properties.push('invalid value for "quantity", must be greater than or equal to 1.')
111
- end
112
-
113
105
  invalid_properties
114
106
  end
115
107
 
116
108
  # Check to see if the all the properties in the model are valid
117
109
  # @return true if the model is valid
118
110
  def valid?
119
- return false if !@quantity.nil? && @quantity > 999999999
120
- return false if !@quantity.nil? && @quantity < 1
121
111
  true
122
112
  end
123
113
 
@@ -148,14 +138,6 @@ module CyberSource
148
138
  # Custom attribute writer method with validation
149
139
  # @param [Object] quantity Value to be assigned
150
140
  def quantity=(quantity)
151
- if !quantity.nil? && quantity > 999999999
152
- fail ArgumentError, 'invalid value for "quantity", must be smaller than or equal to 999999999.'
153
- end
154
-
155
- if !quantity.nil? && quantity < 1
156
- fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 1.'
157
- end
158
-
159
141
  @quantity = quantity
160
142
  end
161
143
 
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. **Note** The issue number is not required for Maestro (UK Domestic) transactions.
36
36
  attr_accessor :issue_number
37
37
 
38
- # 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
38
+ # 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
39
39
  attr_accessor :type
40
40
 
41
41
  # Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID.
@@ -83,22 +83,12 @@ module CyberSource
83
83
  # @return Array for valid properties with the reasons
84
84
  def list_invalid_properties
85
85
  invalid_properties = Array.new
86
- if !@terminal_capability.nil? && @terminal_capability > 5
87
- invalid_properties.push('invalid value for "terminal_capability", must be smaller than or equal to 5.')
88
- end
89
-
90
- if !@terminal_capability.nil? && @terminal_capability < 1
91
- invalid_properties.push('invalid value for "terminal_capability", must be greater than or equal to 1.')
92
- end
93
-
94
86
  invalid_properties
95
87
  end
96
88
 
97
89
  # Check to see if the all the properties in the model are valid
98
90
  # @return true if the model is valid
99
91
  def valid?
100
- return false if !@terminal_capability.nil? && @terminal_capability > 5
101
- return false if !@terminal_capability.nil? && @terminal_capability < 1
102
92
  true
103
93
  end
104
94
 
@@ -117,14 +107,6 @@ module CyberSource
117
107
  # Custom attribute writer method with validation
118
108
  # @param [Object] terminal_capability Value to be assigned
119
109
  def terminal_capability=(terminal_capability)
120
- if !terminal_capability.nil? && terminal_capability > 5
121
- fail ArgumentError, 'invalid value for "terminal_capability", must be smaller than or equal to 5.'
122
- end
123
-
124
- if !terminal_capability.nil? && terminal_capability < 1
125
- fail ArgumentError, 'invalid value for "terminal_capability", must be greater than or equal to 1.'
126
- end
127
-
128
110
  @terminal_capability = terminal_capability
129
111
  end
130
112
 
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # 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.
21
21
  attr_accessor :prefix
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
26
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -25,13 +25,16 @@ module CyberSource
25
25
 
26
26
  attr_accessor :partner
27
27
 
28
+ attr_accessor :emv
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
31
33
  :'terminal_id' => :'terminalId',
32
34
  :'terminal_serial_number' => :'terminalSerialNumber',
33
35
  :'device_id' => :'deviceId',
34
- :'partner' => :'partner'
36
+ :'partner' => :'partner',
37
+ :'emv' => :'emv'
35
38
  }
36
39
  end
37
40
 
@@ -41,7 +44,8 @@ module CyberSource
41
44
  :'terminal_id' => :'String',
42
45
  :'terminal_serial_number' => :'String',
43
46
  :'device_id' => :'String',
44
- :'partner' => :'TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner'
47
+ :'partner' => :'TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner',
48
+ :'emv' => :'Ptsv2paymentsidreversalsPointOfSaleInformationEmv'
45
49
  }
46
50
  end
47
51
 
@@ -68,6 +72,10 @@ module CyberSource
68
72
  if attributes.has_key?(:'partner')
69
73
  self.partner = attributes[:'partner']
70
74
  end
75
+
76
+ if attributes.has_key?(:'emv')
77
+ self.emv = attributes[:'emv']
78
+ end
71
79
  end
72
80
 
73
81
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -103,7 +111,8 @@ module CyberSource
103
111
  terminal_id == o.terminal_id &&
104
112
  terminal_serial_number == o.terminal_serial_number &&
105
113
  device_id == o.device_id &&
106
- partner == o.partner
114
+ partner == o.partner &&
115
+ emv == o.emv
107
116
  end
108
117
 
109
118
  # @see the `==` method
@@ -115,7 +124,7 @@ module CyberSource
115
124
  # Calculates hash code according to all attributes.
116
125
  # @return [Fixnum] Hash code
117
126
  def hash
118
- [terminal_id, terminal_serial_number, device_id, partner].hash
127
+ [terminal_id, terminal_serial_number, device_id, partner, emv].hash
119
128
  end
120
129
 
121
130
  # Builds the object from hash