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
@@ -32,7 +32,7 @@ module CyberSource
32
32
  # 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)
33
33
  attr_accessor :purchase_contact_name
34
34
 
35
- # 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)
35
+ # 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**
36
36
  attr_accessor :taxable
37
37
 
38
38
  # 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)
@@ -46,6 +46,12 @@ module CyberSource
46
46
 
47
47
  attr_accessor :transaction_advice_addendum
48
48
 
49
+ # Code that identifies the value of the reference_data_number field. For the possible values, see Reference Data Codes. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor.
50
+ attr_accessor :reference_data_code
51
+
52
+ # Reference number. The meaning of this value is identified by the value of the referenceDataCode field. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor.
53
+ attr_accessor :reference_data_number
54
+
49
55
  # Attribute mapping from ruby-style variable name to JSON key.
50
56
  def self.attribute_map
51
57
  {
@@ -59,7 +65,9 @@ module CyberSource
59
65
  :'vat_invoice_reference_number' => :'vatInvoiceReferenceNumber',
60
66
  :'commodity_code' => :'commodityCode',
61
67
  :'merchandise_code' => :'merchandiseCode',
62
- :'transaction_advice_addendum' => :'transactionAdviceAddendum'
68
+ :'transaction_advice_addendum' => :'transactionAdviceAddendum',
69
+ :'reference_data_code' => :'referenceDataCode',
70
+ :'reference_data_number' => :'referenceDataNumber'
63
71
  }
64
72
  end
65
73
 
@@ -76,7 +84,9 @@ module CyberSource
76
84
  :'vat_invoice_reference_number' => :'String',
77
85
  :'commodity_code' => :'String',
78
86
  :'merchandise_code' => :'Float',
79
- :'transaction_advice_addendum' => :'Array<Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum>'
87
+ :'transaction_advice_addendum' => :'Array<Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum>',
88
+ :'reference_data_code' => :'String',
89
+ :'reference_data_number' => :'String'
80
90
  }
81
91
  end
82
92
 
@@ -133,6 +143,14 @@ module CyberSource
133
143
  self.transaction_advice_addendum = value
134
144
  end
135
145
  end
146
+
147
+ if attributes.has_key?(:'referenceDataCode')
148
+ self.reference_data_code = attributes[:'referenceDataCode']
149
+ end
150
+
151
+ if attributes.has_key?(:'referenceDataNumber')
152
+ self.reference_data_number = attributes[:'referenceDataNumber']
153
+ end
136
154
  end
137
155
 
138
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -159,6 +177,14 @@ module CyberSource
159
177
  invalid_properties.push('invalid value for "commodity_code", the character length must be smaller than or equal to 4.')
160
178
  end
161
179
 
180
+ if !@reference_data_code.nil? && @reference_data_code.to_s.length > 3
181
+ invalid_properties.push('invalid value for "reference_data_code", the character length must be smaller than or equal to 3.')
182
+ end
183
+
184
+ if !@reference_data_number.nil? && @reference_data_number.to_s.length > 30
185
+ invalid_properties.push('invalid value for "reference_data_number", the character length must be smaller than or equal to 30.')
186
+ end
187
+
162
188
  invalid_properties
163
189
  end
164
190
 
@@ -170,6 +196,8 @@ module CyberSource
170
196
  return false if !@purchase_contact_name.nil? && @purchase_contact_name.to_s.length > 36
171
197
  return false if !@vat_invoice_reference_number.nil? && @vat_invoice_reference_number.to_s.length > 15
172
198
  return false if !@commodity_code.nil? && @commodity_code.to_s.length > 4
199
+ return false if !@reference_data_code.nil? && @reference_data_code.to_s.length > 3
200
+ return false if !@reference_data_number.nil? && @reference_data_number.to_s.length > 30
173
201
  true
174
202
  end
175
203
 
@@ -223,6 +251,26 @@ module CyberSource
223
251
  @commodity_code = commodity_code
224
252
  end
