/* Options:
Date: 2024-11-21 13:47:21
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: UpdatePaymentSettings.*
//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.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class AdminPaymentOptionsResponse
{
///
///The payment options id
///
[ApiMember(Description="The payment options id")]
public virtual int Id { get; set; }
///
///The payment options name
///
[ApiMember(Description="The payment options name")]
public virtual string Name { get; set; }
///
///The payment options description
///
[ApiMember(Description="The payment options description")]
public virtual string Description { get; set; }
}
public partial class PaymentProviderOptionsResponse
{
///
///The payment provider id
///
[ApiMember(Description="The payment provider id")]
public virtual int Id { get; set; }
///
///The payment provider name
///
[ApiMember(Description="The payment provider name")]
public virtual string Name { get; set; }
///
///The payment provider description
///
[ApiMember(Description="The payment provider description")]
public virtual string Description { get; set; }
}
public partial class PaymentSettingsQueryResponse
{
public PaymentSettingsQueryResponse()
{
AdminPaymentOptions = new List{};
PaymentProviderOptions = new List{};
}
///
///The company id
///
[ApiMember(Description="The company id")]
public virtual Guid CompanyId { get; set; }
///
///The payment is enabled
///
[ApiMember(Description="The payment is enabled")]
public virtual bool Enabled { get; set; }
///
///If there should be any fee added when customer selected invoice payment method
///
[ApiMember(Description="If there should be any fee added when customer selected invoice payment method")]
public virtual int InvoiceFee { get; set; }
///
///If allow credit card payment
///
[ApiMember(Description="If allow credit card payment")]
public virtual bool AllowCreditCardPayment { get; set; }
///
///If allow invoice payment
///
[ApiMember(Description="If allow invoice payment")]
public virtual bool AllowInvoicePayment { get; set; }
///
///If allow bank payment
///
[ApiMember(Description="If allow bank payment")]
public virtual bool AllowBankPayment { get; set; }
///
///Automatically refund customer on canceled booking
///
[ApiMember(Description="Automatically refund customer on canceled booking")]
public virtual bool RefundOnCancelBooking { get; set; }
///
///The default option when admin creates a new booking
///
[ApiMember(Description="The default option when admin creates a new booking")]
public virtual int? DefaultPaymentOptionId { get; set; }
///
///What payment provider to use
///
[ApiMember(Description="What payment provider to use")]
public virtual int PaymentProviderId { get; set; }
///
///If you want to include the admin payment options to select from
///
[ApiMember(DataType="boolean", Description="If you want to include the admin payment options to select from", ParameterType="query")]
public virtual List AdminPaymentOptions { get; set; }
///
///If you want to include the payment provider options to select from
///
[ApiMember(DataType="boolean", Description="If you want to include the payment provider options to select from", ParameterType="query")]
public virtual List PaymentProviderOptions { get; set; }
///
///SendPaymentRequestDirectly
///
[ApiMember(Description="SendPaymentRequestDirectly")]
public virtual bool SendPaymentRequestDirectly { get; set; }
}
[Route("/payment/settings/", "PUT")]
[ValidateRequest("IsAuthenticated")]
public partial class UpdatePaymentSettings
: IReturn, ICompany
{
///
///The company id, if empty will use the company id for the user you are logged in with.
///
[ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")]
public virtual Guid? CompanyId { get; set; }
///
///The payment is enabled
///
[ApiMember(Description="The payment is enabled")]
public virtual bool? Enabled { get; set; }
///
///If there should be any fee added when customer selected invoice payment method
///
[ApiMember(Description="If there should be any fee added when customer selected invoice payment method")]
public virtual int? InvoiceFee { get; set; }
///
///If allow credit card payment
///
[ApiMember(Description="If allow credit card payment")]
public virtual bool? AllowCreditCardPayment { get; set; }
///
///If allow invoice payment
///
[ApiMember(Description="If allow invoice payment")]
public virtual bool? AllowInvoicePayment { get; set; }
///
///If allow bank payment
///
[ApiMember(Description="If allow bank payment")]
public virtual bool? AllowBankPayment { get; set; }
///
///Automatically refund customer on canceled booking
///
[ApiMember(Description="Automatically refund customer on canceled booking")]
public virtual bool? RefundOnCancelBooking { get; set; }
///
///The default option when admin creates a new booking
///
[ApiMember(Description="The default option when admin creates a new booking")]
public virtual int? DefaultPaymentOptionId { get; set; }
///
///What payment provider to use
///
[ApiMember(Description="What payment provider to use")]
public virtual int? PaymentProviderId { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}