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
@@ -13,55 +13,56 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class FlexV1TokensPost200Response
17
- # The Key ID.
18
- attr_accessor :key_id
16
+ class Microformv2sessionsCheckoutApiInitialization
17
+ attr_accessor :profile_id
19
18
 
20
- # The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API.
21
- attr_accessor :token
19
+ attr_accessor :access_key
22
20
 
23
- # The masked card number displaying the first 6 digits and the last 4 digits.
24
- attr_accessor :masked_pan
21
+ attr_accessor :reference_number
25
22
 
26
- # The card type.
27
- attr_accessor :card_type
23
+ attr_accessor :transaction_uuid
28
24
 
29
- # The UTC date and time in milliseconds at which the signature was generated.
30
- attr_accessor :timestamp
25
+ attr_accessor :transaction_type
31
26
 
32
- # Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature.
33
- attr_accessor :signed_fields
27
+ attr_accessor :currency
34
28
 
35
- # Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource.
36
- attr_accessor :signature
29
+ attr_accessor :amount
37
30
 
38
- attr_accessor :discoverable_services
31
+ attr_accessor :locale
32
+
33
+ attr_accessor :override_custom_receipt_page
34
+
35
+ attr_accessor :unsigned_field_names
39
36
 
40
37
  # Attribute mapping from ruby-style variable name to JSON key.
41
38
  def self.attribute_map
42
39
  {
43
- :'key_id' => :'keyId',
44
- :'token' => :'token',
45
- :'masked_pan' => :'maskedPan',
46
- :'card_type' => :'cardType',
47
- :'timestamp' => :'timestamp',
48
- :'signed_fields' => :'signedFields',
49
- :'signature' => :'signature',
50
- :'discoverable_services' => :'discoverableServices'
40
+ :'profile_id' => :'profile_id',
41
+ :'access_key' => :'access_key',
42
+ :'reference_number' => :'reference_number',
43
+ :'transaction_uuid' => :'transaction_uuid',
44
+ :'transaction_type' => :'transaction_type',
45
+ :'currency' => :'currency',
46
+ :'amount' => :'amount',
47
+ :'locale' => :'locale',
48
+ :'override_custom_receipt_page' => :'override_custom_receipt_page',
49
+ :'unsigned_field_names' => :'unsigned_field_names'
51
50
  }
52
51
  end
53
52
 
54
53
  # Attribute type mapping.
55
54
  def self.swagger_types
56
55
  {
57
- :'key_id' => :'String',
58
- :'token' => :'String',
59
- :'masked_pan' => :'String',
60
- :'card_type' => :'String',
61
- :'timestamp' => :'Integer',
62
- :'signed_fields' => :'String',
63
- :'signature' => :'String',
64
- :'discoverable_services' => :'Hash<String, Object>'
56
+ :'profile_id' => :'String',
57
+ :'access_key' => :'String',
58
+ :'reference_number' => :'String',
59
+ :'transaction_uuid' => :'String',
60
+ :'transaction_type' => :'String',
61
+ :'currency' => :'String',
62
+ :'amount' => :'String',
63
+ :'locale' => :'String',
64
+ :'override_custom_receipt_page' => :'String',
65
+ :'unsigned_field_names' => :'String'
65
66
  }
66
67
  end
67
68
 
@@ -73,38 +74,44 @@ module CyberSource
73
74
  # convert string to symbol for hash key
74
75
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
75
76
 
76
- if attributes.has_key?(:'keyId')
77
- self.key_id = attributes[:'keyId']
77
+ if attributes.has_key?(:'profile_id')
78
+ self.profile_id = attributes[:'profile_id']
78
79
  end
79
80
 
80
- if attributes.has_key?(:'token')
81
- self.token = attributes[:'token']
81
+ if attributes.has_key?(:'access_key')
82
+ self.access_key = attributes[:'access_key']
82
83
  end
83
84
 
84
- if attributes.has_key?(:'maskedPan')
85
- self.masked_pan = attributes[:'maskedPan']
85
+ if attributes.has_key?(:'reference_number')
86
+ self.reference_number = attributes[:'reference_number']
86
87
  end
87
88
 
88
- if attributes.has_key?(:'cardType')
89
- self.card_type = attributes[:'cardType']
89
+ if attributes.has_key?(:'transaction_uuid')
90
+ self.transaction_uuid = attributes[:'transaction_uuid']
90
91
  end
91
92
 
92
- if attributes.has_key?(:'timestamp')
93
- self.timestamp = attributes[:'timestamp']
93
+ if attributes.has_key?(:'transaction_type')
94
+ self.transaction_type = attributes[:'transaction_type']
94
95
  end
