| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/ConferenceRegistrationEdit |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ConferenceRegistration:
conference_registration_id: Optional[str] = None
conference_id: Optional[str] = None
user_id: Optional[str] = None
conference_package: Optional[str] = None
payment_method: Optional[str] = None
total_cost: Decimal = decimal.Decimal(0)
total_edit_cost: Decimal = decimal.Decimal(0)
stripe_charge_id: Optional[str] = None
date_created: datetime.datetime = datetime.datetime(1, 1, 1)
reg_name: Optional[str] = None
is_a_f: int = 0
af_title: Optional[str] = None
conference_registration_detail_id: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ConferenceRegistrationResponse:
response_status: Optional[ResponseStatus] = None
conference_registration: List[ConferenceRegistration] = field(default_factory=list)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ConferenceRegistrationDetail:
conference_registration_detail_id: Optional[str] = None
conference_registration_id: Optional[str] = None
name: Optional[str] = None
is_a_f: bool = False
af_title: Optional[str] = None
conference_package: Optional[str] = None
roommate_request: Optional[str] = None
spouse: bool = False
spouse_name: Optional[str] = None
vip: bool = False
attending_class: bool = False
attending_academy: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ConferenceEditRegistrationRequest:
conference_id: Optional[str] = None
user_id: Optional[str] = None
conference_registration: List[ConferenceRegistration] = field(default_factory=list)
conference_registration_details: List[ConferenceRegistrationDetail] = field(default_factory=list)
stripe_token: Optional[str] = None
Python ConferenceEditRegistrationRequest 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 /v1/ConferenceRegistrationEdit HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ConferenceId: 00000000000000000000000000000000,
UserId: 00000000000000000000000000000000,
ConferenceRegistration:
[
{
ConferenceRegistrationId: 00000000000000000000000000000000,
ConferenceId: 00000000000000000000000000000000,
UserId: 00000000000000000000000000000000,
ConferencePackage: String,
PaymentMethod: String,
TotalCost: 0,
TotalEditCost: 0,
StripeChargeId: String,
DateCreated: 0001-01-01,
RegName: String,
IsAF: 0,
afTitle: String,
ConferenceRegistrationDetailId: 00000000000000000000000000000000
}
],
ConferenceRegistrationDetails:
[
{
ConferenceRegistrationDetailId: 00000000000000000000000000000000,
ConferenceRegistrationId: 00000000000000000000000000000000,
Name: String,
IsAF: False,
AFTitle: String,
ConferencePackage: String,
RoommateRequest: String,
Spouse: False,
SpouseName: String,
VIP: False,
AttendingClass: False,
AttendingAcademy: False
}
],
StripeToken: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
ConferenceRegistration:
[
{
ConferenceRegistrationId: 00000000000000000000000000000000,
ConferenceId: 00000000000000000000000000000000,
UserId: 00000000000000000000000000000000,
ConferencePackage: String,
PaymentMethod: String,
TotalCost: 0,
TotalEditCost: 0,
StripeChargeId: String,
DateCreated: 0001-01-01,
RegName: String,
IsAF: 0,
afTitle: String,
ConferenceRegistrationDetailId: 00000000000000000000000000000000
}
]
}