cybersource_rest_client 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +68 -8
  3. data/lib/cybersource_rest_client/api/capture_api.rb +19 -8
  4. data/lib/cybersource_rest_client/api/conversion_details_api.rb +112 -0
  5. data/lib/cybersource_rest_client/api/credit_api.rb +19 -8
  6. data/lib/cybersource_rest_client/api/flex_token_api.rb +18 -7
  7. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +88 -55
  8. data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +24 -13
  9. data/lib/cybersource_rest_client/api/key_generation_api.rb +18 -7
  10. data/lib/cybersource_rest_client/api/net_fundings_api.rb +115 -0
  11. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +20 -9
  12. data/lib/cybersource_rest_client/api/payment_instruments_api.rb +144 -89
  13. data/lib/cybersource_rest_client/api/payments_api.rb +19 -8
  14. data/lib/cybersource_rest_client/api/process_a_payout_api.rb +21 -9
  15. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +27 -10
  16. data/lib/cybersource_rest_client/api/refund_api.rb +37 -15
  17. data/lib/cybersource_rest_client/api/report_definitions_api.rb +50 -19
  18. data/lib/cybersource_rest_client/api/report_downloads_api.rb +25 -10
  19. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +104 -43
  20. data/lib/cybersource_rest_client/api/reports_api.rb +83 -27
  21. data/lib/cybersource_rest_client/api/reversal_api.rb +19 -8
  22. data/lib/cybersource_rest_client/api/search_transactions_api.rb +39 -17
  23. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +45 -15
  24. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +89 -13
  25. data/lib/cybersource_rest_client/api/transaction_details_api.rb +19 -8
  26. data/lib/cybersource_rest_client/api/user_management_api.rb +19 -8
  27. data/lib/cybersource_rest_client/api/void_api.rb +73 -29
  28. data/lib/cybersource_rest_client/api_client.rb +24 -12
  29. data/lib/cybersource_rest_client/configuration.rb +1 -1
  30. data/lib/cybersource_rest_client/models/capture_payment_request.rb +14 -5
  31. data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
  32. data/lib/cybersource_rest_client/models/create_payment_request.rb +23 -5
  33. data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
  34. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +202 -0
  35. data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response_fields.rb → inline_response_400_fields.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +7 -7
  37. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +286 -0
  38. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → pts_v1_transaction_batches_id_get200_response__links.rb} +10 -9
  39. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +193 -0
  40. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +20 -2
  41. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
  42. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +183 -0
  43. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +183 -0
  44. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +199 -0
  45. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
  46. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
  47. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +2 -2
  48. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +34 -7
  49. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +40 -5
  50. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  51. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +1 -1
  52. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +519 -0
  53. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_processor_information_issuer.rb → pts_v2_payments_post201_response_issuer_information.rb} +31 -6
  54. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
  55. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
  56. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +13 -4
  57. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +1 -1
  58. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +208 -0
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +199 -0
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -17
  61. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
  62. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +183 -0
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +224 -0
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +75 -16
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +224 -0
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -15
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +249 -0
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +63 -4
  73. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
  74. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +2 -2
  75. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +11 -2
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +29 -4
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +199 -0
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +2 -2
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +1 -1
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +2 -2
  83. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +350 -0
  84. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +239 -0
  85. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information_details.rb +228 -0
  86. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +183 -0
  87. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +234 -0
  88. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +183 -0
  89. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +274 -0
  90. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +299 -0
  91. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +183 -0
  92. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +224 -0
  93. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_status_information.rb +228 -0
  94. data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
  95. data/lib/cybersource_rest_client/models/pts_v2_payouts_post502_response.rb +260 -0
  96. data/lib/cybersource_rest_client/models/pts_v2_payouts_post_response.rb +1 -1
  97. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +186 -4
  98. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +3 -3
  99. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +18 -9
  100. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +349 -0
  101. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
  102. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
  103. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +29 -4
  104. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -2
  105. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +15 -6
  106. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +249 -0
  107. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
  108. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +364 -0
  109. data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_issuer.rb → ptsv2payments_issuer_information.rb} +2 -2
  110. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
  111. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +66 -7
  112. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -6
  113. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +249 -0
  114. data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → ptsv2payments_merchant_initiated_transaction.rb} +3 -3
  115. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +84 -9
  116. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
  117. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +32 -7
  118. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +12 -28
  119. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +349 -0
  120. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +55 -5
  121. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +139 -14
  122. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +2 -2
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -2
  124. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
  125. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +208 -0
  126. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +299 -0
  127. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +47 -37
  128. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -7
  129. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +4 -4
  130. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -18
  131. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +253 -16
  132. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +12 -12
  133. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +20 -20
  134. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +32 -12
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +4 -4
  136. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +424 -0
  137. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
  138. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
  139. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
  140. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
  141. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
  142. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
  143. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +579 -0
  144. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +39 -5
  145. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +59 -9
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +11 -27
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +5 -5
  151. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
  152. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +30 -5
  153. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +9 -9
  154. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +22 -4
  155. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -20
  156. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
  157. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
  158. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +14 -5
  159. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +224 -0
  160. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +10 -1
  161. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +199 -0
  162. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
  163. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +5 -5
  164. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +0 -15
  165. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
  166. data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +199 -0
  167. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -15
  168. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +0 -15
  169. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  170. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  171. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +213 -0
  172. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +275 -0
  173. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +204 -0
  174. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +266 -0
  175. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +281 -0
  176. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +203 -0
  177. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +273 -0
  178. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +255 -0
  179. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +290 -0
  180. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +260 -0
  181. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +235 -0
  182. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +240 -0
  183. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +304 -0
  184. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -0
  185. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -0
  186. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +13 -13
  187. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +18 -8
  188. data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +15 -15
  189. data/lib/cybersource_rest_client/models/{reporting_v3_report_subscriptions_get200_response_report_preferences.rb → reporting_v3_reports_id_get200_response_report_preferences.rb} +1 -1
  190. data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response.rb → reportingv3_report_downloads_get400_response.rb} +42 -52
  191. data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +195 -0
  192. data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +229 -0
  193. data/lib/cybersource_rest_client/models/request_body.rb +74 -104
  194. data/lib/cybersource_rest_client/models/request_body_1.rb +159 -55
  195. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_get200_response.rb +331 -0
  196. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response.rb +1 -1
  197. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response_card.rb +302 -0
  198. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb +48 -0
  199. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +24 -0
  200. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.rb +199 -0
  201. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb +1 -1
  202. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb +183 -0
  203. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb +39 -0
  204. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +24 -0
  205. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +1 -1
  206. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +0 -15
  207. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
  208. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +0 -30
  209. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +184 -0
  210. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +1 -1
  211. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb +224 -0
  212. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
  213. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +0 -15
  214. data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
  215. data/lib/cybersource_rest_client/models/ums_v1_users_get400_response.rb +271 -0
  216. metadata +70 -10
  217. data/lib/cybersource_rest_client/api/transaction_batch_api.rb +0 -77
