|
| 1 | +/* |
| 2 | + * Copyright 2018-2023 GraphDefined GmbH <achim.friedland@graphdefined.com> |
| 3 | + * This file is part of ChargingStation <https://github.com/OpenChargingCloud/ChargingStation> |
| 4 | + * |
| 5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + * you may not use this file except in compliance with the License. |
| 7 | + * You may obtain a copy of the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + * See the License for the specific language governing permissions and |
| 15 | + * limitations under the License. |
| 16 | + */ |
| 17 | + |
| 18 | +import * as types from '../../Types'; |
| 19 | +import * as complex from '../../Complex'; |
| 20 | +import * as componentConfig from '../ComponentConfig'; |
| 21 | + |
| 22 | + |
| 23 | +export class WebPaymentsCtrlr { |
| 24 | + |
| 25 | + public EVSE: complex.EVSE | null = null; |
| 26 | + public enabled: boolean | null = null; |
| 27 | + public urlTemplate: types.URL | null = null; |
| 28 | + public validityTime: types.TimeSpan | null = null; |
| 29 | + public hashAlgorithm: types.HashAlgorithm | null = null; |
| 30 | + public sharedSecret: string | null = null; |
| 31 | + public length: types.Integer | null = null; |
| 32 | + public encoding: string | null = null; //types.Encoding, |
| 33 | + public qrCodeQuality: string | null = null; |
| 34 | + public signature: string | null = null; |
| 35 | + |
| 36 | + public instance: string | null = null; |
| 37 | + public customData: complex.ICustomData | null = null; |
| 38 | + |
| 39 | + |
| 40 | + constructor(EVSE?: complex.EVSE, |
| 41 | + enabled?: boolean, |
| 42 | + urlTemplate?: types.URL, |
| 43 | + validityTime?: types.TimeSpan, |
| 44 | + hashAlgorithm?: types.HashAlgorithm, |
| 45 | + sharedSecret?: string, |
| 46 | + length?: types.Integer, |
| 47 | + encoding?: string, //types.Encoding, |
| 48 | + qrCodeQuality?: string, |
| 49 | + signature?: string, |
| 50 | + |
| 51 | + instance?: string, |
| 52 | + customData?: complex.ICustomData) { |
| 53 | + |
| 54 | + this.EVSE = EVSE ?? null; |
| 55 | + this.enabled = enabled ?? null; |
| 56 | + this.urlTemplate = urlTemplate ?? null; |
| 57 | + this.validityTime = validityTime ?? null; |
| 58 | + this.hashAlgorithm = hashAlgorithm ?? null; |
| 59 | + this.sharedSecret = sharedSecret ?? null; |
| 60 | + this.length = length ?? null; |
| 61 | + this.encoding = encoding ?? null; |
| 62 | + this.qrCodeQuality = qrCodeQuality ?? null; |
| 63 | + this.signature = signature ?? null; |
| 64 | + this.instance = instance ?? null; |
| 65 | + this.customData = customData ?? null; |
| 66 | + |
| 67 | + } |
| 68 | + |
| 69 | +} |
0 commit comments