| All Verbs | /cmd/notify/frontend/ |
|---|
// @ts-nocheck
export class BettingApp
{
public name?: string;
public version?: string;
public constructor(init?: Partial<BettingApp>) { (Object as any).assign(this, init); }
}
export class Ref
{
public id: string;
public val: string;
public constructor(init?: Partial<Ref>) { (Object as any).assign(this, init); }
}
export class RefEx extends Ref
{
public data: RecordDictionary<string, string>;
public constructor(init?: Partial<RefEx>) { super(init); (Object as any).assign(this, init); }
}
export class Origin
{
public application?: BettingApp;
public ip?: string;
public organization?: RefEx;
public region?: Ref;
public locationGroup?: Ref;
public location?: RefEx;
public device?: RefEx;
public clerk?: Ref;
public constructor(init?: Partial<Origin>) { (Object as any).assign(this, init); }
}
export enum SlipSubmissionStatus
{
Pending = 0,
Accepted = 2,
Rejected = 3,
Failed = 4,
}
export class AcceptedSlipInfo
{
public id?: string;
public origin?: Origin;
public bettor?: Ref;
public slipSubmissionStatus: SlipSubmissionStatus;
public payload?: RecordDictionary<string, string>;
public constructor(init?: Partial<AcceptedSlipInfo>) { (Object as any).assign(this, init); }
}
export class ErrorInfo
{
public origin?: Origin;
public errorCode?: string;
public errorDescription?: string;
public payload?: { [index:string]: string; };
public constructor(init?: Partial<ErrorInfo>) { (Object as any).assign(this, init); }
}
export class ConfirmationInfo
{
public bettor?: Ref;
public origin?: Origin;
public confirmationCode?: string;
public confirmationDescription?: string;
public payload?: { [index:string]: string; };
public constructor(init?: Partial<ConfirmationInfo>) { (Object as any).assign(this, init); }
}
export class WalletTransactionInfo
{
public reason?: string;
public constructor(init?: Partial<WalletTransactionInfo>) { (Object as any).assign(this, init); }
}
export class WalletUpdateInfo
{
public bettor?: Ref;
public origin?: Origin;
public transactionInfo?: WalletTransactionInfo;
public constructor(init?: Partial<WalletUpdateInfo>) { (Object as any).assign(this, init); }
}
export class UserNotificationsUpdatedInfo
{
public id?: string;
public constructor(init?: Partial<UserNotificationsUpdatedInfo>) { (Object as any).assign(this, init); }
}
export class ApplicationEventsUpdated
{
public constructor(init?: Partial<ApplicationEventsUpdated>) { (Object as any).assign(this, init); }
}
export class SlipDeliveryIssueRefundRequestUpdated
{
public constructor(init?: Partial<SlipDeliveryIssueRefundRequestUpdated>) { (Object as any).assign(this, init); }
}
export class NotifyFrontend
{
public acceptedSlipInfo?: AcceptedSlipInfo;
public errorInfo?: ErrorInfo;
public confirmationInfo?: ConfirmationInfo;
public slipCancellationId?: string;
public walletUpdatedInfo?: WalletUpdateInfo;
public userNotificationsUpdated?: UserNotificationsUpdatedInfo;
public applicationEventsUpdated?: ApplicationEventsUpdated;
public slipDeliveryIssueRefundRequestUpdated?: SlipDeliveryIssueRefundRequestUpdated;
public constructor(init?: Partial<NotifyFrontend>) { (Object as any).assign(this, init); }
}
export class Dictionary<T> { [Key: string]: T; }
export class RecordDictionary<TKey, TVal> extends Dictionary<TVal>
{
public constructor(init?: Partial<RecordDictionary<TKey, TVal>>) { super(); (Object as any).assign(this, init); }
}
TypeScript NotifyFrontend DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/notify/frontend/ HTTP/1.1
Host: api.bettor.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
acceptedSlipInfo:
{
id: String,
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
bettor:
{
id: String,
val: String
},
slipSubmissionStatus: 0,
payload:
{
String: String
}
},
errorInfo:
{
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
errorCode: String,
errorDescription: String,
payload:
{
String: String
}
},
confirmationInfo:
{
bettor:
{
id: String,
val: String
},
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
confirmationCode: String,
confirmationDescription: String,
payload:
{
String: String
}
},
slipCancellationId: String,
walletUpdatedInfo:
{
bettor:
{
id: String,
val: String
},
origin:
{
application:
{
name: String,
version: String
},
ip: String,
organization:
{
data:
{
String: String
},
id: String,
val: String
},
region:
{
id: String,
val: String
},
locationGroup:
{
id: String,
val: String
},
location:
{
data:
{
String: String
},
id: String,
val: String
},
device:
{
data:
{
String: String
},
id: String,
val: String
},
clerk:
{
id: String,
val: String
}
},
transactionInfo:
{
reason: String
}
},
userNotificationsUpdated:
{
id: String
},
applicationEventsUpdated: {},
slipDeliveryIssueRefundRequestUpdated: {}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}