@@ -19,19 +19,26 @@ module CyberSource
19
19
  # Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
20
20
  attr_accessor :card_acceptor_reference_number
21
21
 
22
- # Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
22
+ # Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) See \"Aggregator Support,\" page 100. **CyberSource through VisaNet**\\ The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR4 - Position: 150-153 - Field: Merchant Category Code
23
23
  attr_accessor :category_code
24
24
 
25
25
  # Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
26
26
  attr_accessor :vat_registration_number
27
27
 
28
+ attr_accessor :service_fee_descriptor
29
+
30
+ # Your Cadastro Nacional da Pessoa Jurídica (CNPJ) number. This field is supported only for BNDES transactions on CyberSource through VisaNet. See BNDES. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR6 - Position: 40-59 - Field: BNDES Reference Field 1
31
+ attr_accessor :tax_id
32
+
28
33
  # Attribute mapping from ruby-style variable name to JSON key.
29
34
  def self.attribute_map
30
35
  {
31
36
  :'merchant_descriptor' => :'merchantDescriptor',
32
37
  :'card_acceptor_reference_number' => :'cardAcceptorReferenceNumber',
33
38
  :'category_code' => :'categoryCode',
34
- :'vat_registration_number' => :'vatRegistrationNumber'
39
+ :'vat_registration_number' => :'vatRegistrationNumber',
40
+ :'service_fee_descriptor' => :'serviceFeeDescriptor',
41
+ :'tax_id' => :'taxId'
35
42
  }
36
43
  end
37
44
 
@@ -41,7 +48,9 @@ module CyberSource
41
48
  :'merchant_descriptor' => :'Ptsv2paymentsMerchantInformationMerchantDescriptor',
42
49
  :'card_acceptor_reference_number' => :'String',
43
50
  :'category_code' => :'Integer',
44
- :'vat_registration_number' => :'String'
51
+ :'vat_registration_number' => :'String',
52
+ :'service_fee_descriptor' => :'Ptsv2paymentsMerchantInformationServiceFeeDescriptor',
53
+ :'tax_id' => :'String'
45
54
  }
46
55
  end
47
56
 
@@ -68,6 +77,14 @@ module CyberSource
68
77
  if attributes.has_key?(:'vatRegistrationNumber')
69
78
  self.vat_registration_number = attributes[:'vatRegistrationNumber']
70
79
  end
80
+
81
+ if attributes.has_key?(:'serviceFeeDescriptor')
82
+ self.service_fee_descriptor = attributes[:'serviceFeeDescriptor']
83
+ end
84
+
85
+ if attributes.has_key?(:'taxId')
86
+ self.tax_id = attributes[:'taxId']
87
+ end
71
88
  end
72
89
 
73
90
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -86,6 +103,10 @@ module CyberSource
86
103
  invalid_properties.push('invalid value for "vat_registration_number", the character length must be smaller than or equal to 21.')
87
104
  end
88
105
 
106
+ if !@tax_id.nil? && @tax_id.to_s.length > 15
107
+ invalid_properties.push('invalid value for "tax_id", the character length must be smaller than or equal to 15.')
108
+ end
109
+
89
110
  invalid_properties
90
111
  end
91
112
 
@@ -95,6 +116,7 @@ module CyberSource
95
116
  return false if !@card_acceptor_reference_number.nil? && @card_acceptor_reference_number.to_s.length > 25
96
117
  return false if !@category_code.nil? && @category_code > 9999
97
118
  return false if !@vat_registration_number.nil? && @vat_registration_number.to_s.length > 21
119
+ return false if !@tax_id.nil? && @tax_id.to_s.length > 15
98
120
  true
99
121
  end
100
122
 
@@ -128,6 +150,16 @@ module CyberSource
128
150
  @vat_registration_number = vat_registration_number
129
151
  end
130
152
 
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] tax_id Value to be assigned
155
+ def tax_id=(tax_id)
156
+ if !tax_id.nil? && tax_id.to_s.length > 15
157
+ fail ArgumentError, 'invalid value for "tax_id", the character length must be smaller than or equal to 15.'
158
+ end
159
+
160
+ @tax_id = tax_id
161
+ end
162
+
131
163
  # Checks equality by comparing each attribute.
132
164
  # @param [Object] Object to be compared
133
165
  def ==(o)
@@ -136,7 +168,9 @@ module CyberSource
136
168
  merchant_descriptor == o.merchant_descriptor &&
137
169
  card_acceptor_reference_number == o.card_acceptor_reference_number &&
138
170
  category_code == o.category_code &&
139
- vat_registration_number == o.vat_registration_number
171
+ vat_registration_number == o.vat_registration_number &&
172
+ service_fee_descriptor == o.service_fee_descriptor &&
173
+ tax_id == o.tax_id
140
174
  end
141
175
 
142
176
  # @see the `==` method
@@ -148,7 +182,7 @@ module CyberSource
148
182
  # Calculates hash code according to all attributes.
149
183
  # @return [Fixnum] Hash code
150
184
  def hash
151
- [merchant_descriptor, card_acceptor_reference_number, category_code, vat_registration_number].hash
185
+ [merchant_descriptor, card_acceptor_reference_number, category_code, vat_registration_number, service_fee_descriptor, tax_id].hash
152
186
  end
153
187
 
154
188
  # Builds the object from hash
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsidcapturesOrderInformationAmountDetails
17
- # Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
17
+ # Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. This information is covered in:  Table 15, \"Authorization Information for Specific Processors,\" on page 43  Table 19, \"Capture Information for Specific Processors,\" on page 58  Table 23, \"Credit Information for Specific Processors,\" on page 75 If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. See \"Zero Amount Authorizations,\" page 247. **DCC with a Third-Party Provider**\\ Set this field to the converted amount that was returned by the DCC provider. You must include either this field or offer0 and the offerlevel field amount in your request. For details, see \"Dynamic Currency Conversion with a Third Party Provider,\" page 125. **FDMS South**\\ If you accept IDR or CLP currencies, see the entry for FDMS South in Table 15, \"Authorization Information for Specific Processors,\" on page 43. **DCC for First Data**\\ Not used.
18
18
  attr_accessor :total_amount
19
19
 
20
- # Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API.
20
+ # Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your request for Payment API. **DCC for First Data**\\ Your local currency. For details, see \"Dynamic Currency Conversion for First Data,\" page 113.
21
21
  attr_accessor :currency
22
22
 
23
23
  # Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
@@ -44,13 +44,13 @@ module CyberSource
44
44
  # Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
45
45
  attr_accessor :freight_amount
46
46
 
47
- # Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
47
+ # Set this field to the converted amount that was returned by the DCC provider. See \"Dynamic Currency Conversion with a Third Party Provider,\" page 125. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
48
48
  attr_accessor :foreign_amount
49
49
 
50
- # Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
50
+ # Your customer’s billing currency. See \"Dynamic Currency Conversion with a Third Party Provider,\" page 125. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
51
51
  attr_accessor :foreign_currency
52
52
 
53
- # Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
53
+ # Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For details, see \"Dynamic Currency Conversion for First Data,\" page 113. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
54
54
  attr_accessor :exchange_rate
55
55
 
56
56
  # Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
@@ -60,6 +60,12 @@ module CyberSource
60
60
 
61
61
  attr_accessor :tax_details
62
62
 
63
+ # Service fee. Required for service fee transactions.
64
+ attr_accessor :service_fee_amount
65
+
66
+ # Your local pricing currency code. For the possible values, see the ISO Standard Currency Codes. For details, see Dynamic Currency Conversion with a Third Party Provider.
67
+ attr_accessor :original_currency
68
+
63
69
  # Attribute mapping from ruby-style variable name to JSON key.
64
70
  def self.attribute_map
65
71
  {
@@ -78,7 +84,9 @@ module CyberSource
78
84
  :'exchange_rate' => :'exchangeRate',
79
85
  :'exchange_rate_time_stamp' => :'exchangeRateTimeStamp',
80
86
  :'amex_additional_amounts' => :'amexAdditionalAmounts',
81
- :'tax_details' => :'taxDetails'
87
+ :'tax_details' => :'taxDetails',
88
+ :'service_fee_amount' => :'serviceFeeAmount',
89
+ :'original_currency' => :'originalCurrency'
82
90
  }
83
91
  end
84
92
 
@@ -100,7 +108,9 @@ module CyberSource
100
108
  :'exchange_rate' => :'String',
101
109
  :'exchange_rate_time_stamp' => :'String',
102
110
  :'amex_additional_amounts' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts>',
103
- :'tax_details' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsTaxDetails>'
111
+ :'tax_details' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsTaxDetails>',
112
+ :'service_fee_amount' => :'String',
113
+ :'original_currency' => :'String'
104
114
  }
105
115
  end
106
116
 
@@ -179,6 +189,14 @@ module CyberSource
179
189
  self.tax_details = value
180
190
  end
181
191
  end
192
+
193
+ if attributes.has_key?(:'serviceFeeAmount')
194
+ self.service_fee_amount = attributes[:'serviceFeeAmount']
195
+ end
196
+
197
+ if attributes.has_key?(:'originalCurrency')
198
+ self.original_currency = attributes[:'originalCurrency']
199
+ end
182
200
  end
183
201
 
184
202
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -241,6 +259,14 @@ module CyberSource
241
259
  invalid_properties.push('invalid value for "exchange_rate_time_stamp", the character length must be smaller than or equal to 14.')
242
260
  end
243
261
 
262
+ if !@service_fee_amount.nil? && @service_fee_amount.to_s.length > 15
263
+ invalid_properties.push('invalid value for "service_fee_amount", the character length must be smaller than or equal to 15.')
264
+ end
265
+
266
+ if !@original_currency.nil? && @original_currency.to_s.length > 15
267
+ invalid_properties.push('invalid value for "original_currency", the character length must be smaller than or equal to 15.')
268
+ end
269
+
244
270
  invalid_properties
245
271
  end
246
272
 
@@ -261,6 +287,8 @@ module CyberSource
261
287
  return false if !@foreign_currency.nil? && @foreign_currency.to_s.length > 5
262
288
  return false if !@exchange_rate.nil? && @exchange_rate.to_s.length > 13
263
289
  return false if !@exchange_rate_time_stamp.nil? && @exchange_rate_time_stamp.to_s.length > 14
290
+ return false if !@service_fee_amount.nil? && @service_fee_amount.to_s.length > 15
291
+ return false if !@original_currency.nil? && @original_currency.to_s.length > 15
264
292
  true
265
293
  end
266
294
 
@@ -404,6 +432,26 @@ module CyberSource
404
432
  @exchange_rate_time_stamp = exchange_rate_time_stamp
405
433
  end
406
434
 
435
+ # Custom attribute writer method with validation
436
+ # @param [Object] service_fee_amount Value to be assigned
437
+ def service_fee_amount=(service_fee_amount)
438
+ if !service_fee_amount.nil? && service_fee_amount.to_s.length > 15
439
+ fail ArgumentError, 'invalid value for "service_fee_amount", the character length must be smaller than or equal to 15.'
440
+ end
441
+
442
+ @service_fee_amount = service_fee_amount
443
+ end
444
+
445
+ # Custom attribute writer method with validation
446
+ # @param [Object] original_currency Value to be assigned
447
+ def original_currency=(original_currency)
448
+ if !original_currency.nil? && original_currency.to_s.length > 15
449
+ fail ArgumentError, 'invalid value for "original_currency", the character length must be smaller than or equal to 15.'
450
+ end
451
+
452
+ @original_currency = original_currency
453
+ end
454
+
407
455
  # Checks equality by comparing each attribute.
408
456
  # @param [Object] Object to be compared
409
457
  def ==(o)
@@ -424,7 +472,9 @@ module CyberSource
424
472
  exchange_rate == o.exchange_rate &&
425
473
  exchange_rate_time_stamp == o.exchange_rate_time_stamp &&
426
474
  amex_additional_amounts == o.amex_additional_amounts &&
427
- tax_details == o.tax_details
475
+ tax_details == o.tax_details &&
476
+ service_fee_amount == o.service_fee_amount &&
477
+ original_currency == o.original_currency
428
478
  end
429
479
 
430
480
  # @see the `==` method
@@ -436,7 +486,7 @@ module CyberSource
436
486
  # Calculates hash code according to all attributes.
437
487
  # @return [Fixnum] Hash code
438
488
  def hash
439
- [total_amount, currency, discount_amount, duty_amount, tax_amount, national_tax_included, tax_applied_after_discount, tax_applied_level, tax_type_code, freight_amount, foreign_amount, foreign_currency, exchange_rate, exchange_rate_time_stamp, amex_additional_amounts, tax_details].hash
489
+ [total_amount, currency, discount_amount, duty_amount, tax_amount, national_tax_included, tax_applied_after_discount, tax_applied_level, tax_type_code, freight_amount, foreign_amount, foreign_currency, exchange_rate, exchange_rate_time_stamp, amex_additional_amounts, tax_details, service_fee_amount, original_currency].hash
440
490
  end
441
491
 
442
492
  # Builds the object from hash
@@ -14,37 +14,36 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsidcapturesOrderInformationBillTo
17
- # Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
17
+ # Customer’s first name. This name must be the same as the name on the card. **CyberSource Latin American Processing**\\ **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. **CyberSource through VisaNet**\\ Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **For Payouts**:\\ This field may be sent only for FDC Compass. ccAuthService\\ (Required when the billing country is the U.S. or Canada; otherwise, optional.) This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See \"Relaxed Requirements for Address Data and Expiration Date,\" page 75. Important It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
18
18
  attr_accessor :first_name
19
19
 
20
- # Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
20
+ # Customer’s last name. This name must be the same as the name on the card. **CyberSource Latin American Processing**\\ **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. **CyberSource through VisaNet**\\ Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. ccAuthService\\ (Required when the billing country is the U.S. or Canada; otherwise, optional.) This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See \"Relaxed Requirements for Address Data and Expiration Date,\" page 75. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. **For Payouts** : This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
21
21
  attr_accessor :last_name
22
22
 
23
- # Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
24
23
  attr_accessor :company
25
24
 
26
- # First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
25
+ # First line of the billing street address as it appears on the credit card issuer’s records. **Atos** This field must not contain colons (:). **CyberSource through VisaNet** **Important** When you populate billing street address 1 and billing street address 2, CyberSource through VisaNet concatenates the two values. If the concatenated value exceeds 40 characters, CyberSource through VisaNet truncates the value at 40 characters before sending it to Visa and the issuing bank. Truncating this value affects AVS results and therefore might also affect risk decisions and chargebacks. Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **For Payouts**: This field may be sent only for FDC Compass. ccAuthService (Required when the billing country is the U.S. or Canada; otherwise, optional.) This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See \"Relaxed Requirements for Address Data and Expiration Date,\" page 75. Important It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
27
26
  attr_accessor :address1
28
27
 
29
- # Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
28
+ # Additional address information. For Payouts: This field may be sent only for FDC Compass. **Atos** This field must not contain colons (:). **Chase Paymentech Solutions, FDC Compass, and TSYS Acquiring Solutions** This value is used for AVS. **CyberSource through VisaNet** **Important** When you populate billing street address 1 and billing street address 2, CyberSource through VisaNet concatenates the two values. If the concatenated value exceeds 40 characters, CyberSource through VisaNet truncates the value at 40 characters before sending it to Visa and the issuing bank. Truncating this value affects AVS results and therefore might also affect risk decisions and chargebacks. Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
30
29
  attr_accessor :address2
31
30
 
32
- # City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
31
+ # City of the billing address. **Atos** This field must not contain colons (:). **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **For Payouts**: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
33
32
  attr_accessor :locality
34
33
 
35
- # State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
34
+ # State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. ccAuthService (Required when the billing country is the U.S. or Canada; otherwise, optional.) This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See \"Relaxed Requirements for Address Data and Expiration Date,\" page 75. Important It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
36
35
  attr_accessor :administrative_area
37
36
 
38
- # Postal code for the billing 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 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
37
+ # Postal code for the billing 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 ccAuthService (Required when the billing country is the U.S. or Canada; otherwise, optional.) This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See \"Relaxed Requirements for Address Data and Expiration Date,\" page 75. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For Payouts: This field may be sent only for FDC Compass. **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. **Atos** This field must not contain colons (:). **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
39
38
  attr_accessor :postal_code
40
39
 
41
- # Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
40
+ # Country of the billing address. Use the two-character ISO Standard Country Codes. **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. ccAuthService (Required when the billing country is the U.S. or Canada; otherwise, optional.) This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See \"Relaxed Requirements for Address Data and Expiration Date,\" page 75. Important It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
42
41
  attr_accessor :country
43
42
 
44
- # Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
43
+ # Customer's email address, including the full domain name. **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. ccAuthService (Required when the billing country is the U.S. or Canada; otherwise, optional.) This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See \"Relaxed Requirements for Address Data and Expiration Date,\" page 75. Important It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
45
44
  attr_accessor :email
46
45
 
47
- # Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
46
+ # Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks.
48
47
  attr_accessor :phone_number
49
48
 
