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 PaymentProvider
{
///
/// The name of the payment provider. (max 255 characters)
///
/// The name of the payment provider. (max 255 characters)
[Required]
[StringLength(255, MinimumLength = 0)]
[JsonProperty("name")]
public string Name { get; set; }
///
/// Minor units. Includes tax.
///
/// Minor units. Includes tax.
[JsonProperty("fee")]
public long? Fee { get; set; }
///
/// Description. (max 500 characters)
///
/// Description. (max 500 characters)
[StringLength(500, MinimumLength = 0)]
[JsonProperty("description")]
public string Description { get; set; }
///
/// If specified, limits the method to the listed countries (alpha 2 codes).
///
/// If specified, limits the method to the listed countries (alpha 2 codes).
[JsonProperty("countries")]
public List Countries { get; set; }
///
/// Controls label of buy button<ul><li>continue</li><li>complete</li></ul>
///
/// Controls label of buy button<ul><li>continue</li><li>complete</li></ul>
[JsonProperty("label")]
public string Label { get; set; }
///
/// URL to redirect to. (must be https, min 7, max 2000 characters)
///
/// URL to redirect to. (must be https, min 7, max 2000 characters)
[Required]
[StringLength(2000, MinimumLength = 7)]
[JsonProperty("redirect_url")]
public string RedirectUrl { get; set; }
///
/// URL to an image to display. (must be https, max 2000 characters)
///
/// URL to an image to display. (must be https, max 2000 characters)
[StringLength(2000, MinimumLength = 0)]
[JsonProperty("image_url")]
public string ImageUrl { get; set; }
}
}