cybersource_rest_client 0.0.83 → 0.0.84

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 (222) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +46 -27
  3. data/lib/AuthenticationSDK/core/MerchantConfig.rb +82 -48
  4. data/lib/AuthenticationSDK/util/Cache.rb +7 -4
  5. data/lib/AuthenticationSDK/util/Constants.rb +6 -0
  6. data/lib/AuthenticationSDK/util/MLEUtility.rb +9 -0
  7. data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
  8. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +14 -22
  9. data/lib/cybersource_rest_client/api/credentials_api.rb +104 -0
  10. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
  11. data/lib/cybersource_rest_client/api/enrollment_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/instructions_api.rb +10 -10
  13. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -28
  15. data/lib/cybersource_rest_client/api/network_tokens_api.rb +654 -0
  16. data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
  17. data/lib/cybersource_rest_client/api/subscriptions_api.rb +183 -1
  18. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +1 -1
  19. data/lib/cybersource_rest_client/api_client.rb +4 -0
  20. data/lib/cybersource_rest_client/models/account_validations_request.rb +15 -5
  21. data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +1 -1
  22. data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +1 -1
  23. data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +1 -1
  24. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +1 -1
  25. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +1 -1
  26. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +1 -1
  27. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge.rb +369 -0
  28. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge_encryption_jwk.rb +336 -0
  29. data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +7 -7
  30. data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +1 -1
  31. data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +1 -1
  32. data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +1 -1
  33. data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +1 -1
  34. data/lib/cybersource_rest_client/models/acpv1tokens_consumer_identity.rb +1 -1
  35. data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +1 -1
  36. data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +1 -1
  37. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +1 -1
  38. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +11 -1
  39. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information.rb +32 -6
  40. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank.rb +1 -1
  41. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account.rb +1 -1
  42. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_customer.rb +196 -0
  43. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_instrument_identifier.rb +196 -0
  44. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_payment_instrument.rb +196 -0
  45. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_token_information.rb +208 -0
  46. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +105 -1
  47. data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +15 -5
  48. data/lib/cybersource_rest_client/models/create_credit_request.rb +15 -5
  49. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +22 -5
  50. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response.rb +247 -0
  51. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_1.rb +224 -0
  52. data/lib/cybersource_rest_client/models/{pbl_payment_links_post201_response__links.rb → get_subscriptions_payments_response_1__links.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response__links.rb +209 -0
  54. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_cycles_completed_count.rb +191 -0
  55. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_subscription_payment.rb +356 -0
  56. data/lib/cybersource_rest_client/models/inline_response_201_1_tokenized_card.rb +26 -5
  57. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_commerce_solutions.rb +15 -5
  58. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_payments.rb +25 -5
  59. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_risk.rb +15 -5
  60. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_value_added_services.rb +25 -5
  61. data/lib/cybersource_rest_client/models/inline_response_400_10.rb +30 -75
  62. data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_10_details.rb} +1 -1
  63. data/lib/cybersource_rest_client/models/inline_response_400_11.rb +235 -0
  64. data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_11_details.rb} +3 -3
  65. data/lib/cybersource_rest_client/models/inline_response_400_12.rb +281 -0
  66. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +37 -60
  67. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +6 -6
  68. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +58 -36
  69. data/lib/cybersource_rest_client/models/{inline_response_400_6_fields.rb → inline_response_400_8_fields.rb} +1 -1
  70. data/lib/cybersource_rest_client/models/inline_response_400_9.rb +16 -16
  71. data/lib/cybersource_rest_client/models/inline_response_400_9_details.rb +2 -2
  72. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
  74. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +73 -5
  75. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +11 -1
  76. data/lib/cybersource_rest_client/models/mpp_credentials_request.rb +221 -0
  77. data/lib/cybersource_rest_client/models/mpp_credentials_response200.rb +338 -0
  78. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
  79. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  80. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
  81. data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded.rb +1 -1
  82. data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
  83. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded__embedded.rb → payment_instrument_list__embedded__embedded.rb} +1 -1
  84. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded_payment_instruments.rb → payment_instrument_list__embedded_payment_instruments.rb} +2 -2
  85. data/lib/cybersource_rest_client/models/payments_products.rb +25 -5
  86. data/lib/cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors.rb +14 -2
  87. data/lib/cybersource_rest_client/models/payments_products_microform.rb +199 -0
  88. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information.rb +199 -0
  89. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations.rb +189 -0
  90. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features.rb +189 -0
  91. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features_gateway_agnostic.rb +189 -0
  92. data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +227 -0
  93. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
  94. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
  95. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
  96. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  97. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
  98. data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +15 -5
  99. data/lib/cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information.rb +80 -1
  100. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +41 -1
  101. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_merchant_information.rb +196 -0
  102. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_account_information.rb +189 -0
  103. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +15 -5
  104. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information_account_features.rb +196 -0
  105. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_token_information.rb +189 -0
  106. data/lib/cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information.rb +35 -1
  107. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +22 -5
  108. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +1 -1
  109. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details.rb +1 -1
  110. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +106 -5
  111. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +22 -5
  112. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +15 -5
  113. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_payment_information_tokenized_card.rb → pts_v2_payments_post201_response_payment_account_information_tokenized_card.rb} +1 -1
  114. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
  115. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +18 -1
  116. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +23 -6
  117. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +15 -5
  118. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_third_party_token.rb +213 -0
  119. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  120. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +1 -1
  121. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +18 -1
  122. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +19 -2
  123. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +1 -1
  124. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +7 -1
  125. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +45 -5
  126. data/lib/cybersource_rest_client/models/{pull_funds201_response_processor_information_avs.rb → pts_v2_payouts_post201_response_processor_information_avs.rb} +1 -1
  127. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_customer.rb +196 -0
  128. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_electronic_verification_results.rb +281 -0
  129. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_buyer_information.rb +196 -0
  130. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +1 -1
  131. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +18 -5
  132. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +19 -6
  133. data/lib/cybersource_rest_client/models/ptsv2billingagreements_agreement_information.rb +84 -5
  134. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb +12 -2
  135. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_amount_details.rb +230 -0
  136. data/lib/cybersource_rest_client/models/{ptsv2intents_order_information_invoice_details.rb → ptsv2billingagreements_order_information_invoice_details.rb} +1 -1
  137. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank.rb +15 -5
  138. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account_alias.rb +207 -0
  139. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +18 -1
  140. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information.rb +56 -5
  141. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_processing_information.rb +18 -1
  142. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +35 -5
  143. data/lib/cybersource_rest_client/models/ptsv2credits_token_information.rb +228 -0
  144. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +1 -1
  145. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +1 -1
  146. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +15 -5
  147. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +16 -5
  148. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +28 -1
  149. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_digital_currency.rb +231 -0
  150. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +23 -6
  151. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +32 -5
  152. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +15 -5
  153. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account_alias.rb +207 -0
  154. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_third_party_token.rb +196 -0
  155. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -1
  156. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +72 -6
  157. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_program_indicators.rb +202 -0
  158. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +56 -5
  159. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +16 -5
  160. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +16 -5
  161. data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +32 -5
  162. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information.rb +193 -0
  163. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information_authenticated_identities.rb +252 -0
  164. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +15 -5
  165. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +100 -5
  166. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +22 -5
  167. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +18 -1
  168. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information.rb +39 -5
  169. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +15 -5
  170. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_shipping_details.rb +196 -0
  171. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +32 -5
  172. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_device_information.rb +196 -0
  173. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information.rb +22 -5
  174. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +18 -5
  175. data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +36 -6
  176. data/lib/cybersource_rest_client/models/pull_funds_request.rb +11 -1
  177. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +45 -5
  178. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  179. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +39 -5
  180. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +1 -1
  181. data/lib/cybersource_rest_client/models/tms_card_art.rb +23 -1
  182. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to.rb +22 -5
  183. data/lib/cybersource_rest_client/models/tms_tokenized_card_delete_request.rb +189 -0
  184. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments__embedded.rb +190 -0
  185. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +22 -1
  186. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -1
  187. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +16 -5
  188. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +41 -8
  189. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_bank_applications.rb +201 -0
  190. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_capabilities.rb +257 -0
  191. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_verification_results.rb +202 -0
  192. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +200 -0
  193. data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv2tokenizedcards_bill_to.rb} +1 -1
  194. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_iddelete_reason.rb +208 -0
  195. data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_order_information.rb +1 -1
  196. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +1 -1
  197. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +1 -1
  198. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +44 -14
  199. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +325 -0
  200. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +366 -0
  201. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +22 -5
  202. data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +196 -0
  203. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +22 -5
  204. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +18 -1
  205. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +16 -6
  206. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +86 -12
  207. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details.rb +242 -0
  208. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details_transaction_advice_addendum.rb +196 -0
  209. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_line_items.rb +702 -0
  210. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_shipping_details.rb +213 -0
  211. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +38 -1
  212. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_bank_transfer_options.rb +196 -0
  213. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +192 -0
  214. data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +107 -53
  215. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information.rb +376 -0
  216. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information_account.rb +213 -0
  217. data/lib/cybersource_rest_client/models/update_payments.rb +192 -0
  218. data/lib/cybersource_rest_client/models/value_added_services_products.rb +25 -5
  219. data/lib/cybersource_rest_client.rb +71 -12
  220. metadata +78 -19
  221. data/lib/cybersource_rest_client/api/token_api.rb +0 -306
  222. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +0 -371
@@ -0,0 +1,228 @@
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 Ptsv2creditsTokenInformation
16
+ # TMS Transient Token, 64 hexadecimal id value representing captured payment credentials (including Sensitive Authentication Data, e.g. CVV).
17
+ attr_accessor :jti
18
+
19
+ # Flex API Transient Token encoded as JWT (JSON Web Token), e.g. Flex microform or Unified Payment checkout result.
20
+ attr_accessor :transient_token_jwt
21
+
22
+ # Indicates whether a payment network token associated with a TMS token should be used for authorization. This field can contain one of following values: - `ignore`: Use a tokenized card number for an authorization, even if the TMS token has an associated payment network token. - `prefer`: (Default) Use an associated payment network token for an authorization if the TMS token has one; otherwise, use the tokenized card number.
23
+ attr_accessor :network_token_option
24
+
25
+ attr_accessor :token_provisioning_information
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'jti' => :'jti',
31
+ :'transient_token_jwt' => :'transientTokenJwt',
32
+ :'network_token_option' => :'networkTokenOption',
33
+ :'token_provisioning_information' => :'tokenProvisioningInformation'
34
+ }
35
+ end
36
+
37
+ # Attribute mapping from JSON key to ruby-style variable name.
38
+ def self.json_map
39
+ {
40
+ :'jti' => :'jti',
41
+ :'transient_token_jwt' => :'transient_token_jwt',
42
+ :'network_token_option' => :'network_token_option',
43
+ :'token_provisioning_information' => :'token_provisioning_information'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'jti' => :'String',
51
+ :'transient_token_jwt' => :'String',
52
+ :'network_token_option' => :'String',
53
+ :'token_provisioning_information' => :'Ptsv2paymentsTokenInformationTokenProvisioningInformation'
54
+ }
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ return unless attributes.is_a?(Hash)
61
+
62
+ # convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
64
+
65
+ if attributes.has_key?(:'jti')
66
+ self.jti = attributes[:'jti']
67
+ end
68
+
69
+ if attributes.has_key?(:'transientTokenJwt')
70
+ self.transient_token_jwt = attributes[:'transientTokenJwt']
71
+ end
72
+
73
+ if attributes.has_key?(:'networkTokenOption')
74
+ self.network_token_option = attributes[:'networkTokenOption']
75
+ end
76
+
77
+ if attributes.has_key?(:'tokenProvisioningInformation')
78
+ self.token_provisioning_information = attributes[:'tokenProvisioningInformation']
79
+ end
80
+ end
81
+
82
+ # Show invalid properties with the reasons. Usually used together with valid?
83
+ # @return Array for valid properties with the reasons
84
+ def list_invalid_properties
85
+ invalid_properties = Array.new
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ true
93
+ end
94
+
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] jti Value to be assigned
97
+ def jti=(jti)
98
+ @jti = jti
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(o)
104
+ return true if self.equal?(o)
105
+ self.class == o.class &&
106
+ jti == o.jti &&
107
+ transient_token_jwt == o.transient_token_jwt &&
108
+ network_token_option == o.network_token_option &&
109
+ token_provisioning_information == o.token_provisioning_information
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Fixnum] Hash code
120
+ def hash
121
+ [jti, transient_token_jwt, network_token_option, token_provisioning_information].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :DateTime
151
+ DateTime.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :BOOLEAN
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ temp_model = CyberSource.const_get(type).new
182
+ temp_model.build_from_hash(value)
183
+ end
184
+ end
185
+
186
+ # Returns the string representation of the object
187
+ # @return [String] String presentation of the object
188
+ def to_s
189
+ to_hash.to_s
190
+ end
191
+
192
+ # to_body is an alias to to_hash (backward compatibility)
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # Returns the object in the form of hash
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_hash
201
+ hash = {}
202
+ self.class.attribute_map.each_pair do |attr, param|
203
+ value = self.send(attr)
204
+ next if value.nil?
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+ end
228
+ end
@@ -52,7 +52,7 @@ module CyberSource
52
52
  :'bill_to' => :'Ptsv2intentsOrderInformationBillTo',
53
53
  :'ship_to' => :'Ptsv2intentsOrderInformationShipTo',
54
54
  :'line_items' => :'Array<Ptsv2intentsOrderInformationLineItems>',
55
- :'invoice_details' => :'Ptsv2intentsOrderInformationInvoiceDetails'
55
+ :'invoice_details' => :'Ptsv2billingagreementsOrderInformationInvoiceDetails'
56
56
  }
57
57
  end
58
58
 
@@ -47,7 +47,7 @@ module CyberSource
47
47
  :'amount_details' => :'Ptsv2intentsOrderInformationAmountDetails',
48
48
  :'ship_to' => :'Ptsv2intentsOrderInformationShipTo',
49
49
  :'line_items' => :'Array<Ptsv2intentsOrderInformationLineItems>',
50
- :'invoice_details' => :'Ptsv2intentsOrderInformationInvoiceDetails'
50
+ :'invoice_details' => :'Ptsv2billingagreementsOrderInformationInvoiceDetails'
51
51
  }
52
52
  end
53
53
 
@@ -46,6 +46,8 @@ module CyberSource
46
46
  # Sub-merchant's telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 #### CyberSource through VisaNet With American Express, the value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCRB - Position: 5-24 - Field: American Express Seller Telephone Number **FDC Compass**\\ This value must consist of uppercase characters. Use one of these recommended formats:\\ `NNN-NNN-NNNN`\\ `NNN-AAAAAAA`
