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
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5
21
21
  attr_accessor :total_capture_count
22
22
 
23
- # Date on which you want the capture to occur. This field is supported only for **CyberSource through VisaNet**. `Format: MMDD`
23
+ # Date on which you want the capture to occur. This field is supported only for CyberSource through VisaNet.\\ `Format: MMDD`
24
24
  attr_accessor :date_to_capture
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 Ptsv2paymentsProcessingInformationRecurringOptions
17
- # Flag that indicates whether this is a payment towards an existing contractual loan.
17
+ # Flag that indicates whether this is a payment towards an existing contractual loan. Possible values: - **true** Loan payment - **false** (default) Not a loan payment See \"Visa Debt Repayments,\" page 218, for a list of processors that support this feature.
18
18
  attr_accessor :loan_payment
19
19
 
20
- # Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**.
20
+ # Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**. Possible values: - **true** Indicates this is the first payment in a series of recurring payments - **false** (default) Indicates this is not the first payment in a series of recurring payments. For more details, see \"Recurring Payments,\" page 198.
21
21
  attr_accessor :first_recurring_payment
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,13 +14,13 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsRecipientInformation
17
- # Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account 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. If the field is not required for the transaction, CyberSource does not forward it to the processor.
17
+ # Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account 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. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see \"Recipients,\" page 224.
18
18
  attr_accessor :account_id
19
19
 
20
- # Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor.
20
+ # Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see \"Recipients,\" page 224.
21
21
  attr_accessor :last_name
22
22
 
23
- # Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. 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. If the field is not required for the transaction, CyberSource does not forward it to the processor.
23
+ # Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. 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. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see \"Recipients,\" page 224.
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 Ptsv2paymentsidcapturesAggregatorInformation
17
- # Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
17
+ # Value that identifies you as a payment aggregator. Get this value from the processor. **CyberSource through VisaNet**\\ The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR6 - Position: 95-105 - Field: MasterCard Payment Facilitator ID **FDC Compass**\\ This value must consist of uppercase characters. ccAuthService\\ **American Express Direct**: R for all aggregator transactions.\\ **CyberSource through VisaNet**: R for Mastercard aggregator transactions and for American Express aggregator authorizations; otherwise, not used.\\ **FDC Compass**: R for all aggregator transactions.\\ **FDC Nashville Global**: R for all aggregator transactions. For processor-specific information, see the aggregator_id 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 :aggregator_id
19
19
 
20
- # Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
20
+ # Your payment aggregator business name. **American Express Direct**\\ The maximum length of the aggregator name depends on the length of the sub-merchant name. The combined length for both values must not exceed 36 characters.\\ **CyberSource through VisaNet**\\ With American Express, the maximum length of the aggregator name depends on the length of the sub-merchant name. The combined length for both values must not exceed 36 characters. The value for this field does not map to the TC 33 capture file5. **FDC Compass**\\ This value must consist of uppercase characters. For processor-specific information, see the aggregator_name 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 :name
22
22
 
23
23
  attr_accessor :sub_merchant
@@ -14,28 +14,28 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsidcapturesAggregatorInformationSubMerchant
17
- # Sub-merchant’s business name.
17
+ # Sub-merchant’s business name. **American Express Direct**\\ The maximum length of the sub-merchant name depends on the length of the aggregator name. The combined length for both values must not exceed 36 characters. **CyberSource through VisaNet**\\ With American Express, the maximum length of the sub-merchant name depends on the length of the aggregator name. The combined length for both values must not exceed 36 characters. The value for this field does not map to the TC 33 capture file5. **FDC Compass**\\ This value must consist of uppercase characters. **FDC Nashville Global**\\ With Mastercard, the maximum length of the sub-merchant name depends on the length of the aggregator name: - If aggregator name length is 1 through 3, maximum sub-merchant name length is 21. - If aggregator name length is 4 through 7, maximum sub-merchant name length is 17. - If aggregator name length is 8 through 12, maximum sub-merchant name length is 12.
18
18
  attr_accessor :name