225
253
 
254
+ # Custom attribute writer method with validation
255
+ # @param [Object] reference_data_code Value to be assigned
256
+ def reference_data_code=(reference_data_code)
257
+ if !reference_data_code.nil? && reference_data_code.to_s.length > 3
258
+ fail ArgumentError, 'invalid value for "reference_data_code", the character length must be smaller than or equal to 3.'
259
+ end
260
+
261
+ @reference_data_code = reference_data_code
262
+ end
263
+
264
+ # Custom attribute writer method with validation
265
+ # @param [Object] reference_data_number Value to be assigned
266
+ def reference_data_number=(reference_data_number)
267
+ if !reference_data_number.nil? && reference_data_number.to_s.length > 30
268
+ fail ArgumentError, 'invalid value for "reference_data_number", the character length must be smaller than or equal to 30.'
269
+ end
270
+
271
+ @reference_data_number = reference_data_number
272
+ end
273
+
226
274
  # Checks equality by comparing each attribute.
227
275
  # @param [Object] Object to be compared
228
276
  def ==(o)
@@ -238,7 +286,9 @@ module CyberSource
238
286
  vat_invoice_reference_number == o.vat_invoice_reference_number &&
239
287
  commodity_code == o.commodity_code &&
240
288
  merchandise_code == o.merchandise_code &&
241
- transaction_advice_addendum == o.transaction_advice_addendum
289
+ transaction_advice_addendum == o.transaction_advice_addendum &&
290
+ reference_data_code == o.reference_data_code &&
291
+ reference_data_number == o.reference_data_number
242
292
  end
243
293
 
244
294
  # @see the `==` method
@@ -250,7 +300,7 @@ module CyberSource
250
300
  # Calculates hash code according to all attributes.
251
301
  # @return [Fixnum] Hash code
252
302
  def hash
253
- [invoice_number, barcode_number, expiration_date, purchase_order_number, purchase_order_date, purchase_contact_name, taxable, vat_invoice_reference_number, commodity_code, merchandise_code, transaction_advice_addendum].hash
303
+ [invoice_number, barcode_number, expiration_date, purchase_order_number, purchase_order_date, purchase_contact_name, taxable, vat_invoice_reference_number, commodity_code, merchandise_code, transaction_advice_addendum, reference_data_code, reference_data_number].hash
254
304
  end
255
305
 
256
306
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsOrderInformationLineItems
17
- # Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required.
17
+ # Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than default or any of the values related to shipping and handling, then the fields `quantity`, `productName`, and `productSku` are required. See Appendix O, \"Product Codes,\" on page 373 for a list of valid values.
18
18
  attr_accessor :product_code
19
19
 
20
- # For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling.
20
+ # For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false` respectively), this field is required when _orderInformation.lineItems[].productCode_ is not set to **default** or one of the other values that are related to shipping and/or handling.
21
21
  attr_accessor :product_name
22
22
 
23
- # Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling.
23
+ # Identification code for the product. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when _orderInformation.lineItems[].productCode_ is not set to **default** or one of the other values that are related to shipping and/or handling.
24
24
  attr_accessor :product_sku
25
25
 
26
- # For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling.
26
+ # For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when _orderInformation.lineItems[].productCode_ is not set to **default** or one of the other values that are related to shipping and/or handling.
27
27
  attr_accessor :quantity
28
28
 
29
- # Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
29
+ # Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. This information is covered in: - Table 12, \"Authorization Information for Specific Processors,\" on page 36 - Table 16, \"Capture Information for Specific Processors,\" on page 51 - Table 20, \"Credit Information for Specific Processors,\" on page 65 **DCC for First Data**\\ This value is the original amount in your local currency. You must include this field. You cannot use grand_total_amount. See \"Dynamic Currency Conversion for First Data,\" page 113. **FDMS South**\\ If you accept IDR or CLP currencies, see the entry for FDMS South in Table 12, \"Authorization Information for Specific Processors,\" on page 36. **Zero Amount Authorizations**\\ 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 220.
30
30
  attr_accessor :unit_price