47
47
  attr_accessor :phone_number
48
48
 
49
+ attr_accessor :merchant_category_code
50
+
49
51
  # Attribute mapping from ruby-style variable name to JSON key.
50
52
  def self.attribute_map
51
53
  {
@@ -59,7 +61,8 @@ module CyberSource
59
61
  :'postal_code' => :'postalCode',
60
62
  :'country' => :'country',
61
63
  :'email' => :'email',
62
- :'phone_number' => :'phoneNumber'
64
+ :'phone_number' => :'phoneNumber',
65
+ :'merchant_category_code' => :'merchantCategoryCode'
63
66
  }
64
67
  end
65
68
 
@@ -76,7 +79,8 @@ module CyberSource
76
79
  :'postal_code' => :'postal_code',
77
80
  :'country' => :'country',
78
81
  :'email' => :'email',
79
- :'phone_number' => :'phone_number'
82
+ :'phone_number' => :'phone_number',
83
+ :'merchant_category_code' => :'merchant_category_code'
80
84
  }
81
85
  end
82
86
 
@@ -93,7 +97,8 @@ module CyberSource
93
97
  :'postal_code' => :'String',
94
98
  :'country' => :'String',
95
99
  :'email' => :'String',
96
- :'phone_number' => :'String'
100
+ :'phone_number' => :'String',
101
+ :'merchant_category_code' => :'Float'
97
102
  }
98
103
  end
99
104
 
@@ -148,6 +153,10 @@ module CyberSource
148
153
  if attributes.has_key?(:'phoneNumber')
149
154
  self.phone_number = attributes[:'phoneNumber']
150
155
  end
156
+
157
+ if attributes.has_key?(:'merchantCategoryCode')
158
+ self.merchant_category_code = attributes[:'merchantCategoryCode']
159
+ end
151
160
  end
152
161
 
153
162
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -244,7 +253,8 @@ module CyberSource
244
253
  postal_code == o.postal_code &&
245
254
  country == o.country &&
246
255
  email == o.email &&
247
- phone_number == o.phone_number
256
+ phone_number == o.phone_number &&
257
+ merchant_category_code == o.merchant_category_code
248
258
  end
249
259
 
250
260
  # @see the `==` method
@@ -256,7 +266,7 @@ module CyberSource
256
266
  # Calculates hash code according to all attributes.
257
267
  # @return [Fixnum] Hash code
258
268
  def hash
259
- [card_acceptor_id, id, name, address1, locality, administrative_area, region, postal_code, country, email, phone_number].hash
269
+ [card_acceptor_id, id, name, address1, locality, administrative_area, region, postal_code, country, email, phone_number, merchant_category_code].hash
260
270
  end
261
271
 
262
272
  # Builds the object from hash
@@ -192,6 +192,9 @@ module CyberSource
192
192
  # EMVCo-assigned unique identifier. This field is required in Cardholder Initiated 3DS fully authenticated mada transactions. When you request the payer authentication and authorization services separately, get the value for this field from the payerAuthEnrollReply_dsReferenceNumber or payerAuthValidateReply_dsReferenceNumber response field.
193
193
  attr_accessor :ds_reference_number
194
194
 
195
+ # Risk Assessment from Mastercard. This is to be sent by merchant if they would like to request a score
196
+ attr_accessor :score_request
197
+
195
198
  # Attribute mapping from ruby-style variable name to JSON key.
196
199
  def self.attribute_map
197
200
  {
@@ -254,7 +257,8 @@ module CyberSource
254
257
  :'signed_pares_status_reason' => :'signedParesStatusReason',
255
258
  :'signed_pares' => :'signedPares',
256
259
  :'acs_reference_number' => :'acsReferenceNumber',
257
- :'ds_reference_number' => :'dsReferenceNumber'
260
+ :'ds_reference_number' => :'dsReferenceNumber',
261
+ :'score_request' => :'scoreRequest'
258
262
  }
259
263
  end
260
264
 
@@ -320,7 +324,8 @@ module CyberSource
320
324
  :'signed_pares_status_reason' => :'signed_pares_status_reason',
321
325
  :'signed_pares' => :'signed_pares',
322
326
  :'acs_reference_number' => :'acs_reference_number',
323
- :'ds_reference_number' => :'ds_reference_number'
327
+ :'ds_reference_number' => :'ds_reference_number',
328
+ :'score_request' => :'score_request'
324
329
  }
325
330
  end
326
331
 
@@ -386,7 +391,8 @@ module CyberSource
386
391
  :'signed_pares_status_reason' => :'String',
387
392
  :'signed_pares' => :'String',
388
393
  :'acs_reference_number' => :'String',
389
- :'ds_reference_number' => :'String'
394
+ :'ds_reference_number' => :'String',
395
+ :'score_request' => :'Integer'
390
396
  }
391
397
  end
392
398
 
@@ -637,6 +643,10 @@ module CyberSource
637
643
  if attributes.has_key?(:'dsReferenceNumber')
638
644
  self.ds_reference_number = attributes[:'dsReferenceNumber']
639
645
  end
646
+
647
+ if attributes.has_key?(:'scoreRequest')
648
+ self.score_request = attributes[:'scoreRequest']
649
+ end
640
650
  end
641
651
 
642
652
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1004,7 +1014,8 @@ module CyberSource
1004
1014
  signed_pares_status_reason == o.signed_pares_status_reason &&
1005
1015
  signed_pares == o.signed_pares &&
1006
1016
  acs_reference_number == o.acs_reference_number &&
1007
- ds_reference_number == o.ds_reference_number
1017
+ ds_reference_number == o.ds_reference_number &&
1018
+ score_request == o.score_request
1008
1019
  end
1009
1020
 
1010
1021
  # @see the `==` method
@@ -1016,7 +1027,7 @@ module CyberSource
1016
1027
  # Calculates hash code according to all attributes.
1017
1028
  # @return [Fixnum] Hash code
1018
1029
  def hash
