cybersource_rest_client 0.0.73 → 0.0.75

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 (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +2 -1
  3. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  4. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +5 -5
  5. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  6. data/lib/cybersource_rest_client/api/decision_manager_api.rb +3 -3
  7. data/lib/cybersource_rest_client/api/device_de_association_api.rb +168 -0
  8. data/lib/cybersource_rest_client/api/device_search_api.rb +78 -5
  9. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
  10. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  11. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +96 -0
  12. data/lib/cybersource_rest_client/api/subscriptions_api.rb +5 -2
  13. data/lib/cybersource_rest_client/models/create_order_request.rb +269 -229
  14. data/lib/cybersource_rest_client/models/de_association_request_body.rb +190 -0
  15. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +1 -1
  16. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +2 -2
  17. data/lib/cybersource_rest_client/models/get_subscription_response.rb +15 -5
  18. data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +213 -0
  19. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +292 -0
  20. data/lib/cybersource_rest_client/models/{inline_response_200_9_records.rb → inline_response_200_10_records.rb} +3 -3
  21. data/lib/cybersource_rest_client/models/{inline_response_200_9_response_record.rb → inline_response_200_10_response_record.rb} +2 -2
  22. data/lib/cybersource_rest_client/models/{inline_response_200_9_response_record_additional_updates.rb → inline_response_200_10_response_record_additional_updates.rb} +1 -1
  23. data/lib/cybersource_rest_client/models/{inline_response_200_9_source_record.rb → inline_response_200_10_source_record.rb} +1 -1
  24. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
  25. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +55 -10
  26. data/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb +357 -0
  27. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +10 -55
  28. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +33 -37
  29. data/lib/cybersource_rest_client/models/{inline_response_200_6_devices.rb → inline_response_200_7_devices.rb} +2 -2
  30. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_processor_to_terminal_map.rb → inline_response_200_7_payment_processor_to_terminal_map.rb} +1 -1
  31. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +47 -86
  32. data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded.rb → inline_response_200_8__embedded.rb} +2 -2
  33. data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded__links.rb → inline_response_200_8__embedded__links.rb} +2 -2
  34. data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded__links_reports.rb → inline_response_200_8__embedded__links_reports.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded_batches.rb → inline_response_200_8__embedded_batches.rb} +3 -3
  36. data/lib/cybersource_rest_client/models/{inline_response_200_7__embedded_totals.rb → inline_response_200_8__embedded_totals.rb} +1 -1
  37. data/lib/cybersource_rest_client/models/inline_response_200_8__links.rb +16 -17
  38. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +47 -49
  39. data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +201 -0
  40. data/lib/cybersource_rest_client/models/{inline_response_200_8__links_report.rb → inline_response_200_9__links_report.rb} +1 -1
  41. data/lib/cybersource_rest_client/models/{inline_response_200_8_billing.rb → inline_response_200_9_billing.rb} +1 -1
  42. data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -218
  43. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -248
  44. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -281
  45. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information.rb → inline_response_201_2_payout_information.rb} +216 -216
  46. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_pull_funds.rb → inline_response_201_2_payout_information_pull_funds.rb} +213 -213
  47. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_push_funds.rb → inline_response_201_2_payout_information_push_funds.rb} +417 -417
  48. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -222
  49. data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information.rb → inline_response_201_3_integration_information.rb} +192 -192
  50. data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information_tenant_configurations.rb → inline_response_201_3_integration_information_tenant_configurations.rb} +253 -253
  51. data/lib/cybersource_rest_client/models/{inline_response_201_2_organization_information.rb → inline_response_201_3_organization_information.rb} +217 -217
  52. data/lib/cybersource_rest_client/models/{inline_response_201_2_product_information_setups.rb → inline_response_201_3_product_information_setups.rb} +214 -214
  53. data/lib/cybersource_rest_client/models/{inline_response_201_2_registration_information.rb → inline_response_201_3_registration_information.rb} +222 -222
  54. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups.rb → inline_response_201_3_setups.rb} +219 -219
  55. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_commerce_solutions.rb → inline_response_201_3_setups_commerce_solutions.rb} +209 -209
  56. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments.rb → inline_response_201_3_setups_payments.rb} +369 -369
  57. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods.rb → inline_response_201_3_setups_payments_alternative_payment_methods.rb} +221 -221
  58. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods_configuration_status.rb → inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb} +200 -200
  59. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing.rb → inline_response_201_3_setups_payments_card_processing.rb} +199 -199
  60. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_configuration_status.rb → inline_response_201_3_setups_payments_card_processing_configuration_status.rb} +255 -255
  61. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_subscription_status.rb → inline_response_201_3_setups_payments_card_processing_subscription_status.rb} +234 -234
  62. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_digital_payments.rb → inline_response_201_3_setups_payments_digital_payments.rb} +189 -189
  63. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_risk.rb → inline_response_201_3_setups_risk.rb} +199 -199
  64. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_value_added_services.rb → inline_response_201_3_setups_value_added_services.rb} +209 -209
  65. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -312
  66. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information.rb → inline_response_201_4_key_information.rb} +300 -300
  67. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information.rb → inline_response_201_4_key_information_error_information.rb} +202 -202
  68. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information_details.rb → inline_response_201_4_key_information_error_information_details.rb} +201 -201
  69. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +312 -277
  70. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -202
  71. data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads.rb → inline_response_201_6_payloads.rb} +189 -189
  72. data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads_test_payload.rb → inline_response_201_6_payloads_test_payload.rb} +190 -190
  73. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -0
  74. data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -0
  75. data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -0
  76. data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -0
  77. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -0
  78. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -0
  79. data/lib/cybersource_rest_client/models/payments_products.rb +1 -1
  80. data/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb +199 -0
  81. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb +189 -0
  82. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb +189 -0
  83. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb +189 -0
  84. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb +213 -0
  85. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb +225 -0
  86. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +189 -0
  87. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb +190 -0
  88. data/lib/cybersource_rest_client/models/post_device_search_request.rb +223 -0
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
  91. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -354
  92. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  93. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -0
  94. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -0
  95. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -0
  96. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
  97. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  98. data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -0
  99. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -332
  100. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -189
  101. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -0
  102. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -0
  103. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -219
  104. data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -0
  105. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -0
  106. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -0
  107. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -0
  108. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -0
  109. data/lib/cybersource_rest_client/models/{inline_response_200_7__links.rb → ptsv2intentsid_payment_information.rb} +189 -200
  110. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -400
  111. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
  112. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +433 -416
  113. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -651
  114. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -699
  115. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -346
  116. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  117. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  118. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -0
  119. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  120. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
  121. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -0
  122. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -0
  123. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
  124. data/lib/cybersource_rest_client/models/request.rb +199 -0
  125. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
  126. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  127. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  128. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
  129. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  130. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
  131. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  132. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +16 -5
  133. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
  134. data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
  135. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
  136. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
  137. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
  138. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
  139. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
  140. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +12 -1
  141. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
  142. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -234
  143. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  144. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +12 -1
  145. data/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb +18 -7
  146. data/lib/cybersource_rest_client.rb +75 -39
  147. metadata +77 -41
  148. data/lib/cybersource_rest_client/api/device_de_association_v3_api.rb +0 -96
@@ -1,417 +1,417 @@
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 InlineResponse2011PayoutInformationPushFunds
16
- # This field indicates if cross-border money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
17
- attr_accessor :money_transfer_fast_funds_cross_border
18
-
19
- # This field indicates if domestic money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
20
- attr_accessor :money_transfer_fast_funds_domestic
21
-
22
- # This field indicates if cross-border money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
23
- attr_accessor :money_transfer_cross_border
24
-
25
- # This field indicates if domestic money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
26
- attr_accessor :money_transfer_domestic
27
-
28
- # This field indicates if cross-border non-money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
29
- attr_accessor :non_money_transfer_fast_funds_cross_border
30
-
31
- # This field indicates if domestic non-money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
32
- attr_accessor :non_money_transfer_fast_funds_domestic
33
-
34
- # This field indicates if cross-border non-money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
35
- attr_accessor :non_money_transfer_cross_border
36
-
37
- # This field indicates if domestic non-money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
38
- attr_accessor :non_money_transfer_domestic
39
-
40
- # This field indicates if cross-border gambling OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
41
- attr_accessor :online_gambling_fast_funds_cross_border
42
-
43
- # This field indicates if domestic gambling OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
44
- attr_accessor :online_gambling_fast_funds_domestic
45
-
46
- # This field indicates if cross-border gambling OCTs (push funds) are allowed. Possible values: - `Y` - `N`
47
- attr_accessor :online_gambling_cross_border
48
-
49
- # This field indicates if domestic gambling OCTs (push funds) are allowed. Possible values: - `Y` - `N`
50
- attr_accessor :online_gambling_domestic
51
-
52
- # This field indicates if domestic OCTs (push funds) are allowed. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service(PPGS). Possible values: - `true` - `false`
53
- attr_accessor :domestic_participant
54
-
55
- # This field indicates if cross-border OCTs (push funds) are allowed. Note: Supported only in US for cross-border transactions involving Push Payments Gateway Service(PPGS). Possible values: - `true` - `false`
56
- attr_accessor :cross_border_participant
57
-
58
- # Attribute mapping from ruby-style variable name to JSON key.
59
- def self.attribute_map
60
- {
61
- :'money_transfer_fast_funds_cross_border' => :'moneyTransferFastFundsCrossBorder',
62
- :'money_transfer_fast_funds_domestic' => :'moneyTransferFastFundsDomestic',
63
- :'money_transfer_cross_border' => :'moneyTransferCrossBorder',
64
- :'money_transfer_domestic' => :'moneyTransferDomestic',
65
- :'non_money_transfer_fast_funds_cross_border' => :'nonMoneyTransferFastFundsCrossBorder',
66
- :'non_money_transfer_fast_funds_domestic' => :'nonMoneyTransferFastFundsDomestic',
67
- :'non_money_transfer_cross_border' => :'nonMoneyTransferCrossBorder',
68
- :'non_money_transfer_domestic' => :'nonMoneyTransferDomestic',
69
- :'online_gambling_fast_funds_cross_border' => :'onlineGamblingFastFundsCrossBorder',
70
- :'online_gambling_fast_funds_domestic' => :'onlineGamblingFastFundsDomestic',
71
- :'online_gambling_cross_border' => :'onlineGamblingCrossBorder',
72
- :'online_gambling_domestic' => :'onlineGamblingDomestic',
73
- :'domestic_participant' => :'domesticParticipant',
74
- :'cross_border_participant' => :'crossBorderParticipant'
75
- }
76
- end
77
-
78
- # Attribute mapping from JSON key to ruby-style variable name.
79
- def self.json_map
80
- {
81
- :'money_transfer_fast_funds_cross_border' => :'money_transfer_fast_funds_cross_border',
82
- :'money_transfer_fast_funds_domestic' => :'money_transfer_fast_funds_domestic',
83
- :'money_transfer_cross_border' => :'money_transfer_cross_border',
84
- :'money_transfer_domestic' => :'money_transfer_domestic',
85
- :'non_money_transfer_fast_funds_cross_border' => :'non_money_transfer_fast_funds_cross_border',
86
- :'non_money_transfer_fast_funds_domestic' => :'non_money_transfer_fast_funds_domestic',
87
- :'non_money_transfer_cross_border' => :'non_money_transfer_cross_border',
88
- :'non_money_transfer_domestic' => :'non_money_transfer_domestic',
89
- :'online_gambling_fast_funds_cross_border' => :'online_gambling_fast_funds_cross_border',
90
- :'online_gambling_fast_funds_domestic' => :'online_gambling_fast_funds_domestic',
91
- :'online_gambling_cross_border' => :'online_gambling_cross_border',
92
- :'online_gambling_domestic' => :'online_gambling_domestic',
93
- :'domestic_participant' => :'domestic_participant',
94
- :'cross_border_participant' => :'cross_border_participant'
95
- }
96
- end
97
-
98
- # Attribute type mapping.
99
- def self.swagger_types
100
- {
101
- :'money_transfer_fast_funds_cross_border' => :'String',
102
- :'money_transfer_fast_funds_domestic' => :'String',
103
- :'money_transfer_cross_border' => :'String',
104
- :'money_transfer_domestic' => :'String',
105
- :'non_money_transfer_fast_funds_cross_border' => :'String',
106
- :'non_money_transfer_fast_funds_domestic' => :'String',
107
- :'non_money_transfer_cross_border' => :'String',
108
- :'non_money_transfer_domestic' => :'String',
109
- :'online_gambling_fast_funds_cross_border' => :'String',
110
- :'online_gambling_fast_funds_domestic' => :'String',
111
- :'online_gambling_cross_border' => :'String',
112
- :'online_gambling_domestic' => :'String',
113
- :'domestic_participant' => :'String',
114
- :'cross_border_participant' => :'String'
115
- }
116
- end
117
-
118
- # Initializes the object
119
- # @param [Hash] attributes Model attributes in the form of hash
120
- def initialize(attributes = {})
121
- return unless attributes.is_a?(Hash)
122
-
123
- # convert string to symbol for hash key
124
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
125
-
126
- if attributes.has_key?(:'moneyTransferFastFundsCrossBorder')
127
- self.money_transfer_fast_funds_cross_border = attributes[:'moneyTransferFastFundsCrossBorder']
128
- end
129
-
130
- if attributes.has_key?(:'moneyTransferFastFundsDomestic')
131
- self.money_transfer_fast_funds_domestic = attributes[:'moneyTransferFastFundsDomestic']
132
- end
133
-
134
- if attributes.has_key?(:'moneyTransferCrossBorder')
135
- self.money_transfer_cross_border = attributes[:'moneyTransferCrossBorder']
136
- end
137
-
138
- if attributes.has_key?(:'moneyTransferDomestic')
139
- self.money_transfer_domestic = attributes[:'moneyTransferDomestic']
140
- end
141
-
142
- if attributes.has_key?(:'nonMoneyTransferFastFundsCrossBorder')
143
- self.non_money_transfer_fast_funds_cross_border = attributes[:'nonMoneyTransferFastFundsCrossBorder']
144
- end
145
-
146
- if attributes.has_key?(:'nonMoneyTransferFastFundsDomestic')
147
- self.non_money_transfer_fast_funds_domestic = attributes[:'nonMoneyTransferFastFundsDomestic']
148
- end
149
-
150
- if attributes.has_key?(:'nonMoneyTransferCrossBorder')
151
- self.non_money_transfer_cross_border = attributes[:'nonMoneyTransferCrossBorder']
152
- end
153
-
154
- if attributes.has_key?(:'nonMoneyTransferDomestic')
155
- self.non_money_transfer_domestic = attributes[:'nonMoneyTransferDomestic']
156
- end
157
-
158
- if attributes.has_key?(:'onlineGamblingFastFundsCrossBorder')
159
- self.online_gambling_fast_funds_cross_border = attributes[:'onlineGamblingFastFundsCrossBorder']
160
- end
161
-
162
- if attributes.has_key?(:'onlineGamblingFastFundsDomestic')
163
- self.online_gambling_fast_funds_domestic = attributes[:'onlineGamblingFastFundsDomestic']
164
- end
165
-
166
- if attributes.has_key?(:'onlineGamblingCrossBorder')
167
- self.online_gambling_cross_border = attributes[:'onlineGamblingCrossBorder']
168
- end
169
-
170
- if attributes.has_key?(:'onlineGamblingDomestic')
171
- self.online_gambling_domestic = attributes[:'onlineGamblingDomestic']
172
- end
173
-
174
- if attributes.has_key?(:'domesticParticipant')
175
- self.domestic_participant = attributes[:'domesticParticipant']
176
- end
177
-
178
- if attributes.has_key?(:'crossBorderParticipant')
179
- self.cross_border_participant = attributes[:'crossBorderParticipant']
180
- end
181
- end
182
-
183
- # Show invalid properties with the reasons. Usually used together with valid?
184
- # @return Array for valid properties with the reasons
185
- def list_invalid_properties
186
- invalid_properties = Array.new
187
- invalid_properties
188
- end
189
-
190
- # Check to see if the all the properties in the model are valid
191
- # @return true if the model is valid
192
- def valid?
193
- true
194
- end
195
-
196
- # Custom attribute writer method with validation
197
- # @param [Object] money_transfer_fast_funds_cross_border Value to be assigned
198
- def money_transfer_fast_funds_cross_border=(money_transfer_fast_funds_cross_border)
199
- @money_transfer_fast_funds_cross_border = money_transfer_fast_funds_cross_border
200
- end
201
-
202
- # Custom attribute writer method with validation
203
- # @param [Object] money_transfer_fast_funds_domestic Value to be assigned
204
- def money_transfer_fast_funds_domestic=(money_transfer_fast_funds_domestic)
205
- @money_transfer_fast_funds_domestic = money_transfer_fast_funds_domestic
206
- end
207
-
208
- # Custom attribute writer method with validation
209
- # @param [Object] money_transfer_cross_border Value to be assigned
210
- def money_transfer_cross_border=(money_transfer_cross_border)
211
- @money_transfer_cross_border = money_transfer_cross_border
212
- end
213
-
214
- # Custom attribute writer method with validation
215
- # @param [Object] money_transfer_domestic Value to be assigned
216
- def money_transfer_domestic=(money_transfer_domestic)
217
- @money_transfer_domestic = money_transfer_domestic
218
- end
219
-
220
- # Custom attribute writer method with validation
221
- # @param [Object] non_money_transfer_fast_funds_cross_border Value to be assigned
222
- def non_money_transfer_fast_funds_cross_border=(non_money_transfer_fast_funds_cross_border)
223
- @non_money_transfer_fast_funds_cross_border = non_money_transfer_fast_funds_cross_border
224
- end
225
-
226
- # Custom attribute writer method with validation
227
- # @param [Object] non_money_transfer_fast_funds_domestic Value to be assigned
228
- def non_money_transfer_fast_funds_domestic=(non_money_transfer_fast_funds_domestic)
229
- @non_money_transfer_fast_funds_domestic = non_money_transfer_fast_funds_domestic
230
- end
231
-
232
- # Custom attribute writer method with validation
233
- # @param [Object] non_money_transfer_cross_border Value to be assigned
234
- def non_money_transfer_cross_border=(non_money_transfer_cross_border)
235
- @non_money_transfer_cross_border = non_money_transfer_cross_border
236
- end
237
-
238
- # Custom attribute writer method with validation
239
- # @param [Object] non_money_transfer_domestic Value to be assigned
240
- def non_money_transfer_domestic=(non_money_transfer_domestic)
241
- @non_money_transfer_domestic = non_money_transfer_domestic
242
- end
243
-
244
- # Custom attribute writer method with validation
245
- # @param [Object] online_gambling_fast_funds_cross_border Value to be assigned
246
- def online_gambling_fast_funds_cross_border=(online_gambling_fast_funds_cross_border)
247
- @online_gambling_fast_funds_cross_border = online_gambling_fast_funds_cross_border
248
- end
249
-
250
- # Custom attribute writer method with validation
251
- # @param [Object] online_gambling_fast_funds_domestic Value to be assigned
252
- def online_gambling_fast_funds_domestic=(online_gambling_fast_funds_domestic)
253
- @online_gambling_fast_funds_domestic = online_gambling_fast_funds_domestic
254
- end
255
-
256
- # Custom attribute writer method with validation
257
- # @param [Object] online_gambling_cross_border Value to be assigned
258
- def online_gambling_cross_border=(online_gambling_cross_border)
259
- @online_gambling_cross_border = online_gambling_cross_border
260
- end
261
-
262
- # Custom attribute writer method with validation
263
- # @param [Object] online_gambling_domestic Value to be assigned
264
- def online_gambling_domestic=(online_gambling_domestic)
265
- @online_gambling_domestic = online_gambling_domestic
266
- end
267
-
268
- # Custom attribute writer method with validation
269
- # @param [Object] domestic_participant Value to be assigned
270
- def domestic_participant=(domestic_participant)
271
- @domestic_participant = domestic_participant
272
- end
273
-
274
- # Custom attribute writer method with validation
275
- # @param [Object] cross_border_participant Value to be assigned
276
- def cross_border_participant=(cross_border_participant)
277
- @cross_border_participant = cross_border_participant
278
- end
279
-
280
- # Checks equality by comparing each attribute.
281
- # @param [Object] Object to be compared
282
- def ==(o)
283
- return true if self.equal?(o)
284
- self.class == o.class &&
285
- money_transfer_fast_funds_cross_border == o.money_transfer_fast_funds_cross_border &&
286
- money_transfer_fast_funds_domestic == o.money_transfer_fast_funds_domestic &&
287
- money_transfer_cross_border == o.money_transfer_cross_border &&
288
- money_transfer_domestic == o.money_transfer_domestic &&
289
- non_money_transfer_fast_funds_cross_border == o.non_money_transfer_fast_funds_cross_border &&
290
- non_money_transfer_fast_funds_domestic == o.non_money_transfer_fast_funds_domestic &&
291
- non_money_transfer_cross_border == o.non_money_transfer_cross_border &&
292
- non_money_transfer_domestic == o.non_money_transfer_domestic &&
293
- online_gambling_fast_funds_cross_border == o.online_gambling_fast_funds_cross_border &&
294
- online_gambling_fast_funds_domestic == o.online_gambling_fast_funds_domestic &&
295
- online_gambling_cross_border == o.online_gambling_cross_border &&
296
- online_gambling_domestic == o.online_gambling_domestic &&
297
- domestic_participant == o.domestic_participant &&
298
- cross_border_participant == o.cross_border_participant
299
- end
300
-
301
- # @see the `==` method
302
- # @param [Object] Object to be compared
303
- def eql?(o)
304
- self == o
305
- end
306
-
307
- # Calculates hash code according to all attributes.
308
- # @return [Fixnum] Hash code
309
- def hash
310
- [money_transfer_fast_funds_cross_border, money_transfer_fast_funds_domestic, money_transfer_cross_border, money_transfer_domestic, non_money_transfer_fast_funds_cross_border, non_money_transfer_fast_funds_domestic, non_money_transfer_cross_border, non_money_transfer_domestic, online_gambling_fast_funds_cross_border, online_gambling_fast_funds_domestic, online_gambling_cross_border, online_gambling_domestic, domestic_participant, cross_border_participant].hash
311
- end
312
-
313
- # Builds the object from hash
314
- # @param [Hash] attributes Model attributes in the form of hash
315
- # @return [Object] Returns the model itself
316
- def build_from_hash(attributes)
317
- return nil unless attributes.is_a?(Hash)
318
- self.class.swagger_types.each_pair do |key, type|
319
- if type =~ /\AArray<(.*)>/i
320
- # check to ensure the input is an array given that the the attribute
321
- # is documented as an array but the input is not
322
- if attributes[self.class.attribute_map[key]].is_a?(Array)
323
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
324
- end
325
- elsif !attributes[self.class.attribute_map[key]].nil?
326
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
327
- end # or else data not found in attributes(hash), not an issue as the data can be optional
328
- end
329
-
330
- self
331
- end
332
-
333
- # Deserializes the data based on type
334
- # @param string type Data type
335
- # @param string value Value to be deserialized
336
- # @return [Object] Deserialized data
337
- def _deserialize(type, value)
338
- case type.to_sym
339
- when :DateTime
340
- DateTime.parse(value)
341
- when :Date
342
- Date.parse(value)
343
- when :String
344
- value.to_s
345
- when :Integer
346
- value.to_i
347
- when :Float
348
- value.to_f
349
- when :BOOLEAN
350
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
351
- true
352
- else
353
- false
354
- end
355
- when :Object
356
- # generic object (usually a Hash), return directly
357
- value
358
- when /\AArray<(?<inner_type>.+)>\z/
359
- inner_type = Regexp.last_match[:inner_type]
360
- value.map { |v| _deserialize(inner_type, v) }
361
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
362
- k_type = Regexp.last_match[:k_type]
363
- v_type = Regexp.last_match[:v_type]
364
- {}.tap do |hash|
365
- value.each do |k, v|
366
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
367
- end
368
- end
369
- else # model
370
- temp_model = CyberSource.const_get(type).new
371
- temp_model.build_from_hash(value)
372
- end
373
- end
374
-
375
- # Returns the string representation of the object
376
- # @return [String] String presentation of the object
377
- def to_s
378
- to_hash.to_s
379
- end
380
-
381
- # to_body is an alias to to_hash (backward compatibility)
382
- # @return [Hash] Returns the object in the form of hash
383
- def to_body
384
- to_hash
385
- end
386
-
387
- # Returns the object in the form of hash
388
- # @return [Hash] Returns the object in the form of hash
389
- def to_hash
390
- hash = {}
391
- self.class.attribute_map.each_pair do |attr, param|
392
- value = self.send(attr)
393
- next if value.nil?
394
- hash[param] = _to_hash(value)
395
- end
396
- hash
397
- end
398
-
399
- # Outputs non-array value in the form of hash
400
- # For object, use to_hash. Otherwise, just return the value
401
- # @param [Object] value Any valid value
402
- # @return [Hash] Returns the value in the form of hash
403
- def _to_hash(value)
404
- if value.is_a?(Array)
405
- value.compact.map { |v| _to_hash(v) }
406
- elsif value.is_a?(Hash)
407
- {}.tap do |hash|
408
- value.each { |k, v| hash[k] = _to_hash(v) }
409
- end
410
- elsif value.respond_to? :to_hash
411
- value.to_hash
412
- else
413
- value
414
- end
415
- end
416
- end
417
- end
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 InlineResponse2012PayoutInformationPushFunds
16
+ # This field indicates if cross-border money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
17
+ attr_accessor :money_transfer_fast_funds_cross_border
18
+
19
+ # This field indicates if domestic money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
20
+ attr_accessor :money_transfer_fast_funds_domestic
21
+
22
+ # This field indicates if cross-border money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
23
+ attr_accessor :money_transfer_cross_border
24
+
25
+ # This field indicates if domestic money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
26
+ attr_accessor :money_transfer_domestic
27
+
28
+ # This field indicates if cross-border non-money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
29
+ attr_accessor :non_money_transfer_fast_funds_cross_border
30
+
31
+ # This field indicates if domestic non-money transfer OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
32
+ attr_accessor :non_money_transfer_fast_funds_domestic
33
+
34
+ # This field indicates if cross-border non-money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
35
+ attr_accessor :non_money_transfer_cross_border
36
+
37
+ # This field indicates if domestic non-money transfer OCTs (push funds) are allowed. Possible values: - `Y` - `N`
38
+ attr_accessor :non_money_transfer_domestic
39
+
40
+ # This field indicates if cross-border gambling OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
41
+ attr_accessor :online_gambling_fast_funds_cross_border
42
+
43
+ # This field indicates if domestic gambling OCTs (fast push funds) are allowed. Possible values: - `Y` - `N`
44
+ attr_accessor :online_gambling_fast_funds_domestic
45
+
46
+ # This field indicates if cross-border gambling OCTs (push funds) are allowed. Possible values: - `Y` - `N`
47
+ attr_accessor :online_gambling_cross_border
48
+
49
+ # This field indicates if domestic gambling OCTs (push funds) are allowed. Possible values: - `Y` - `N`
50
+ attr_accessor :online_gambling_domestic
51
+
52
+ # This field indicates if domestic OCTs (push funds) are allowed. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service(PPGS). Possible values: - `true` - `false`
53
+ attr_accessor :domestic_participant
54
+
55
+ # This field indicates if cross-border OCTs (push funds) are allowed. Note: Supported only in US for cross-border transactions involving Push Payments Gateway Service(PPGS). Possible values: - `true` - `false`
56
+ attr_accessor :cross_border_participant
57
+
58
+ # Attribute mapping from ruby-style variable name to JSON key.
59
+ def self.attribute_map
60
+ {
61
+ :'money_transfer_fast_funds_cross_border' => :'moneyTransferFastFundsCrossBorder',
62
+ :'money_transfer_fast_funds_domestic' => :'moneyTransferFastFundsDomestic',
63
+ :'money_transfer_cross_border' => :'moneyTransferCrossBorder',
64
+ :'money_transfer_domestic' => :'moneyTransferDomestic',
65
+ :'non_money_transfer_fast_funds_cross_border' => :'nonMoneyTransferFastFundsCrossBorder',
66
+ :'non_money_transfer_fast_funds_domestic' => :'nonMoneyTransferFastFundsDomestic',
67
+ :'non_money_transfer_cross_border' => :'nonMoneyTransferCrossBorder',
68
+ :'non_money_transfer_domestic' => :'nonMoneyTransferDomestic',
69
+ :'online_gambling_fast_funds_cross_border' => :'onlineGamblingFastFundsCrossBorder',
70
+ :'online_gambling_fast_funds_domestic' => :'onlineGamblingFastFundsDomestic',
71
+ :'online_gambling_cross_border' => :'onlineGamblingCrossBorder',
72
+ :'online_gambling_domestic' => :'onlineGamblingDomestic',
73
+ :'domestic_participant' => :'domesticParticipant',
74
+ :'cross_border_participant' => :'crossBorderParticipant'
75
+ }
76
+ end
77
+
78
+ # Attribute mapping from JSON key to ruby-style variable name.
79
+ def self.json_map
80
+ {
81
+ :'money_transfer_fast_funds_cross_border' => :'money_transfer_fast_funds_cross_border',
82
+ :'money_transfer_fast_funds_domestic' => :'money_transfer_fast_funds_domestic',
83
+ :'money_transfer_cross_border' => :'money_transfer_cross_border',
84
+ :'money_transfer_domestic' => :'money_transfer_domestic',
85
+ :'non_money_transfer_fast_funds_cross_border' => :'non_money_transfer_fast_funds_cross_border',
86
+ :'non_money_transfer_fast_funds_domestic' => :'non_money_transfer_fast_funds_domestic',
87
+ :'non_money_transfer_cross_border' => :'non_money_transfer_cross_border',
88
+ :'non_money_transfer_domestic' => :'non_money_transfer_domestic',
89
+ :'online_gambling_fast_funds_cross_border' => :'online_gambling_fast_funds_cross_border',
90
+ :'online_gambling_fast_funds_domestic' => :'online_gambling_fast_funds_domestic',
91
+ :'online_gambling_cross_border' => :'online_gambling_cross_border',
92
+ :'online_gambling_domestic' => :'online_gambling_domestic',
93
+ :'domestic_participant' => :'domestic_participant',
94
+ :'cross_border_participant' => :'cross_border_participant'
95
+ }
96
+ end
97
+
98
+ # Attribute type mapping.
99
+ def self.swagger_types
100
+ {
101
+ :'money_transfer_fast_funds_cross_border' => :'String',
102
+ :'money_transfer_fast_funds_domestic' => :'String',
103
+ :'money_transfer_cross_border' => :'String',
104
+ :'money_transfer_domestic' => :'String',
105
+ :'non_money_transfer_fast_funds_cross_border' => :'String',
106
+ :'non_money_transfer_fast_funds_domestic' => :'String',
107
+ :'non_money_transfer_cross_border' => :'String',
108
+ :'non_money_transfer_domestic' => :'String',
109
+ :'online_gambling_fast_funds_cross_border' => :'String',
110
+ :'online_gambling_fast_funds_domestic' => :'String',
111
+ :'online_gambling_cross_border' => :'String',
112
+ :'online_gambling_domestic' => :'String',
113
+ :'domestic_participant' => :'String',
114
+ :'cross_border_participant' => :'String'
115
+ }
116
+ end
117
+
118
+ # Initializes the object
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ def initialize(attributes = {})
121
+ return unless attributes.is_a?(Hash)
122
+
123
+ # convert string to symbol for hash key
124
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
125
+
126
+ if attributes.has_key?(:'moneyTransferFastFundsCrossBorder')
127
+ self.money_transfer_fast_funds_cross_border = attributes[:'moneyTransferFastFundsCrossBorder']
128
+ end
129
+
130
+ if attributes.has_key?(:'moneyTransferFastFundsDomestic')
131
+ self.money_transfer_fast_funds_domestic = attributes[:'moneyTransferFastFundsDomestic']
132
+ end
133
+
134
+ if attributes.has_key?(:'moneyTransferCrossBorder')
135
+ self.money_transfer_cross_border = attributes[:'moneyTransferCrossBorder']
136
+ end
137
+
138
+ if attributes.has_key?(:'moneyTransferDomestic')
139
+ self.money_transfer_domestic = attributes[:'moneyTransferDomestic']
140
+ end
141
+
142
+ if attributes.has_key?(:'nonMoneyTransferFastFundsCrossBorder')
143
+ self.non_money_transfer_fast_funds_cross_border = attributes[:'nonMoneyTransferFastFundsCrossBorder']
144
+ end
145
+
146
+ if attributes.has_key?(:'nonMoneyTransferFastFundsDomestic')
147
+ self.non_money_transfer_fast_funds_domestic = attributes[:'nonMoneyTransferFastFundsDomestic']
148
+ end
149
+
150
+ if attributes.has_key?(:'nonMoneyTransferCrossBorder')
151
+ self.non_money_transfer_cross_border = attributes[:'nonMoneyTransferCrossBorder']
152
+ end
153
+
154
+ if attributes.has_key?(:'nonMoneyTransferDomestic')
155
+ self.non_money_transfer_domestic = attributes[:'nonMoneyTransferDomestic']
156
+ end
157
+
158
+ if attributes.has_key?(:'onlineGamblingFastFundsCrossBorder')
159
+ self.online_gambling_fast_funds_cross_border = attributes[:'onlineGamblingFastFundsCrossBorder']
160
+ end
161
+
162
+ if attributes.has_key?(:'onlineGamblingFastFundsDomestic')
163
+ self.online_gambling_fast_funds_domestic = attributes[:'onlineGamblingFastFundsDomestic']
164
+ end
165
+
166
+ if attributes.has_key?(:'onlineGamblingCrossBorder')
167
+ self.online_gambling_cross_border = attributes[:'onlineGamblingCrossBorder']
168
+ end
169
+
170
+ if attributes.has_key?(:'onlineGamblingDomestic')
171
+ self.online_gambling_domestic = attributes[:'onlineGamblingDomestic']
172
+ end
173
+
174
+ if attributes.has_key?(:'domesticParticipant')
175
+ self.domestic_participant = attributes[:'domesticParticipant']
176
+ end
177
+
178
+ if attributes.has_key?(:'crossBorderParticipant')
179
+ self.cross_border_participant = attributes[:'crossBorderParticipant']
180
+ end
181
+ end
182
+
183
+ # Show invalid properties with the reasons. Usually used together with valid?
184
+ # @return Array for valid properties with the reasons
185
+ def list_invalid_properties
186
+ invalid_properties = Array.new
187
+ invalid_properties
188
+ end
189
+
190
+ # Check to see if the all the properties in the model are valid
191
+ # @return true if the model is valid
192
+ def valid?
193
+ true
194
+ end
195
+
196
+ # Custom attribute writer method with validation
197
+ # @param [Object] money_transfer_fast_funds_cross_border Value to be assigned
198
+ def money_transfer_fast_funds_cross_border=(money_transfer_fast_funds_cross_border)
199
+ @money_transfer_fast_funds_cross_border = money_transfer_fast_funds_cross_border
200
+ end
201
+
202
+ # Custom attribute writer method with validation
203
+ # @param [Object] money_transfer_fast_funds_domestic Value to be assigned
204
+ def money_transfer_fast_funds_domestic=(money_transfer_fast_funds_domestic)
205
+ @money_transfer_fast_funds_domestic = money_transfer_fast_funds_domestic
206
+ end
207
+
208
+ # Custom attribute writer method with validation
209
+ # @param [Object] money_transfer_cross_border Value to be assigned
210
+ def money_transfer_cross_border=(money_transfer_cross_border)
211
+ @money_transfer_cross_border = money_transfer_cross_border
212
+ end
213
+
214
+ # Custom attribute writer method with validation
215
+ # @param [Object] money_transfer_domestic Value to be assigned
216
+ def money_transfer_domestic=(money_transfer_domestic)
217
+ @money_transfer_domestic = money_transfer_domestic
218
+ end
219
+
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] non_money_transfer_fast_funds_cross_border Value to be assigned
222
+ def non_money_transfer_fast_funds_cross_border=(non_money_transfer_fast_funds_cross_border)
223
+ @non_money_transfer_fast_funds_cross_border = non_money_transfer_fast_funds_cross_border
224
+ end
225
+
226
+ # Custom attribute writer method with validation
227
+ # @param [Object] non_money_transfer_fast_funds_domestic Value to be assigned
228
+ def non_money_transfer_fast_funds_domestic=(non_money_transfer_fast_funds_domestic)
229
+ @non_money_transfer_fast_funds_domestic = non_money_transfer_fast_funds_domestic
230
+ end
231
+
232
+ # Custom attribute writer method with validation
233
+ # @param [Object] non_money_transfer_cross_border Value to be assigned
234
+ def non_money_transfer_cross_border=(non_money_transfer_cross_border)
235
+ @non_money_transfer_cross_border = non_money_transfer_cross_border
236
+ end
237
+
238
+ # Custom attribute writer method with validation
239
+ # @param [Object] non_money_transfer_domestic Value to be assigned
240
+ def non_money_transfer_domestic=(non_money_transfer_domestic)
241
+ @non_money_transfer_domestic = non_money_transfer_domestic
242
+ end
243
+
244
+ # Custom attribute writer method with validation
245
+ # @param [Object] online_gambling_fast_funds_cross_border Value to be assigned
246
+ def online_gambling_fast_funds_cross_border=(online_gambling_fast_funds_cross_border)
247
+ @online_gambling_fast_funds_cross_border = online_gambling_fast_funds_cross_border
248
+ end
249
+
250
+ # Custom attribute writer method with validation
251
+ # @param [Object] online_gambling_fast_funds_domestic Value to be assigned
252
+ def online_gambling_fast_funds_domestic=(online_gambling_fast_funds_domestic)
253
+ @online_gambling_fast_funds_domestic = online_gambling_fast_funds_domestic
254
+ end
255
+
256
+ # Custom attribute writer method with validation
257
+ # @param [Object] online_gambling_cross_border Value to be assigned
258
+ def online_gambling_cross_border=(online_gambling_cross_border)
259
+ @online_gambling_cross_border = online_gambling_cross_border
260
+ end
261
+
262
+ # Custom attribute writer method with validation
263
+ # @param [Object] online_gambling_domestic Value to be assigned
264
+ def online_gambling_domestic=(online_gambling_domestic)
265
+ @online_gambling_domestic = online_gambling_domestic
266
+ end
267
+
268
+ # Custom attribute writer method with validation
269
+ # @param [Object] domestic_participant Value to be assigned
270
+ def domestic_participant=(domestic_participant)
271
+ @domestic_participant = domestic_participant
272
+ end
273
+
274
+ # Custom attribute writer method with validation
275
+ # @param [Object] cross_border_participant Value to be assigned
276
+ def cross_border_participant=(cross_border_participant)
277
+ @cross_border_participant = cross_border_participant
278
+ end
279
+
280
+ # Checks equality by comparing each attribute.
281
+ # @param [Object] Object to be compared
282
+ def ==(o)
283
+ return true if self.equal?(o)
284
+ self.class == o.class &&
285
+ money_transfer_fast_funds_cross_border == o.money_transfer_fast_funds_cross_border &&
286
+ money_transfer_fast_funds_domestic == o.money_transfer_fast_funds_domestic &&
287
+ money_transfer_cross_border == o.money_transfer_cross_border &&
288
+ money_transfer_domestic == o.money_transfer_domestic &&
289
+ non_money_transfer_fast_funds_cross_border == o.non_money_transfer_fast_funds_cross_border &&
290
+ non_money_transfer_fast_funds_domestic == o.non_money_transfer_fast_funds_domestic &&
291
+ non_money_transfer_cross_border == o.non_money_transfer_cross_border &&
292
+ non_money_transfer_domestic == o.non_money_transfer_domestic &&
293
+ online_gambling_fast_funds_cross_border == o.online_gambling_fast_funds_cross_border &&
294
+ online_gambling_fast_funds_domestic == o.online_gambling_fast_funds_domestic &&
295
+ online_gambling_cross_border == o.online_gambling_cross_border &&
296
+ online_gambling_domestic == o.online_gambling_domestic &&
297
+ domestic_participant == o.domestic_participant &&
298
+ cross_border_participant == o.cross_border_participant
299
+ end
300
+
301
+ # @see the `==` method
302
+ # @param [Object] Object to be compared
303
+ def eql?(o)
304
+ self == o
305
+ end
306
+
307
+ # Calculates hash code according to all attributes.
308
+ # @return [Fixnum] Hash code
309
+ def hash
310
+ [money_transfer_fast_funds_cross_border, money_transfer_fast_funds_domestic, money_transfer_cross_border, money_transfer_domestic, non_money_transfer_fast_funds_cross_border, non_money_transfer_fast_funds_domestic, non_money_transfer_cross_border, non_money_transfer_domestic, online_gambling_fast_funds_cross_border, online_gambling_fast_funds_domestic, online_gambling_cross_border, online_gambling_domestic, domestic_participant, cross_border_participant].hash
311
+ end
312
+
313
+ # Builds the object from hash
314
+ # @param [Hash] attributes Model attributes in the form of hash
315
+ # @return [Object] Returns the model itself
316
+ def build_from_hash(attributes)
317
+ return nil unless attributes.is_a?(Hash)
318
+ self.class.swagger_types.each_pair do |key, type|
319
+ if type =~ /\AArray<(.*)>/i
320
+ # check to ensure the input is an array given that the the attribute
321
+ # is documented as an array but the input is not
322
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
323
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
324
+ end
325
+ elsif !attributes[self.class.attribute_map[key]].nil?
326
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
327
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
328
+ end
329
+
330
+ self
331
+ end
332
+
333
+ # Deserializes the data based on type
334
+ # @param string type Data type
335
+ # @param string value Value to be deserialized
336
+ # @return [Object] Deserialized data
337
+ def _deserialize(type, value)
338
+ case type.to_sym
339
+ when :DateTime
340
+ DateTime.parse(value)
341
+ when :Date
342
+ Date.parse(value)
343
+ when :String
344
+ value.to_s
345
+ when :Integer
346
+ value.to_i
347
+ when :Float
348
+ value.to_f
349
+ when :BOOLEAN
350
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
351
+ true
352
+ else
353
+ false
354
+ end
355
+ when :Object
356
+ # generic object (usually a Hash), return directly
357
+ value
358
+ when /\AArray<(?<inner_type>.+)>\z/
359
+ inner_type = Regexp.last_match[:inner_type]
360
+ value.map { |v| _deserialize(inner_type, v) }
361
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
362
+ k_type = Regexp.last_match[:k_type]
363
+ v_type = Regexp.last_match[:v_type]
364
+ {}.tap do |hash|
365
+ value.each do |k, v|
366
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
367
+ end
368
+ end
369
+ else # model
370
+ temp_model = CyberSource.const_get(type).new
371
+ temp_model.build_from_hash(value)
372
+ end
373
+ end
374
+
375
+ # Returns the string representation of the object
376
+ # @return [String] String presentation of the object
377
+ def to_s
378
+ to_hash.to_s
379
+ end
380
+
381
+ # to_body is an alias to to_hash (backward compatibility)
382
+ # @return [Hash] Returns the object in the form of hash
383
+ def to_body
384
+ to_hash
385
+ end
386
+
387
+ # Returns the object in the form of hash
388
+ # @return [Hash] Returns the object in the form of hash
389
+ def to_hash
390
+ hash = {}
391
+ self.class.attribute_map.each_pair do |attr, param|
392
+ value = self.send(attr)
393
+ next if value.nil?
394
+ hash[param] = _to_hash(value)
395
+ end
396
+ hash
397
+ end
398
+
399
+ # Outputs non-array value in the form of hash
400
+ # For object, use to_hash. Otherwise, just return the value
401
+ # @param [Object] value Any valid value
402
+ # @return [Hash] Returns the value in the form of hash
403
+ def _to_hash(value)
404
+ if value.is_a?(Array)
405
+ value.compact.map { |v| _to_hash(v) }
406
+ elsif value.is_a?(Hash)
407
+ {}.tap do |hash|
408
+ value.each { |k, v| hash[k] = _to_hash(v) }
409
+ end
410
+ elsif value.respond_to? :to_hash
411
+ value.to_hash
412
+ else
413
+ value
414
+ end
415
+ end
416
+ end
417
+ end