50
49
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -69,7 +68,7 @@ module CyberSource
69
68
  {
70
69
  :'first_name' => :'String',
71
70
  :'last_name' => :'String',
72
- :'company' => :'String',
71
+ :'company' => :'Ptsv2paymentsOrderInformationBillToCompany',
73
72
  :'address1' => :'String',
74
73
  :'address2' => :'String',
75
74
  :'locality' => :'String',
@@ -146,10 +145,6 @@ module CyberSource
146
145
  invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 60.')
147
146
  end
148
147
 
149
- if !@company.nil? && @company.to_s.length > 60
150
- invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 60.')
151
- end
152
-
153
148
  if !@address1.nil? && @address1.to_s.length > 60
154
149
  invalid_properties.push('invalid value for "address1", the character length must be smaller than or equal to 60.')
155
150
  end
@@ -190,7 +185,6 @@ module CyberSource
190
185
  def valid?
191
186
  return false if !@first_name.nil? && @first_name.to_s.length > 60
192
187
  return false if !@last_name.nil? && @last_name.to_s.length > 60
193
- return false if !@company.nil? && @company.to_s.length > 60
194
188
  return false if !@address1.nil? && @address1.to_s.length > 60
195
189
  return false if !@address2.nil? && @address2.to_s.length > 60
196
190
  return false if !@locality.nil? && @locality.to_s.length > 50
@@ -222,16 +216,6 @@ module CyberSource
222
216
  @last_name = last_name
223
217
  end
224
218
 
225
- # Custom attribute writer method with validation
226
- # @param [Object] company Value to be assigned
227
- def company=(company)
228
- if !company.nil? && company.to_s.length > 60
229
- fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 60.'
230
- end
231
-
232
- @company = company
233
- end
234
-
235
219
  # Custom attribute writer method with validation
236
220
  # @param [Object] address1 Value to be assigned
237
221
  def address1=(address1)
@@ -23,7 +23,7 @@ module CyberSource
23
23
  # The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
24
24
  attr_accessor :purchase_contact_name
25
25
 
26
- # Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
26
+ # Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) Possible values: - **true** - **false**
27
27
  attr_accessor :taxable
28
28
 
29
29
  # VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # Country of the shipping address. Use the two character ISO Standard Country Codes.
21
21
  attr_accessor :country
22
22
 
23
- # 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
23
+ # 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.
24
24
  attr_accessor :postal_code
25
25
 
26
26
  # 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 Ptsv2paymentsidcapturesPointOfSaleInformationEmv
17
- # EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram
17
+ # EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. See \"Europay, MasterCard, Visa (EMV),\" page 10. For information about the individual tags, see the “Application Specification” section in the EMV 4.3 Specifications: http://emvco.com **Important** The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, and six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. **Important** For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram
18
18
  attr_accessor :tags
19
19
 
20
- # Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**.
20
+ # Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pointOfSaleInformation.entryMode field to indicate whether the information was swiped or keyed. Possible values: - **true** - **false** (default) This field is supported only on **Chase Paymentech Solutions** and **GPN**.
21
21
  attr_accessor :fallback
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsidcapturesProcessingInformation
17
- # Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay.
17
+ # Type of digital payment solution for the transaction. Possible Values: - **visacheckout**: Visa Checkout. This value is required for Visa Checkout transactions. See Visa Checkout Using the SCMP API. - **005**: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. See \"Masterpass,\" page 153.
18
18
  attr_accessor :payment_solution
19
19
 
20
20
  # Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22).
21
21
  attr_accessor :reconciliation_id
22
22
 
23
- # Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments.
23
+ # Value that links the current authorization request to the original authorization request. Set this value to the ID that was returned in the reply message from the original authorization request. This value is used for: - Partial authorizations: See \"Partial Authorizations,\" page 88. - Split shipments: See \"Split Shipments,\" page 210.
24
24
  attr_accessor :link_id
25
25
 
26
- # Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**.
26
+ # Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Worldpay VAP**. See \"Report Groups,\" page 234.
27
27
  attr_accessor :report_group
28
28
 
29
- # Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field.
29
+ # Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. For more details, see Visa Checkout Using the SCMP API.
30
30
  attr_accessor :visa_checkout_id
31
31
 
32
32
  # Set this field to 3 to indicate that the request includes Level III data.
@@ -62,7 +62,7 @@ module CyberSource
62
62
  :'report_group' => :'String',
63
63
  :'visa_checkout_id' => :'String',
64
64
  :'purchase_level' => :'String',
65
- :'issuer' => :'Ptsv2paymentsProcessingInformationIssuer',
65
+ :'issuer' => :'Ptsv2paymentsIssuerInformation',
66
66
  :'authorization_options' => :'Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions',
67
67
  :'capture_options' => :'Ptsv2paymentsidcapturesProcessingInformationCaptureOptions'
68
68
  }
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions
17
- # Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
17
+ # Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. **Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing**\\ Set this field to _AUTOCAPTURE_ and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to STANDARDCAPTURE and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. For more information, see \"Automatic Captures,\" page 33. **Forced Capture**\\ Set this field to _VERBAL_ and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. For more information, see \"Forced Captures,\" page 123. **Verbal Authorization**\\ Set this field to _VERBAL_ and include it in the capture request to indicate that the request is for a verbal authorization. For more information, see \"Verbal Authorizations,\" page 84. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
18
18
  attr_accessor :auth_type
19
19
 
20
- # Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
20
+ # Authorization code. **Forced Capture**\\ Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization**\\ Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the _auth_code_ field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
21
21
  attr_accessor :verbal_auth_code
22
22
 
23
23
  # Transaction ID (TID).
@@ -16,7 +16,7 @@ module CyberSource
16
16
  class Ptsv2paymentsidrefundsMerchantInformation
17
17
  attr_accessor :merchant_descriptor
18
18
 
19
- # Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
19
+ # Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) See \"Aggregator Support,\" page 100. **CyberSource through VisaNet**\\ The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR4 - Position: 150-153 - Field: Merchant Category Code
20
20
  attr_accessor :category_code
21
21
 
22
22
  # Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
@@ -25,13 +25,17 @@ module CyberSource
25
25
  # Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
