FIBUdataServiceStack

<back to all web services

OnlinehandelShopifyCheckShopTokenRequest

The following routes are available for this service:
GET, POST/fibuscan/Onlinehandel/shopify/checkShopToken
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class OnlinehandelShopifyCheckShopTokenResponse implements IConvertible
{
    String? error;
    bool? result;
    String? mandnr;
    List<String>? werte;

    OnlinehandelShopifyCheckShopTokenResponse({this.error,this.result,this.mandnr,this.werte});
    OnlinehandelShopifyCheckShopTokenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        error = json['error'];
        result = json['result'];
        mandnr = json['mandnr'];
        werte = JsonConverters.fromJson(json['werte'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'error': error,
        'result': result,
        'mandnr': mandnr,
        'werte': JsonConverters.toJson(werte,'List<String>',context!)
    };

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

class OnlinehandelShopifyCheckShopTokenRequest implements IConvertible
{
    String? token;

    OnlinehandelShopifyCheckShopTokenRequest({this.token});
    OnlinehandelShopifyCheckShopTokenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'OnlinehandelShopifyCheckShopTokenResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelShopifyCheckShopTokenResponse()),
    'OnlinehandelShopifyCheckShopTokenRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelShopifyCheckShopTokenRequest()),
});

Dart OnlinehandelShopifyCheckShopTokenRequest DTOs

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

HTTP + XML

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

POST /fibuscan/Onlinehandel/shopify/checkShopToken HTTP/1.1 
Host: ws4.fibudata.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OnlinehandelShopifyCheckShopTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <token>String</token>
</OnlinehandelShopifyCheckShopTokenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OnlinehandelShopifyCheckShopTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <error>String</error>
  <mandnr>String</mandnr>
  <result>false</result>
  <werte xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </werte>
</OnlinehandelShopifyCheckShopTokenResponse>