cybersource_rest_client 0.0.64 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  3. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  4. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +3 -3
  5. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +6 -6
  6. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  7. data/lib/cybersource_rest_client/models/bin_lookupv400_response.rb +224 -224
  8. data/lib/cybersource_rest_client/models/binv1binlookup_client_reference_information.rb +222 -222
  9. data/lib/cybersource_rest_client/models/binv1binlookup_payment_information.rb +219 -219
  10. data/lib/cybersource_rest_client/models/binv1binlookup_payment_information_card.rb +196 -196
  11. data/lib/cybersource_rest_client/models/binv1binlookup_processing_information.rb +200 -200
  12. data/lib/cybersource_rest_client/models/binv1binlookup_processing_information_payout_options.rb +213 -213
  13. data/lib/cybersource_rest_client/models/binv1binlookup_token_information.rb +207 -207
  14. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +321 -321
  15. data/lib/cybersource_rest_client/models/create_bin_lookup_request.rb +219 -219
  16. data/lib/cybersource_rest_client/models/create_payment_request.rb +462 -452
  17. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +253 -247
  18. data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information.rb → inline_response_200_1_integration_information.rb} +204 -204
  19. data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information_tenant_configurations.rb → inline_response_200_1_integration_information_tenant_configurations.rb} +296 -296
  20. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +25 -65
  21. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +335 -213
  22. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +251 -335
  23. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded.rb → inline_response_200_5__embedded.rb} +191 -191
  24. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links.rb → inline_response_200_5__embedded__links.rb} +191 -191
  25. data/lib/cybersource_rest_client/models/{inline_response_200_7__links_report.rb → inline_response_200_5__embedded__links_reports.rb} +190 -189
  26. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_batches.rb → inline_response_200_5__embedded_batches.rb} +295 -295
  27. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_totals.rb → inline_response_200_5__embedded_totals.rb} +229 -229
  28. data/lib/cybersource_rest_client/models/inline_response_200_5__links.rb +200 -0
  29. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +290 -251
  30. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +201 -200
  31. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links_reports.rb → inline_response_200_6__links_report.rb} +189 -190
  32. data/lib/cybersource_rest_client/models/{inline_response_200_7_billing.rb → inline_response_200_6_billing.rb} +219 -219
  33. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +292 -290
  34. data/lib/cybersource_rest_client/models/{inline_response_200_8_records.rb → inline_response_200_7_records.rb} +209 -209
  35. data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record.rb → inline_response_200_7_response_record.rb} +307 -307
  36. data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record_additional_updates.rb → inline_response_200_7_response_record_additional_updates.rb} +242 -242
  37. data/lib/cybersource_rest_client/models/{inline_response_200_8_source_record.rb → inline_response_200_7_source_record.rb} +295 -295
  38. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +248 -248
  39. data/lib/cybersource_rest_client/models/inline_response_201_1_issuer_information.rb +264 -264
  40. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information.rb +209 -209
  41. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card.rb +277 -277
  42. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card_brands.rb +213 -213
  43. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_features.rb +320 -320
  44. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_network.rb +190 -190
  45. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information.rb +216 -216
  46. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_pull_funds.rb +213 -213
  47. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_push_funds.rb +417 -417
  48. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +315 -315
  49. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information.rb +192 -192
  50. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +286 -286
  51. data/lib/cybersource_rest_client/models/inline_response_201_2_organization_information.rb +217 -217
  52. data/lib/cybersource_rest_client/models/inline_response_201_2_product_information_setups.rb +214 -214
  53. data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +256 -256
  54. data/lib/cybersource_rest_client/models/inline_response_201_2_setups.rb +219 -219
  55. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_commerce_solutions.rb +209 -209
  56. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +15 -5
  57. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing.rb +199 -199
  58. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +299 -299
  59. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +278 -278
  60. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_digital_payments.rb +189 -189
  61. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_risk.rb +199 -199
  62. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_value_added_services.rb +199 -199
  63. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +222 -222
  64. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information.rb +300 -300
  65. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information.rb +202 -202
  66. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information_details.rb +201 -201
  67. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +347 -347
  68. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +222 -222
  69. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +269 -234
  70. data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_5_details.rb} +201 -201
  71. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +275 -235
  72. data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_6_details.rb} +199 -199
  73. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +269 -269
  74. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +269 -269
  75. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +257 -223
  76. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +225 -225
  77. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +225 -225
  78. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +333 -333
  79. data/lib/cybersource_rest_client/models/merchant_initiated_transaction_object.rb +241 -241
  80. data/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb +244 -243
  81. data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +219 -219
  82. data/lib/cybersource_rest_client/models/payments_products.rb +369 -359
  83. data/lib/cybersource_rest_client/models/{kms_v2_keys_asym_get200_response.rb → payments_products_service_fee.rb} +199 -200
  84. data/lib/cybersource_rest_client/models/{inline_response_200_7__links.rb → payments_products_service_fee_configuration_information.rb} +189 -201
  85. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → payments_products_service_fee_configuration_information_configurations.rb} +266 -292
  86. data/lib/cybersource_rest_client/models/{kms_v2_keys_sym_deletes_post200_response_key_information.rb → payments_products_service_fee_configuration_information_configurations_merchant_information.rb} +239 -234
  87. data/lib/cybersource_rest_client/models/{inline_response_400_8.rb → payments_products_service_fee_configuration_information_configurations_payment_information.rb} +280 -275
  88. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb +190 -0
  89. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +284 -284
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information.rb +233 -233
  91. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +249 -249
  92. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_2_processor_information.rb +264 -264
  93. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +765 -765
  94. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb +212 -212
  95. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  96. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +264 -264
  97. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  98. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information.rb +199 -199
  99. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_orchestration.rb +192 -192
  100. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +230 -230
  101. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +223 -223
  102. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +217 -217
  103. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +18 -1
  104. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +230 -230
  105. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +196 -196
  106. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +232 -232
  107. data/lib/cybersource_rest_client/models/ptsv2billingagreements_buyer_information.rb +247 -247
  108. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +326 -326
  109. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +285 -285
  110. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +241 -241
  111. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  112. data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +196 -196
  113. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +453 -453
  114. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_line_items.rb +361 -361
  115. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_ship_to.rb +485 -485
  116. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +366 -366
  117. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +1075 -1075
  118. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +416 -416
  119. data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +196 -196
  120. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +464 -464
  121. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +405 -405
  122. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +641 -641
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_order.rb +332 -332
  124. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +286 -286
  125. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +444 -444
  126. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +699 -699
  127. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +496 -496
  128. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +346 -346
  129. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference.rb +196 -196
  130. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  131. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +633 -633
  132. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +704 -704
  133. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +467 -456
  134. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +213 -213
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +205 -205
  136. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +72 -4
  137. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +298 -0
  138. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +332 -332
  139. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  140. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +267 -267
  141. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +287 -287
  142. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +206 -206
  143. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +362 -362
  144. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +257 -257
  145. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +502 -502
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +299 -299
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +342 -342
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +192 -192
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +213 -213
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +287 -287
  151. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +234 -234
  152. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +286 -286
  153. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +301 -301
  154. data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +190 -190
  155. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +269 -280
  156. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +80 -1
  157. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +279 -290
  158. data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +235 -235
  159. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +840 -840
  160. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +290 -290
  161. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +312 -337
  162. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -258
  163. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  164. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +434 -366
  165. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +497 -497
  166. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
  167. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  168. data/lib/cybersource_rest_client/models/{kmsv2keyssym_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +240 -217
  169. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  170. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +213 -213
  171. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +812 -820
  172. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +223 -223
  173. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +416 -416
  174. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  175. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +314 -314
  176. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +196 -196
  177. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account.rb +207 -207
  178. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info.rb +200 -200
  179. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options.rb +196 -196
  180. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +236 -236
  181. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +292 -292
  182. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +349 -349
  183. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +222 -222
  184. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
  185. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +241 -241
  186. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +231 -231
  187. data/lib/cybersource_rest_client/models/validate_request.rb +249 -249
  188. data/lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb +196 -196
  189. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +403 -403
  190. data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +0 -5
  191. data/lib/cybersource_rest_client.rb +24 -57
  192. metadata +26 -59
  193. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +0 -307
  194. data/lib/cybersource_rest_client/api/key_management_api.rb +0 -120
  195. data/lib/cybersource_rest_client/api/key_management_password_api.rb +0 -98
  196. data/lib/cybersource_rest_client/api/key_management_pgp_api.rb +0 -98
  197. data/lib/cybersource_rest_client/api/key_management_scmp_api.rb +0 -98
  198. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +0 -308
  199. data/lib/cybersource_rest_client/models/create_p12_keys_request.rb +0 -201
  200. data/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb +0 -201
  201. data/lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb +0 -201
  202. data/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb +0 -201
  203. data/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb +0 -201
  204. data/lib/cybersource_rest_client/models/inline_response_200_1_keys.rb +0 -323
  205. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +0 -269
  206. data/lib/cybersource_rest_client/models/inline_response_500_3.rb +0 -257
  207. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +0 -234
  208. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb +0 -212
  209. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb +0 -245
  210. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb +0 -267
  211. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb +0 -235
  212. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information.rb +0 -223
  213. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb +0 -278
  214. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb +0 -223
  215. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb +0 -211
  216. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information.rb +0 -245
  217. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb +0 -223
  218. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information.rb +0 -202
  219. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +0 -284
  220. data/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +0 -223
  221. data/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +0 -207
  222. data/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +0 -223
  223. data/lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb +0 -254
  224. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -290
  225. data/lib/cybersource_rest_client/models/update_asym_keys_request.rb +0 -211
  226. data/lib/cybersource_rest_client/models/update_password_keys_request.rb +0 -211
  227. data/lib/cybersource_rest_client/models/update_pgp_keys_request.rb +0 -211
  228. data/lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb +0 -234
@@ -1,641 +1,641 @@
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 Ptsv2paymentsOrderInformationAmountDetails
16
- # Amount being charged as gift wrap fee.
17
- attr_accessor :gift_wrap_amount
18
-
19
- # Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Card Present Required to include either this field or `orderInformation.lineItems[].unitPrice` for the order. #### Invoicing Required for creating a new invoice. #### PIN Debit Amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit; however, for all other processors, these fields are required. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. #### DCC for First Data Not used.
20
- attr_accessor :total_amount
21
-
22
- # Subtotal amount of all the items.This amount (which is the value of all items in the cart, not including the additional amounts such as tax, shipping, etc.) cannot change after a sessions request. When there is a change to any of the additional amounts, this field should be resent in the order request. When the sub total amount changes, you must initiate a new transaction starting with a sessions request. Note The amount value must be a non-negative number containing 2 decimal places and limited to 7 digits before the decimal point. This value can not be changed after a sessions request.
23
- attr_accessor :sub_total_amount
24
-
25
- # Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency.
26
- attr_accessor :currency
27
-
28
- # Total discount amount applied to the order.
29
- attr_accessor :discount_amount
30
-
31
- # Total charges for any import or export duties included in the order.
32
- attr_accessor :duty_amount
33
-
34
- # Gratuity or tip amount for restaurants. Allowed only when industryDatatype=restaurant. When your customer uses a debit card or prepaid card, and you receive a partial authorization, the payment networks recommend that you do not submit a capture amount that is higher than the authorized amount. When the capture amount exceeds the partial amount that was approved, the issuer has chargeback rights for the excess amount. Used by **Capture** Optional field. #### CyberSource through VisaNet Restaurant data is supported only on CyberSource through VisaNet when card is present.
35
- attr_accessor :gratuity_amount
36
-
37
- # Total tax amount for all the items in the order.
38
- attr_accessor :tax_amount
39
-
40
- # Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included
41
- attr_accessor :national_tax_included
42
-
43
- # Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total
44
- attr_accessor :tax_applied_after_discount
45
-
46
- # Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction
47
- attr_accessor :tax_applied_level
48
-
49
- # For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space.
50
- attr_accessor :tax_type_code
51
-
52
- # Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field.
53
- attr_accessor :freight_amount
54
-
55
- # Set this field to the converted amount that was returned by the DCC provider.
56
- attr_accessor :foreign_amount
57
-
58
- # Set this field to the converted amount that was returned by the DCC provider.
59
- attr_accessor :foreign_currency
60
-
61
- # Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places.
62
- attr_accessor :exchange_rate
63
-
64
- # Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space.
65
- attr_accessor :exchange_rate_time_stamp
66
-
67
- attr_accessor :surcharge
68
-
69
- # This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder's account. This field is returned for OCT transactions.
70
- attr_accessor :settlement_amount
71
-
72
- # This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. This field is returned for OCT transactions.
73
- attr_accessor :settlement_currency
74
-
75
- attr_accessor :amex_additional_amounts
76
-
77
- attr_accessor :tax_details
78
-
79
- # Service fee. Required for service fee transactions.
80
- attr_accessor :service_fee_amount
81
-
82
- # Amount in your original local pricing currency. This value cannot be negative. You can include a decimal point (.) in this field to denote the currency exponent, but you cannot include any other special characters. If needed, CyberSource truncates the amount to the correct number of decimal places.
83
- attr_accessor :original_amount
84
-
85
- # Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
86
- attr_accessor :original_currency
87
-
88
- # Cashback amount in the acquirer's currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit Optional field for PIN debit purchase, PIN debit credit or PIN debit reversal.
89
- attr_accessor :cashback_amount
90
-
91
- attr_accessor :currency_conversion
92
-
93
- attr_accessor :order
94
-
95
- # This API Field contains the anticipated amount details. This supports use cases where the Merchant does not wish to have funds held against the account, but needs to confirm an amount prior to authorization, such as for a trial subscription, reservation service, or loyalty program. In an account verification, the anticipated amount is used to confirm the account has availability to accept purchases.
96
- attr_accessor :anticipated_amount
97
-
98
- # Attribute mapping from ruby-style variable name to JSON key.
99
- def self.attribute_map
100
- {
101
- :'gift_wrap_amount' => :'giftWrapAmount',
102
- :'total_amount' => :'totalAmount',
103
- :'sub_total_amount' => :'subTotalAmount',
104
- :'currency' => :'currency',
105
- :'discount_amount' => :'discountAmount',
106
- :'duty_amount' => :'dutyAmount',
107
- :'gratuity_amount' => :'gratuityAmount',
108
- :'tax_amount' => :'taxAmount',
109
- :'national_tax_included' => :'nationalTaxIncluded',
110
- :'tax_applied_after_discount' => :'taxAppliedAfterDiscount',
111
- :'tax_applied_level' => :'taxAppliedLevel',
112
- :'tax_type_code' => :'taxTypeCode',
113
- :'freight_amount' => :'freightAmount',
114
- :'foreign_amount' => :'foreignAmount',
115
- :'foreign_currency' => :'foreignCurrency',
116
- :'exchange_rate' => :'exchangeRate',
117
- :'exchange_rate_time_stamp' => :'exchangeRateTimeStamp',
118
- :'surcharge' => :'surcharge',
119
- :'settlement_amount' => :'settlementAmount',
120
- :'settlement_currency' => :'settlementCurrency',
121
- :'amex_additional_amounts' => :'amexAdditionalAmounts',
122
- :'tax_details' => :'taxDetails',
123
- :'service_fee_amount' => :'serviceFeeAmount',
124
- :'original_amount' => :'originalAmount',
125
- :'original_currency' => :'originalCurrency',
126
- :'cashback_amount' => :'cashbackAmount',
127
- :'currency_conversion' => :'currencyConversion',
128
- :'order' => :'order',
129
- :'anticipated_amount' => :'anticipatedAmount'
130
- }
131
- end
132
-
133
- # Attribute mapping from JSON key to ruby-style variable name.
134
- def self.json_map
135
- {
136
- :'gift_wrap_amount' => :'gift_wrap_amount',
137
- :'total_amount' => :'total_amount',
138
- :'sub_total_amount' => :'sub_total_amount',
139
- :'currency' => :'currency',
140
- :'discount_amount' => :'discount_amount',
141
- :'duty_amount' => :'duty_amount',
142
- :'gratuity_amount' => :'gratuity_amount',
143
- :'tax_amount' => :'tax_amount',
144
- :'national_tax_included' => :'national_tax_included',
145
- :'tax_applied_after_discount' => :'tax_applied_after_discount',
146
- :'tax_applied_level' => :'tax_applied_level',
147
- :'tax_type_code' => :'tax_type_code',
148
- :'freight_amount' => :'freight_amount',
149
- :'foreign_amount' => :'foreign_amount',
150
- :'foreign_currency' => :'foreign_currency',
151
- :'exchange_rate' => :'exchange_rate',
152
- :'exchange_rate_time_stamp' => :'exchange_rate_time_stamp',
153
- :'surcharge' => :'surcharge',
154
- :'settlement_amount' => :'settlement_amount',
155
- :'settlement_currency' => :'settlement_currency',
156
- :'amex_additional_amounts' => :'amex_additional_amounts',
157
- :'tax_details' => :'tax_details',
158
- :'service_fee_amount' => :'service_fee_amount',
159
- :'original_amount' => :'original_amount',
160
- :'original_currency' => :'original_currency',
161
- :'cashback_amount' => :'cashback_amount',
162
- :'currency_conversion' => :'currency_conversion',
163
- :'order' => :'order',
164
- :'anticipated_amount' => :'anticipated_amount'
165
- }
166
- end
167
-
168
- # Attribute type mapping.
169
- def self.swagger_types
170
- {
171
- :'gift_wrap_amount' => :'String',
172
- :'total_amount' => :'String',
173
- :'sub_total_amount' => :'String',
174
- :'currency' => :'String',
175
- :'discount_amount' => :'String',
176
- :'duty_amount' => :'String',
177
- :'gratuity_amount' => :'String',
178
- :'tax_amount' => :'String',
179
- :'national_tax_included' => :'String',
180
- :'tax_applied_after_discount' => :'String',
181
- :'tax_applied_level' => :'String',
182
- :'tax_type_code' => :'String',
183
- :'freight_amount' => :'String',
184
- :'foreign_amount' => :'String',
185
- :'foreign_currency' => :'String',
186
- :'exchange_rate' => :'String',
187
- :'exchange_rate_time_stamp' => :'String',
188
- :'surcharge' => :'Ptsv2paymentsOrderInformationAmountDetailsSurcharge',
189
- :'settlement_amount' => :'String',
190
- :'settlement_currency' => :'String',
191
- :'amex_additional_amounts' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts>',
192
- :'tax_details' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsTaxDetails>',
193
- :'service_fee_amount' => :'String',
194
- :'original_amount' => :'String',
195
- :'original_currency' => :'String',
196
- :'cashback_amount' => :'String',
197
- :'currency_conversion' => :'Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion',
198
- :'order' => :'Ptsv2paymentsOrderInformationAmountDetailsOrder',
199
- :'anticipated_amount' => :'String'
200
- }
201
- end
202
-
203
- # Initializes the object
204
- # @param [Hash] attributes Model attributes in the form of hash
205
- def initialize(attributes = {})
206
- return unless attributes.is_a?(Hash)
207
-
208
- # convert string to symbol for hash key
209
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
210
-
211
- if attributes.has_key?(:'giftWrapAmount')
212
- self.gift_wrap_amount = attributes[:'giftWrapAmount']
213
- end
214
-
215
- if attributes.has_key?(:'totalAmount')
216
- self.total_amount = attributes[:'totalAmount']
217
- end
218
-
219
- if attributes.has_key?(:'subTotalAmount')
220
- self.sub_total_amount = attributes[:'subTotalAmount']
221
- end
222
-
223
- if attributes.has_key?(:'currency')
224
- self.currency = attributes[:'currency']
225
- end
226
-
227
- if attributes.has_key?(:'discountAmount')
228
- self.discount_amount = attributes[:'discountAmount']
229
- end
230
-
231
- if attributes.has_key?(:'dutyAmount')
232
- self.duty_amount = attributes[:'dutyAmount']
233
- end
234
-
235
- if attributes.has_key?(:'gratuityAmount')
236
- self.gratuity_amount = attributes[:'gratuityAmount']
237
- end
238
-
239
- if attributes.has_key?(:'taxAmount')
240
- self.tax_amount = attributes[:'taxAmount']
241
- end
242
-
243
- if attributes.has_key?(:'nationalTaxIncluded')
244
- self.national_tax_included = attributes[:'nationalTaxIncluded']
245
- end
246
-
247
- if attributes.has_key?(:'taxAppliedAfterDiscount')
248
- self.tax_applied_after_discount = attributes[:'taxAppliedAfterDiscount']
249
- end
250
-
251
- if attributes.has_key?(:'taxAppliedLevel')
252
- self.tax_applied_level = attributes[:'taxAppliedLevel']
253
- end
254
-
255
- if attributes.has_key?(:'taxTypeCode')
256
- self.tax_type_code = attributes[:'taxTypeCode']
257
- end
258
-
259
- if attributes.has_key?(:'freightAmount')
260
- self.freight_amount = attributes[:'freightAmount']
261
- end
262
-
263
- if attributes.has_key?(:'foreignAmount')
264
- self.foreign_amount = attributes[:'foreignAmount']
265
- end
266
-
267
- if attributes.has_key?(:'foreignCurrency')
268
- self.foreign_currency = attributes[:'foreignCurrency']
269
- end
270
-
271
- if attributes.has_key?(:'exchangeRate')
272
- self.exchange_rate = attributes[:'exchangeRate']
273
- end
274
-
275
- if attributes.has_key?(:'exchangeRateTimeStamp')
276
- self.exchange_rate_time_stamp = attributes[:'exchangeRateTimeStamp']
277
- end
278
-
279
- if attributes.has_key?(:'surcharge')
280
- self.surcharge = attributes[:'surcharge']
281
- end
282
-
283
- if attributes.has_key?(:'settlementAmount')
284
- self.settlement_amount = attributes[:'settlementAmount']
285
- end
286
-
287
- if attributes.has_key?(:'settlementCurrency')
288
- self.settlement_currency = attributes[:'settlementCurrency']
289
- end
290
-
291
- if attributes.has_key?(:'amexAdditionalAmounts')
292
- if (value = attributes[:'amexAdditionalAmounts']).is_a?(Array)
293
- self.amex_additional_amounts = value
294
- end
295
- end
296
-
297
- if attributes.has_key?(:'taxDetails')
298
- if (value = attributes[:'taxDetails']).is_a?(Array)
299
- self.tax_details = value
300
- end
301
- end
302
-
303
- if attributes.has_key?(:'serviceFeeAmount')
304
- self.service_fee_amount = attributes[:'serviceFeeAmount']
305
- end
306
-
307
- if attributes.has_key?(:'originalAmount')
308
- self.original_amount = attributes[:'originalAmount']
309
- end
310
-
311
- if attributes.has_key?(:'originalCurrency')
312
- self.original_currency = attributes[:'originalCurrency']
313
- end
314
-
315
- if attributes.has_key?(:'cashbackAmount')
316
- self.cashback_amount = attributes[:'cashbackAmount']
317
- end
318
-
319
- if attributes.has_key?(:'currencyConversion')
320
- self.currency_conversion = attributes[:'currencyConversion']
321
- end
322
-
323
- if attributes.has_key?(:'order')
324
- self.order = attributes[:'order']
325
- end
326
-
327
- if attributes.has_key?(:'anticipatedAmount')
328
- self.anticipated_amount = attributes[:'anticipatedAmount']
329
- end
330
- end
331
-
332
- # Show invalid properties with the reasons. Usually used together with valid?
333
- # @return Array for valid properties with the reasons
334
- def list_invalid_properties
335
- invalid_properties = Array.new
336
- invalid_properties
337
- end
338
-
339
- # Check to see if the all the properties in the model are valid
340
- # @return true if the model is valid
341
- def valid?
342
- true
343
- end
344
-
345
- # Custom attribute writer method with validation
346
- # @param [Object] gift_wrap_amount Value to be assigned
347
- def gift_wrap_amount=(gift_wrap_amount)
348
- @gift_wrap_amount = gift_wrap_amount
349
- end
350
-
351
- # Custom attribute writer method with validation
352
- # @param [Object] total_amount Value to be assigned
353
- def total_amount=(total_amount)
354
- @total_amount = total_amount
355
- end
356
-
357
- # Custom attribute writer method with validation
358
- # @param [Object] sub_total_amount Value to be assigned
359
- def sub_total_amount=(sub_total_amount)
360
- @sub_total_amount = sub_total_amount
361
- end
362
-
363
- # Custom attribute writer method with validation
364
- # @param [Object] currency Value to be assigned
365
- def currency=(currency)
366
- @currency = currency
367
- end
368
-
369
- # Custom attribute writer method with validation
370
- # @param [Object] discount_amount Value to be assigned
371
- def discount_amount=(discount_amount)
372
- @discount_amount = discount_amount
373
- end
374
-
375
- # Custom attribute writer method with validation
376
- # @param [Object] duty_amount Value to be assigned
377
- def duty_amount=(duty_amount)
378
- @duty_amount = duty_amount
379
- end
380
-
381
- # Custom attribute writer method with validation
382
- # @param [Object] gratuity_amount Value to be assigned
383
- def gratuity_amount=(gratuity_amount)
384
- @gratuity_amount = gratuity_amount
385
- end
386
-
387
- # Custom attribute writer method with validation
388
- # @param [Object] tax_amount Value to be assigned
389
- def tax_amount=(tax_amount)
390
- @tax_amount = tax_amount
391
- end
392
-
393
- # Custom attribute writer method with validation
394
- # @param [Object] national_tax_included Value to be assigned
395
- def national_tax_included=(national_tax_included)
396
- @national_tax_included = national_tax_included
397
- end
398
-
399
- # Custom attribute writer method with validation
400
- # @param [Object] tax_applied_after_discount Value to be assigned
401
- def tax_applied_after_discount=(tax_applied_after_discount)
402
- @tax_applied_after_discount = tax_applied_after_discount
403
- end
404
-
405
- # Custom attribute writer method with validation
406
- # @param [Object] tax_applied_level Value to be assigned
407
- def tax_applied_level=(tax_applied_level)
408
- @tax_applied_level = tax_applied_level
409
- end
410
-
411
- # Custom attribute writer method with validation
412
- # @param [Object] tax_type_code Value to be assigned
413
- def tax_type_code=(tax_type_code)
414
- @tax_type_code = tax_type_code
415
- end
416
-
417
- # Custom attribute writer method with validation
418
- # @param [Object] freight_amount Value to be assigned
419
- def freight_amount=(freight_amount)
420
- @freight_amount = freight_amount
421
- end
422
-
423
- # Custom attribute writer method with validation
424
- # @param [Object] foreign_amount Value to be assigned
425
- def foreign_amount=(foreign_amount)
426
- @foreign_amount = foreign_amount
427
- end
428
-
429
- # Custom attribute writer method with validation
430
- # @param [Object] foreign_currency Value to be assigned
431
- def foreign_currency=(foreign_currency)
432
- @foreign_currency = foreign_currency
433
- end
434
-
435
- # Custom attribute writer method with validation
436
- # @param [Object] exchange_rate Value to be assigned
437
- def exchange_rate=(exchange_rate)
438
- @exchange_rate = exchange_rate
439
- end
440
-
441
- # Custom attribute writer method with validation
442
- # @param [Object] exchange_rate_time_stamp Value to be assigned
443
- def exchange_rate_time_stamp=(exchange_rate_time_stamp)
444
- @exchange_rate_time_stamp = exchange_rate_time_stamp
445
- end
446
-
447
- # Custom attribute writer method with validation
448
- # @param [Object] settlement_amount Value to be assigned
449
- def settlement_amount=(settlement_amount)
450
- @settlement_amount = settlement_amount
451
- end
452
-
453
- # Custom attribute writer method with validation
454
- # @param [Object] settlement_currency Value to be assigned
455
- def settlement_currency=(settlement_currency)
456
- @settlement_currency = settlement_currency
457
- end
458
-
459
- # Custom attribute writer method with validation
460
- # @param [Object] service_fee_amount Value to be assigned
461
- def service_fee_amount=(service_fee_amount)
462
- @service_fee_amount = service_fee_amount
463
- end
464
-
465
- # Custom attribute writer method with validation
466
- # @param [Object] original_amount Value to be assigned
467
- def original_amount=(original_amount)
468
- @original_amount = original_amount
469
- end
470
-
471
- # Custom attribute writer method with validation
472
- # @param [Object] original_currency Value to be assigned
473
- def original_currency=(original_currency)
474
- @original_currency = original_currency
475
- end
476
-
477
- # Custom attribute writer method with validation
478
- # @param [Object] cashback_amount Value to be assigned
479
- def cashback_amount=(cashback_amount)
480
- @cashback_amount = cashback_amount
481
- end
482
-
483
- # Custom attribute writer method with validation
484
- # @param [Object] anticipated_amount Value to be assigned
485
- def anticipated_amount=(anticipated_amount)
486
- @anticipated_amount = anticipated_amount
487
- end
488
-
489
- # Checks equality by comparing each attribute.
490
- # @param [Object] Object to be compared
491
- def ==(o)
492
- return true if self.equal?(o)
493
- self.class == o.class &&
494
- gift_wrap_amount == o.gift_wrap_amount &&
495
- total_amount == o.total_amount &&
496
- sub_total_amount == o.sub_total_amount &&
497
- currency == o.currency &&
498
- discount_amount == o.discount_amount &&
499
- duty_amount == o.duty_amount &&
500
- gratuity_amount == o.gratuity_amount &&
501
- tax_amount == o.tax_amount &&
502
- national_tax_included == o.national_tax_included &&
503
- tax_applied_after_discount == o.tax_applied_after_discount &&
504
- tax_applied_level == o.tax_applied_level &&
505
- tax_type_code == o.tax_type_code &&
506
- freight_amount == o.freight_amount &&
507
- foreign_amount == o.foreign_amount &&
508
- foreign_currency == o.foreign_currency &&
509
- exchange_rate == o.exchange_rate &&
510
- exchange_rate_time_stamp == o.exchange_rate_time_stamp &&
511
- surcharge == o.surcharge &&
512
- settlement_amount == o.settlement_amount &&
513
- settlement_currency == o.settlement_currency &&
514
- amex_additional_amounts == o.amex_additional_amounts &&
515
- tax_details == o.tax_details &&
516
- service_fee_amount == o.service_fee_amount &&
517
- original_amount == o.original_amount &&
518
- original_currency == o.original_currency &&
519
- cashback_amount == o.cashback_amount &&
520
- currency_conversion == o.currency_conversion &&
521
- order == o.order &&
522
- anticipated_amount == o.anticipated_amount
523
- end
524
-
525
- # @see the `==` method
526
- # @param [Object] Object to be compared
527
- def eql?(o)
528
- self == o
529
- end
530
-
531
- # Calculates hash code according to all attributes.
532
- # @return [Fixnum] Hash code
533
- def hash
534
- [gift_wrap_amount, total_amount, sub_total_amount, currency, discount_amount, duty_amount, gratuity_amount, tax_amount, national_tax_included, tax_applied_after_discount, tax_applied_level, tax_type_code, freight_amount, foreign_amount, foreign_currency, exchange_rate, exchange_rate_time_stamp, surcharge, settlement_amount, settlement_currency, amex_additional_amounts, tax_details, service_fee_amount, original_amount, original_currency, cashback_amount, currency_conversion, order, anticipated_amount].hash
535
- end
536
-
537
- # Builds the object from hash
538
- # @param [Hash] attributes Model attributes in the form of hash
539
- # @return [Object] Returns the model itself
540
- def build_from_hash(attributes)
541
- return nil unless attributes.is_a?(Hash)
542
- self.class.swagger_types.each_pair do |key, type|
543
- if type =~ /\AArray<(.*)>/i
544
- # check to ensure the input is an array given that the the attribute
545
- # is documented as an array but the input is not
546
- if attributes[self.class.attribute_map[key]].is_a?(Array)
547
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
548
- end
549
- elsif !attributes[self.class.attribute_map[key]].nil?
550
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
551
- end # or else data not found in attributes(hash), not an issue as the data can be optional
552
- end
553
-
554
- self
555
- end
556
-
557
- # Deserializes the data based on type
558
- # @param string type Data type
559
- # @param string value Value to be deserialized
560
- # @return [Object] Deserialized data
561
- def _deserialize(type, value)
562
- case type.to_sym
563
- when :DateTime
564
- DateTime.parse(value)
565
- when :Date
566
- Date.parse(value)
567
- when :String
568
- value.to_s
569
- when :Integer
570
- value.to_i
571
- when :Float
572
- value.to_f
573
- when :BOOLEAN
574
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
575
- true
576
- else
577
- false
578
- end
579
- when :Object
580
- # generic object (usually a Hash), return directly
581
- value
582
- when /\AArray<(?<inner_type>.+)>\z/
583
- inner_type = Regexp.last_match[:inner_type]
584
- value.map { |v| _deserialize(inner_type, v) }
585
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
586
- k_type = Regexp.last_match[:k_type]
587
- v_type = Regexp.last_match[:v_type]
588
- {}.tap do |hash|
589
- value.each do |k, v|
590
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
591
- end
592
- end
593
- else # model
594
- temp_model = CyberSource.const_get(type).new
595
- temp_model.build_from_hash(value)
596
- end
597
- end
598
-
599
- # Returns the string representation of the object
600
- # @return [String] String presentation of the object
601
- def to_s
602
- to_hash.to_s
603
- end
604
-
605
- # to_body is an alias to to_hash (backward compatibility)
606
- # @return [Hash] Returns the object in the form of hash
607
- def to_body
608
- to_hash
609
- end
610
-
611
- # Returns the object in the form of hash
612
- # @return [Hash] Returns the object in the form of hash
613
- def to_hash
614
- hash = {}
615
- self.class.attribute_map.each_pair do |attr, param|
616
- value = self.send(attr)
617
- next if value.nil?
618
- hash[param] = _to_hash(value)
619
- end
620
- hash
621
- end
622
-
623
- # Outputs non-array value in the form of hash
624
- # For object, use to_hash. Otherwise, just return the value
625
- # @param [Object] value Any valid value
626
- # @return [Hash] Returns the value in the form of hash
627
- def _to_hash(value)
628
- if value.is_a?(Array)
629
- value.compact.map { |v| _to_hash(v) }
630
- elsif value.is_a?(Hash)
631
- {}.tap do |hash|
632
- value.each { |k, v| hash[k] = _to_hash(v) }
633
- end
634
- elsif value.respond_to? :to_hash
635
- value.to_hash
636
- else
637
- value
638
- end
639
- end
640
- end
641
- 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 Ptsv2paymentsOrderInformationAmountDetails
16
+ # Amount being charged as gift wrap fee.
17
+ attr_accessor :gift_wrap_amount
18
+
19
+ # Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Card Present Required to include either this field or `orderInformation.lineItems[].unitPrice` for the order. #### Invoicing Required for creating a new invoice. #### PIN Debit Amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit; however, for all other processors, these fields are required. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. #### DCC for First Data Not used.
20
+ attr_accessor :total_amount
21
+
22
+ # Subtotal amount of all the items.This amount (which is the value of all items in the cart, not including the additional amounts such as tax, shipping, etc.) cannot change after a sessions request. When there is a change to any of the additional amounts, this field should be resent in the order request. When the sub total amount changes, you must initiate a new transaction starting with a sessions request. Note The amount value must be a non-negative number containing 2 decimal places and limited to 7 digits before the decimal point. This value can not be changed after a sessions request.
23
+ attr_accessor :sub_total_amount
24
+
25
+ # Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency.
26
+ attr_accessor :currency
27
+
28
+ # Total discount amount applied to the order.
29
+ attr_accessor :discount_amount
30
+
31
+ # Total charges for any import or export duties included in the order.
32
+ attr_accessor :duty_amount
33
+
34
+ # Gratuity or tip amount for restaurants. Allowed only when industryDatatype=restaurant. When your customer uses a debit card or prepaid card, and you receive a partial authorization, the payment networks recommend that you do not submit a capture amount that is higher than the authorized amount. When the capture amount exceeds the partial amount that was approved, the issuer has chargeback rights for the excess amount. Used by **Capture** Optional field. #### CyberSource through VisaNet Restaurant data is supported only on CyberSource through VisaNet when card is present.
35
+ attr_accessor :gratuity_amount
36
+
37
+ # Total tax amount for all the items in the order.
38
+ attr_accessor :tax_amount
39
+
40
+ # Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included
41
+ attr_accessor :national_tax_included
42
+
43
+ # Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total
44
+ attr_accessor :tax_applied_after_discount
45
+
46
+ # Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction
47
+ attr_accessor :tax_applied_level
48
+
49
+ # For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space.
50
+ attr_accessor :tax_type_code
51
+
52
+ # Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field.
53
+ attr_accessor :freight_amount
54
+
55
+ # Set this field to the converted amount that was returned by the DCC provider.
56
+ attr_accessor :foreign_amount
57
+
58
+ # Set this field to the converted amount that was returned by the DCC provider.
59
+ attr_accessor :foreign_currency
60
+
61
+ # Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places.
62
+ attr_accessor :exchange_rate
63
+
64
+ # Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space.
65
+ attr_accessor :exchange_rate_time_stamp
66
+
67
+ attr_accessor :surcharge
68
+
69
+ # This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder's account. This field is returned for OCT transactions.
70
+ attr_accessor :settlement_amount
71
+
72
+ # This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. This field is returned for OCT transactions.
73
+ attr_accessor :settlement_currency
74
+
75
+ attr_accessor :amex_additional_amounts
76
+
77
+ attr_accessor :tax_details
78
+
79
+ # Service fee. Required for service fee transactions.
80
+ attr_accessor :service_fee_amount
81
+
82
+ # Amount in your original local pricing currency. This value cannot be negative. You can include a decimal point (.) in this field to denote the currency exponent, but you cannot include any other special characters. If needed, CyberSource truncates the amount to the correct number of decimal places.
83
+ attr_accessor :original_amount
84
+
85
+ # Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
86
+ attr_accessor :original_currency
87
+
88
+ # Cashback amount in the acquirer's currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit Optional field for PIN debit purchase, PIN debit credit or PIN debit reversal.
89
+ attr_accessor :cashback_amount
90
+
91
+ attr_accessor :currency_conversion
92
+
93
+ attr_accessor :order
94
+
95
+ # This API Field contains the anticipated amount details. This supports use cases where the Merchant does not wish to have funds held against the account, but needs to confirm an amount prior to authorization, such as for a trial subscription, reservation service, or loyalty program. In an account verification, the anticipated amount is used to confirm the account has availability to accept purchases.
96
+ attr_accessor :anticipated_amount
97
+
98
+ # Attribute mapping from ruby-style variable name to JSON key.
99
+ def self.attribute_map
100
+ {
101
+ :'gift_wrap_amount' => :'giftWrapAmount',
102
+ :'total_amount' => :'totalAmount',
103
+ :'sub_total_amount' => :'subTotalAmount',
104
+ :'currency' => :'currency',
105
+ :'discount_amount' => :'discountAmount',
106
+ :'duty_amount' => :'dutyAmount',
107
+ :'gratuity_amount' => :'gratuityAmount',
108
+ :'tax_amount' => :'taxAmount',
109
+ :'national_tax_included' => :'nationalTaxIncluded',
110
+ :'tax_applied_after_discount' => :'taxAppliedAfterDiscount',
111
+ :'tax_applied_level' => :'taxAppliedLevel',
112
+ :'tax_type_code' => :'taxTypeCode',
113
+ :'freight_amount' => :'freightAmount',
114
+ :'foreign_amount' => :'foreignAmount',
115
+ :'foreign_currency' => :'foreignCurrency',
116
+ :'exchange_rate' => :'exchangeRate',
117
+ :'exchange_rate_time_stamp' => :'exchangeRateTimeStamp',
118
+ :'surcharge' => :'surcharge',
119
+ :'settlement_amount' => :'settlementAmount',
120
+ :'settlement_currency' => :'settlementCurrency',
121
+ :'amex_additional_amounts' => :'amexAdditionalAmounts',
122
+ :'tax_details' => :'taxDetails',
123
+ :'service_fee_amount' => :'serviceFeeAmount',
124
+ :'original_amount' => :'originalAmount',
125
+ :'original_currency' => :'originalCurrency',
126
+ :'cashback_amount' => :'cashbackAmount',
127
+ :'currency_conversion' => :'currencyConversion',
128
+ :'order' => :'order',
129
+ :'anticipated_amount' => :'anticipatedAmount'
130
+ }
131
+ end
132
+
133
+ # Attribute mapping from JSON key to ruby-style variable name.
134
+ def self.json_map
135
+ {
136
+ :'gift_wrap_amount' => :'gift_wrap_amount',
137
+ :'total_amount' => :'total_amount',
138
+ :'sub_total_amount' => :'sub_total_amount',
139
+ :'currency' => :'currency',
140
+ :'discount_amount' => :'discount_amount',
141
+ :'duty_amount' => :'duty_amount',
142
+ :'gratuity_amount' => :'gratuity_amount',
143
+ :'tax_amount' => :'tax_amount',
144
+ :'national_tax_included' => :'national_tax_included',
145
+ :'tax_applied_after_discount' => :'tax_applied_after_discount',
146
+ :'tax_applied_level' => :'tax_applied_level',
147
+ :'tax_type_code' => :'tax_type_code',
148
+ :'freight_amount' => :'freight_amount',
149
+ :'foreign_amount' => :'foreign_amount',
150
+ :'foreign_currency' => :'foreign_currency',
151
+ :'exchange_rate' => :'exchange_rate',
152
+ :'exchange_rate_time_stamp' => :'exchange_rate_time_stamp',
153
+ :'surcharge' => :'surcharge',
154
+ :'settlement_amount' => :'settlement_amount',
155
+ :'settlement_currency' => :'settlement_currency',
156
+ :'amex_additional_amounts' => :'amex_additional_amounts',
157
+ :'tax_details' => :'tax_details',
158
+ :'service_fee_amount' => :'service_fee_amount',
159
+ :'original_amount' => :'original_amount',
160
+ :'original_currency' => :'original_currency',
161
+ :'cashback_amount' => :'cashback_amount',
162
+ :'currency_conversion' => :'currency_conversion',
163
+ :'order' => :'order',
164
+ :'anticipated_amount' => :'anticipated_amount'
165
+ }
166
+ end
167
+
168
+ # Attribute type mapping.
169
+ def self.swagger_types
170
+ {
171
+ :'gift_wrap_amount' => :'String',
172
+ :'total_amount' => :'String',
173
+ :'sub_total_amount' => :'String',
174
+ :'currency' => :'String',
175
+ :'discount_amount' => :'String',
176
+ :'duty_amount' => :'String',
177
+ :'gratuity_amount' => :'String',
178
+ :'tax_amount' => :'String',
179
+ :'national_tax_included' => :'String',
180
+ :'tax_applied_after_discount' => :'String',
181
+ :'tax_applied_level' => :'String',
182
+ :'tax_type_code' => :'String',
183
+ :'freight_amount' => :'String',
184
+ :'foreign_amount' => :'String',
185
+ :'foreign_currency' => :'String',
186
+ :'exchange_rate' => :'String',
187
+ :'exchange_rate_time_stamp' => :'String',
188
+ :'surcharge' => :'Ptsv2paymentsOrderInformationAmountDetailsSurcharge',
189
+ :'settlement_amount' => :'String',
190
+ :'settlement_currency' => :'String',
191
+ :'amex_additional_amounts' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts>',
192
+ :'tax_details' => :'Array<Ptsv2paymentsOrderInformationAmountDetailsTaxDetails>',
193
+ :'service_fee_amount' => :'String',
194
+ :'original_amount' => :'String',
195
+ :'original_currency' => :'String',
196
+ :'cashback_amount' => :'String',
197
+ :'currency_conversion' => :'Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion',
198
+ :'order' => :'Ptsv2paymentsOrderInformationAmountDetailsOrder',
199
+ :'anticipated_amount' => :'String'
200
+ }
201
+ end
202
+
203
+ # Initializes the object
204
+ # @param [Hash] attributes Model attributes in the form of hash
205
+ def initialize(attributes = {})
206
+ return unless attributes.is_a?(Hash)
207
+
208
+ # convert string to symbol for hash key
209
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
210
+
211
+ if attributes.has_key?(:'giftWrapAmount')
212
+ self.gift_wrap_amount = attributes[:'giftWrapAmount']
213
+ end
214
+
215
+ if attributes.has_key?(:'totalAmount')
216
+ self.total_amount = attributes[:'totalAmount']
217
+ end
218
+
219
+ if attributes.has_key?(:'subTotalAmount')
220
+ self.sub_total_amount = attributes[:'subTotalAmount']
221
+ end
222
+
223
+ if attributes.has_key?(:'currency')
224
+ self.currency = attributes[:'currency']
225
+ end
226
+
227
+ if attributes.has_key?(:'discountAmount')
228
+ self.discount_amount = attributes[:'discountAmount']
229
+ end
230
+
231
+ if attributes.has_key?(:'dutyAmount')
232
+ self.duty_amount = attributes[:'dutyAmount']
233
+ end
234
+
235
+ if attributes.has_key?(:'gratuityAmount')
236
+ self.gratuity_amount = attributes[:'gratuityAmount']
237
+ end
238
+
239
+ if attributes.has_key?(:'taxAmount')
240
+ self.tax_amount = attributes[:'taxAmount']
241
+ end
242
+
243
+ if attributes.has_key?(:'nationalTaxIncluded')
244
+ self.national_tax_included = attributes[:'nationalTaxIncluded']
245
+ end
246
+
247
+ if attributes.has_key?(:'taxAppliedAfterDiscount')
248
+ self.tax_applied_after_discount = attributes[:'taxAppliedAfterDiscount']
249
+ end
250
+
251
+ if attributes.has_key?(:'taxAppliedLevel')
252
+ self.tax_applied_level = attributes[:'taxAppliedLevel']
253
+ end
254
+
255
+ if attributes.has_key?(:'taxTypeCode')
256
+ self.tax_type_code = attributes[:'taxTypeCode']
257
+ end
258
+
259
+ if attributes.has_key?(:'freightAmount')
260
+ self.freight_amount = attributes[:'freightAmount']
261
+ end
262
+
263
+ if attributes.has_key?(:'foreignAmount')
264
+ self.foreign_amount = attributes[:'foreignAmount']
265
+ end
266
+
267
+ if attributes.has_key?(:'foreignCurrency')
268
+ self.foreign_currency = attributes[:'foreignCurrency']
269
+ end
270
+
271
+ if attributes.has_key?(:'exchangeRate')
272
+ self.exchange_rate = attributes[:'exchangeRate']
273
+ end
274
+
275
+ if attributes.has_key?(:'exchangeRateTimeStamp')
276
+ self.exchange_rate_time_stamp = attributes[:'exchangeRateTimeStamp']
277
+ end
278
+
279
+ if attributes.has_key?(:'surcharge')
280
+ self.surcharge = attributes[:'surcharge']
281
+ end
282
+
283
+ if attributes.has_key?(:'settlementAmount')
284
+ self.settlement_amount = attributes[:'settlementAmount']
285
+ end
286
+
287
+ if attributes.has_key?(:'settlementCurrency')
288
+ self.settlement_currency = attributes[:'settlementCurrency']
289
+ end
290
+
291
+ if attributes.has_key?(:'amexAdditionalAmounts')
292
+ if (value = attributes[:'amexAdditionalAmounts']).is_a?(Array)
293
+ self.amex_additional_amounts = value
294
+ end
295
+ end
296
+
297
+ if attributes.has_key?(:'taxDetails')
298
+ if (value = attributes[:'taxDetails']).is_a?(Array)
299
+ self.tax_details = value
300
+ end
301
+ end
302
+
303
+ if attributes.has_key?(:'serviceFeeAmount')
304
+ self.service_fee_amount = attributes[:'serviceFeeAmount']
305
+ end
306
+
307
+ if attributes.has_key?(:'originalAmount')
308
+ self.original_amount = attributes[:'originalAmount']
309
+ end
310
+
311
+ if attributes.has_key?(:'originalCurrency')
312
+ self.original_currency = attributes[:'originalCurrency']
313
+ end
314
+
315
+ if attributes.has_key?(:'cashbackAmount')
316
+ self.cashback_amount = attributes[:'cashbackAmount']
317
+ end
318
+
319
+ if attributes.has_key?(:'currencyConversion')
320
+ self.currency_conversion = attributes[:'currencyConversion']
321
+ end
322
+
323
+ if attributes.has_key?(:'order')
324
+ self.order = attributes[:'order']
325
+ end
326
+
327
+ if attributes.has_key?(:'anticipatedAmount')
328
+ self.anticipated_amount = attributes[:'anticipatedAmount']
329
+ end
330
+ end
331
+
332
+ # Show invalid properties with the reasons. Usually used together with valid?
333
+ # @return Array for valid properties with the reasons
334
+ def list_invalid_properties
335
+ invalid_properties = Array.new
336
+ invalid_properties
337
+ end
338
+
339
+ # Check to see if the all the properties in the model are valid
340
+ # @return true if the model is valid
341
+ def valid?
342
+ true
343
+ end
344
+
345
+ # Custom attribute writer method with validation
346
+ # @param [Object] gift_wrap_amount Value to be assigned
347
+ def gift_wrap_amount=(gift_wrap_amount)
348
+ @gift_wrap_amount = gift_wrap_amount
349
+ end
350
+
351
+ # Custom attribute writer method with validation
352
+ # @param [Object] total_amount Value to be assigned
353
+ def total_amount=(total_amount)
354
+ @total_amount = total_amount
355
+ end
356
+
357
+ # Custom attribute writer method with validation
358
+ # @param [Object] sub_total_amount Value to be assigned
359
+ def sub_total_amount=(sub_total_amount)
360
+ @sub_total_amount = sub_total_amount
361
+ end
362
+
363
+ # Custom attribute writer method with validation
364
+ # @param [Object] currency Value to be assigned
365
+ def currency=(currency)
366
+ @currency = currency
367
+ end
368
+
369
+ # Custom attribute writer method with validation
370
+ # @param [Object] discount_amount Value to be assigned
371
+ def discount_amount=(discount_amount)
372
+ @discount_amount = discount_amount
373
+ end
374
+
375
+ # Custom attribute writer method with validation
376
+ # @param [Object] duty_amount Value to be assigned
377
+ def duty_amount=(duty_amount)
378
+ @duty_amount = duty_amount
379
+ end
380
+
381
+ # Custom attribute writer method with validation
382
+ # @param [Object] gratuity_amount Value to be assigned
383
+ def gratuity_amount=(gratuity_amount)
384
+ @gratuity_amount = gratuity_amount
385
+ end
386
+
387
+ # Custom attribute writer method with validation
388
+ # @param [Object] tax_amount Value to be assigned
389
+ def tax_amount=(tax_amount)
390
+ @tax_amount = tax_amount
391
+ end
392
+
393
+ # Custom attribute writer method with validation
394
+ # @param [Object] national_tax_included Value to be assigned
395
+ def national_tax_included=(national_tax_included)
396
+ @national_tax_included = national_tax_included
397
+ end
398
+
399
+ # Custom attribute writer method with validation
400
+ # @param [Object] tax_applied_after_discount Value to be assigned
401
+ def tax_applied_after_discount=(tax_applied_after_discount)
402
+ @tax_applied_after_discount = tax_applied_after_discount
403
+ end
404
+
405
+ # Custom attribute writer method with validation
406
+ # @param [Object] tax_applied_level Value to be assigned
407
+ def tax_applied_level=(tax_applied_level)
408
+ @tax_applied_level = tax_applied_level
409
+ end
410
+
411
+ # Custom attribute writer method with validation
412
+ # @param [Object] tax_type_code Value to be assigned
413
+ def tax_type_code=(tax_type_code)
414
+ @tax_type_code = tax_type_code
415
+ end
416
+
417
+ # Custom attribute writer method with validation
418
+ # @param [Object] freight_amount Value to be assigned
419
+ def freight_amount=(freight_amount)
420
+ @freight_amount = freight_amount
421
+ end
422
+
423
+ # Custom attribute writer method with validation
424
+ # @param [Object] foreign_amount Value to be assigned
425
+ def foreign_amount=(foreign_amount)
426
+ @foreign_amount = foreign_amount
427
+ end
428
+
429
+ # Custom attribute writer method with validation
430
+ # @param [Object] foreign_currency Value to be assigned
431
+ def foreign_currency=(foreign_currency)
432
+ @foreign_currency = foreign_currency
433
+ end
434
+
435
+ # Custom attribute writer method with validation
436
+ # @param [Object] exchange_rate Value to be assigned
437
+ def exchange_rate=(exchange_rate)
438
+ @exchange_rate = exchange_rate
439
+ end
440
+
441
+ # Custom attribute writer method with validation
442
+ # @param [Object] exchange_rate_time_stamp Value to be assigned
443
+ def exchange_rate_time_stamp=(exchange_rate_time_stamp)
444
+ @exchange_rate_time_stamp = exchange_rate_time_stamp
445
+ end
446
+
447
+ # Custom attribute writer method with validation
448
+ # @param [Object] settlement_amount Value to be assigned
449
+ def settlement_amount=(settlement_amount)
450
+ @settlement_amount = settlement_amount
451
+ end
452
+
453
+ # Custom attribute writer method with validation
454
+ # @param [Object] settlement_currency Value to be assigned
455
+ def settlement_currency=(settlement_currency)
456
+ @settlement_currency = settlement_currency
457
+ end
458
+
459
+ # Custom attribute writer method with validation
460
+ # @param [Object] service_fee_amount Value to be assigned
461
+ def service_fee_amount=(service_fee_amount)
462
+ @service_fee_amount = service_fee_amount
463
+ end
464
+
465
+ # Custom attribute writer method with validation
466
+ # @param [Object] original_amount Value to be assigned
467
+ def original_amount=(original_amount)
468
+ @original_amount = original_amount
469
+ end
470
+
471
+ # Custom attribute writer method with validation
472
+ # @param [Object] original_currency Value to be assigned
473
+ def original_currency=(original_currency)
474
+ @original_currency = original_currency
475
+ end
476
+
477
+ # Custom attribute writer method with validation
478
+ # @param [Object] cashback_amount Value to be assigned
479
+ def cashback_amount=(cashback_amount)
480
+ @cashback_amount = cashback_amount
481
+ end
482
+
483
+ # Custom attribute writer method with validation
484
+ # @param [Object] anticipated_amount Value to be assigned
485
+ def anticipated_amount=(anticipated_amount)
486
+ @anticipated_amount = anticipated_amount
487
+ end
488
+
489
+ # Checks equality by comparing each attribute.
490
+ # @param [Object] Object to be compared
491
+ def ==(o)
492
+ return true if self.equal?(o)
493
+ self.class == o.class &&
494
+ gift_wrap_amount == o.gift_wrap_amount &&
495
+ total_amount == o.total_amount &&
496
+ sub_total_amount == o.sub_total_amount &&
497
+ currency == o.currency &&
498
+ discount_amount == o.discount_amount &&
499
+ duty_amount == o.duty_amount &&
500
+ gratuity_amount == o.gratuity_amount &&
501
+ tax_amount == o.tax_amount &&
502
+ national_tax_included == o.national_tax_included &&
503
+ tax_applied_after_discount == o.tax_applied_after_discount &&
504
+ tax_applied_level == o.tax_applied_level &&
505
+ tax_type_code == o.tax_type_code &&
506
+ freight_amount == o.freight_amount &&
507
+ foreign_amount == o.foreign_amount &&
508
+ foreign_currency == o.foreign_currency &&
509
+ exchange_rate == o.exchange_rate &&
510
+ exchange_rate_time_stamp == o.exchange_rate_time_stamp &&
511
+ surcharge == o.surcharge &&
512
+ settlement_amount == o.settlement_amount &&
513
+ settlement_currency == o.settlement_currency &&
514
+ amex_additional_amounts == o.amex_additional_amounts &&
515
+ tax_details == o.tax_details &&
516
+ service_fee_amount == o.service_fee_amount &&
517
+ original_amount == o.original_amount &&
518
+ original_currency == o.original_currency &&
519
+ cashback_amount == o.cashback_amount &&
520
+ currency_conversion == o.currency_conversion &&
521
+ order == o.order &&
522
+ anticipated_amount == o.anticipated_amount
523
+ end
524
+
525
+ # @see the `==` method
526
+ # @param [Object] Object to be compared
527
+ def eql?(o)
528
+ self == o
529
+ end
530
+
531
+ # Calculates hash code according to all attributes.
532
+ # @return [Fixnum] Hash code
533
+ def hash
534
+ [gift_wrap_amount, total_amount, sub_total_amount, currency, discount_amount, duty_amount, gratuity_amount, tax_amount, national_tax_included, tax_applied_after_discount, tax_applied_level, tax_type_code, freight_amount, foreign_amount, foreign_currency, exchange_rate, exchange_rate_time_stamp, surcharge, settlement_amount, settlement_currency, amex_additional_amounts, tax_details, service_fee_amount, original_amount, original_currency, cashback_amount, currency_conversion, order, anticipated_amount].hash
535
+ end
536
+
537
+ # Builds the object from hash
538
+ # @param [Hash] attributes Model attributes in the form of hash
539
+ # @return [Object] Returns the model itself
540
+ def build_from_hash(attributes)
541
+ return nil unless attributes.is_a?(Hash)
542
+ self.class.swagger_types.each_pair do |key, type|
543
+ if type =~ /\AArray<(.*)>/i
544
+ # check to ensure the input is an array given that the the attribute
545
+ # is documented as an array but the input is not
546
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
547
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
548
+ end
549
+ elsif !attributes[self.class.attribute_map[key]].nil?
550
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
551
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
552
+ end
553
+
554
+ self
555
+ end
556
+
557
+ # Deserializes the data based on type
558
+ # @param string type Data type
559
+ # @param string value Value to be deserialized
560
+ # @return [Object] Deserialized data
561
+ def _deserialize(type, value)
562
+ case type.to_sym
563
+ when :DateTime
564
+ DateTime.parse(value)
565
+ when :Date
566
+ Date.parse(value)
567
+ when :String
568
+ value.to_s
569
+ when :Integer
570
+ value.to_i
571
+ when :Float
572
+ value.to_f
573
+ when :BOOLEAN
574
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
575
+ true
576
+ else
577
+ false
578
+ end
579
+ when :Object
580
+ # generic object (usually a Hash), return directly
581
+ value
582
+ when /\AArray<(?<inner_type>.+)>\z/
583
+ inner_type = Regexp.last_match[:inner_type]
584
+ value.map { |v| _deserialize(inner_type, v) }
585
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
586
+ k_type = Regexp.last_match[:k_type]
587
+ v_type = Regexp.last_match[:v_type]
588
+ {}.tap do |hash|
589
+ value.each do |k, v|
590
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
591
+ end
592
+ end
593
+ else # model
594
+ temp_model = CyberSource.const_get(type).new
595
+ temp_model.build_from_hash(value)
596
+ end
597
+ end
598
+
599
+ # Returns the string representation of the object
600
+ # @return [String] String presentation of the object
601
+ def to_s
602
+ to_hash.to_s
603
+ end
604
+
605
+ # to_body is an alias to to_hash (backward compatibility)
606
+ # @return [Hash] Returns the object in the form of hash
607
+ def to_body
608
+ to_hash
609
+ end
610
+
611
+ # Returns the object in the form of hash
612
+ # @return [Hash] Returns the object in the form of hash
613
+ def to_hash
614
+ hash = {}
615
+ self.class.attribute_map.each_pair do |attr, param|
616
+ value = self.send(attr)
617
+ next if value.nil?
618
+ hash[param] = _to_hash(value)
619
+ end
620
+ hash
621
+ end
622
+
623
+ # Outputs non-array value in the form of hash
624
+ # For object, use to_hash. Otherwise, just return the value
625
+ # @param [Object] value Any valid value
626
+ # @return [Hash] Returns the value in the form of hash
627
+ def _to_hash(value)
628
+ if value.is_a?(Array)
629
+ value.compact.map { |v| _to_hash(v) }
630
+ elsif value.is_a?(Hash)
631
+ {}.tap do |hash|
632
+ value.each { |k, v| hash[k] = _to_hash(v) }
633
+ end
634
+ elsif value.respond_to? :to_hash
635
+ value.to_hash
636
+ else
637
+ value
638
+ end
639
+ end
640
+ end
641
+ end