/* Options: Date: 2026-08-17 08:27:51 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GiftCardLedgerRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GiftCardSummary implements IConvertible { int? id; int? giftCardTypeId; String? codeLast4; String? scope; int? scopeOwnerId; String? currency; int? initialValueMinor; int? currentBalanceMinor; String? status; DateTime? activatedAt; DateTime? expiresAt; DateTime? createdAt; String? buyerName; String? buyerEmail; String? buyerPhone; String? paymentId; String? paymentMethodId; String? purchasePaymentReference; GiftCardSummary({this.id,this.giftCardTypeId,this.codeLast4,this.scope,this.scopeOwnerId,this.currency,this.initialValueMinor,this.currentBalanceMinor,this.status,this.activatedAt,this.expiresAt,this.createdAt,this.buyerName,this.buyerEmail,this.buyerPhone,this.paymentId,this.paymentMethodId,this.purchasePaymentReference}); GiftCardSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; giftCardTypeId = json['giftCardTypeId']; codeLast4 = json['codeLast4']; scope = json['scope']; scopeOwnerId = json['scopeOwnerId']; currency = json['currency']; initialValueMinor = json['initialValueMinor']; currentBalanceMinor = json['currentBalanceMinor']; status = json['status']; activatedAt = JsonConverters.fromJson(json['activatedAt'],'DateTime',context!); expiresAt = JsonConverters.fromJson(json['expiresAt'],'DateTime',context!); createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); buyerName = json['buyerName']; buyerEmail = json['buyerEmail']; buyerPhone = json['buyerPhone']; paymentId = json['paymentId']; paymentMethodId = json['paymentMethodId']; purchasePaymentReference = json['purchasePaymentReference']; return this; } Map toJson() => { 'id': id, 'giftCardTypeId': giftCardTypeId, 'codeLast4': codeLast4, 'scope': scope, 'scopeOwnerId': scopeOwnerId, 'currency': currency, 'initialValueMinor': initialValueMinor, 'currentBalanceMinor': currentBalanceMinor, 'status': status, 'activatedAt': JsonConverters.toJson(activatedAt,'DateTime',context!), 'expiresAt': JsonConverters.toJson(expiresAt,'DateTime',context!), 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'buyerName': buyerName, 'buyerEmail': buyerEmail, 'buyerPhone': buyerPhone, 'paymentId': paymentId, 'paymentMethodId': paymentMethodId, 'purchasePaymentReference': purchasePaymentReference }; getTypeName() => "GiftCardSummary"; TypeContext? context = _ctx; } class GiftCardTransaction implements IConvertible { int? id; int? giftCardId; String? kind; int? amountMinor; String? status; DateTime? holdExpiresAt; int? relatedHoldId; String? orderPaymentReference; int? eventId; int? ownerId; String? idempotencyKey; DateTime? createdAt; String? note; GiftCardTransaction({this.id,this.giftCardId,this.kind,this.amountMinor,this.status,this.holdExpiresAt,this.relatedHoldId,this.orderPaymentReference,this.eventId,this.ownerId,this.idempotencyKey,this.createdAt,this.note}); GiftCardTransaction.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; giftCardId = json['giftCardId']; kind = json['kind']; amountMinor = json['amountMinor']; status = json['status']; holdExpiresAt = JsonConverters.fromJson(json['holdExpiresAt'],'DateTime',context!); relatedHoldId = json['relatedHoldId']; orderPaymentReference = json['orderPaymentReference']; eventId = json['eventId']; ownerId = json['ownerId']; idempotencyKey = json['idempotencyKey']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); note = json['note']; return this; } Map toJson() => { 'id': id, 'giftCardId': giftCardId, 'kind': kind, 'amountMinor': amountMinor, 'status': status, 'holdExpiresAt': JsonConverters.toJson(holdExpiresAt,'DateTime',context!), 'relatedHoldId': relatedHoldId, 'orderPaymentReference': orderPaymentReference, 'eventId': eventId, 'ownerId': ownerId, 'idempotencyKey': idempotencyKey, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'note': note }; getTypeName() => "GiftCardTransaction"; TypeContext? context = _ctx; } class GiftCardLedgerResult implements IConvertible { GiftCardSummary? card; List? transactions; int? statusCode; String? message; GiftCardLedgerResult({this.card,this.transactions,this.statusCode,this.message}); GiftCardLedgerResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { card = JsonConverters.fromJson(json['card'],'GiftCardSummary',context!); transactions = JsonConverters.fromJson(json['transactions'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'card': JsonConverters.toJson(card,'GiftCardSummary',context!), 'transactions': JsonConverters.toJson(transactions,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "GiftCardLedgerResult"; TypeContext? context = _ctx; } // @Route("/GiftCard/Ledger/{GiftCardId}", "GET") class GiftCardLedgerRequest implements IReturn, IConvertible { int? giftCardId; GiftCardLedgerRequest({this.giftCardId}); GiftCardLedgerRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { giftCardId = json['giftCardId']; return this; } Map toJson() => { 'giftCardId': giftCardId }; createResponse() => GiftCardLedgerResult(); getResponseTypeName() => "GiftCardLedgerResult"; getTypeName() => "GiftCardLedgerRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'GiftCardSummary': TypeInfo(TypeOf.Class, create:() => GiftCardSummary()), 'GiftCardTransaction': TypeInfo(TypeOf.Class, create:() => GiftCardTransaction()), 'GiftCardLedgerResult': TypeInfo(TypeOf.Class, create:() => GiftCardLedgerResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GiftCardLedgerRequest': TypeInfo(TypeOf.Class, create:() => GiftCardLedgerRequest()), });