/* Options:
Date: 2024-11-21 12:36:01
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bokamera.se
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: True
//ExportValueTypes: False
IncludeTypes: PaysonV2CreateCheckout.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using System.Globalization;
using ServiceStack.Data;
using System.IO;
using BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Enums;
using PaysonIntegrationCO2.Models.Enums;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class PaysonCheckoutV2Response
{
///
///The checkout id
///
[ApiMember(Description="The checkout id")]
public virtual Guid Id { get; set; }
///
///The code snippet to for checkout module
///
[ApiMember(Description="The code snippet to for checkout module")]
public virtual string Snippet { get; set; }
///
///The checkout status
///
[ApiMember(Description="The checkout status")]
public virtual Payson2CheckoutStatus Status { get; set; }
}
[Route("/payment/payson/v2/checkout", "POST")]
public partial class PaysonV2CreateCheckout
: IReturn, ICompany
{
public PaysonV2CreateCheckout()
{
Articles = new ArticleToCreate[]{};
}
///
///The company id.
///
[ApiMember(Description="The company id.", IsRequired=true)]
public virtual Guid? CompanyId { get; set; }
///
///The reference id. (Could be booking, could be rebate code etc.)
///
[ApiMember(Description="The reference id. (Could be booking, could be rebate code etc.)")]
public virtual string BookingId { get; set; }
///
///The reference id. (Could be booking, could be rebate code etc.)
///
[ApiMember(Description="The reference id. (Could be booking, could be rebate code etc.)", IsRequired=true)]
public virtual string InternalReferenceId { get; set; }
///
///Optional to set the checkout url. This url will be redirected to if payment is interupted for some reason.
///
[ApiMember(Description="Optional to set the checkout url. This url will be redirected to if payment is interupted for some reason.")]
public virtual Uri CheckoutUrl { get; set; }
///
///Optional to set your own confirmation url after payment completed.
///
[ApiMember(Description="Optional to set your own confirmation url after payment completed.")]
public virtual Uri ConfirmationUrl { get; set; }
///
///The payment origin id. HomePage = 0, Embedded = 1, Admin = 2, Apps = 3
///
[ApiMember(Description="The payment origin id. HomePage = 0, Embedded = 1, Admin = 2, Apps = 3", IsRequired=true)]
public virtual PaymentOrigin PaymentOrigin { get; set; }
///
///If you want to have another language (sv, fi, dk, no, en) than the default language in system settings, specify it here. Leave empty if default language should be used.
///
[ApiMember(Description="If you want to have another language (sv, fi, dk, no, en) than the default language in system settings, specify it here. Leave empty if default language should be used.", IsRequired=true)]
public virtual string Language { get; set; }
///
///Country code for checkout
///
[ApiMember(Description="Country code for checkout", IsRequired=true)]
public virtual string CountryCode { get; set; }
///
///Determins if it's a test call
///
[ApiMember(Description="Determins if it's a test call")]
public virtual bool TestMode { get; set; }
///
///Articles (Could be Service, rebate code types, etc..
///
[ApiMember(Description="Articles (Could be Service, rebate code types, etc..", IsRequired=true)]
public virtual ArticleToCreate[] Articles { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Enums
{
public enum PaymentOrigin
{
HomePage,
Embedded,
Admin,
Apps,
HomePageNew,
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}
namespace PaysonIntegrationCO2.Models.Enums
{
public enum Payson2CheckoutStatus
{
None,
Created,
FormsFilled,
ReadyToPay,
ProcessingPayment,
ReadyToShip,
Shipped,
PaidToAccount,
Canceled,
Credited,
Expired,
Denied,
}
}