1019
- [cavv, transaction_flow_indicator, cavv_algorithm, eci_raw, pares_status, veres_enrolled, xid, ucaf_collection_indicator, ucaf_authentication_data, strong_authentication, directory_server_transaction_id, pa_specification_version, authentication_type, response_access_token, acs_transaction_id, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, challenge_cancel_code, challenge_code, challenge_status, customer_card_alias, decoupled_authentication_indicator, decoupled_authentication_max_time, default_card, device_channel, installment_total_count, merchant_fraud_rate, marketing_opt_in, marketing_source, mcc, merchant_score, message_category, network_score, npa_code, override_payment_method, override_country_code, prior_authentication_data, prior_authentication_method, prior_authentication_reference_id, prior_authentication_time, product_code, return_url, requestor_id, requestor_initiated_authentication_indicator, requestor_name, reference_id, sdk_max_timeout, secure_corporate_payment_indicator, transaction_mode, white_list_status, authentication_brand, effective_authentication_type, signed_pares_status_reason, signed_pares, acs_reference_number, ds_reference_number].hash
1030
+ [cavv, transaction_flow_indicator, cavv_algorithm, eci_raw, pares_status, veres_enrolled, xid, ucaf_collection_indicator, ucaf_authentication_data, strong_authentication, directory_server_transaction_id, pa_specification_version, authentication_type, response_access_token, acs_transaction_id, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, challenge_cancel_code, challenge_code, challenge_status, customer_card_alias, decoupled_authentication_indicator, decoupled_authentication_max_time, default_card, device_channel, installment_total_count, merchant_fraud_rate, marketing_opt_in, marketing_source, mcc, merchant_score, message_category, network_score, npa_code, override_payment_method, override_country_code, prior_authentication_data, prior_authentication_method, prior_authentication_reference_id, prior_authentication_time, product_code, return_url, requestor_id, requestor_initiated_authentication_indicator, requestor_name, reference_id, sdk_max_timeout, secure_corporate_payment_indicator, transaction_mode, white_list_status, authentication_brand, effective_authentication_type, signed_pares_status_reason, signed_pares, acs_reference_number, ds_reference_number, score_request].hash
1020
1031
  end
1021
1032
 
1022
1033
  # Builds the object from hash
@@ -13,6 +13,9 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Ptsv2paymentsOrderInformation
16
+ # Request field for merchant to increase the AUTH expiry days for Klarna Advantage Plus. Applicable for Re-Authorization (AP_REAUTH) service.
17
+ attr_accessor :extension_days
18
+
16
19
  attr_accessor :amount_details
17
20
 
18
21
  attr_accessor :bill_to
@@ -25,6 +28,8 @@ module CyberSource
25
28
 
26
29
  attr_accessor :shipping_details
27
30
 
31
+ attr_accessor :digital_currency
32
+
28
33
  # This is only needed when you are requesting both payment and DM service at same time. Boolean that indicates whether returns are accepted for this order. This field can contain one of the following values: - true: Returns are accepted for this order. - false: Returns are not accepted for this order.
29
34
  attr_accessor :returns_accepted
30
35
 
@@ -49,12 +54,14 @@ module CyberSource
49
54
  # Attribute mapping from ruby-style variable name to JSON key.
50
55
  def self.attribute_map
