cybersource_rest_client 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +3 -39
  3. data/lib/cybersource_rest_client/api/conversion_details_api.rb +4 -4
  4. data/lib/cybersource_rest_client/api/decision_manager_api.rb +2 -2
  5. data/lib/cybersource_rest_client/api/net_fundings_api.rb +4 -4
  6. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +4 -4
  7. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +4 -10
  8. data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
  9. data/lib/cybersource_rest_client/api/reports_api.rb +12 -25
  10. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
  11. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +6 -6
  12. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  13. data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
  14. data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +2 -48
  15. data/lib/cybersource_rest_client/models/create_payment_request.rb +1 -1
  16. data/lib/cybersource_rest_client/models/create_search_request.rb +2 -2
  17. data/lib/cybersource_rest_client/models/embedded_instrument_identifier.rb +2 -48
  18. data/lib/cybersource_rest_client/models/file_detail.rb +1 -35
  19. data/lib/cybersource_rest_client/models/instrument_identifier.rb +2 -48
  20. data/lib/cybersource_rest_client/models/payment_instrument.rb +2 -48
  21. data/lib/cybersource_rest_client/models/payment_instrument_bank_account.rb +0 -34
  22. data/lib/cybersource_rest_client/models/payment_instrument_card.rb +2 -36
  23. data/lib/cybersource_rest_client/models/payment_instruments_for_instrument_identifier.rb +1 -35
  24. data/lib/cybersource_rest_client/models/personal_identification.rb +1 -35
  25. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +0 -34
  26. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +0 -34
  27. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +0 -46
  28. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +0 -34
  29. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +0 -34
  30. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +0 -34
  31. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +1 -1
  32. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +13 -37
  33. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +1 -1
  34. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -2
  35. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +7 -7
  36. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +15 -0
  37. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +1 -1
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +1 -1
  39. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +0 -46
  40. data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +1 -47
  41. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +0 -34
  42. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +1 -1
  43. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +0 -46
  44. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +0 -34
  45. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +3 -3
  46. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +0 -46
  47. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +0 -34
  48. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +0 -46
  49. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +0 -34
  50. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +0 -34
  51. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +1 -1
  52. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
  53. data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +0 -34
  54. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +1 -1
  55. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
  56. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
  57. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +0 -34
  58. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +6 -6
  59. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +5 -5
  60. data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +1 -1
  61. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +1 -1
  62. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +1 -1
  63. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
  64. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +3 -3
  65. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
  66. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +1 -1
  67. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +7 -41
  68. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +32 -50
  69. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +1 -1
  70. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +4 -4
  71. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +1 -1
  72. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +1 -1
  73. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
  74. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
  75. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +4 -26
  76. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -35
  77. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +2 -2
  78. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
  79. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
  80. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
  81. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
  82. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +3 -3
  83. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +32 -16
  84. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +3 -3
  85. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
  86. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +1 -1
  87. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
  88. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +1 -1
  89. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +14 -48
  90. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  91. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  92. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +1 -1
  93. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +1 -34
  94. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +0 -22
  95. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +0 -22
  96. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +2 -48
  97. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response.rb +8 -8
  98. data/lib/cybersource_rest_client/models/{reporting_v3_reports_get200_response_reports.rb → reporting_v3_reports_get200_response_report_search_results.rb} +4 -62
  99. data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +3 -61
  100. data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +1 -35
  101. data/lib/cybersource_rest_client/models/request_body.rb +1 -35
  102. data/lib/cybersource_rest_client/models/request_body_1.rb +2 -47
  103. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +1 -1
  104. data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response.rb +0 -34
  105. data/lib/cybersource_rest_client/models/riskv1decisions_card_verification.rb +1 -1
  106. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +5 -5
  107. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +1 -1
  108. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +15 -15
  109. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +1 -1
  110. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response.rb +1 -35
  111. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb +0 -34
  112. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +2 -36
  113. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb +0 -34
  114. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb +2 -48
  115. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb +2 -48
  116. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb +1 -35
  117. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +2 -48
  118. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +2 -2
  119. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +3 -3
  120. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +2 -2
  121. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
  122. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +2 -2
  123. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
  124. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  125. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +47 -31
  126. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
  127. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +6 -6
  128. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +5 -5
  129. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +5 -5
  130. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +3 -3
  131. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +23 -34
  132. data/lib/cybersource_rest_client/models/{risk_v1_authentications_post400_response.rb → tss_v2_transactions_get200_response_payment_information_payment_type_funding_source.rb} +37 -38
  133. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  134. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +1 -1
  135. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +3 -3
  136. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +14 -4
  137. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +1 -1
  138. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +5 -5
  139. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +5 -5
  140. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +9 -9
  141. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +2 -2
  142. data/lib/cybersource_rest_client/models/{riskv1authentications_device_information_raw_data.rb → tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb} +17 -27
  143. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
  144. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +3 -3
  145. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +2 -2
  146. data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +0 -34
  147. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_account_information.rb +1 -34
  148. data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +2 -48
  149. data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +1 -35
  150. metadata +5 -43
  151. data/lib/cybersource_rest_client/api/download_dtd_api.rb +0 -88
  152. data/lib/cybersource_rest_client/api/download_xsd_api.rb +0 -88
  153. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +0 -154
  154. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +0 -275
  155. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +0 -349
  156. data/lib/cybersource_rest_client/models/request.rb +0 -210
  157. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +0 -285
  158. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +0 -324
  159. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +0 -294
  160. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +0 -429
  161. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +0 -183
  162. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +0 -199
  163. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +0 -214
  164. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +0 -194
  165. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -267
  166. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +0 -192
  167. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +0 -264
  168. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +0 -264
  169. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +0 -196
  170. data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +0 -208
  171. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +0 -552
  172. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +0 -285
  173. data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +0 -199
  174. data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +0 -258
  175. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +0 -496
  176. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +0 -371
  177. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +0 -434
  178. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +0 -192
  179. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -291
  180. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +0 -291
  181. data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +0 -235
  182. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +0 -183
  183. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +0 -262
  184. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +0 -209
  185. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +0 -279
  186. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +0 -206
  187. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +0 -259
  188. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +0 -224
