/* Options:
Date: 2024-11-21 11:40:24
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: PaysonV1CreateCheckout.*
//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/v1/checkout", "POST")]
public partial class PaysonV1CreateCheckout
: IReturn, ICompany
{
public PaysonV1CreateCheckout()
{
Articles = new ArticleToCreate[]{};
}
///
///The company id.
///
[ApiMember(Description="The company id.", IsRequired=true)]
public virtual Guid? CompanyId { get; set; }
///
///Internal reference id (Could be booking, could be Article..)
///
[ApiMember(Description="Internal reference id (Could be booking, could be Article..)")]
public virtual string InternalReferenceId { get; set; }
///
///The booking id.
///
[ApiMember(Description="The booking id.", IsRequired=true)]
public virtual int BookingId { 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, 4 = HomePageNew
///
[ApiMember(Description="The payment origin id. HomePage = 0, Embedded = 1, Admin = 2, Apps = 3, 4 = HomePageNew", 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; }
///
///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; }
///
///Determins if it's a test call
///
[ApiMember(Description="Determins if it's a test call")]
public virtual string TestMode { 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,
}
}