import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CreateAuthorizationPaymentAccountRequest } from '../model/createAuthorizationPaymentAccountRequest'; import { CreatePaymentLinkPaymentAccountRequest } from '../model/createPaymentLinkPaymentAccountRequest'; import { CreateTerminalPaymentAccountRequest } from '../model/createTerminalPaymentAccountRequest'; import { PaymentAccountCreatedModel } from '../model/paymentAccountCreatedModel'; import { PaymentAccountV2ListModel } from '../model/paymentAccountV2ListModel'; import { PaymentAccountV2Model } from '../model/paymentAccountV2Model'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare namespace bookingPaymentAccountsByAuthorizationPost { interface Params { /** * The definition of the payment account to be created */ body: CreateAuthorizationPaymentAccountRequest; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingPaymentAccountsByIdGet { interface Params { /** * The identifier of the payment account */ id: string; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * List of all embedded resources that should be expanded in the response. Possible values are: actions. All other values will be silently ignored. */ expand?: Array; } type ExpandEnum = 'actions'; const ExpandEnumValues: readonly "actions"[]; } export declare namespace bookingPaymentAccountsByLinkPost { interface Params { /** * The definition of the payment account to be created */ body: CreatePaymentLinkPaymentAccountRequest; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingPaymentAccountsByTerminalPost { interface Params { /** * The definition of the payment account to be created */ body: CreateTerminalPaymentAccountRequest; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingPaymentAccountsGet { interface Params { /** * Filter result by requested properties */ propertyIds?: Array; /** * Filter result by requested booking ids. Returns payment accounts that are related to the specified booking or booking reservations. Use in combination with the Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.TargetTypes to get payment accounts related only to bookings or to reservations. */ bookingIds?: Array; /** * Filter result by requested reservation ids */ reservationIds?: Array; /** * Filter result by payment account payer interactions */ payerInteractions?: Array; /** * Filter result by payment account status */ status?: Array; /** * Filter by target types */ targetTypes?: Array; /** * Filter result by date and time attributes of payment account. Use in combination with the Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To attributes. All filters will check if the date specified by the filter type is between Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From (included) and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To (excluded). */ dateField?: DateFieldEnum; /** * The start of the time interval. When filtering by Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.DateField, at least one of Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To has to be specified
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ from?: Date; /** * The end of the time interval, must be larger than Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From. When filtering by Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.DateField, at least one of Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To has to be specified
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ to?: Date; /** * Filter by payment link urls */ paymentLinkUrls?: Array; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Page number, 1-based. Default value is 1 (if this is not set or not positive). Results in 204 if there are no items on that page. */ pageNumber?: number; /** * Page size. If this is not set or not positive, the pageNumber is ignored and all items are returned. */ pageSize?: number; /** * List of all fields that can be used to sort the results. Possible values are: created:asc, created:desc, updated:asc, updated:desc, expiresat:asc, expiresat:desc. All other values will be silently ignored. */ sort?: Array; /** * List of all embedded resources that should be expanded in the response. Possible values are: actions. All other values will be silently ignored. */ expand?: Array; } type PayerInteractionsEnum = 'PciToken' | 'Terminal' | 'Authorization' | 'PaymentLink'; const PayerInteractionsEnumValues: readonly PayerInteractionsEnum[]; type StatusEnum = 'Pending' | 'Success' | 'Failure' | 'Canceled' | 'Expired'; const StatusEnumValues: readonly StatusEnum[]; type TargetTypesEnum = 'Booking' | 'Reservation'; const TargetTypesEnumValues: readonly TargetTypesEnum[]; type DateFieldEnum = 'Creation' | 'Modification'; const DateFieldEnumValues: readonly DateFieldEnum[]; type SortEnum = 'created:asc' | 'created:desc' | 'updated:asc' | 'updated:desc' | 'expiresat:asc' | 'expiresat:desc'; const SortEnumValues: readonly SortEnum[]; type ExpandEnum = 'actions'; const ExpandEnumValues: readonly "actions"[]; } export declare class PaymentAccountService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm; /** * Creates payment account based on an existing authorization created prior externally with the Payment Service Provider * <br>You must have this scope: 'payment-accounts.manage'. * @param $params.body The definition of the payment account to be created * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingPaymentAccountsByAuthorizationPost($params: bookingPaymentAccountsByAuthorizationPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingPaymentAccountsByAuthorizationPost($params: bookingPaymentAccountsByAuthorizationPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingPaymentAccountsByAuthorizationPost($params: bookingPaymentAccountsByAuthorizationPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a single payment account by ID * <br>You must have at least one of these scopes: 'payment-accounts.read, payment-accounts.manage'. * @param $params.id The identifier of the payment account * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.expand List of all embedded resources that should be expanded in the response. Possible values are: actions. All other values will be silently ignored. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingPaymentAccountsByIdGet($params: bookingPaymentAccountsByIdGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingPaymentAccountsByIdGet($params: bookingPaymentAccountsByIdGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingPaymentAccountsByIdGet($params: bookingPaymentAccountsByIdGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Creates a link to a payment form that allows guests to complete the payment account * <br>You must have this scope: 'payment-accounts.manage'. * @param $params.body The definition of the payment account to be created * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingPaymentAccountsByLinkPost($params: bookingPaymentAccountsByLinkPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingPaymentAccountsByLinkPost($params: bookingPaymentAccountsByLinkPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingPaymentAccountsByLinkPost($params: bookingPaymentAccountsByLinkPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Creates payment account by using the terminal * <br>You must have this scope: 'payment-accounts.manage'. * @param $params.body The definition of the payment account to be created * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingPaymentAccountsByTerminalPost($params: bookingPaymentAccountsByTerminalPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingPaymentAccountsByTerminalPost($params: bookingPaymentAccountsByTerminalPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingPaymentAccountsByTerminalPost($params: bookingPaymentAccountsByTerminalPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a list of payment accounts based on the query parameters * <br>You must have at least one of these scopes: 'payment-accounts.read, payment-accounts.manage'. * @param $params.propertyIds Filter result by requested properties * @param $params.bookingIds Filter result by requested booking ids. Returns payment accounts that are related to the specified booking or booking reservations. Use in combination with the Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.TargetTypes to get payment accounts related only to bookings or to reservations. * @param $params.reservationIds Filter result by requested reservation ids * @param $params.payerInteractions Filter result by payment account payer interactions * @param $params.status Filter result by payment account status * @param $params.targetTypes Filter by target types * @param $params.dateField Filter result by date and time attributes of payment account. Use in combination with the Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To attributes. All filters will check if the date specified by the filter type is between Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From (included) and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To (excluded). * @param $params.from The start of the time interval. When filtering by Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.DateField, at least one of Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To has to be specified<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.to The end of the time interval, must be larger than Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From. When filtering by Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.DateField, at least one of Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.From and Apaleo.Api.Modules.Booking.Models.PaymentAccountV2.PaymentAccountV2ListRequest.To has to be specified<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.paymentLinkUrls Filter by payment link urls * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.pageNumber Page number, 1-based. Default value is 1 (if this is not set or not positive). Results in 204 if there are no items on that page. * @param $params.pageSize Page size. If this is not set or not positive, the pageNumber is ignored and all items are returned. * @param $params.sort List of all fields that can be used to sort the results. Possible values are: created:asc, created:desc, updated:asc, updated:desc, expiresat:asc, expiresat:desc. All other values will be silently ignored. * @param $params.expand List of all embedded resources that should be expanded in the response. Possible values are: actions. All other values will be silently ignored. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingPaymentAccountsGet($params: bookingPaymentAccountsGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingPaymentAccountsGet($params: bookingPaymentAccountsGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingPaymentAccountsGet($params: bookingPaymentAccountsGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }