NiceTokenResponse.cs 1013 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Text.Json.Serialization;
  2. namespace Infrastructure.Kyc.Nice.Dto;
  3. /// <summary>
  4. /// POST /ido/intc/v1.0/auth/token 응답. 가이드 §2-1.
  5. /// </summary>
  6. internal sealed class NiceTokenResponse
  7. {
  8. [JsonPropertyName("result_code")]
  9. public string? ResultCode { get; set; }
  10. [JsonPropertyName("result_message")]
  11. public string? ResultMessage { get; set; }
  12. [JsonPropertyName("request_no")]
  13. public string? RequestNo { get; set; }
  14. [JsonPropertyName("access_token")]
  15. public string? AccessToken { get; set; }
  16. /// <summary>토큰 만료 epoch milliseconds.</summary>
  17. [JsonPropertyName("expires_in")]
  18. public long ExpiresIn { get; set; }
  19. [JsonPropertyName("token_type")]
  20. public string? TokenType { get; set; }
  21. /// <summary>PBKDF2 iteration count.</summary>
  22. [JsonPropertyName("iterators")]
  23. public int Iterators { get; set; }
  24. /// <summary>PBKDF2 password.</summary>
  25. [JsonPropertyName("ticket")]
  26. public string? Ticket { get; set; }
  27. }