51
56
  {
57
+ :'extension_days' => :'extensionDays',
52
58
  :'amount_details' => :'amountDetails',
53
59
  :'bill_to' => :'billTo',
54
60
  :'ship_to' => :'shipTo',
55
61
  :'line_items' => :'lineItems',
56
62
  :'invoice_details' => :'invoiceDetails',
57
63
  :'shipping_details' => :'shippingDetails',
64
+ :'digital_currency' => :'digitalCurrency',
58
65
  :'returns_accepted' => :'returnsAccepted',
59
66
  :'is_cryptocurrency_purchase' => :'isCryptocurrencyPurchase',
60
67
  :'cutoff_date_time' => :'cutoffDateTime',
@@ -68,12 +75,14 @@ module CyberSource
68
75
  # Attribute mapping from JSON key to ruby-style variable name.
69
76
  def self.json_map
70
77
  {
78
+ :'extension_days' => :'extension_days',
71
79
  :'amount_details' => :'amount_details',
72
80
  :'bill_to' => :'bill_to',
73
81
  :'ship_to' => :'ship_to',
74
82
  :'line_items' => :'line_items',
75
83
  :'invoice_details' => :'invoice_details',
76
84
  :'shipping_details' => :'shipping_details',
85
+ :'digital_currency' => :'digital_currency',
77
86
  :'returns_accepted' => :'returns_accepted',
78
87
  :'is_cryptocurrency_purchase' => :'is_cryptocurrency_purchase',
79
88
  :'cutoff_date_time' => :'cutoff_date_time',
@@ -87,12 +96,14 @@ module CyberSource
87
96
  # Attribute type mapping.
88
97
  def self.swagger_types
89
98
  {
99
+ :'extension_days' => :'String',
90
100
  :'amount_details' => :'Ptsv2paymentsOrderInformationAmountDetails',
91
101
  :'bill_to' => :'Ptsv2paymentsOrderInformationBillTo',
92
102
  :'ship_to' => :'Ptsv2paymentsOrderInformationShipTo',
93
103
  :'line_items' => :'Array<Ptsv2paymentsOrderInformationLineItems>',
94
104
  :'invoice_details' => :'Ptsv2paymentsOrderInformationInvoiceDetails',
95
105
  :'shipping_details' => :'Ptsv2paymentsOrderInformationShippingDetails',
106
+ :'digital_currency' => :'Ptsv2paymentsOrderInformationDigitalCurrency',
96
107
  :'returns_accepted' => :'BOOLEAN',
97
108
  :'is_cryptocurrency_purchase' => :'String',
98
109
  :'cutoff_date_time' => :'String',
@@ -111,6 +122,10 @@ module CyberSource
111
122
  # convert string to symbol for hash key
112
123
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
113
124
 
125
+ if attributes.has_key?(:'extensionDays')
126
+ self.extension_days = attributes[:'extensionDays']
127
+ end
128
+
114
129
  if attributes.has_key?(:'amountDetails')
115
130
  self.amount_details = attributes[:'amountDetails']
116
131
  end
@@ -137,6 +152,10 @@ module CyberSource
137
152
  self.shipping_details = attributes[:'shippingDetails']
138
153
  end
139
154
 
155
+ if attributes.has_key?(:'digitalCurrency')
156
+ self.digital_currency = attributes[:'digitalCurrency']
157
+ end
158
+
140
159
  if attributes.has_key?(:'returnsAccepted')
141
160
  self.returns_accepted = attributes[:'returnsAccepted']
142
161
  end
@@ -179,6 +198,12 @@ module CyberSource
179
198
  true
180
199
  end
181
200
 
201
+ # Custom attribute writer method with validation
202
+ # @param [Object] extension_days Value to be assigned
203
+ def extension_days=(extension_days)
204
+ @extension_days = extension_days
205
+ end
206
+
182
207
  # Custom attribute writer method with validation
183
208
  # @param [Object] pre_order_date Value to be assigned
184
209
  def pre_order_date=(pre_order_date)
@@ -196,12 +221,14 @@ module CyberSource
196
221
  def ==(o)
197
222
  return true if self.equal?(o)
198
223
  self.class == o.class &&
224
+ extension_days == o.extension_days &&
199
225
  amount_details == o.amount_details &&
200
226
  bill_to == o.bill_to &&
201
227
  ship_to == o.ship_to &&
202
228
  line_items == o.line_items &&
203
229
  invoice_details == o.invoice_details &&
204
230
  shipping_details == o.shipping_details &&
231
+ digital_currency == o.digital_currency &&
205
232
  returns_accepted == o.returns_accepted &&
206
233
  is_cryptocurrency_purchase == o.is_cryptocurrency_purchase &&
207
234
  cutoff_date_time == o.cutoff_date_time &&
@@ -220,7 +247,7 @@ module CyberSource
220
247
  # Calculates hash code according to all attributes.
221
248
  # @return [Fixnum] Hash code
222
249
  def hash
223
- [amount_details, bill_to, ship_to, line_items, invoice_details, shipping_details, returns_accepted, is_cryptocurrency_purchase, cutoff_date_time, pre_order, pre_order_date, reordered, total_offers_count].hash
250
+ [extension_days, amount_details, bill_to, ship_to, line_items, invoice_details, shipping_details, digital_currency, returns_accepted, is_cryptocurrency_purchase, cutoff_date_time, pre_order, pre_order_date, reordered, total_offers_count].hash
224
251
  end
225
252
 
226
253
  # Builds the object from hash