@@ -1,275 +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.2.3
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module CyberSource
16
- class CheckPayerAuthEnrollmentRequest
17
- attr_accessor :client_reference_information
18
-
19
- attr_accessor :order_information
20
-
21
- attr_accessor :payment_information
22
-
23
- attr_accessor :buyer_information
24
-
25
- attr_accessor :device_information
26
-
27
- attr_accessor :merchant_information
28
-
29
- attr_accessor :recurring_payment_information
30
-
31
- attr_accessor :consumer_authentication_information
32
-
33
- attr_accessor :risk_information
34
-
35
- attr_accessor :travel_information
36
-
37
- attr_accessor :merchant_defined_information
38
-
39
- # Attribute mapping from ruby-style variable name to JSON key.
40
- def self.attribute_map
41
- {
42
- :'client_reference_information' => :'clientReferenceInformation',
43
- :'order_information' => :'orderInformation',
44
- :'payment_information' => :'paymentInformation',
45
- :'buyer_information' => :'buyerInformation',
46
- :'device_information' => :'deviceInformation',
47
- :'merchant_information' => :'merchantInformation',
48
- :'recurring_payment_information' => :'recurringPaymentInformation',
49
- :'consumer_authentication_information' => :'consumerAuthenticationInformation',
50
- :'risk_information' => :'riskInformation',
51
- :'travel_information' => :'travelInformation',
52
- :'merchant_defined_information' => :'merchantDefinedInformation'
53
- }
54
- end
55
-
56
- # Attribute type mapping.
57
- def self.swagger_types
58
- {
59
- :'client_reference_information' => :'Riskv1authenticationsClientReferenceInformation',
60
- :'order_information' => :'Riskv1authenticationsOrderInformation',
61
- :'payment_information' => :'Riskv1authenticationsPaymentInformation',
62
- :'buyer_information' => :'Riskv1authenticationsBuyerInformation',
63
- :'device_information' => :'Riskv1authenticationsDeviceInformation',
64
- :'merchant_information' => :'Riskv1authenticationsMerchantInformation',
65
- :'recurring_payment_information' => :'Riskv1authenticationsRecurringPaymentInformation',
66
- :'consumer_authentication_information' => :'Riskv1authenticationsConsumerAuthenticationInformation',
67
- :'risk_information' => :'Riskv1authenticationsRiskInformation',
68
- :'travel_information' => :'Riskv1authenticationsTravelInformation',
69
- :'merchant_defined_information' => :'Array<Riskv1decisionsMerchantDefinedInformation>'
70
- }
71
- end
72
-
73
- # Initializes the object
74
- # @param [Hash] attributes Model attributes in the form of hash
75
- def initialize(attributes = {})
76
- return unless attributes.is_a?(Hash)
77
-
78
- # convert string to symbol for hash key
79
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
80
-
81
- if attributes.has_key?(:'clientReferenceInformation')
82
- self.client_reference_information = attributes[:'clientReferenceInformation']
83
- end
84
-
85
- if attributes.has_key?(:'orderInformation')
86
- self.order_information = attributes[:'orderInformation']
87
- end
88
-
89
- if attributes.has_key?(:'paymentInformation')
90
- self.payment_information = attributes[:'paymentInformation']
91
- end
92
-
93
- if attributes.has_key?(:'buyerInformation')
94
- self.buyer_information = attributes[:'buyerInformation']
95
- end
96
-
97
- if attributes.has_key?(:'deviceInformation')
98
- self.device_information = attributes[:'deviceInformation']
99
- end
100
-
101
- if attributes.has_key?(:'merchantInformation')
102
- self.merchant_information = attributes[:'merchantInformation']
103
- end
104
-
105
- if attributes.has_key?(:'recurringPaymentInformation')
106
- self.recurring_payment_information = attributes[:'recurringPaymentInformation']
107
- end
108
-
109
- if attributes.has_key?(:'consumerAuthenticationInformation')
110
- self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
111
- end
112
-
113
- if attributes.has_key?(:'riskInformation')
114
- self.risk_information = attributes[:'riskInformation']
115
- end
116
-
117
- if attributes.has_key?(:'travelInformation')
118
- self.travel_information = attributes[:'travelInformation']
119
- end
120
-
121
- if attributes.has_key?(:'merchantDefinedInformation')
122
- if (value = attributes[:'merchantDefinedInformation']).is_a?(Array)
123
- self.merchant_defined_information = value
124
- end
125
- end
126
- end
127
-
128
- # Show invalid properties with the reasons. Usually used together with valid?
129
- # @return Array for valid properties with the reasons
130
- def list_invalid_properties
131
- invalid_properties = Array.new
132
- invalid_properties
133
- end
134
-
135
- # Check to see if the all the properties in the model are valid
136
- # @return true if the model is valid
137
- def valid?
138
- true
139
- end
140
-
141
- # Checks equality by comparing each attribute.
142
- # @param [Object] Object to be compared
143
- def ==(o)
144
- return true if self.equal?(o)
145
- self.class == o.class &&
146
- client_reference_information == o.client_reference_information &&
147
- order_information == o.order_information &&
148
- payment_information == o.payment_information &&
149
- buyer_information == o.buyer_information &&
150
- device_information == o.device_information &&
151
- merchant_information == o.merchant_information &&
152
- recurring_payment_information == o.recurring_payment_information &&
153
- consumer_authentication_information == o.consumer_authentication_information &&
154
- risk_information == o.risk_information &&
155
- travel_information == o.travel_information &&
156
- merchant_defined_information == o.merchant_defined_information
157
- end
158
-
159
- # @see the `==` method
160
- # @param [Object] Object to be compared
161
- def eql?(o)
162
- self == o
163
- end
164
-
165
- # Calculates hash code according to all attributes.
166
- # @return [Fixnum] Hash code
167
- def hash
168
- [client_reference_information, order_information, payment_information, buyer_information, device_information, merchant_information, recurring_payment_information, consumer_authentication_information, risk_information, travel_information, merchant_defined_information].hash
169
- end
170
-
171
- # Builds the object from hash
172
- # @param [Hash] attributes Model attributes in the form of hash
173
- # @return [Object] Returns the model itself
174
- def build_from_hash(attributes)
175
- return nil unless attributes.is_a?(Hash)
176
- self.class.swagger_types.each_pair do |key, type|
177
- if type =~ /\AArray<(.*)>/i
178
- # check to ensure the input is an array given that the the attribute
179
- # is documented as an array but the input is not
180
- if attributes[self.class.attribute_map[key]].is_a?(Array)
181
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
182
- end
183
- elsif !attributes[self.class.attribute_map[key]].nil?
184
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
185
- end # or else data not found in attributes(hash), not an issue as the data can be optional
186
- end
187
-
188
- self
189
- end
190
-
191
- # Deserializes the data based on type
192
- # @param string type Data type
193
- # @param string value Value to be deserialized
194
- # @return [Object] Deserialized data
195
- def _deserialize(type, value)
196
- case type.to_sym
197
- when :DateTime
198
- DateTime.parse(value)
199
- when :Date
200
- Date.parse(value)
201
- when :String
202
- value.to_s
203
- when :Integer
204
- value.to_i
205
- when :Float
206
- value.to_f
207
- when :BOOLEAN
208
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
209
- true
210
- else
211
- false
212
- end
213
- when :Object
214
- # generic object (usually a Hash), return directly
215
- value
216
- when /\AArray<(?<inner_type>.+)>\z/
217
- inner_type = Regexp.last_match[:inner_type]
218
- value.map { |v| _deserialize(inner_type, v) }
219
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
220
- k_type = Regexp.last_match[:k_type]
221
- v_type = Regexp.last_match[:v_type]
222
- {}.tap do |hash|
223
- value.each do |k, v|
224
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
225
- end
226
- end
227
- else # model
228
- temp_model = CyberSource.const_get(type).new
229
- temp_model.build_from_hash(value)
230
- end
231
- end
232
-
233
- # Returns the string representation of the object
234
- # @return [String] String presentation of the object
235
- def to_s
236
- to_hash.to_s
237
- end
238
-
239
- # to_body is an alias to to_hash (backward compatibility)
240
- # @return [Hash] Returns the object in the form of hash
241
- def to_body
242
- to_hash
243
- end
244
-
245
- # Returns the object in the form of hash
246
- # @return [Hash] Returns the object in the form of hash
247
- def to_hash
248
- hash = {}
249
- self.class.attribute_map.each_pair do |attr, param|
250
- value = self.send(attr)
251
- next if value.nil?
252
- hash[param] = _to_hash(value)
253
- end
254
- hash
255
- end
256
-
257
- # Outputs non-array value in the form of hash
258
- # For object, use to_hash. Otherwise, just return the value
259
- # @param [Object] value Any valid value
260
- # @return [Hash] Returns the value in the form of hash
261
- def _to_hash(value)
262
- if value.is_a?(Array)
263
- value.compact.map { |v| _to_hash(v) }
264
- elsif value.is_a?(Hash)
265
- {}.tap do |hash|
266
- value.each { |k, v| hash[k] = _to_hash(v) }
267
- end
268
- elsif value.respond_to? :to_hash
269
- value.to_hash
270
- else
271
- value
272
- end
273
- end
274
- end
275
- end
@@ -1,349 +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.2.3
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module CyberSource
16
- class Ptsv2paymentsOrderInformationBillToCompany
17
- # Name of the customer’s company. **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. For processor-specific information, see the `company_name` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
18
- attr_accessor :name
19
-
20
- # First line in the street address of the company purchasing the product.
21
- attr_accessor :address1
22
-
23
- # Additional address information for the company purchasing the product.
24
- attr_accessor :address2
25
-
26
- # City in the address of the company purchasing the product.
27
- attr_accessor :locality
28
-
29
- # State or province in the address of the company purchasing the product. Use the State, Province, and Territory Codes for the United States and Canada.
30
- attr_accessor :administrative_area
31
-
32
- # Postal code in the address of the company purchasing the product. The postal code must consist of 5 to 9 digits. When the company country is the U.S., the 9-digit postal code must follow this format: **[5 digits][dash][4 digits]** #### Example `12345-6789` When the company country is Canada, the 6-digit postal code must follow this format: **[alpha][numeric][alpha][space][numeric][alpha][numeric]** #### Example `A1B 2C3`
33
- attr_accessor :postal_code
34
-
35
- # Country in the address of the company purchasing the product. Use the [ISO Standard Country Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf)
36
- attr_accessor :country
37
-
38
- # Attribute mapping from ruby-style variable name to JSON key.
39
- def self.attribute_map
40
- {
41
- :'name' => :'name',
42
- :'address1' => :'address1',
43
- :'address2' => :'address2',
44
- :'locality' => :'locality',
45
- :'administrative_area' => :'administrativeArea',
46
- :'postal_code' => :'postalCode',
47
- :'country' => :'country'
48
- }
49
- end
50
-
51
- # Attribute type mapping.
52
- def self.swagger_types
53
- {
54
- :'name' => :'String',
55
- :'address1' => :'String',
56
- :'address2' => :'String',
57
- :'locality' => :'String',
58
- :'administrative_area' => :'String',
59
- :'postal_code' => :'String',
60
- :'country' => :'String'
61
- }
62
- end
63
-
64
- # Initializes the object
65
- # @param [Hash] attributes Model attributes in the form of hash
66
- def initialize(attributes = {})
67
- return unless attributes.is_a?(Hash)
68
-
69
- # convert string to symbol for hash key
70
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
71
-
72
- if attributes.has_key?(:'name')
73
- self.name = attributes[:'name']
74
- end
75
-
76
- if attributes.has_key?(:'address1')
77
- self.address1 = attributes[:'address1']
78
- end
79
-
80
- if attributes.has_key?(:'address2')
81
- self.address2 = attributes[:'address2']
82
- end
83
-
84
- if attributes.has_key?(:'locality')
85
- self.locality = attributes[:'locality']
86
- end
87
-
88
- if attributes.has_key?(:'administrativeArea')
89
- self.administrative_area = attributes[:'administrativeArea']
90
- end
91
-
92
- if attributes.has_key?(:'postalCode')
93
- self.postal_code = attributes[:'postalCode']
94
- end
95
-
96
- if attributes.has_key?(:'country')
97
- self.country = attributes[:'country']
98
- end
99
- end
100
-
101
- # Show invalid properties with the reasons. Usually used together with valid?
102
- # @return Array for valid properties with the reasons
103
- def list_invalid_properties
104
- invalid_properties = Array.new
105
- if !@name.nil? && @name.to_s.length > 60
106
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 60.')
107
- end
108
-
109
- if !@address1.nil? && @address1.to_s.length > 40
110
- invalid_properties.push('invalid value for "address1", the character length must be smaller than or equal to 40.')
111
- end
112
-
113
- if !@address2.nil? && @address2.to_s.length > 40
114
- invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 40.')
115
- end
116
-
117
- if !@locality.nil? && @locality.to_s.length > 30
118
- invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 30.')
119
- end
120
-
121
- if !@administrative_area.nil? && @administrative_area.to_s.length > 2
122
- invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to 2.')
123
- end
124
-
125
- if !@postal_code.nil? && @postal_code.to_s.length > 10
126
- invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 10.')
127
- end
128
-
129
- if !@country.nil? && @country.to_s.length > 2
130
- invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 2.')
131
- end
132
-
133
- invalid_properties
134
- end
135
-
136
- # Check to see if the all the properties in the model are valid
137
- # @return true if the model is valid
138
- def valid?
139
- return false if !@name.nil? && @name.to_s.length > 60
140
- return false if !@address1.nil? && @address1.to_s.length > 40
141
- return false if !@address2.nil? && @address2.to_s.length > 40
142
- return false if !@locality.nil? && @locality.to_s.length > 30
143
- return false if !@administrative_area.nil? && @administrative_area.to_s.length > 2
144
- return false if !@postal_code.nil? && @postal_code.to_s.length > 10
145
- return false if !@country.nil? && @country.to_s.length > 2
146
- true
147
- end
148
-
149
- # Custom attribute writer method with validation
150
- # @param [Object] name Value to be assigned
151
- def name=(name)
152
- if !name.nil? && name.to_s.length > 60
153
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 60.'
154
- end
155
-
156
- @name = name
157
- end
158
-
159
- # Custom attribute writer method with validation
160
- # @param [Object] address1 Value to be assigned
161
- def address1=(address1)
162
- if !address1.nil? && address1.to_s.length > 40
163
- fail ArgumentError, 'invalid value for "address1", the character length must be smaller than or equal to 40.'
164
- end
165
-
166
- @address1 = address1
167
- end
168
-
169
- # Custom attribute writer method with validation
170
- # @param [Object] address2 Value to be assigned
171
- def address2=(address2)
172
- if !address2.nil? && address2.to_s.length > 40
173
- fail ArgumentError, 'invalid value for "address2", the character length must be smaller than or equal to 40.'
174
- end
175
-
176
- @address2 = address2
177
- end
178
-
179
- # Custom attribute writer method with validation
180
- # @param [Object] locality Value to be assigned
181
- def locality=(locality)
182
- if !locality.nil? && locality.to_s.length > 30
183
- fail ArgumentError, 'invalid value for "locality", the character length must be smaller than or equal to 30.'
184
- end
185
-
186
- @locality = locality
187
- end
188
-
189
- # Custom attribute writer method with validation
190
- # @param [Object] administrative_area Value to be assigned
191
- def administrative_area=(administrative_area)
192
- if !administrative_area.nil? && administrative_area.to_s.length > 2
193
- fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to 2.'
194
- end
195
-
196
- @administrative_area = administrative_area
197
- end
198
-
199
- # Custom attribute writer method with validation
200
- # @param [Object] postal_code Value to be assigned
201
- def postal_code=(postal_code)
202
- if !postal_code.nil? && postal_code.to_s.length > 10
203
- fail ArgumentError, 'invalid value for "postal_code", the character length must be smaller than or equal to 10.'
204
- end
205
-
206
- @postal_code = postal_code
207
- end
208
-
209
- # Custom attribute writer method with validation
210
- # @param [Object] country Value to be assigned
211
- def country=(country)
212
- if !country.nil? && country.to_s.length > 2
213
- fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 2.'
214
- end
215
-
216
- @country = country
217
- end
218
-
219
- # Checks equality by comparing each attribute.
220
- # @param [Object] Object to be compared
221
- def ==(o)
222
- return true if self.equal?(o)
223
- self.class == o.class &&
224
- name == o.name &&
225
- address1 == o.address1 &&
226
- address2 == o.address2 &&
227
- locality == o.locality &&
228
- administrative_area == o.administrative_area &&
229
- postal_code == o.postal_code &&
230
- country == o.country
231
- end
232
-
233
- # @see the `==` method
234
- # @param [Object] Object to be compared
235
- def eql?(o)
236
- self == o
237
- end
238
-
239
- # Calculates hash code according to all attributes.
240
- # @return [Fixnum] Hash code
241
- def hash
242
- [name, address1, address2, locality, administrative_area, postal_code, country].hash
243
- end
244
-
245
- # Builds the object from hash
246
- # @param [Hash] attributes Model attributes in the form of hash
247
- # @return [Object] Returns the model itself
248
- def build_from_hash(attributes)
249
- return nil unless attributes.is_a?(Hash)
250
- self.class.swagger_types.each_pair do |key, type|
251
- if type =~ /\AArray<(.*)>/i
252
- # check to ensure the input is an array given that the the attribute
253
- # is documented as an array but the input is not
254
- if attributes[self.class.attribute_map[key]].is_a?(Array)
255
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
256
- end
257
- elsif !attributes[self.class.attribute_map[key]].nil?
258
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
259
- end # or else data not found in attributes(hash), not an issue as the data can be optional
260
- end
261
-
262
- self
263
- end
264
-
265
- # Deserializes the data based on type
266
- # @param string type Data type
267
- # @param string value Value to be deserialized
268
- # @return [Object] Deserialized data
269
- def _deserialize(type, value)
270
- case type.to_sym
271
- when :DateTime
272
- DateTime.parse(value)
273
- when :Date
274
- Date.parse(value)
275
- when :String
276
- value.to_s
277
- when :Integer
278
- value.to_i
279
- when :Float
280
- value.to_f
281
- when :BOOLEAN
282
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
283
- true
284
- else
285
- false
286
- end
287
- when :Object
288
- # generic object (usually a Hash), return directly
289
- value
290
- when /\AArray<(?<inner_type>.+)>\z/
291
- inner_type = Regexp.last_match[:inner_type]
292
- value.map { |v| _deserialize(inner_type, v) }
293
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
294
- k_type = Regexp.last_match[:k_type]
295
- v_type = Regexp.last_match[:v_type]
296
- {}.tap do |hash|
297
- value.each do |k, v|
298
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
299
- end
300
- end
301
- else # model
302
- temp_model = CyberSource.const_get(type).new
303
- temp_model.build_from_hash(value)
304
- end
305
- end
306
-
307
- # Returns the string representation of the object
308
- # @return [String] String presentation of the object
309
- def to_s
310
- to_hash.to_s
311
- end
312
-
313
- # to_body is an alias to to_hash (backward compatibility)
314
- # @return [Hash] Returns the object in the form of hash
315
- def to_body
316
- to_hash
317
- end
318
-
319
- # Returns the object in the form of hash
320
- # @return [Hash] Returns the object in the form of hash
321
- def to_hash
322
- hash = {}
323
- self.class.attribute_map.each_pair do |attr, param|
324
- value = self.send(attr)
325
- next if value.nil?
326
- hash[param] = _to_hash(value)
327
- end
328
- hash
329
- end
330
-
331
- # Outputs non-array value in the form of hash
332
- # For object, use to_hash. Otherwise, just return the value
333
- # @param [Object] value Any valid value
334
- # @return [Hash] Returns the value in the form of hash
335
- def _to_hash(value)
336
- if value.is_a?(Array)
337
- value.compact.map { |v| _to_hash(v) }
338
- elsif value.is_a?(Hash)
339
- {}.tap do |hash|
340
- value.each { |k, v| hash[k] = _to_hash(v) }
341
- end
342
- elsif value.respond_to? :to_hash
343
- value.to_hash
344
- else
345
- value
346
- end
347
- end
348
- end
349
- end