From 8caa77413ea372e5cbd2980a9922d701af359c04 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Wed, 28 May 2025 04:41:37 +0100 Subject: initial commit --- src/models/CashoutMethod.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/models/CashoutMethod.ts (limited to 'src/models/CashoutMethod.ts') diff --git a/src/models/CashoutMethod.ts b/src/models/CashoutMethod.ts new file mode 100644 index 0000000..8da88ac --- /dev/null +++ b/src/models/CashoutMethod.ts @@ -0,0 +1,33 @@ +import {CashoutMethodOut} from "@/api/models/cashout-method-out.ts" + +export class CashoutMethod implements CashoutMethodOut { + id: string; // uuid + currency: string; // 3-letter all caps + originalCurrency: string; // 3-letter all caps + data: any; + description: string; // html description + imageUrl: string; // cloudfront cdn + maxValue: number; // pixels int + minValue: number; // pixels int + name: string; + type: string; // TANGO + extId: string; // U179271 + productId?: any; + productUserId?: any; + + constructor(data) { + this.originalCurrency = data.original_currency; + this.currency = data.currency; + this.data = data.data; + this.description = data.description; + this.extId = data.ext_id; + this.id = data.id; + this.imageUrl = data.image_url; + this.maxValue = data.max_value; + this.minValue = data.min_value; + this.name = data.name; + this.type = data.type; + + } + +} \ No newline at end of file -- cgit v1.2.3