JEMBOT MAWOT Bypass Shell

Current Path : /home/c/i/n/cinepatreb/billetterie/modules/mollie/views/js/src/shared/
Upload File :
Current File : /home/c/i/n/cinepatreb/billetterie/modules/mollie/views/js/src/shared/globals.ts

/**
 * Mollie       https://www.mollie.nl
 *
 * @author      Mollie B.V. <info@mollie.nl>
 * @copyright   Mollie B.V.
 * @link        https://github.com/mollie/PrestaShop
 * @license     https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
 * @codingStandardsIgnoreStart
 */
import {array} from "locutus/php";

export interface ITranslations {
  [key: string]: string;
}

export interface IBankImage {
  size1x: string;
  size2x: string;
}

export interface IBank {
  id: string;
  name: string;
  image: IBankImage;
  href: string;
}

export interface IBanks {
  [key: string]: IBank;
}

export interface IMollieAmount {
  value: string;
  currency: string;
}

export interface IBankOptions {
  [key: string]: any;
}

export interface IMollieOrderConfig {
  ajaxEndpoint: string;
  moduleDir: string;
  initialStatus: string;
  transactionId: string;
  legacy: boolean;
  tracking?: IMollieTracking;
}

export interface IMollieCarrierConfig {
  ajaxEndpoint: string;
  carrierConfig: Array<IMollieCarrierConfigItem>;
  legacy: boolean;
}

export interface IMollieCarrierConfigItems {
  [key: string]: IMollieCarrierConfigItem;
}

export interface IMollieCarrierConfigItem {
  'id_carrier': string;
  'name': string;
  'source': 'do-not-track' | 'no-tracking-info' | 'module' | 'carrier_url' | 'custom_url';
  'module'?: string;
  'module_name': string;
  'custom_url': string;
}

export interface IMolliePaymentMethodImage {
  size1x: string;
  size2x: string;
  svg: string;
}

export interface IMolliePaymentIssuer {
  [key: string]: any;
}

export interface IMolliePaymentMethodItem {
  id: string;
  name: string;
  enabled: boolean;
  available?: boolean;
  tipEnableSSL?: boolean;
  image: IMolliePaymentMethodImage;
  issuers: Array<IMolliePaymentIssuer>;
}

export interface IMolliePaymentMethodConfigItem extends IMolliePaymentMethodItem {
  position: number;
}

export interface IMollieMethodConfig {
  ajaxEndpoint: string;
  moduleDir: string;
  legacy: boolean;
}

export interface ICurrencies {
  [iso: string]: ICurrency;
}

export interface ICurrency {
  format: number;
  sign: string;
  blank: string;
  name: string;
  iso_code: string;
  decimals: boolean;
}

export interface IMollieApiOrder {
  resource: string;
  id: string;
  mode: string;
  amount: IMollieAmount;
  amountCaptured: IMollieAmount;
  status: string;
  method: string;
  metadata: any;
  isCancelable?: boolean;
  createdAt: string;
  lines: Array<IMollieOrderLine>;
  refunds: Array<IMollieApiRefund>;
  availableRefundAmount: IMollieAmount;
  details: IMollieOrderDetails;
}

export interface IMollieOrderLine {
  resource: string;
  id: string;
  orderId: string;
  name: string;
  sku?: string;
  type: string;
  status: string;
  isCancelable: boolean;
  quantity: number;
  quantityShipped: number;
  amountShipped: IMollieAmount;
  quantityRefunded: number;
  amountRefunded: IMollieAmount;
  quantityCanceled: number;
  amountCanceled: IMollieAmount;
  shippableQuantity: number;
  refundableQuantity: number;
  cancelableQuantity: number;
  unitPrice: IMollieAmount;
  vatRate: string;
  vatAmount: IMollieAmount;
  totalAmount: IMollieAmount;
  createdAt: string;

  // PrestaShop additions
  newQuantity: number;
}

export interface IMollieTracking {
  carrier: string;
  code: string;
  url?: string;
}

export interface IMollieShipment {
  lines: Array<IMollieOrderLine>;
  tracking: IMollieTracking;
}

export interface IMollieApiPayment {
  resource: string;
  id: string;
  mode: string;
  amount: IMollieAmount;
  settlementAmount: IMollieAmount;
  amountRefunded: IMollieAmount;
  amountRemaining: IMollieAmount;
  description: string;
  method: string;
  status: string;
  createdAt: string;
  paidAt: string;
  canceledAt: string;
  expiresAt: string;
  failedAt: string;
  metaData: any;
  isCancelable: boolean;
  refunds: Array<IMollieApiRefund>;
}

export interface IMollieApiRefund {
  resource: string;
  id: string;
  amount: IMollieAmount;
  createdAt: string;
  description: string;
  paymentId: string;
  orderId: string;
  lines: string;
  settlementAmount: string;
  status: string;
}

export enum QrStatus {
  pending = 1,
  success = 2,
  refresh = 3,
}

export interface IMollieOrderDetails {
  issuer: string;
  remainderMethod: string;
  vouchers: Array<IMollieVoucher>;
}

export interface IMollieVoucher {
  issuer: string;
  amount: IMollieAmount
}

xxxxx1.0, XXX xxxx