19
19
 
20
- # First line of the sub-merchant’s street address.
20
+ # First line of the sub-merchant’s street address. See \"Aggregator Support,\" page 100. **CyberSource through VisaNet**\\ The value for this field does not map to the TC 33 capture file5. **FDC Compass**\\ This value must consist of uppercase characters.
21
21
  attr_accessor :address1
22
22
 
23
- # Sub-merchant’s city.
23
+ # Sub-merchant’s city. **CyberSource through VisaNet**\\ The value for this field does not map to the TC 33 capture file. **FDC Compass**\\ This value must consist of uppercase characters. For details, see \"Aggregator Support,\" page 100.
24
24
  attr_accessor :locality
25
25
 
26
- # Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada.
26
+ # Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. See \"Aggregator Support,\" page 100. **CyberSource through VisaNet**\\ The value for this field does not map to the TC 33 capture file5. **FDC Compass**\\ This value must consist of uppercase characters.
27
27
  attr_accessor :administrative_area
28
28
 
29
- # Partial postal code for the sub-merchant’s address.
29
+ # Partial postal code for the sub-merchant’s address. See \"Aggregator Support,\" page 100 for details. **CyberSource through VisaNet**\\ The value for this field does not map to the TC 33 capture file5. **FDC Compass**\\ This value must consist of uppercase characters.
30
30
  attr_accessor :postal_code
31
31
 
32
- # Sub-merchant’s country. Use the two-character ISO Standard Country Codes.
32
+ # Sub-merchant’s country. Use the two-character ISO Standard Country Codes. **CyberSource through VisaNet**\\ The value for this field does not map to the TC 33 capture file. **FDC Compass**\\ This value must consist of uppercase characters. See \"Aggregator Support,\" page 101.
33
33
  attr_accessor :country
34
34
 
35
- # Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19
35
+ # Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 **CyberSource through VisaNet**\\ With American Express, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCRB - Position: 25-64 - Field: American Express Seller E-mail Address **Note** The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant’s acquirer, who uses this information to facilitate end-of-day clearing processing with payment card companies.
36
36
  attr_accessor :email
37
37
 
38
- # Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10
38
+ # Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 **CyberSource through VisaNet**\\ With American Express, the value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCRB - Position: 5-24 - Field: American Express Seller Telephone Number **FDC Compass**\\ This value must consist of uppercase characters. Use one of these recommended formats:\\ `NNN-NNN-NNNN`\\ `NNN-AAAAAAA`
39
39
  attr_accessor :phone_number
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class Ptsv2paymentsidcapturesBuyerInformation
17
- # Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
17
+ # Your identifier for the customer. When a subscription or customer profile is being created, the maximum length for this field for most processors is 30. Otherwise, the maximum length is 100. **Comercio Latino**\\ For recurring payments in Mexico, the value is the customer’s contract number. Note Before you request the authorization, you must inform the issuer of the customer contract numbers that will be used for recurring transactions. **Litle**\\ For a follow-on credit with Litle, CyberSource checks the following locations, in the order given, for a customer account ID value and uses the first value it finds: 1. `customer_account_id` value in the follow-on credit request 2. Customer account ID value that was used for the capture that is being credited 3. Customer account ID value that was used for the original authorization If a customer account ID value cannot be found in any of these locations, then no value is used. For processor-specific information, see the customer_account_id 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 :merchant_customer_id
19
19
 
20
20
  # Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_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)
