/**
* apaleo Booking API - not safe for work
* Continuously evolving version - use at your own risk! Resources and methods to manage guest journeys.
*
* OpenAPI spec version: v0-nsfw
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { ActionModelAuthorizationActionNotAllowedAuthorizationActionReason } from './actionModelAuthorizationActionNotAllowedAuthorizationActionReason';
import { AuthorizationTargetModel } from './authorizationTargetModel';
import { ExternalAuthorizationReferenceModel } from './externalAuthorizationReferenceModel';
import { MonetaryValueModel } from './monetaryValueModel';
import { ClassMetaData } from '@apaleo/angular-api-proxy-common';
export interface AuthorizationModel {
/**
* Authorization id
*/
id: string;
target: AuthorizationTargetModel;
/**
* Date of creation
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004
*/
created: Date;
/**
* Date of last modification
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004
*/
updated: Date;
externalReference?: ExternalAuthorizationReferenceModel;
amount: MonetaryValueModel;
/**
* Status of the authorization
*/
status: AuthorizationModel.StatusEnum;
/**
* Human readable failure reason
*/
failureReason?: string;
/**
* Payer interaction of the authorization
*/
payerInteraction: AuthorizationModel.PayerInteractionEnum;
/**
* The date and time the authorization expires
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004
*/
expiresAt?: Date;
/**
* The URL to the payment link when authorization is created by payment link
*/
paymentLinkUrl?: string;
/**
* The list of actions for authorization
*/
actions?: Array;
}
export declare namespace AuthorizationModel {
type StatusEnum = 'Pending' | 'Success' | 'Failure' | 'Canceled' | 'Expired';
const StatusEnumValues: readonly StatusEnum[];
type PayerInteractionEnum = 'Terminal' | 'PaymentAccount' | 'Authorization' | 'PaymentLink';
const PayerInteractionEnumValues: readonly PayerInteractionEnum[];
}
export declare namespace AuthorizationModel {
const $metaData: ClassMetaData;
}