cybersource_rest_client 0.0.61 → 0.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/invoices_api.rb +2 -2
  3. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +4 -4
  4. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +9 -9
  5. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +3 -3
  6. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_oauth2.rb +3 -3
  7. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb +3 -3
  8. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +3 -3
  9. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_address.rb +9 -9
  10. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_business_contact.rb +12 -12
  11. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +9 -9
  12. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_owners.rb +15 -15
  13. data/lib/cybersource_rest_client/models/case_management_comments_request.rb +3 -3
  14. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +6 -6
  15. data/lib/cybersource_rest_client/models/e_check_config_common.rb +9 -9
  16. data/lib/cybersource_rest_client/models/e_check_config_common_processors.rb +3 -3
  17. data/lib/cybersource_rest_client/models/get_all_plans_response_order_information_amount_details.rb +1 -1
  18. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +1 -1
  19. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_customer_information.rb +1 -1
  20. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  21. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details.rb +2 -2
  22. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
  23. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details.rb +1 -1
  24. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
  25. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details.rb +2 -2
  26. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post202_response.rb +1 -1
  27. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +1 -1
  28. data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +2 -2
  29. data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information_company.rb +1 -1
  30. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details.rb +2 -2
  31. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +1 -1
  32. data/lib/cybersource_rest_client/models/kmsv2keyssym_client_reference_information.rb +1 -1
  33. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +2 -2
  34. data/lib/cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_processor_account.rb +3 -3
  35. data/lib/cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_pullfunds.rb +6 -6
  36. data/lib/cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_pushfunds.rb +3 -3
  37. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +2 -2
  38. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +2 -2
  39. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +3 -3
  40. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
  41. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +1 -1
  42. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
  43. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification.rb +2 -2
  44. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_amount_details.rb +1 -1
  45. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +1 -1
  46. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_2_order_information_amount_details.rb +1 -1
  47. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information.rb +3 -3
  48. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +3 -3
  49. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +2 -2
  50. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +5 -5
  51. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +1 -1
  52. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +1 -1
  53. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +2 -2
  54. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +2 -2
  55. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +1 -1
  56. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +5 -5
  57. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +2 -2
  58. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
  61. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +2 -2
  62. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information.rb +5 -32
  63. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +74 -13
  64. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +14 -109
  65. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +41 -23
  66. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +18 -43
  67. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +28 -1
  68. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +33 -7
  69. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +27 -26
  70. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +10 -1
  71. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +41 -5
  72. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +33 -7
  73. data/lib/cybersource_rest_client/models/ptsv2billingagreements_aggregator_information.rb +1 -1
  74. data/lib/cybersource_rest_client/models/ptsv2billingagreements_buyer_information.rb +1 -1
  75. data/lib/cybersource_rest_client/models/ptsv2billingagreements_client_reference_information.rb +1 -1
  76. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb +1 -1
  77. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_buyer_information.rb +1 -1
  78. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +3 -3
  79. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +3 -3
  80. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_buyer_information.rb +1 -1
  81. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +3 -3
  82. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_bank.rb +1 -1
  83. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_bank_account.rb +1 -1
  84. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +1 -1
  85. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
  86. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +4 -4
  87. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -3
  88. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +1 -1
  89. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
  90. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +11 -1
  91. data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_processing_options_funding_options_initiator.rb → ptsv2payments_consumer_authentication_information_strong_authentication_issuer_information.rb} +13 -13
  92. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
  93. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
  94. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +5 -5
  95. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
  96. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +1 -1
  97. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +1 -1
  98. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +3 -3
  99. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +2 -2
  100. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  101. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -1
  102. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +1 -1
  103. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +5 -5
  104. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +2 -2
  105. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -1
  106. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +5 -5
  107. data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +15 -5
  108. data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier_token_provisioning_information.rb → ptsv2payments_token_information_token_provisioning_information.rb} +1 -1
  109. data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details.rb +1 -1
  110. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
  111. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +3 -3
  112. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information_personal_identification.rb +1 -1
  113. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +5 -5
  114. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +1 -1
  115. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +2 -2
  116. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
  117. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information.rb +1 -1
  118. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +3 -3
  119. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank_account.rb +1 -1
  120. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
  121. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +2 -2
  122. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +1 -1
  123. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +2 -2
  124. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
  125. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +2 -2
  126. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +5 -39
  127. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_customer.rb +1 -1
  128. data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +4 -4
  129. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +3 -37
  130. data/lib/cybersource_rest_client/models/push_funds400_response.rb +1 -1
  131. data/lib/cybersource_rest_client/models/push_funds_request.rb +5 -60
  132. data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +7 -7
  133. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +3 -3
  134. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +3 -3
  135. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +3 -3
  136. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information.rb +1 -1
  137. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +21 -4
  138. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information_amount_details.rb +1 -1
  139. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_payment_information.rb +5 -5
  140. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +12 -12
  141. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +3 -3
  142. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +6 -6
  143. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_amount_details.rb +2 -2
  144. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +1 -1
  145. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_amount_details.rb +8 -8
  146. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +22 -22
  147. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +3 -3
  148. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +9 -9
  149. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +18 -18
  150. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +9 -9
  151. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_fluid_data.rb +3 -3
  152. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +12 -12
  153. data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +3 -3
  154. data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +3 -3
  155. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +1 -1
  156. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +4 -4
  157. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +1 -1
  158. data/lib/cybersource_rest_client/models/riskv1decisions_processor_information_card_verification.rb +1 -1
  159. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +16 -16
  160. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +3 -3
  161. data/lib/cybersource_rest_client/models/riskv1liststypeentries_client_reference_information.rb +3 -3
  162. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +1 -1
  163. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier.rb +2 -2
  164. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_tokenized_card.rb +12 -1
  165. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +2 -2
  166. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +2 -2
  167. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +3 -3
  168. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +2 -2
  169. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +5 -5
  170. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +2 -2
  171. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  172. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +1 -1
  173. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +3 -3
  174. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
  175. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +4 -4
  176. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information.rb +1 -1
  177. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +2 -2
  178. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +1 -1
  179. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +3 -3
  180. data/lib/cybersource_rest_client/models/tssv2transactionsemv_tag_details_emv_details_list.rb +6 -6
  181. data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response_void_amount_details.rb +1 -1
  182. data/lib/cybersource_rest_client/models/vasv2tax_buyer_information.rb +1 -1
  183. data/lib/cybersource_rest_client/models/vasv2tax_client_reference_information.rb +1 -1
  184. data/lib/cybersource_rest_client/models/vasv2taxid_client_reference_information.rb +1 -1
  185. data/lib/cybersource_rest_client.rb +2 -12
  186. metadata +4 -14
  187. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +0 -223
  188. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +0 -332
  189. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information.rb +0 -213
  190. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +0 -234
  191. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +0 -298
  192. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge.rb +0 -196
  193. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +0 -246
  194. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options.rb +0 -190
  195. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options.rb +0 -189
  196. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options.rb +0 -189