@@ -0,0 +1,579 @@
1
+ =begin
2
+ #CyberSource Flex API
3
+
4
+ #Simple PAN tokenization service
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class Ptsv2paymentsidcapturesInstallmentInformation
17
+ # Date of the first installment payment. Format: YYMMDD. When you do not include this field, CyberSource sends a string of six zeros (000000) to the processor. See Installment Payments on CyberSource through VisaNet. This field is supported only for Crediario installment payments in Brazil on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR9 - Position: 42-47 - Field: Date of First Installment
18
+ attr_accessor :first_installment_date
19
+
20
+ # Invoice information that you want to provide to the issuer. This value is similar to a tracking number and is the same for all installment payments for one purchase. This field is supported only for installment payments with Mastercard on CyberSource through VisaNet in Brazil. See Installment Payments on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR4 - Position: 51-70 - Field: Purchase Identification
21
+ attr_accessor :invoice_data
22
+
23
+ # Payment plan for the installments. Possible values: - 0 (default): Regular installment. This value is not allowed for airline transactions. - 1: Installment payment with down payment. - 2: Installment payment without down payment. This value is supported only for airline transactions. - 3: Installment payment; down payment and boarding fee will follow. This value is supported only for airline transactions. - 4: Down payment only; regular installment payment will follow. - 5: Boarding fee only. This value is supported only for airline transactions. This field is supported only for installment payments with Visa on CyberSource through VisaNet in Brazil. See Installment Payments on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR1 - Position: 9 - Field: Merchant Installment Supporting Information
24
+ attr_accessor :payment_type
25
+
26
+ # Additional costs charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 128-139 - Field: Total Other Costs
27
+ attr_accessor :additional_costs
28
+
29
+ # Additional costs divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 140-143 - Field: Percent of Total Other Costs
30
+ attr_accessor :additional_costs_percentage
31
+
32
+ # Amount funded. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 48-59 - Field: Total Amount Funded
33
+ attr_accessor :amount_funded
34
+
35
+ # Amount requested divided by the amount funded. For example: - A value of 90.0 specifies 90%. - A value of 93.7 specifies 93.7%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 60-63 - Field: Percent of Amount Requested
36
+ attr_accessor :amount_requested_percentage
37
+
38
+ # Annual cost of financing the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 158-164 - Field: Annual Total Cost of Financing
39
+ attr_accessor :annual_financing_cost
40
+
41
+ # Annual interest rate. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 151-157 - Field: Annual Interest Rate
42
+ attr_accessor :annual_interest_rate
43
+
44
+ # Expenses charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 64-75 - Field: Total Expenses
45
+ attr_accessor :expenses
46
+
47
+ # Expenses divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 76-79 - Field: Percent of Total Expenses
48
+ attr_accessor :expenses_percentage
49
+
50
+ # Fees charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 80-91 - Field: Total Fees
51
+ attr_accessor :fees
52
+
53
+ # Fees divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for Crediario installment payments in Brazil on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 92-95 - Field: Percent of Total Fees
54
+ attr_accessor :fees_percentage
55
+
56
+ # Insurance charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 112-123 - Field: Total Insurance
57
+ attr_accessor :insurance
58
+
59
+ # Insurance costs divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 124-127 - Field: Percent Of Total Insurance
60
+ attr_accessor :insurance_percentage
61
+
62
+ # Monthly interest rate. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 144-150 - Field: Monthly Interest Rate
63
+ attr_accessor :monthly_interest_rate
64
+
65
+ # Taxes collected by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 96-107 - Field: Total Taxes
66
+ attr_accessor :taxes
67
+
68
+ # Taxes divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 108-111 - Field: Percent of Total Taxes
69
+ attr_accessor :taxes_percentage
70
+
71
+ # Attribute mapping from ruby-style variable name to JSON key.
72
+ def self.attribute_map
73
+ {
74
+ :'first_installment_date' => :'firstInstallmentDate',
75
+ :'invoice_data' => :'invoiceData',
76
+ :'payment_type' => :'paymentType',
77
+ :'additional_costs' => :'additionalCosts',
78
+ :'additional_costs_percentage' => :'additionalCostsPercentage',
79
+ :'amount_funded' => :'amountFunded',
80
+ :'amount_requested_percentage' => :'amountRequestedPercentage',
81
+ :'annual_financing_cost' => :'annualFinancingCost',
82
+ :'annual_interest_rate' => :'annualInterestRate',
83
+ :'expenses' => :'expenses',
84
+ :'expenses_percentage' => :'expensesPercentage',
85
+ :'fees' => :'fees',
86
+ :'fees_percentage' => :'feesPercentage',
87
+ :'insurance' => :'insurance',
88
+ :'insurance_percentage' => :'insurancePercentage',
89
+ :'monthly_interest_rate' => :'monthlyInterestRate',
90
+ :'taxes' => :'taxes',
91
+ :'taxes_percentage' => :'taxesPercentage'
92
+ }
93
+ end
94
+
95
+ # Attribute type mapping.
96
+ def self.swagger_types
97
+ {
98
+ :'first_installment_date' => :'String',
99
+ :'invoice_data' => :'String',
100
+ :'payment_type' => :'String',
101
+ :'additional_costs' => :'String',
102
+ :'additional_costs_percentage' => :'String',
103
+ :'amount_funded' => :'String',
104
+ :'amount_requested_percentage' => :'String',
105
+ :'annual_financing_cost' => :'String',
106
+ :'annual_interest_rate' => :'String',
107
+ :'expenses' => :'String',
108
+ :'expenses_percentage' => :'String',
109
+ :'fees' => :'String',
110
+ :'fees_percentage' => :'String',
111
+ :'insurance' => :'String',
112
+ :'insurance_percentage' => :'String',
113
+ :'monthly_interest_rate' => :'String',
114
+ :'taxes' => :'String',
115
+ :'taxes_percentage' => :'String'
116
+ }
117
+ end
118
+
119
+ # Initializes the object
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ def initialize(attributes = {})
122
+ return unless attributes.is_a?(Hash)
123
+
124
+ # convert string to symbol for hash key
125
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
126
+
127
+ if attributes.has_key?(:'firstInstallmentDate')
128
+ self.first_installment_date = attributes[:'firstInstallmentDate']
129
+ end
130
+
131
+ if attributes.has_key?(:'invoiceData')
132
+ self.invoice_data = attributes[:'invoiceData']
133
+ end
134
+
135
+ if attributes.has_key?(:'paymentType')
136
+ self.payment_type = attributes[:'paymentType']
137
+ end
138
+
139
+ if attributes.has_key?(:'additionalCosts')
140
+ self.additional_costs = attributes[:'additionalCosts']
141
+ end
142
+
143
+ if attributes.has_key?(:'additionalCostsPercentage')
144
+ self.additional_costs_percentage = attributes[:'additionalCostsPercentage']
145
+ end
146
+
147
+ if attributes.has_key?(:'amountFunded')
148
+ self.amount_funded = attributes[:'amountFunded']
149
+ end
150
+
151
+ if attributes.has_key?(:'amountRequestedPercentage')
152
+ self.amount_requested_percentage = attributes[:'amountRequestedPercentage']
153
+ end
154
+
155
+ if attributes.has_key?(:'annualFinancingCost')
156
+ self.annual_financing_cost = attributes[:'annualFinancingCost']
157
+ end
158
+
159
+ if attributes.has_key?(:'annualInterestRate')
160
+ self.annual_interest_rate = attributes[:'annualInterestRate']
161
+ end
162
+
163
+ if attributes.has_key?(:'expenses')
164
+ self.expenses = attributes[:'expenses']
165
+ end
166
+
167
+ if attributes.has_key?(:'expensesPercentage')
168
+ self.expenses_percentage = attributes[:'expensesPercentage']
169
+ end
170
+
171
+ if attributes.has_key?(:'fees')
172
+ self.fees = attributes[:'fees']
173
+ end
174
+
175
+ if attributes.has_key?(:'feesPercentage')
176
+ self.fees_percentage = attributes[:'feesPercentage']
177
+ end
178
+
179
+ if attributes.has_key?(:'insurance')
180
+ self.insurance = attributes[:'insurance']
181
+ end
182
+
183
+ if attributes.has_key?(:'insurancePercentage')
184
+ self.insurance_percentage = attributes[:'insurancePercentage']
185
+ end
186
+
187
+ if attributes.has_key?(:'monthlyInterestRate')
188
+ self.monthly_interest_rate = attributes[:'monthlyInterestRate']
189
+ end
190
+
191
+ if attributes.has_key?(:'taxes')
192
+ self.taxes = attributes[:'taxes']
193
+ end
194
+
195
+ if attributes.has_key?(:'taxesPercentage')
196
+ self.taxes_percentage = attributes[:'taxesPercentage']
197
+ end
198
+ end
199
+
200
+ # Show invalid properties with the reasons. Usually used together with valid?
201
+ # @return Array for valid properties with the reasons
202
+ def list_invalid_properties
203
+ invalid_properties = Array.new
204
+ if !@invoice_data.nil? && @invoice_data.to_s.length > 20
205
+ invalid_properties.push('invalid value for "invoice_data", the character length must be smaller than or equal to 20.')
206
+ end
207
+
208
+ if !@payment_type.nil? && @payment_type.to_s.length > 1
209
+ invalid_properties.push('invalid value for "payment_type", the character length must be smaller than or equal to 1.')
210
+ end
211
+
212
+ if !@additional_costs.nil? && @additional_costs.to_s.length > 12
213
+ invalid_properties.push('invalid value for "additional_costs", the character length must be smaller than or equal to 12.')
214
+ end
215
+
216
+ if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
217
+ invalid_properties.push('invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.')
218
+ end
219
+
220
+ if !@amount_funded.nil? && @amount_funded.to_s.length > 12
221
+ invalid_properties.push('invalid value for "amount_funded", the character length must be smaller than or equal to 12.')
222
+ end
223
+
224
+ if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
225
+ invalid_properties.push('invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.')
226
+ end
227
+
228
+ if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
229
+ invalid_properties.push('invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.')
230
+ end
231
+
232
+ if !@expenses.nil? && @expenses.to_s.length > 12
233
+ invalid_properties.push('invalid value for "expenses", the character length must be smaller than or equal to 12.')
234
+ end
235
+
236
+ if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
237
+ invalid_properties.push('invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.')
238
+ end
239
+
240
+ if !@fees.nil? && @fees.to_s.length > 12
241
+ invalid_properties.push('invalid value for "fees", the character length must be smaller than or equal to 12.')
242
+ end
243
+
244
+ if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
245
+ invalid_properties.push('invalid value for "fees_percentage", the character length must be smaller than or equal to 4.')
246
+ end
247
+
248
+ if !@insurance.nil? && @insurance.to_s.length > 12
249
+ invalid_properties.push('invalid value for "insurance", the character length must be smaller than or equal to 12.')
250
+ end
251
+
252
+ if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
253
+ invalid_properties.push('invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.')
254
+ end
255
+
256
+ if !@taxes.nil? && @taxes.to_s.length > 12
257
+ invalid_properties.push('invalid value for "taxes", the character length must be smaller than or equal to 12.')
258
+ end
259
+
260
+ if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
261
+ invalid_properties.push('invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.')
262
+ end
263
+
264
+ invalid_properties
265
+ end
266
+
267
+ # Check to see if the all the properties in the model are valid
268
+ # @return true if the model is valid
269
+ def valid?
270
+ return false if !@invoice_data.nil? && @invoice_data.to_s.length > 20
271
+ return false if !@payment_type.nil? && @payment_type.to_s.length > 1
272
+ return false if !@additional_costs.nil? && @additional_costs.to_s.length > 12
273
+ return false if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
274
+ return false if !@amount_funded.nil? && @amount_funded.to_s.length > 12
275
+ return false if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
276
+ return false if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
277
+ return false if !@expenses.nil? && @expenses.to_s.length > 12
278
+ return false if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
279
+ return false if !@fees.nil? && @fees.to_s.length > 12
280
+ return false if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
281
+ return false if !@insurance.nil? && @insurance.to_s.length > 12
282
+ return false if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
283
+ return false if !@taxes.nil? && @taxes.to_s.length > 12
284
+ return false if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
285
+ true
286
+ end
287
+
288
+ # Custom attribute writer method with validation
289
+ # @param [Object] invoice_data Value to be assigned
290
+ def invoice_data=(invoice_data)
291
+ if !invoice_data.nil? && invoice_data.to_s.length > 20
292
+ fail ArgumentError, 'invalid value for "invoice_data", the character length must be smaller than or equal to 20.'
293
+ end
294
+
295
+ @invoice_data = invoice_data
296
+ end
297
+
298
+ # Custom attribute writer method with validation
299
+ # @param [Object] payment_type Value to be assigned
300
+ def payment_type=(payment_type)
301
+ if !payment_type.nil? && payment_type.to_s.length > 1
302
+ fail ArgumentError, 'invalid value for "payment_type", the character length must be smaller than or equal to 1.'
303
+ end
304
+
305
+ @payment_type = payment_type
306
+ end
307
+
308
+ # Custom attribute writer method with validation
309
+ # @param [Object] additional_costs Value to be assigned
310
+ def additional_costs=(additional_costs)
311
+ if !additional_costs.nil? && additional_costs.to_s.length > 12
312
+ fail ArgumentError, 'invalid value for "additional_costs", the character length must be smaller than or equal to 12.'
313
+ end
314
+
315
+ @additional_costs = additional_costs
316
+ end
317
+
318
+ # Custom attribute writer method with validation
319
+ # @param [Object] additional_costs_percentage Value to be assigned
320
+ def additional_costs_percentage=(additional_costs_percentage)
321
+ if !additional_costs_percentage.nil? && additional_costs_percentage.to_s.length > 4
322
+ fail ArgumentError, 'invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.'
323
+ end
324
+
325
+ @additional_costs_percentage = additional_costs_percentage
326
+ end
327
+
328
+ # Custom attribute writer method with validation
329
+ # @param [Object] amount_funded Value to be assigned
330
+ def amount_funded=(amount_funded)
331
+ if !amount_funded.nil? && amount_funded.to_s.length > 12
332
+ fail ArgumentError, 'invalid value for "amount_funded", the character length must be smaller than or equal to 12.'
333
+ end
334
+
335
+ @amount_funded = amount_funded
336
+ end
337
+
338
+ # Custom attribute writer method with validation
339
+ # @param [Object] amount_requested_percentage Value to be assigned
340
+ def amount_requested_percentage=(amount_requested_percentage)
341
+ if !amount_requested_percentage.nil? && amount_requested_percentage.to_s.length > 4
342
+ fail ArgumentError, 'invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.'
343
+ end
344
+
345
+ @amount_requested_percentage = amount_requested_percentage
346
+ end
347
+
348
+ # Custom attribute writer method with validation
349
+ # @param [Object] annual_financing_cost Value to be assigned
350
+ def annual_financing_cost=(annual_financing_cost)
351
+ if !annual_financing_cost.nil? && annual_financing_cost.to_s.length > 7
352
+ fail ArgumentError, 'invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.'
353
+ end
354
+
355
+ @annual_financing_cost = annual_financing_cost
356
+ end
357
+
358
+ # Custom attribute writer method with validation
359
+ # @param [Object] expenses Value to be assigned
360
+ def expenses=(expenses)
361
+ if !expenses.nil? && expenses.to_s.length > 12
362
+ fail ArgumentError, 'invalid value for "expenses", the character length must be smaller than or equal to 12.'
363
+ end
364
+
365
+ @expenses = expenses
366
+ end
367
+
368
+ # Custom attribute writer method with validation
369
+ # @param [Object] expenses_percentage Value to be assigned
370
+ def expenses_percentage=(expenses_percentage)
371
+ if !expenses_percentage.nil? && expenses_percentage.to_s.length > 4
372
+ fail ArgumentError, 'invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.'
373
+ end
374
+
375
+ @expenses_percentage = expenses_percentage
376
+ end
377
+
378
+ # Custom attribute writer method with validation
379
+ # @param [Object] fees Value to be assigned
380
+ def fees=(fees)
381
+ if !fees.nil? && fees.to_s.length > 12
382
+ fail ArgumentError, 'invalid value for "fees", the character length must be smaller than or equal to 12.'
383
+ end
384
+
385
+ @fees = fees
386
+ end
387
+
388
+ # Custom attribute writer method with validation
389
+ # @param [Object] fees_percentage Value to be assigned
390
+ def fees_percentage=(fees_percentage)
391
+ if !fees_percentage.nil? && fees_percentage.to_s.length > 4
392
+ fail ArgumentError, 'invalid value for "fees_percentage", the character length must be smaller than or equal to 4.'
393
+ end
394
+
395
+ @fees_percentage = fees_percentage
396
+ end
397
+
398
+ # Custom attribute writer method with validation
399
+ # @param [Object] insurance Value to be assigned
400
+ def insurance=(insurance)
401
+ if !insurance.nil? && insurance.to_s.length > 12
402
+ fail ArgumentError, 'invalid value for "insurance", the character length must be smaller than or equal to 12.'
403
+ end
404
+
405
+ @insurance = insurance
406
+ end
407
+
408
+ # Custom attribute writer method with validation
409
+ # @param [Object] insurance_percentage Value to be assigned
410
+ def insurance_percentage=(insurance_percentage)
411
+ if !insurance_percentage.nil? && insurance_percentage.to_s.length > 4
412
+ fail ArgumentError, 'invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.'
413
+ end
414
+
415
+ @insurance_percentage = insurance_percentage
416
+ end
417
+
418
+ # Custom attribute writer method with validation
419
+ # @param [Object] taxes Value to be assigned
420
+ def taxes=(taxes)
421
+ if !taxes.nil? && taxes.to_s.length > 12
422
+ fail ArgumentError, 'invalid value for "taxes", the character length must be smaller than or equal to 12.'
423
+ end
424
+
425
+ @taxes = taxes
426
+ end
427
+
428
+ # Custom attribute writer method with validation
429
+ # @param [Object] taxes_percentage Value to be assigned
430
+ def taxes_percentage=(taxes_percentage)
431
+ if !taxes_percentage.nil? && taxes_percentage.to_s.length > 4
432
+ fail ArgumentError, 'invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.'
433
+ end
434
+
435
+ @taxes_percentage = taxes_percentage
436
+ end
437
+
438
+ # Checks equality by comparing each attribute.
439
+ # @param [Object] Object to be compared
440
+ def ==(o)
441
+ return true if self.equal?(o)
442
+ self.class == o.class &&
443
+ first_installment_date == o.first_installment_date &&
444
+ invoice_data == o.invoice_data &&
445
+ payment_type == o.payment_type &&
446
+ additional_costs == o.additional_costs &&
447
+ additional_costs_percentage == o.additional_costs_percentage &&
448
+ amount_funded == o.amount_funded &&
449
+ amount_requested_percentage == o.amount_requested_percentage &&
450
+ annual_financing_cost == o.annual_financing_cost &&
451
+ annual_interest_rate == o.annual_interest_rate &&
452
+ expenses == o.expenses &&
453
+ expenses_percentage == o.expenses_percentage &&
454
+ fees == o.fees &&
455
+ fees_percentage == o.fees_percentage &&
456
+ insurance == o.insurance &&
457
+ insurance_percentage == o.insurance_percentage &&
458
+ monthly_interest_rate == o.monthly_interest_rate &&
459
+ taxes == o.taxes &&
460
+ taxes_percentage == o.taxes_percentage
461
+ end
462
+
463
+ # @see the `==` method
464
+ # @param [Object] Object to be compared
465
+ def eql?(o)
466
+ self == o
467
+ end
468
+
469
+ # Calculates hash code according to all attributes.
470
+ # @return [Fixnum] Hash code
471
+ def hash
472
+ [first_installment_date, invoice_data, payment_type, additional_costs, additional_costs_percentage, amount_funded, amount_requested_percentage, annual_financing_cost, annual_interest_rate, expenses, expenses_percentage, fees, fees_percentage, insurance, insurance_percentage, monthly_interest_rate, taxes, taxes_percentage].hash
473
+ end
474
+
475
+ # Builds the object from hash
476
+ # @param [Hash] attributes Model attributes in the form of hash
477
+ # @return [Object] Returns the model itself
478
+ def build_from_hash(attributes)
479
+ return nil unless attributes.is_a?(Hash)
480
+ self.class.swagger_types.each_pair do |key, type|
481
+ if type =~ /\AArray<(.*)>/i
482
+ # check to ensure the input is an array given that the the attribute
483
+ # is documented as an array but the input is not
484
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
485
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
486
+ end
487
+ elsif !attributes[self.class.attribute_map[key]].nil?
488
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
489
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
490
+ end
491
+
492
+ self
493
+ end
494
+
495
+ # Deserializes the data based on type
496
+ # @param string type Data type
497
+ # @param string value Value to be deserialized
498
+ # @return [Object] Deserialized data
499
+ def _deserialize(type, value)
500
+ case type.to_sym
501
+ when :DateTime
502
+ DateTime.parse(value)
503
+ when :Date
504
+ Date.parse(value)
505
+ when :String
506
+ value.to_s
507
+ when :Integer
508
+ value.to_i
509
+ when :Float
510
+ value.to_f
511
+ when :BOOLEAN
512
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
513
+ true
514
+ else
515
+ false
516
+ end
517
+ when :Object
518
+ # generic object (usually a Hash), return directly
519
+ value
520
+ when /\AArray<(?<inner_type>.+)>\z/
521
+ inner_type = Regexp.last_match[:inner_type]
522
+ value.map { |v| _deserialize(inner_type, v) }
523
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
524
+ k_type = Regexp.last_match[:k_type]
525
+ v_type = Regexp.last_match[:v_type]
526
+ {}.tap do |hash|
527
+ value.each do |k, v|
528
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
529
+ end
530
+ end
531
+ else # model
532
+ temp_model = CyberSource.const_get(type).new
533
+ temp_model.build_from_hash(value)
534
+ end
535
+ end
536
+
537
+ # Returns the string representation of the object
538
+ # @return [String] String presentation of the object
539
+ def to_s
540
+ to_hash.to_s
541
+ end
542
+
543
+ # to_body is an alias to to_hash (backward compatibility)
544
+ # @return [Hash] Returns the object in the form of hash
545
+ def to_body
546
+ to_hash
547
+ end
548
+
549
+ # Returns the object in the form of hash
550
+ # @return [Hash] Returns the object in the form of hash
551
+ def to_hash
552
+ hash = {}
553
+ self.class.attribute_map.each_pair do |attr, param|
554
+ value = self.send(attr)
555
+ next if value.nil?
556
+ hash[param] = _to_hash(value)
557
+ end
558
+ hash
559
+ end
560
+
561
+ # Outputs non-array value in the form of hash
562
+ # For object, use to_hash. Otherwise, just return the value
563
+ # @param [Object] value Any valid value
564
+ # @return [Hash] Returns the value in the form of hash
565
+ def _to_hash(value)
566
+ if value.is_a?(Array)
567
+ value.compact.map { |v| _to_hash(v) }
568
+ elsif value.is_a?(Hash)
569
+ {}.tap do |hash|
570
+ value.each { |k, v| hash[k] = _to_hash(v) }
571
+ end
572
+ elsif value.respond_to? :to_hash
573
+ value.to_hash
574
+ else
575
+ value
576
+ end
577
+ end
578
+ end
579
+ end