/* Options: Date: 2026-06-22 22:51:24 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: InvoicePaymentIntentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class InvoicePaymentIntentResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? Success; String? ClientSecret; double? AmountDue; String? Message; InvoicePaymentIntentResponse({this.ResponseStatus,this.Success,this.ClientSecret,this.AmountDue,this.Message}); InvoicePaymentIntentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Success = json['Success']; ClientSecret = json['ClientSecret']; AmountDue = JsonConverters.toDouble(json['AmountDue']); Message = json['Message']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Success': Success, 'ClientSecret': ClientSecret, 'AmountDue': AmountDue, 'Message': Message }; getTypeName() => "InvoicePaymentIntentResponse"; TypeContext? context = _ctx; } // @Route("/v1/invoice/{InvoiceUID}/payment-intent", "POST,OPTIONS") class InvoicePaymentIntentRequest implements IReturn, IConvertible, IPost { String? InvoiceUID; InvoicePaymentIntentRequest({this.InvoiceUID}); InvoicePaymentIntentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceUID = json['InvoiceUID']; return this; } Map toJson() => { 'InvoiceUID': InvoiceUID }; createResponse() => InvoicePaymentIntentResponse(); getResponseTypeName() => "InvoicePaymentIntentResponse"; getTypeName() => "InvoicePaymentIntentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'InvoicePaymentIntentResponse': TypeInfo(TypeOf.Class, create:() => InvoicePaymentIntentResponse()), 'InvoicePaymentIntentRequest': TypeInfo(TypeOf.Class, create:() => InvoicePaymentIntentRequest()), });