@@ -1,223 +0,0 @@
1
- =begin
2
- #CyberSource Merged Spec
3
-
4
- #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
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.4.38
10
- =end
11
-
12
- require 'date'
13
-
14
- module CyberSource
15
- class Ptsv1pushfundstransferAggregatorInformation
16
- # Value that identifies you as a payment aggregator. Get this value from the processor. FDC Compass This value must consist of uppercase letters. Visa Platform Connect The value for this field corresponds to the following data in the TC 33 capture file: - `Record`: CP01 TCR6 - `Position`: 95-105 - `Field`: Market Identifier / Payment Facilitator ID
17
- attr_accessor :aggregator_id
18
-
19
- # Your payment aggregator business name. Visa Platform COnnect 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.
20
- attr_accessor :name
21
-
22
- attr_accessor :sub_merchant
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'aggregator_id' => :'aggregatorId',
28
- :'name' => :'name',
29
- :'sub_merchant' => :'subMerchant'
30
- }
31
- end
32
-
33
- # Attribute mapping from JSON key to ruby-style variable name.
34
- def self.json_map
35
- {
36
- :'aggregator_id' => :'aggregator_id',
37
- :'name' => :'name',
38
- :'sub_merchant' => :'sub_merchant'
39
- }
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.swagger_types
44
- {
45
- :'aggregator_id' => :'String',
46
- :'name' => :'String',
47
- :'sub_merchant' => :'Ptsv1pushfundstransferAggregatorInformationSubMerchant'
48
- }
49
- end
50
-
51
- # Initializes the object
52
- # @param [Hash] attributes Model attributes in the form of hash
53
- def initialize(attributes = {})
54
- return unless attributes.is_a?(Hash)
55
-
56
- # convert string to symbol for hash key
57
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
-
59
- if attributes.has_key?(:'aggregatorId')
60
- self.aggregator_id = attributes[:'aggregatorId']
61
- end
62
-
63
- if attributes.has_key?(:'name')
64
- self.name = attributes[:'name']
65
- end
66
-
67
- if attributes.has_key?(:'subMerchant')
68
- self.sub_merchant = attributes[:'subMerchant']
69
- end
70
- end
71
-
72
- # Show invalid properties with the reasons. Usually used together with valid?
73
- # @return Array for valid properties with the reasons
74
- def list_invalid_properties
75
- invalid_properties = Array.new
76
- invalid_properties
77
- end
78
-
79
- # Check to see if the all the properties in the model are valid
80
- # @return true if the model is valid
81
- def valid?
82
- true
83
- end
84
-
85
- # Custom attribute writer method with validation
86
- # @param [Object] aggregator_id Value to be assigned
87
- def aggregator_id=(aggregator_id)
88
- @aggregator_id = aggregator_id
89
- end
90
-
91
- # Custom attribute writer method with validation
92
- # @param [Object] name Value to be assigned
93
- def name=(name)
94
- @name = name
95
- end
96
-
97
- # Checks equality by comparing each attribute.
98
- # @param [Object] Object to be compared
99
- def ==(o)
100
- return true if self.equal?(o)
101
- self.class == o.class &&
102
- aggregator_id == o.aggregator_id &&
103
- name == o.name &&
104
- sub_merchant == o.sub_merchant
105
- end
106
-
107
- # @see the `==` method
108
- # @param [Object] Object to be compared
109
- def eql?(o)
110
- self == o
111
- end
112
-
113
- # Calculates hash code according to all attributes.
114
- # @return [Fixnum] Hash code
115
- def hash
116
- [aggregator_id, name, sub_merchant].hash
117
- end
118
-
119
- # Builds the object from hash
120
- # @param [Hash] attributes Model attributes in the form of hash
121
- # @return [Object] Returns the model itself
122
- def build_from_hash(attributes)
123
- return nil unless attributes.is_a?(Hash)
124
- self.class.swagger_types.each_pair do |key, type|
125
- if type =~ /\AArray<(.*)>/i
126
- # check to ensure the input is an array given that the the attribute
127
- # is documented as an array but the input is not
128
- if attributes[self.class.attribute_map[key]].is_a?(Array)
129
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
- end
131
- elsif !attributes[self.class.attribute_map[key]].nil?
132
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
- end # or else data not found in attributes(hash), not an issue as the data can be optional
134
- end
135
-
136
- self
137
- end
138
-
139
- # Deserializes the data based on type
140
- # @param string type Data type
141
- # @param string value Value to be deserialized
142
- # @return [Object] Deserialized data
143
- def _deserialize(type, value)
144
- case type.to_sym
145
- when :DateTime
146
- DateTime.parse(value)
147
- when :Date
148
- Date.parse(value)
149
- when :String
150
- value.to_s
151
- when :Integer
152
- value.to_i
153
- when :Float
154
- value.to_f
155
- when :BOOLEAN
156
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
- true
158
- else
159
- false
160
- end
161
- when :Object
162
- # generic object (usually a Hash), return directly
163
- value
164
- when /\AArray<(?<inner_type>.+)>\z/
165
- inner_type = Regexp.last_match[:inner_type]
166
- value.map { |v| _deserialize(inner_type, v) }
167
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
- k_type = Regexp.last_match[:k_type]
169
- v_type = Regexp.last_match[:v_type]
170
- {}.tap do |hash|
171
- value.each do |k, v|
172
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
- end
174
- end
175
- else # model
176
- temp_model = CyberSource.const_get(type).new
177
- temp_model.build_from_hash(value)
178
- end
179
- end
180
-
181
- # Returns the string representation of the object
182
- # @return [String] String presentation of the object
183
- def to_s
184
- to_hash.to_s
185
- end
186
-
187
- # to_body is an alias to to_hash (backward compatibility)
188
- # @return [Hash] Returns the object in the form of hash
189
- def to_body
190
- to_hash
191
- end
192
-
193
- # Returns the object in the form of hash
194
- # @return [Hash] Returns the object in the form of hash
195
- def to_hash
196
- hash = {}
197
- self.class.attribute_map.each_pair do |attr, param|
198
- value = self.send(attr)
199
- next if value.nil?
200
- hash[param] = _to_hash(value)
201
- end
202
- hash
203
- end
204
-
205
- # Outputs non-array value in the form of hash
206
- # For object, use to_hash. Otherwise, just return the value
207
- # @param [Object] value Any valid value
208
- # @return [Hash] Returns the value in the form of hash
209
- def _to_hash(value)
210
- if value.is_a?(Array)
211
- value.compact.map { |v| _to_hash(v) }
212
- elsif value.is_a?(Hash)
213
- {}.tap do |hash|
214
- value.each { |k, v| hash[k] = _to_hash(v) }
215
- end
216
- elsif value.respond_to? :to_hash
217
- value.to_hash
218
- else
219
- value
220
- end
221
- end
222
- end
223
- end
@@ -1,332 +0,0 @@
1
- =begin
2
- #CyberSource Merged Spec
3
-
4
- #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
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.4.38
10
- =end
11
-
12
- require 'date'
13
-
14
- module CyberSource
15
- class Ptsv1pushfundstransferAggregatorInformationSubMerchant
16
- # The ID you assigned to your sub-merchant. FDC Compass: This value must consist of uppercase characters. Visa Platform Connect with Mastercard: String (15) FDC Compass: String (20)
17
- attr_accessor :id
18
-
19
- # Sub-merchant's business name. Visa Platform Connect 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.
20
- attr_accessor :name
21
-
22
- # First line of the sub-merchant's street address. Visa Platform Connect The value for this field does not map to the TC 33 capture file5. FDC Compass This value must consist of uppercase characters.
23
- attr_accessor :address1
24
-
25
- # Sub-merchant's city. For processor-specific details, see submerchant_city request field description in Credit Card Services Using the SCMP API. Visa Platform Connect The value for this field does not map to the TC 33 capture file5. FDC Compass This value must consist of uppercase characters.
26
- attr_accessor :locality
27
-
28
- # Sub-merchant's state or province. See https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf Visa Platform Connect The value for this field does not map to the TC 33 capture file. FDC Compass This value must consist of uppercase characters.
29
- attr_accessor :administrative_area
30
-
31
- # Partial postal code for the sub-merchant's address. For processor-specific details, see submerchant_postal_code request field description in Credit Card Services Using the SCMP API. Visa Platform Connect The value for this field does not map to the TC 33 capture file5. FDC Compass This value must consist of uppercase characters.
32
- attr_accessor :postal_code
33
-
34
- # Sub-merchant's country. Use the ISO Standard numeric Country Codes. See https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf Visa Platform Connect The value for this field does not map to the TC 33 capture file. FDC Compass This value must consist of uppercase characters.
35
- attr_accessor :country
36
-
37
- # Sub-merchant's email address. 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.
38
- attr_accessor :email
39
-
40
- # Sub-merchant's telephone number. Maximum length for procesors Visa Platform Connect: 20 FDC Compass: 13 FDC Compass This value must consist of uppercase characters. Use one of these recommended formats: NNN-NNN-NNNN NNN-AAAAAAA
41
- attr_accessor :phone_number
42
-
43
- # Attribute mapping from ruby-style variable name to JSON key.
44
- def self.attribute_map
45
- {
46
- :'id' => :'id',
47
- :'name' => :'name',
48
- :'address1' => :'address1',
49
- :'locality' => :'locality',
50
- :'administrative_area' => :'administrativeArea',
51
- :'postal_code' => :'postalCode',
52
- :'country' => :'country',
53
- :'email' => :'email',
54
- :'phone_number' => :'phoneNumber'
55
- }
56
- end
57
-
58
- # Attribute mapping from JSON key to ruby-style variable name.
59
- def self.json_map
60
- {
61
- :'id' => :'id',
62
- :'name' => :'name',
63
- :'address1' => :'address1',
64
- :'locality' => :'locality',
65
- :'administrative_area' => :'administrative_area',
66
- :'postal_code' => :'postal_code',
67
- :'country' => :'country',
68
- :'email' => :'email',
69
- :'phone_number' => :'phone_number'
70
- }
71
- end
72
-
73
- # Attribute type mapping.
74
- def self.swagger_types
75
- {
76
- :'id' => :'String',
77
- :'name' => :'String',
78
- :'address1' => :'String',
79
- :'locality' => :'String',
80
- :'administrative_area' => :'String',
81
- :'postal_code' => :'String',
82
- :'country' => :'String',
83
- :'email' => :'String',
84
- :'phone_number' => :'String'
85
- }
86
- end
87
-
88
- # Initializes the object
89
- # @param [Hash] attributes Model attributes in the form of hash
90
- def initialize(attributes = {})
91
- return unless attributes.is_a?(Hash)
92
-
93
- # convert string to symbol for hash key
94
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
95
-
96
- if attributes.has_key?(:'id')
97
- self.id = attributes[:'id']
98
- end
99
-
100
- if attributes.has_key?(:'name')
101
- self.name = attributes[:'name']
102
- end
103
-
104
- if attributes.has_key?(:'address1')
105
- self.address1 = attributes[:'address1']
106
- end
107
-
108
- if attributes.has_key?(:'locality')
109
- self.locality = attributes[:'locality']
110
- end
111
-
112
- if attributes.has_key?(:'administrativeArea')
113
- self.administrative_area = attributes[:'administrativeArea']
114
- end
115
-
116
- if attributes.has_key?(:'postalCode')
117
- self.postal_code = attributes[:'postalCode']
118
- end
119
-
120
- if attributes.has_key?(:'country')
121
- self.country = attributes[:'country']
122
- end
123
-
124
- if attributes.has_key?(:'email')
125
- self.email = attributes[:'email']
126
- end
127
-
128
- if attributes.has_key?(:'phoneNumber')
129
- self.phone_number = attributes[:'phoneNumber']
130
- end
131
- end
132
-
133
- # Show invalid properties with the reasons. Usually used together with valid?
134
- # @return Array for valid properties with the reasons
135
- def list_invalid_properties
136
- invalid_properties = Array.new
137
- invalid_properties
138
- end
139
-
140
- # Check to see if the all the properties in the model are valid
141
- # @return true if the model is valid
142
- def valid?
143
- true
144
- end
145
-
146
- # Custom attribute writer method with validation
147
- # @param [Object] id Value to be assigned
148
- def id=(id)
149
- @id = id
150
- end
151
-
152
- # Custom attribute writer method with validation
153
- # @param [Object] name Value to be assigned
154
- def name=(name)
155
- @name = name
156
- end
157
-
158
- # Custom attribute writer method with validation
159
- # @param [Object] address1 Value to be assigned
160
- def address1=(address1)
161
- @address1 = address1
162
- end
163
-
164
- # Custom attribute writer method with validation
165
- # @param [Object] locality Value to be assigned
166
- def locality=(locality)
167
- @locality = locality
168
- end
169
-
170
- # Custom attribute writer method with validation
171
- # @param [Object] administrative_area Value to be assigned
172
- def administrative_area=(administrative_area)
173
- @administrative_area = administrative_area
174
- end
175
-
176
- # Custom attribute writer method with validation
177
- # @param [Object] postal_code Value to be assigned
178
- def postal_code=(postal_code)
179
- @postal_code = postal_code
180
- end
181
-
182
- # Custom attribute writer method with validation
183
- # @param [Object] country Value to be assigned
184
- def country=(country)
185
- @country = country
186
- end
187
-
188
- # Custom attribute writer method with validation
189
- # @param [Object] email Value to be assigned
190
- def email=(email)
191
- @email = email
192
- end
193
-
194
- # Custom attribute writer method with validation
195
- # @param [Object] phone_number Value to be assigned
196
- def phone_number=(phone_number)
197
- @phone_number = phone_number
198
- end
199
-
200
- # Checks equality by comparing each attribute.
201
- # @param [Object] Object to be compared
202
- def ==(o)
203
- return true if self.equal?(o)
204
- self.class == o.class &&
205
- id == o.id &&
206
- name == o.name &&
207
- address1 == o.address1 &&
208
- locality == o.locality &&
209
- administrative_area == o.administrative_area &&
210
- postal_code == o.postal_code &&
211
- country == o.country &&
212
- email == o.email &&
213
- phone_number == o.phone_number
214
- end
215
-
216
- # @see the `==` method
217
- # @param [Object] Object to be compared
218
- def eql?(o)
219
- self == o
220
- end
221
-
222
- # Calculates hash code according to all attributes.
223
- # @return [Fixnum] Hash code
224
- def hash
225
- [id, name, address1, locality, administrative_area, postal_code, country, email, phone_number].hash
226
- end
227
-
228
- # Builds the object from hash
229
- # @param [Hash] attributes Model attributes in the form of hash
230
- # @return [Object] Returns the model itself
231
- def build_from_hash(attributes)
232
- return nil unless attributes.is_a?(Hash)
233
- self.class.swagger_types.each_pair do |key, type|
234
- if type =~ /\AArray<(.*)>/i
235
- # check to ensure the input is an array given that the the attribute
236
- # is documented as an array but the input is not
237
- if attributes[self.class.attribute_map[key]].is_a?(Array)
238
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
239
- end
240
- elsif !attributes[self.class.attribute_map[key]].nil?
241
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
242
- end # or else data not found in attributes(hash), not an issue as the data can be optional
243
- end
244
-
245
- self
246
- end
247
-
248
- # Deserializes the data based on type
249
- # @param string type Data type
250
- # @param string value Value to be deserialized
251
- # @return [Object] Deserialized data
252
- def _deserialize(type, value)
253
- case type.to_sym
254
- when :DateTime
255
- DateTime.parse(value)
256
- when :Date
257
- Date.parse(value)
258
- when :String
259
- value.to_s
260
- when :Integer
261
- value.to_i
262
- when :Float
263
- value.to_f
264
- when :BOOLEAN
265
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
266
- true
267
- else
268
- false
269
- end
270
- when :Object
271
- # generic object (usually a Hash), return directly
272
- value
273
- when /\AArray<(?<inner_type>.+)>\z/
274
- inner_type = Regexp.last_match[:inner_type]
275
- value.map { |v| _deserialize(inner_type, v) }
276
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
277
- k_type = Regexp.last_match[:k_type]
278
- v_type = Regexp.last_match[:v_type]
279
- {}.tap do |hash|
280
- value.each do |k, v|
281
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
282
- end
283
- end
284
- else # model
285
- temp_model = CyberSource.const_get(type).new
286
- temp_model.build_from_hash(value)
287
- end
288
- end
289
-
290
- # Returns the string representation of the object
291
- # @return [String] String presentation of the object
292
- def to_s
293
- to_hash.to_s
294
- end
295
-
296
- # to_body is an alias to to_hash (backward compatibility)
297
- # @return [Hash] Returns the object in the form of hash
298
- def to_body
299
- to_hash
300
- end
301
-
302
- # Returns the object in the form of hash
303
- # @return [Hash] Returns the object in the form of hash
304
- def to_hash
305
- hash = {}
306
- self.class.attribute_map.each_pair do |attr, param|
307
- value = self.send(attr)
308
- next if value.nil?
309
- hash[param] = _to_hash(value)
310
- end
311
- hash
312
- end
313
-
314
- # Outputs non-array value in the form of hash
315
- # For object, use to_hash. Otherwise, just return the value
316
- # @param [Object] value Any valid value
317
- # @return [Hash] Returns the value in the form of hash
318
- def _to_hash(value)
319
- if value.is_a?(Array)
320
- value.compact.map { |v| _to_hash(v) }
321
- elsif value.is_a?(Hash)
322
- {}.tap do |hash|
323
- value.each { |k, v| hash[k] = _to_hash(v) }
324
- end
325
- elsif value.respond_to? :to_hash
326
- value.to_hash
327
- else
328
- value
329
- end
330
- end
331
- end
332
- end