/* Options: Date: 2024-10-06 10:30:00 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BeanstreamCreditCardPaymentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class BeanstreamCreditCardCompletionResponse implements IConvertible { String? uuid; String? id; bool? approved; String? message; String? order_number; BeanstreamCreditCardCompletionResponse({this.uuid,this.id,this.approved,this.message,this.order_number}); BeanstreamCreditCardCompletionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; id = json['id']; approved = json['approved']; message = json['message']; order_number = json['order_number']; return this; } Map toJson() => { 'uuid': uuid, 'id': id, 'approved': approved, 'message': message, 'order_number': order_number }; getTypeName() => "BeanstreamCreditCardCompletionResponse"; TypeContext? context = _ctx; } // @Route("/Beanstream/Payment/{uuid}/CreditCard/Create", "POST") class BeanstreamCreditCardPaymentRequest implements IReturn, IConvertible, IPost { String? uuid; String? department; String? item; double? amount; String? name; String? customer_ip; String? email; String? addr1; String? addr2; String? city; String? state; String? country; String? code; String? phone; String? card_number; String? card_name; String? expiry_month; String? expiry_year; String? cvd; BeanstreamCreditCardPaymentRequest({this.uuid,this.department,this.item,this.amount,this.name,this.customer_ip,this.email,this.addr1,this.addr2,this.city,this.state,this.country,this.code,this.phone,this.card_number,this.card_name,this.expiry_month,this.expiry_year,this.cvd}); BeanstreamCreditCardPaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; department = json['department']; item = json['item']; amount = JsonConverters.toDouble(json['amount']); name = json['name']; customer_ip = json['customer_ip']; email = json['email']; addr1 = json['addr1']; addr2 = json['addr2']; city = json['city']; state = json['state']; country = json['country']; code = json['code']; phone = json['phone']; card_number = json['card_number']; card_name = json['card_name']; expiry_month = json['expiry_month']; expiry_year = json['expiry_year']; cvd = json['cvd']; return this; } Map toJson() => { 'uuid': uuid, 'department': department, 'item': item, 'amount': amount, 'name': name, 'customer_ip': customer_ip, 'email': email, 'addr1': addr1, 'addr2': addr2, 'city': city, 'state': state, 'country': country, 'code': code, 'phone': phone, 'card_number': card_number, 'card_name': card_name, 'expiry_month': expiry_month, 'expiry_year': expiry_year, 'cvd': cvd }; createResponse() => BeanstreamCreditCardCompletionResponse(); getResponseTypeName() => "BeanstreamCreditCardCompletionResponse"; getTypeName() => "BeanstreamCreditCardPaymentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'BeanstreamCreditCardCompletionResponse': TypeInfo(TypeOf.Class, create:() => BeanstreamCreditCardCompletionResponse()), 'BeanstreamCreditCardPaymentRequest': TypeInfo(TypeOf.Class, create:() => BeanstreamCreditCardPaymentRequest()), });