/* Options: Date: 2026-02-05 06:54:11 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BillingMethodQuery.* //ExcludeTypes: //DefaultImports: */ // @ts-nocheck export interface IReturn { createResponse(): T; } // @DataContract export class QueryBase { // @DataMember(Order=1) public Skip?: number; // @DataMember(Order=2) public Take?: number; // @DataMember(Order=3) public OrderBy?: string; // @DataMember(Order=4) public OrderByDesc?: string; // @DataMember(Order=5) public Include?: string; // @DataMember(Order=6) public Fields?: string; // @DataMember(Order=7) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class QueryDb extends QueryBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class BaseModel { public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class BillingMethodCountriesRelation extends BaseModel { // @Required() public BillingMethodId: number; // @Required() public CountryId: string; public ModifiedDate?: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class BillingMethod extends BaseModel { public BillingMethodCountriesRelation: BillingMethodCountriesRelation[] = []; // @Required() public Name: string; // @Required() public Description: string; public ModifiedDate?: string; public Id: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class BillingMethodQueryResponse { /** @description The billing method id */ // @ApiMember(Description="The billing method id") public Id: number; /** @description The billing method name */ // @ApiMember(Description="The billing method name") public Name: string; /** @description The billing method description */ // @ApiMember(Description="The billing method description") public Description: string; /** @description The billing method is valid for the following countries */ // @ApiMember(Description="The billing method is valid for the following countries") public Countries: string[] = []; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message?: string; // @DataMember(Order=3) public StackTrace?: string; // @DataMember(Order=4) public Errors?: ResponseError[]; // @DataMember(Order=5) public Meta?: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class QueryResponse { // @DataMember(Order=1) public Offset: number; // @DataMember(Order=2) public Total: number; // @DataMember(Order=3) public Results: T[] = []; // @DataMember(Order=4) public Meta?: { [index:string]: string; }; // @DataMember(Order=5) public ResponseStatus?: ResponseStatus; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } // @Route("/billing/methods", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) export class BillingMethodQuery extends QueryDb implements IReturn> { /** @description If you want to only get billing methods that are valid for a specific country */ // @ApiMember(DataType="string", Description="If you want to only get billing methods that are valid for a specific country", ParameterType="query") public CountryId: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'BillingMethodQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } }