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,298 +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 Ptsv1pushfundstransferMerchantInformationMerchantDescriptor
16
- # The state where the merchant is located. See https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf Note This field is supported only for businesses located in the U.S. or Canada.
17
- attr_accessor :administrative_area
18
-
19
- # For the descriptions, used-by information, data types, and lengths for these fields, see merchant_descriptor_contact field description in Credit Card Services Using the SCMP API.--> Contact information for the merchant. Note These are the maximum data lengths for the following payment processors: FDC Compass (13) Chase Paymentech (13).
20
- attr_accessor :contact
21
-
22
- # Merchant's country. Country code for your business location. Use the ISO Standard Alpha Country Codes This value might be displayed on the cardholder's statement. See https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf Note If your business is located in the U.S. or Canada and you include this field in a request, you must also include merchantInformation.merchantDescriptor.administrativeArea.
23
- attr_accessor :country
24
-
25
- # Merchant's City. City for your business location. This value might be displayed on the cardholder's statement.
26
- attr_accessor :locality
27
-
28
- # Merchant's business name. This name is displayed on the cardholder's statement. Chase Paymentech, Visa Platform Connect: length 22
29
- attr_accessor :name
30
-
31
- # The unique id of the merchant's shop which assigned by the merchant.
32
- attr_accessor :store_id
33
-
34
- # Merchant's postal code. This value might be displayed on the cardholder's statement. If your business is domiciled in the U.S., you can use a 5-digit or 9-digit postal code. A 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example: 12345-6789 If your business is domiciled in Canada, you can use a 6-digit or 9-digit postal code. A 6-digit postal code must follow this format: [alpha][numeric][alpha][space] [numeric][alpha][numeric] Example: A1B 2C3
35
- attr_accessor :postal_code
36
-
37
- # Attribute mapping from ruby-style variable name to JSON key.
38
- def self.attribute_map
39
- {
40
- :'administrative_area' => :'administrativeArea',
41
- :'contact' => :'contact',
42
- :'country' => :'country',
43
- :'locality' => :'locality',
44
- :'name' => :'name',
45
- :'store_id' => :'storeId',
46
- :'postal_code' => :'postalCode'
47
- }
48
- end
49
-
50
- # Attribute mapping from JSON key to ruby-style variable name.
51
- def self.json_map
52
- {
53
- :'administrative_area' => :'administrative_area',
54
- :'contact' => :'contact',
55
- :'country' => :'country',
56
- :'locality' => :'locality',
57
- :'name' => :'name',
58
- :'store_id' => :'store_id',
59
- :'postal_code' => :'postal_code'
60
- }
61
- end
62
-
63
- # Attribute type mapping.
64
- def self.swagger_types
65
- {
66
- :'administrative_area' => :'String',
67
- :'contact' => :'String',
68
- :'country' => :'String',
69
- :'locality' => :'String',
70
- :'name' => :'String',
71
- :'store_id' => :'String',
72
- :'postal_code' => :'String'
73
- }
74
- end
75
-
76
- # Initializes the object
77
- # @param [Hash] attributes Model attributes in the form of hash
78
- def initialize(attributes = {})
79
- return unless attributes.is_a?(Hash)
80
-
81
- # convert string to symbol for hash key
82
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
83
-
84
- if attributes.has_key?(:'administrativeArea')
85
- self.administrative_area = attributes[:'administrativeArea']
86
- end
87
-
88
- if attributes.has_key?(:'contact')
89
- self.contact = attributes[:'contact']
90
- end
91
-
92
- if attributes.has_key?(:'country')
93
- self.country = attributes[:'country']
94
- end
95
-
96
- if attributes.has_key?(:'locality')
97
- self.locality = attributes[:'locality']
98
- end
99
-
100
- if attributes.has_key?(:'name')
101
- self.name = attributes[:'name']
102
- end
103
-
104
- if attributes.has_key?(:'storeId')
105
- self.store_id = attributes[:'storeId']
106
- end
107
-
108
- if attributes.has_key?(:'postalCode')
109
- self.postal_code = attributes[:'postalCode']
110
- end
111
- end
112
-
113
- # Show invalid properties with the reasons. Usually used together with valid?
114
- # @return Array for valid properties with the reasons
115
- def list_invalid_properties
116
- invalid_properties = Array.new
117
- invalid_properties
118
- end
119
-
120
- # Check to see if the all the properties in the model are valid
121
- # @return true if the model is valid
122
- def valid?
123
- true
124
- end
125
-
126
- # Custom attribute writer method with validation
127
- # @param [Object] administrative_area Value to be assigned
128
- def administrative_area=(administrative_area)
129
- @administrative_area = administrative_area
130
- end
131
-
132
- # Custom attribute writer method with validation
133
- # @param [Object] contact Value to be assigned
134
- def contact=(contact)
135
- @contact = contact
136
- end
137
-
138
- # Custom attribute writer method with validation
139
- # @param [Object] country Value to be assigned
140
- def country=(country)
141
- @country = country
142
- end
143
-
144
- # Custom attribute writer method with validation
145
- # @param [Object] locality Value to be assigned
146
- def locality=(locality)
147
- @locality = locality
148
- end
149
-
150
- # Custom attribute writer method with validation
151
- # @param [Object] name Value to be assigned
152
- def name=(name)
153
- @name = name
154
- end
155
-
156
- # Custom attribute writer method with validation
157
- # @param [Object] store_id Value to be assigned
158
- def store_id=(store_id)
159
- @store_id = store_id
160
- end
161
-
162
- # Custom attribute writer method with validation
163
- # @param [Object] postal_code Value to be assigned
164
- def postal_code=(postal_code)
165
- @postal_code = postal_code
166
- end
167
-
168
- # Checks equality by comparing each attribute.
169
- # @param [Object] Object to be compared
170
- def ==(o)
171
- return true if self.equal?(o)
172
- self.class == o.class &&
173
- administrative_area == o.administrative_area &&
174
- contact == o.contact &&
175
- country == o.country &&
176
- locality == o.locality &&
177
- name == o.name &&
178
- store_id == o.store_id &&
179
- postal_code == o.postal_code
180
- end
181
-
182
- # @see the `==` method
183
- # @param [Object] Object to be compared
184
- def eql?(o)
185
- self == o
186
- end
187
-
188
- # Calculates hash code according to all attributes.
189
- # @return [Fixnum] Hash code
190
- def hash
191
- [administrative_area, contact, country, locality, name, store_id, postal_code].hash
192
- end
193
-
194
- # Builds the object from hash
195
- # @param [Hash] attributes Model attributes in the form of hash
196
- # @return [Object] Returns the model itself
197
- def build_from_hash(attributes)
198
- return nil unless attributes.is_a?(Hash)
199
- self.class.swagger_types.each_pair do |key, type|
200
- if type =~ /\AArray<(.*)>/i
201
- # check to ensure the input is an array given that the the attribute
202
- # is documented as an array but the input is not
203
- if attributes[self.class.attribute_map[key]].is_a?(Array)
204
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
205
- end
206
- elsif !attributes[self.class.attribute_map[key]].nil?
207
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
208
- end # or else data not found in attributes(hash), not an issue as the data can be optional
209
- end
210
-
211
- self
212
- end
213
-
214
- # Deserializes the data based on type
215
- # @param string type Data type
216
- # @param string value Value to be deserialized
217
- # @return [Object] Deserialized data
218
- def _deserialize(type, value)
219
- case type.to_sym
220
- when :DateTime
221
- DateTime.parse(value)
222
- when :Date
223
- Date.parse(value)
224
- when :String
225
- value.to_s
226
- when :Integer
227
- value.to_i
228
- when :Float
229
- value.to_f
230
- when :BOOLEAN
231
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
232
- true
233
- else
234
- false
235
- end
236
- when :Object
237
- # generic object (usually a Hash), return directly
238
- value
239
- when /\AArray<(?<inner_type>.+)>\z/
240
- inner_type = Regexp.last_match[:inner_type]
241
- value.map { |v| _deserialize(inner_type, v) }
242
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
243
- k_type = Regexp.last_match[:k_type]
244
- v_type = Regexp.last_match[:v_type]
245
- {}.tap do |hash|
246
- value.each do |k, v|
247
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
248
- end
249
- end
250
- else # model
251
- temp_model = CyberSource.const_get(type).new
252
- temp_model.build_from_hash(value)
253
- end
254
- end
255
-
256
- # Returns the string representation of the object
257
- # @return [String] String presentation of the object
258
- def to_s
259
- to_hash.to_s
260
- end
261
-
262
- # to_body is an alias to to_hash (backward compatibility)
263
- # @return [Hash] Returns the object in the form of hash
264
- def to_body
265
- to_hash
266
- end
267
-
268
- # Returns the object in the form of hash
269
- # @return [Hash] Returns the object in the form of hash
270
- def to_hash
271
- hash = {}
272
- self.class.attribute_map.each_pair do |attr, param|
273
- value = self.send(attr)
274
- next if value.nil?
275
- hash[param] = _to_hash(value)
276
- end
277
- hash
278
- end
279
-
280
- # Outputs non-array value in the form of hash
281
- # For object, use to_hash. Otherwise, just return the value
282
- # @param [Object] value Any valid value
283
- # @return [Hash] Returns the value in the form of hash
284
- def _to_hash(value)
285
- if value.is_a?(Array)
286
- value.compact.map { |v| _to_hash(v) }
287
- elsif value.is_a?(Hash)
288
- {}.tap do |hash|
289
- value.each { |k, v| hash[k] = _to_hash(v) }
290
- end
291
- elsif value.respond_to? :to_hash
292
- value.to_hash
293
- else
294
- value
295
- end
296
- end
297
- end
298
- end
@@ -1,196 +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 Ptsv1pushfundstransferOrderInformationSurcharge
16
- # The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. If the amount is positive, then it is a debit for the customer. If the amount is negative, then it is a credit for the customer. NOTE: This field is supported only for Visa Platform Connect
17
- attr_accessor :amount
18
-
19
- # Attribute mapping from ruby-style variable name to JSON key.
20
- def self.attribute_map
21
- {
22
- :'amount' => :'amount'
23
- }
24
- end
25
-
26
- # Attribute mapping from JSON key to ruby-style variable name.
27
- def self.json_map
28
- {
29
- :'amount' => :'amount'
30
- }
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.swagger_types
35
- {
36
- :'amount' => :'String'
37
- }
38
- end
39
-
40
- # Initializes the object
41
- # @param [Hash] attributes Model attributes in the form of hash
42
- def initialize(attributes = {})
43
- return unless attributes.is_a?(Hash)
44
-
45
- # convert string to symbol for hash key
46
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
-
48
- if attributes.has_key?(:'amount')
49
- self.amount = attributes[:'amount']
50
- end
51
- end
52
-
53
- # Show invalid properties with the reasons. Usually used together with valid?
54
- # @return Array for valid properties with the reasons
55
- def list_invalid_properties
56
- invalid_properties = Array.new
57
- invalid_properties
58
- end
59
-
60
- # Check to see if the all the properties in the model are valid
61
- # @return true if the model is valid
62
- def valid?
63
- true
64
- end
65
-
66
- # Custom attribute writer method with validation
67
- # @param [Object] amount Value to be assigned
68
- def amount=(amount)
69
- @amount = amount
70
- end
71
-
72
- # Checks equality by comparing each attribute.
73
- # @param [Object] Object to be compared
74
- def ==(o)
75
- return true if self.equal?(o)
76
- self.class == o.class &&
77
- amount == o.amount
78
- end
79
-
80
- # @see the `==` method
81
- # @param [Object] Object to be compared
82
- def eql?(o)
83
- self == o
84
- end
85
-
86
- # Calculates hash code according to all attributes.
87
- # @return [Fixnum] Hash code
88
- def hash
89
- [amount].hash
90
- end
91
-
92
- # Builds the object from hash
93
- # @param [Hash] attributes Model attributes in the form of hash
94
- # @return [Object] Returns the model itself
95
- def build_from_hash(attributes)
96
- return nil unless attributes.is_a?(Hash)
97
- self.class.swagger_types.each_pair do |key, type|
98
- if type =~ /\AArray<(.*)>/i
99
- # check to ensure the input is an array given that the the attribute
100
- # is documented as an array but the input is not
101
- if attributes[self.class.attribute_map[key]].is_a?(Array)
102
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
103
- end
104
- elsif !attributes[self.class.attribute_map[key]].nil?
105
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
106
- end # or else data not found in attributes(hash), not an issue as the data can be optional
107
- end
108
-
109
- self
110
- end
111
-
112
- # Deserializes the data based on type
113
- # @param string type Data type
114
- # @param string value Value to be deserialized
115
- # @return [Object] Deserialized data
116
- def _deserialize(type, value)
117
- case type.to_sym
118
- when :DateTime
119
- DateTime.parse(value)
120
- when :Date
121
- Date.parse(value)
122
- when :String
123
- value.to_s
124
- when :Integer
125
- value.to_i
126
- when :Float
127
- value.to_f
128
- when :BOOLEAN
129
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
130
- true
131
- else
132
- false
133
- end
134
- when :Object
135
- # generic object (usually a Hash), return directly
136
- value
137
- when /\AArray<(?<inner_type>.+)>\z/
138
- inner_type = Regexp.last_match[:inner_type]
139
- value.map { |v| _deserialize(inner_type, v) }
140
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
141
- k_type = Regexp.last_match[:k_type]
142
- v_type = Regexp.last_match[:v_type]
143
- {}.tap do |hash|
144
- value.each do |k, v|
145
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
146
- end
147
- end
148
- else # model
149
- temp_model = CyberSource.const_get(type).new
150
- temp_model.build_from_hash(value)
151
- end
152
- end
153
-
154
- # Returns the string representation of the object
155
- # @return [String] String presentation of the object
156
- def to_s
157
- to_hash.to_s
158
- end
159
-
160
- # to_body is an alias to to_hash (backward compatibility)
161
- # @return [Hash] Returns the object in the form of hash
162
- def to_body
163
- to_hash
164
- end
165
-
166
- # Returns the object in the form of hash
167
- # @return [Hash] Returns the object in the form of hash
168
- def to_hash
169
- hash = {}
170
- self.class.attribute_map.each_pair do |attr, param|
171
- value = self.send(attr)
172
- next if value.nil?
173
- hash[param] = _to_hash(value)
174
- end
175
- hash
176
- end
177
-
178
- # Outputs non-array value in the form of hash
179
- # For object, use to_hash. Otherwise, just return the value
180
- # @param [Object] value Any valid value
181
- # @return [Hash] Returns the value in the form of hash
182
- def _to_hash(value)
183
- if value.is_a?(Array)
184
- value.compact.map { |v| _to_hash(v) }
185
- elsif value.is_a?(Hash)
186
- {}.tap do |hash|
187
- value.each { |k, v| hash[k] = _to_hash(v) }
188
- end
189
- elsif value.respond_to? :to_hash
190
- value.to_hash
191
- else
192
- value
193
- end
194
- end
195
- end
196
- end