31
31
 
32
32
  # Unit of measure, or unit of measure code, for the item.
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # Total amount for the item. Normally calculated as the unit price x quantity.
36
36
  attr_accessor :total_amount
37
37
 
38
- # Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions.
38
+ # Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. If you want to include the tax amount and also request the ics_tax service, see Tax Calculation Service Using the SCMP API. This field is frequently used for Level II and Level III transactions. See Level II and Level III Processing Using the SCMP API.
39
39
  attr_accessor :tax_amount
40
40
 
41
41
  # Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%).
@@ -47,10 +47,10 @@ module CyberSource
47
47
  # Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax
48
48
  attr_accessor :tax_status_indicator
49
49
 
50
- # Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item.
50
+ # Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax (VAT) - 0011: goods and services tax (GST) - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - 0023: city tax - 0024: county or parish sales tax - 0025: county tax - 0026: environment tax - 0027: state and local sales tax (combined) - Blank: Tax not supported on line item.
51
51
  attr_accessor :tax_type_code
52
52
 
53
- # Flag that indicates whether the tax amount is included in the Line Item Total.
53
+ # Flag that indicates whether the tax amount is included in the Line Item Total. Possible values: - **true** - **false**
54
54
  attr_accessor :amount_includes_tax
55
55
 
56
56
  # Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services
@@ -62,7 +62,7 @@ module CyberSource
62
62
  # Discount applied to the item.
63
63
  attr_accessor :discount_amount
64
64
 
65
- # Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**.
65
+ # Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. Possible values: - **true** - **false**
66
66
  attr_accessor :discount_applied
67
67
 
68
68
  # Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%)
@@ -73,9 +73,24 @@ module CyberSource
73
73
 
74
74
  attr_accessor :tax_details
75
75
 
76
- # TODO
76
+ # The description for this field is not available.
77
77
  attr_accessor :fulfillment_type
78
78
 
79
+ # Weight of the item. See Numbered Elements.
80
+ attr_accessor :weight
81
+
82
+ # Type of weight. See Numbered Elements. Possible values: - B: Billed weight - N: Actual net weight
83
+ attr_accessor :weight_identifier
84
+
85
+ # Code that specifies the unit of measurement for the weight amount. For example, OZ specifies ounce and LB specifies pound. The possible values are defined by the ANSI Accredited Standards Committee (ASC). See Numbered Elements.
86
+ attr_accessor :weight_unit
87
+
88
+ # Code that identifies the value of the corresponding item_#_referenceData_#_number field. See Numbered Elements. Possible values: - AN: Client-defined asset code - MG: Manufacturer's part number - PO: Purchase order number - SK: Supplier stock keeping unit number - UP: Universal product code - VC: Supplier catalog number - VP: Vendor part number This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor.
89
+ attr_accessor :reference_data_code
90
+
91
+ # Reference number. The meaning of this value is identified by the value of the corresponding `referenceDataCode` field. See Numbered Elements. The maximum length for this field depends on the value of the corresponding `referenceDataCode` field: - When the code is `PO`, the maximum length for the reference number is 22. - When the code is `VC`, the maximum length for the reference number is 20. - For all other codes, the maximum length for the reference number is 30. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor.
92
+ attr_accessor :reference_data_number
93
+
79
94
  # Attribute mapping from ruby-style variable name to JSON key.
80
95
  def self.attribute_map
81
96
  {
@@ -99,7 +114,12 @@ module CyberSource
99
114
  :'discount_rate' => :'discountRate',
100
115
  :'invoice_number' => :'invoiceNumber',
101
116
  :'tax_details' => :'taxDetails',
102
- :'fulfillment_type' => :'fulfillmentType'
117
+ :'fulfillment_type' => :'fulfillmentType',
118
+ :'weight' => :'weight',
119
+ :'weight_identifier' => :'weightIdentifier',
120
+ :'weight_unit' => :'weightUnit',
121
+ :'reference_data_code' => :'referenceDataCode',
122
+ :'reference_data_number' => :'referenceDataNumber'
103
123
  }
