46 lines
1.7 KiB
C#
46 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace gehGassi.Klarna.Checkout
|
|
{
|
|
public class CheckboxV2
|
|
{
|
|
/// <summary>
|
|
/// Identifier used when presenting data back to merchant
|
|
/// </summary>
|
|
/// <value>Identifier used when presenting data back to merchant</value>
|
|
[Required]
|
|
[JsonProperty("id")]
|
|
public string Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)
|
|
/// </summary>
|
|
/// <value>Text that will be displayed to the consumer aside the checkbox. Links and formatting can be added using Markdown. (max 255 characters)</value>
|
|
[Required]
|
|
[JsonProperty("text")]
|
|
public string Text { get; set; }
|
|
|
|
/// <summary>
|
|
/// Default state of the additional checkbox. It will use this value when loaded for the first time.
|
|
/// </summary>
|
|
/// <value>Default state of the additional checkbox. It will use this value when loaded for the first time.</value>
|
|
[Required]
|
|
[JsonProperty("checked")]
|
|
public bool? Checked { get; set; }
|
|
|
|
/// <summary>
|
|
/// Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.
|
|
/// </summary>
|
|
/// <value>Whether it is required for the consumer to check the additional checkbox box or not in order to complete the purchase.</value>
|
|
[Required]
|
|
[JsonProperty("required")]
|
|
public bool? Required { get; set; }
|
|
}
|
|
}
|