efun.id.api

<back to all web services

OnePayPaymentStepOneRequest

Requires Authentication
The following routes are available for this service:
GET/api/v1/onepay/payment-step-one
import 'package:servicestack/servicestack.dart';

class OnePayPaymentStepOneRequest implements IConvertible
{
    int? price;
    String? captcha;

    OnePayPaymentStepOneRequest({this.price,this.captcha});
    OnePayPaymentStepOneRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        price = json['price'];
        captcha = json['captcha'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'price': price,
        'captcha': captcha
    };

    getTypeName() => "OnePayPaymentStepOneRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'efun_id_api_sandbox.efun.vn', types: <String, TypeInfo> {
    'OnePayPaymentStepOneRequest': TypeInfo(TypeOf.Class, create:() => OnePayPaymentStepOneRequest()),
});

Dart OnePayPaymentStepOneRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/v1/onepay/payment-step-one HTTP/1.1 
Host: efun-id-api-sandbox.efun.vn 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{}