104
124
  end
105
125
 
@@ -126,7 +146,12 @@ module CyberSource
126
146
  :'discount_rate' => :'String',
127
147
  :'invoice_number' => :'String',
128
148
  :'tax_details' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsTaxDetails>',
129
- :'fulfillment_type' => :'String'
149
+ :'fulfillment_type' => :'String',
150
+ :'weight' => :'String',
151
+ :'weight_identifier' => :'String',
152
+ :'weight_unit' => :'String',
153
+ :'reference_data_code' => :'String',
154
+ :'reference_data_number' => :'String'
130
155
  }
131
156
  end
132
157
 
@@ -223,6 +248,26 @@ module CyberSource
223
248
  if attributes.has_key?(:'fulfillmentType')
224
249
  self.fulfillment_type = attributes[:'fulfillmentType']
225
250
  end
251
+
252
+ if attributes.has_key?(:'weight')
253
+ self.weight = attributes[:'weight']
254
+ end
255
+
256
+ if attributes.has_key?(:'weightIdentifier')
257
+ self.weight_identifier = attributes[:'weightIdentifier']
258
+ end
259
+
260
+ if attributes.has_key?(:'weightUnit')
261
+ self.weight_unit = attributes[:'weightUnit']
262
+ end
263
+
264
+ if attributes.has_key?(:'referenceDataCode')
265
+ self.reference_data_code = attributes[:'referenceDataCode']
266
+ end
267
+
268
+ if attributes.has_key?(:'referenceDataNumber')
269
+ self.reference_data_number = attributes[:'referenceDataNumber']
270
+ end
226
271
  end
227
272
 
228
273
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -301,6 +346,26 @@ module CyberSource
301
346
  invalid_properties.push('invalid value for "invoice_number", the character length must be smaller than or equal to 23.')
302
347
  end
303
348
 
349
+ if !@weight.nil? && @weight.to_s.length > 9
350
+ invalid_properties.push('invalid value for "weight", the character length must be smaller than or equal to 9.')
351
+ end
352
+
353
+ if !@weight_identifier.nil? && @weight_identifier.to_s.length > 1
354
+ invalid_properties.push('invalid value for "weight_identifier", the character length must be smaller than or equal to 1.')
355
+ end
356
+
357
+ if !@weight_unit.nil? && @weight_unit.to_s.length > 2
358
+ invalid_properties.push('invalid value for "weight_unit", the character length must be smaller than or equal to 2.')
359
+ end
360
+
361
+ if !@reference_data_code.nil? && @reference_data_code.to_s.length > 2
362
+ invalid_properties.push('invalid value for "reference_data_code", the character length must be smaller than or equal to 2.')
363
+ end
364
+
365
+ if !@reference_data_number.nil? && @reference_data_number.to_s.length > 30
366
+ invalid_properties.push('invalid value for "reference_data_number", the character length must be smaller than or equal to 30.')
367
+ end
368
+
304
369
  invalid_properties
305
370
  end
306
371
 
@@ -325,6 +390,11 @@ module CyberSource
325
390
  return false if !@discount_amount.nil? && @discount_amount.to_s.length > 13
326
391
  return false if !@discount_rate.nil? && @discount_rate.to_s.length > 6
327
392
  return false if !@invoice_number.nil? && @invoice_number.to_s.length > 23
393
+ return false if !@weight.nil? && @weight.to_s.length > 9
394
+ return false if !@weight_identifier.nil? && @weight_identifier.to_s.length > 1
395
+ return false if !@weight_unit.nil? && @weight_unit.to_s.length > 2
396
+ return false if !@reference_data_code.nil? && @reference_data_code.to_s.length > 2
397
+ return false if !@reference_data_number.nil? && @reference_data_number.to_s.length > 30
328
398
  true