26
26
  attr_accessor :card_acceptor_reference_number
27
27
 
28
+ # Your Cadastro Nacional da Pessoa Jurídica (CNPJ) number. This field is supported only for BNDES transactions on CyberSource through VisaNet. See BNDES. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR6 - Position: 40-59 - Field: BNDES Reference Field 1
29
+ attr_accessor :tax_id
30
+
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
31
34
  :'merchant_descriptor' => :'merchantDescriptor',
32
35
  :'category_code' => :'categoryCode',
33
36
  :'vat_registration_number' => :'vatRegistrationNumber',
34
- :'card_acceptor_reference_number' => :'cardAcceptorReferenceNumber'
37
+ :'card_acceptor_reference_number' => :'cardAcceptorReferenceNumber',
38
+ :'tax_id' => :'taxId'
35
39
  }
36
40
  end
37
41
 
@@ -41,7 +45,8 @@ module CyberSource
41
45
  :'merchant_descriptor' => :'Ptsv2paymentsMerchantInformationMerchantDescriptor',
42
46
  :'category_code' => :'Integer',
43
47
  :'vat_registration_number' => :'String',
44
- :'card_acceptor_reference_number' => :'String'
48
+ :'card_acceptor_reference_number' => :'String',
49
+ :'tax_id' => :'String'
45
50
  }
46
51
  end
47
52
 
@@ -68,6 +73,10 @@ module CyberSource
68
73
  if attributes.has_key?(:'cardAcceptorReferenceNumber')
69
74
  self.card_acceptor_reference_number = attributes[:'cardAcceptorReferenceNumber']
70
75
  end
76
+
77
+ if attributes.has_key?(:'taxId')
78
+ self.tax_id = attributes[:'taxId']
79
+ end
71
80
  end
72
81
 
73
82
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -86,6 +95,10 @@ module CyberSource
86
95
  invalid_properties.push('invalid value for "card_acceptor_reference_number", the character length must be smaller than or equal to 25.')
87
96
  end
88
97
 
98
+ if !@tax_id.nil? && @tax_id.to_s.length > 15
99
+ invalid_properties.push('invalid value for "tax_id", the character length must be smaller than or equal to 15.')
100
+ end
101
+
89
102
  invalid_properties
90
103
  end
91
104
 
@@ -95,6 +108,7 @@ module CyberSource
95
108
  return false if !@category_code.nil? && @category_code > 9999
96
109
  return false if !@vat_registration_number.nil? && @vat_registration_number.to_s.length > 21
97
110
  return false if !@card_acceptor_reference_number.nil? && @card_acceptor_reference_number.to_s.length > 25
111
+ return false if !@tax_id.nil? && @tax_id.to_s.length > 15
98
112
  true
99
113
  end
100
114
 
@@ -128,6 +142,16 @@ module CyberSource
128
142
  @card_acceptor_reference_number = card_acceptor_reference_number
129
143
  end
130
144
 
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] tax_id Value to be assigned
147
+ def tax_id=(tax_id)
148
+ if !tax_id.nil? && tax_id.to_s.length > 15
149
+ fail ArgumentError, 'invalid value for "tax_id", the character length must be smaller than or equal to 15.'
150
+ end
151
+
152
+ @tax_id = tax_id
153
+ end
154
+
131
155
  # Checks equality by comparing each attribute.
132
156
  # @param [Object] Object to be compared
133
157
  def ==(o)
@@ -136,7 +160,8 @@ module CyberSource
136
160
  merchant_descriptor == o.merchant_descriptor &&
137
161
  category_code == o.category_code &&
138
162
  vat_registration_number == o.vat_registration_number &&
139
- card_acceptor_reference_number == o.card_acceptor_reference_number
163
+ card_acceptor_reference_number == o.card_acceptor_reference_number &&
164
+ tax_id == o.tax_id
140
165
  end
141
166
 
142
167
  # @see the `==` method
@@ -148,7 +173,7 @@ module CyberSource
148
173
  # Calculates hash code according to all attributes.
149
174
  # @return [Fixnum] Hash code
150
175
  def hash
151
- [merchant_descriptor, category_code, vat_registration_number, card_acceptor_reference_number].hash
176
+ [merchant_descriptor, category_code, vat_registration_number, card_acceptor_reference_number, tax_id].hash
152
177
  end
153
178
 
154
179
  # Builds the object from hash