95
96
 
96
- if attributes.has_key?(:'signedFields')
97
- self.signed_fields = attributes[:'signedFields']
97
+ if attributes.has_key?(:'currency')
98
+ self.currency = attributes[:'currency']
98
99
  end
99
100
 
100
- if attributes.has_key?(:'signature')
101
- self.signature = attributes[:'signature']
101
+ if attributes.has_key?(:'amount')
102
+ self.amount = attributes[:'amount']
102
103
  end
103
104
 
104
- if attributes.has_key?(:'discoverableServices')
105
- if (value = attributes[:'discoverableServices']).is_a?(Hash)
106
- self.discoverable_services = value
107
- end
105
+ if attributes.has_key?(:'locale')
106
+ self.locale = attributes[:'locale']
107
+ end
108
+
109
+ if attributes.has_key?(:'override_custom_receipt_page')
110
+ self.override_custom_receipt_page = attributes[:'override_custom_receipt_page']
111
+ end
112
+
113
+ if attributes.has_key?(:'unsigned_field_names')
114
+ self.unsigned_field_names = attributes[:'unsigned_field_names']
108
115
  end
109
116
  end
110
117
 
@@ -126,14 +133,16 @@ module CyberSource
126
133
  def ==(o)
127
134
  return true if self.equal?(o)
128
135
  self.class == o.class &&
129
- key_id == o.key_id &&
130
- token == o.token &&
131
- masked_pan == o.masked_pan &&
132
- card_type == o.card_type &&
133
- timestamp == o.timestamp &&
134
- signed_fields == o.signed_fields &&
135
- signature == o.signature &&
136
- discoverable_services == o.discoverable_services
136
+ profile_id == o.profile_id &&
137
+ access_key == o.access_key &&
138
+ reference_number == o.reference_number &&
139
+ transaction_uuid == o.transaction_uuid &&
140
+ transaction_type == o.transaction_type &&
141
+ currency == o.currency &&
142
+ amount == o.amount &&
143
+ locale == o.locale &&
144
+ override_custom_receipt_page == o.override_custom_receipt_page &&
145
+ unsigned_field_names == o.unsigned_field_names
137
146
  end
138
147
 
139
148
  # @see the `==` method
@@ -145,7 +154,7 @@ module CyberSource
145
154
  # Calculates hash code according to all attributes.
146
155
  # @return [Fixnum] Hash code
147
156
  def hash
148
- [key_id, token, masked_pan, card_type, timestamp, signed_fields, signature, discoverable_services].hash
157
+ [profile_id, access_key, reference_number, transaction_uuid, transaction_type, currency, amount, locale, override_custom_receipt_page, unsigned_field_names].hash
149
158
  end
150
159
 
151
160
  # Builds the object from hash
@@ -16,18 +16,21 @@ module CyberSource
16
16
  class PatchCustomerPaymentInstrumentRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Payment Instrument Token.
19
+ # The Id of the Payment Instrument Token.
20
20
  attr_accessor :id
21
21
 
22
- # The type of token. Valid values: - paymentInstrument
22
+ # The type. Possible Values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
- # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
25
+ # Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
26
  attr_accessor :default
27
27
 
28
- # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
28
+ # Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed.
29
29
  attr_accessor :state
30
30
 
31
+ # The type of Payment Instrument. Possible Values: - cardHash
32
+ attr_accessor :type
33
+
31
34
  attr_accessor :bank_account
32
35
 
33
36
  attr_accessor :card
@@ -54,6 +57,7 @@ module CyberSource
54
57
  :'object' => :'object',
55
58
  :'default' => :'default',
56
59
  :'state' => :'state',
60
+ :'type' => :'type',
57
61
  :'bank_account' => :'bankAccount',
58
62
  :'card' => :'card',
59
63
  :'buyer_information' => :'buyerInformation',
@@ -74,6 +78,7 @@ module CyberSource
74
78
  :'object' => :'String',
75
79
  :'default' => :'BOOLEAN',
76
80
  :'state' => :'String',
81
+ :'type' => :'String',
77
82
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
78
83
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
79
84
  :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation',
@@ -114,6 +119,10 @@ module CyberSource
114
119
  self.state = attributes[:'state']
115
120
  end
116
121
 
122
+ if attributes.has_key?(:'type')
123
+ self.type = attributes[:'type']
124
+ end
125
+
117
126
  if attributes.has_key?(:'bankAccount')
118
127
  self.bank_account = attributes[:'bankAccount']
119
128
  end
@@ -180,6 +189,7 @@ module CyberSource
180
189
  object == o.object &&
181
190
  default == o.default &&
182
191
  state == o.state &&
192
+ type == o.type &&
183
193
  bank_account == o.bank_account &&
184
194
  card == o.card &&
185
195
  buyer_information == o.buyer_information &&
@@ -200,7 +210,7 @@ module CyberSource
200
210
  # Calculates hash code according to all attributes.
201
211
  # @return [Fixnum] Hash code
202
212
  def hash
203
- [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
213
+ [_links, id, object, default, state, type, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
204
214
  end
205
215
 
206
216
  # Builds the object from hash
@@ -16,7 +16,7 @@ module CyberSource
16
16
  class PatchCustomerRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Customer Token.
19
+ # The Id of the Customer Token.
20
20
  attr_accessor :id
21
21
 
22
22
  attr_accessor :object_information
@@ -16,10 +16,10 @@ module CyberSource
16
16
  class PatchCustomerShippingAddressRequest
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
@@ -16,16 +16,16 @@ module CyberSource
16
16
  class PatchInstrumentIdentifierRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Instrument Identifier Token.
19
+ # The Id of the Instrument Identifier Token.
20
20
  attr_accessor :id
21
21
 
22
- # The type of token. Valid values: - instrumentIdentifier
22
+ # The type. Possible Values: - instrumentIdentifier
23
23
  attr_accessor :object
24
24
 
25
- # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
25
+ # Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed.
26
26
  attr_accessor :state
27
27
 
28
- # The type of Instrument Identifier. Valid values: - enrollable card
28
+ # The type of Instrument Identifier. Possible Values: - enrollable card
29
29
  attr_accessor :type
30
30
 
31
31
  attr_accessor :card
@@ -16,18 +16,21 @@ module CyberSource
16
16
  class PatchPaymentInstrumentRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Payment Instrument Token.
19
+ # The Id of the Payment Instrument Token.
20
20
  attr_accessor :id
21
21
 
22
- # The type of token. Valid values: - paymentInstrument
22
+ # The type. Possible Values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
- # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
25
+ # Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
26
  attr_accessor :default
27
27
 
28
- # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
28
+ # Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed.
29
29
  attr_accessor :state
30
30
 
31
+ # The type of Payment Instrument. Possible Values: - cardHash
32
+ attr_accessor :type
33
+
31
34
  attr_accessor :bank_account
32
35
 
33
36
  attr_accessor :card
@@ -54,6 +57,7 @@ module CyberSource
54
57
  :'object' => :'object',
55
58
  :'default' => :'default',
56
59
  :'state' => :'state',
60
+ :'type' => :'type',
57
61
  :'bank_account' => :'bankAccount',
58
62
  :'card' => :'card',
59
63
  :'buyer_information' => :'buyerInformation',
@@ -74,6 +78,7 @@ module CyberSource
74
78
  :'object' => :'String',
75
79
  :'default' => :'BOOLEAN',
76
80
  :'state' => :'String',
81
+ :'type' => :'String',
77
82
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
78
83
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
79
84
  :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation',
@@ -114,6 +119,10 @@ module CyberSource
114
119
  self.state = attributes[:'state']
115
120
  end
116
121
 
122
+ if attributes.has_key?(:'type')
123
+ self.type = attributes[:'type']
124
+ end
125
+
117
126
  if attributes.has_key?(:'bankAccount')
118
127
  self.bank_account = attributes[:'bankAccount']
119
128
  end
@@ -180,6 +189,7 @@ module CyberSource
180
189
  object == o.object &&
181
190
  default == o.default &&
182
191
  state == o.state &&
192
+ type == o.type &&
183
193
  bank_account == o.bank_account &&
184
194
  card == o.card &&
185
195
  buyer_information == o.buyer_information &&
@@ -200,7 +210,7 @@ module CyberSource
200
210
  # Calculates hash code according to all attributes.
201
211
  # @return [Fixnum] Hash code
202
212
  def hash
203
- [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
213
+ [_links, id, object, default, state, type, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
204
214
  end
205
215
 
206
216
  # Builds the object from hash
@@ -16,18 +16,21 @@ module CyberSource
16
16
  class PostCustomerPaymentInstrumentRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Payment Instrument Token.
19
+ # The Id of the Payment Instrument Token.
20
20
  attr_accessor :id
21
21
 
22
- # The type of token. Valid values: - paymentInstrument
22
+ # The type. Possible Values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
- # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
25
+ # Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
26
  attr_accessor :default
27
27
 
28
- # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
28
+ # Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed.
29
29
  attr_accessor :state
30
30
 
31
+ # The type of Payment Instrument. Possible Values: - cardHash
32
+ attr_accessor :type
33
+
31
34
  attr_accessor :bank_account
32
35
 
33
36
  attr_accessor :card
@@ -54,6 +57,7 @@ module CyberSource
54
57
  :'object' => :'object',
55
58
  :'default' => :'default',
56
59
  :'state' => :'state',
60
+ :'type' => :'type',
57
61
  :'bank_account' => :'bankAccount',
58
62
  :'card' => :'card',
59
63
  :'buyer_information' => :'buyerInformation',
@@ -74,6 +78,7 @@ module CyberSource
74
78
  :'object' => :'String',
75
79
  :'default' => :'BOOLEAN',
76
80
  :'state' => :'String',
81
+ :'type' => :'String',
77
82
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
78
83
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
79
84
  :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation',
@@ -114,6 +119,10 @@ module CyberSource
114
119
  self.state = attributes[:'state']
115
120
  end
116
121
 
122
+ if attributes.has_key?(:'type')
123
+ self.type = attributes[:'type']
124
+ end
125
+
117
126
  if attributes.has_key?(:'bankAccount')
118
127
  self.bank_account = attributes[:'bankAccount']
119
128
  end
@@ -180,6 +189,7 @@ module CyberSource
180
189
  object == o.object &&
181
190
  default == o.default &&
182
191
  state == o.state &&
192
+ type == o.type &&
183
193
  bank_account == o.bank_account &&
184
194
  card == o.card &&
185
195
  buyer_information == o.buyer_information &&
@@ -200,7 +210,7 @@ module CyberSource
200
210
  # Calculates hash code according to all attributes.
201
211
  # @return [Fixnum] Hash code
202
212
  def hash
203
- [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
213
+ [_links, id, object, default, state, type, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
204
214
  end
205
215
 
206
216
  # Builds the object from hash
@@ -16,7 +16,7 @@ module CyberSource
16
16
  class PostCustomerRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Customer Token.
19
+ # The Id of the Customer Token.
20
20
  attr_accessor :id
21
21
 
22
22
  attr_accessor :object_information
@@ -16,10 +16,10 @@ module CyberSource
16
16
  class PostCustomerShippingAddressRequest
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
@@ -16,16 +16,16 @@ module CyberSource
16
16
  class PostInstrumentIdentifierEnrollmentRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Instrument Identifier Token.
19
+ # The Id of the Instrument Identifier Token.
20
20
  attr_accessor :id
21
21
 
22
- # The type of token. Valid values: - instrumentIdentifier
22
+ # The type. Possible Values: - instrumentIdentifier
23
23
  attr_accessor :object
24
24
 
25
- # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
25
+ # Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed.
26
26
  attr_accessor :state
27
27
 
28
- # The type of Instrument Identifier. Valid values: - enrollable card
28
+ # The type of Instrument Identifier. Possible Values: - enrollable card
29
29
  attr_accessor :type
30
30
 
31
31
  attr_accessor :card
@@ -16,16 +16,16 @@ module CyberSource
16
16
  class PostInstrumentIdentifierRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Instrument Identifier Token.
19
+ # The Id of the Instrument Identifier Token.
20
20
  attr_accessor :id
21
21
 
22
- # The type of token. Valid values: - instrumentIdentifier
22
+ # The type. Possible Values: - instrumentIdentifier
23
23
  attr_accessor :object
24
24
 
25
- # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
25
+ # Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed.
26
26
  attr_accessor :state
27
27
 
28
- # The type of Instrument Identifier. Valid values: - enrollable card
28
+ # The type of Instrument Identifier. Possible Values: - enrollable card
29
29
  attr_accessor :type
30
30
 
31
31
  attr_accessor :card
@@ -16,18 +16,21 @@ module CyberSource
16
16
  class PostPaymentInstrumentRequest
17
17
  attr_accessor :_links
18
18
 
19
- # The id of the Payment Instrument Token.
19
+ # The Id of the Payment Instrument Token.
20
20
  attr_accessor :id
21
21
 
22
- # The type of token. Valid values: - paymentInstrument
22
+ # The type. Possible Values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
- # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
25
+ # Flag that indicates whether customer payment instrument is the dafault. Possible Values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
26
  attr_accessor :default
27
27
 
28
- # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
28
+ # Issuers state for the card number. Possible Values: - ACTIVE - CLOSED : The account has been closed.
29
29
  attr_accessor :state
30
30
 
31
+ # The type of Payment Instrument. Possible Values: - cardHash
32
+ attr_accessor :type
33
+
31
34
  attr_accessor :bank_account
32
35
 
33
36
  attr_accessor :card
@@ -54,6 +57,7 @@ module CyberSource
54
57
  :'object' => :'object',
55
58
  :'default' => :'default',
56
59
  :'state' => :'state',
60
+ :'type' => :'type',
57
61
  :'bank_account' => :'bankAccount',
58
62
  :'card' => :'card',
59
63
  :'buyer_information' => :'buyerInformation',
@@ -74,6 +78,7 @@ module CyberSource
74
78
  :'object' => :'String',
75
79
  :'default' => :'BOOLEAN',
76
80
  :'state' => :'String',
81
+ :'type' => :'String',
77
82
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
78
83
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
79
84
  :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation',
@@ -114,6 +119,10 @@ module CyberSource
114
119
  self.state = attributes[:'state']
115
120
  end
116
121
 
122
+ if attributes.has_key?(:'type')
123
+ self.type = attributes[:'type']
124
+ end
125
+
117
126
  if attributes.has_key?(:'bankAccount')
118
127
  self.bank_account = attributes[:'bankAccount']
119
128
  end
@@ -180,6 +189,7 @@ module CyberSource
180
189
  object == o.object &&
181
190
  default == o.default &&
182
191
  state == o.state &&
192
+ type == o.type &&
183
193
  bank_account == o.bank_account &&
184
194
  card == o.card &&
185
195
  buyer_information == o.buyer_information &&
@@ -200,7 +210,7 @@ module CyberSource
200
210
  # Calculates hash code according to all attributes.
201
211
  # @return [Fixnum] Hash code
202
212
  def hash
203
- [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
213
+ [_links, id, object, default, state, type, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
204
214
  end
205
215
 
206
216
  # Builds the object from hash
@@ -148,14 +148,6 @@ module CyberSource
148
148
  #invalid_properties.push('invalid value for "report_interval", must conform to the pattern /^PT((([1-9]|1[0-9]|2[0-3])H(([1-9]|[1-4][0-9]|5[0-9])M)?)|((([1-9]|1[0-9]|2[0-3])H)?([1-9]|[1-4][0-9]|5[0-9])M))$/.')
149
149
  #end
150
150
 
151
- if !@start_day.nil? && @start_day > 31
152
- invalid_properties.push('invalid value for "start_day", must be smaller than or equal to 31.')
153
- end
154
-
155
- if !@start_day.nil? && @start_day < 1
156
- invalid_properties.push('invalid value for "start_day", must be greater than or equal to 1.')
157
- end
158
-
159
151
  invalid_properties
160
152
  end
161
153
 
@@ -167,8 +159,6 @@ module CyberSource
167
159
  return false if @subscription_type.nil?
168
160
  #return false if !@report_name.nil? && @report_name !~ Regexp.new(/[a-zA-Z0-9-_ ]+/)
169
161
  #return false if !@report_interval.nil? && @report_interval !~ Regexp.new(/^PT((([1-9]|1[0-9]|2[0-3])H(([1-9]|[1-4][0-9]|5[0-9])M)?)|((([1-9]|1[0-9]|2[0-3])H)?([1-9]|[1-4][0-9]|5[0-9])M))$/)
170
- return false if !@start_day.nil? && @start_day > 31
171
- return false if !@start_day.nil? && @start_day < 1
172
162
  true
173
163
  end
174
164
 
@@ -209,14 +199,6 @@ module CyberSource
209
199
  # Custom attribute writer method with validation
210
200
  # @param [Object] start_day Value to be assigned
211
201
  def start_day=(start_day)
212
- if !start_day.nil? && start_day > 31
213
- fail ArgumentError, 'invalid value for "start_day", must be smaller than or equal to 31.'
214
- end
215
-
216
- if !start_day.nil? && start_day < 1
217
- fail ArgumentError, 'invalid value for "start_day", must be greater than or equal to 1.'
218
- end
219
-
220
202
  @start_day = start_day
221
203
  end
222
204
 
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # The status of the submitted transaction. Possible values: - INVALID_REQUEST
21
21
  attr_accessor :status
22
22
 
23
- # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_PAYMENT_ID
23
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_PAYMENT_ID - NOT_SUPPORTED
24
24
  attr_accessor :reason
25
25
 
26
26
  # The detail message related to the status and reason listed above.
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # The status of the submitted transaction. Possible values: - INVALID_REQUEST
21
21
  attr_accessor :status
22
22
 
23
- # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED
23
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED
24
24
  attr_accessor :reason
25
25
 
26
26
  # The detail message related to the status and reason listed above.
@@ -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.