329
399
  end
330
400
 
@@ -502,6 +572,56 @@ module CyberSource
502
572
  @invoice_number = invoice_number
503
573
  end
504
574
 
575
+ # Custom attribute writer method with validation
576
+ # @param [Object] weight Value to be assigned
577
+ def weight=(weight)
578
+ if !weight.nil? && weight.to_s.length > 9
579
+ fail ArgumentError, 'invalid value for "weight", the character length must be smaller than or equal to 9.'
580
+ end
581
+
582
+ @weight = weight
583
+ end
584
+
585
+ # Custom attribute writer method with validation
586
+ # @param [Object] weight_identifier Value to be assigned
587
+ def weight_identifier=(weight_identifier)
588
+ if !weight_identifier.nil? && weight_identifier.to_s.length > 1
589
+ fail ArgumentError, 'invalid value for "weight_identifier", the character length must be smaller than or equal to 1.'
590
+ end
591
+
592
+ @weight_identifier = weight_identifier
593
+ end
594
+
595
+ # Custom attribute writer method with validation
596
+ # @param [Object] weight_unit Value to be assigned
597
+ def weight_unit=(weight_unit)
598
+ if !weight_unit.nil? && weight_unit.to_s.length > 2
599
+ fail ArgumentError, 'invalid value for "weight_unit", the character length must be smaller than or equal to 2.'
600
+ end
601
+
602
+ @weight_unit = weight_unit
603
+ end
604
+
605
+ # Custom attribute writer method with validation
606
+ # @param [Object] reference_data_code Value to be assigned
607
+ def reference_data_code=(reference_data_code)
608
+ if !reference_data_code.nil? && reference_data_code.to_s.length > 2
609
+ fail ArgumentError, 'invalid value for "reference_data_code", the character length must be smaller than or equal to 2.'
610
+ end
611
+
612
+ @reference_data_code = reference_data_code
613
+ end
614
+
615
+ # Custom attribute writer method with validation
616
+ # @param [Object] reference_data_number Value to be assigned
617
+ def reference_data_number=(reference_data_number)
618
+ if !reference_data_number.nil? && reference_data_number.to_s.length > 30
619
+ fail ArgumentError, 'invalid value for "reference_data_number", the character length must be smaller than or equal to 30.'
620
+ end
621
+
622
+ @reference_data_number = reference_data_number
623
+ end
624
+
505
625
  # Checks equality by comparing each attribute.
506
626
  # @param [Object] Object to be compared
507
627
  def ==(o)
@@ -527,7 +647,12 @@ module CyberSource
527
647
  discount_rate == o.discount_rate &&
528
648
  invoice_number == o.invoice_number &&
529
649
  tax_details == o.tax_details &&
530
- fulfillment_type == o.fulfillment_type
650
+ fulfillment_type == o.fulfillment_type &&
651
+ weight == o.weight &&
652
+ weight_identifier == o.weight_identifier &&
653
+ weight_unit == o.weight_unit &&
654
+ reference_data_code == o.reference_data_code &&
655
+ reference_data_number == o.reference_data_number
531
656
  end
532
657
 
533
658
  # @see the `==` method
@@ -539,7 +664,7 @@ module CyberSource
539
664
  # Calculates hash code according to all attributes.
540
665
  # @return [Fixnum] Hash code
541
666
  def hash
542
- [product_code, product_name, product_sku, quantity, unit_price, unit_of_measure, total_amount, tax_amount, tax_rate, tax_applied_after_discount, tax_status_indicator, tax_type_code, amount_includes_tax, type_of_supply, commodity_code, discount_amount, discount_applied, discount_rate, invoice_number, tax_details, fulfillment_type].hash
667
+ [product_code, product_name, product_sku, quantity, unit_price, unit_of_measure, total_amount, tax_amount, tax_rate, tax_applied_after_discount, tax_status_indicator, tax_type_code, amount_includes_tax, type_of_supply, commodity_code, discount_amount, discount_applied, discount_rate, invoice_number, tax_details, fulfillment_type, weight, weight_identifier, weight_unit, reference_data_code, reference_data_number].hash
543
668
  end
544
669
 
545
670
  # Builds the object from hash
@@ -17,7 +17,7 @@ module CyberSource
17
17
  # First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60
18
18
  attr_accessor :first_name
19
19
 
20
- # Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60
20
+ # Last name of the recipient. **Processor-specific maximum length** - Litle: 25 - All other processors: 60
21
21
  attr_accessor :last_name
22
22
 
23
23
  # First line of the shipping address.
@@ -32,7 +32,7 @@ module CyberSource
32
32
  # State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada.
33
33
  attr_accessor :administrative_area
34
34
 
35
- # 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
35
+ # 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.
36
36
  attr_accessor :postal_code
37
37
 
38
38
  # Country of the shipping address. Use the two character ISO Standard Country Codes.
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsOrderInformationShippingDetails
17
- # Description of this field is not available.
17
+ # The description for this field is not available.
18
18
  attr_accessor :gift_wrap
19
19
 
20
- # Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription
20
+ # Shipping method for the product. Possible values: - `lowcost`: Lowest-cost service - `sameday`: Courier or same-day service - `oneday`: Next-day or overnight service - `twoday`: Two-day service - `threeday`: Three-day service - `pickup`: Store pick-up - `other`: Other shipping method - `none`: No shipping method because product is a service or subscription
21
21
  attr_accessor :shipping_method
22
22
 
23
23
  # Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. 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 This field is frequently used for Level II and Level III transactions.
@@ -22,13 +22,16 @@ module CyberSource
22
22
 
23
23
  attr_accessor :customer
24
24
 
25
+ attr_accessor :bank
26
+
25
27
  # Attribute mapping from ruby-style variable name to JSON key.
26
28
  def self.attribute_map
27
29
  {
28
30
  :'card' => :'card',
29
31
  :'tokenized_card' => :'tokenizedCard',
30
32
  :'fluid_data' => :'fluidData',
31
- :'customer' => :'customer'
33
+ :'customer' => :'customer',
34
+ :'bank' => :'bank'
32
35
  }
33
36
  end
34
37
 
@@ -38,7 +41,8 @@ module CyberSource
38
41
  :'card' => :'Ptsv2paymentsPaymentInformationCard',
39
42
  :'tokenized_card' => :'Ptsv2paymentsPaymentInformationTokenizedCard',
40
43
  :'fluid_data' => :'Ptsv2paymentsPaymentInformationFluidData',
41
- :'customer' => :'Ptsv2paymentsPaymentInformationCustomer'
44
+ :'customer' => :'Ptsv2paymentsPaymentInformationCustomer',
45
+ :'bank' => :'Ptsv2paymentsPaymentInformationBank'
42
46
  }
43
47
  end
44
48
 
@@ -65,6 +69,10 @@ module CyberSource
65
69
  if attributes.has_key?(:'customer')
66
70
  self.customer = attributes[:'customer']
67
71
  end
72
+
73
+ if attributes.has_key?(:'bank')
74
+ self.bank = attributes[:'bank']
75
+ end
68
76
  end
69
77
 
70
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +96,8 @@ module CyberSource
88
96
  card == o.card &&
89
97
  tokenized_card == o.tokenized_card &&
90
98
  fluid_data == o.fluid_data &&
91
- customer == o.customer
99
+ customer == o.customer &&
100
+ bank == o.bank
92
101
  end
93
102
 
94
103
  # @see the `==` method
@@ -100,7 +109,7 @@ module CyberSource
100
109
  # Calculates hash code according to all attributes.
101
110
  # @return [Fixnum] Hash code
102
111
  def hash
103
- [card, tokenized_card, fluid_data, customer].hash
112
+ [card, tokenized_card, fluid_data, customer, bank].hash
104
113
  end
105
114
 
106
115
  # Builds the object from hash