""" Options: Date: 2025-05-06 14:30:05 Version: 6.10 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://stubbur-autoupdates-live.smartnewapis.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: OwnerCardsOrderRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ 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 RequestSignature: system_id: Optional[str] = None system_secret: Optional[str] = None signature: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Borgun3DFinalPaymentMethodInfo: payment_type: Optional[str] = None token: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Borgun3DFinal3DSecureInfo: data_type: Optional[str] = None mpi_token: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Borgun3DFinalRequest: transaction_type: Optional[str] = None amount: int = 0 currency: Optional[str] = None transaction_date: Optional[datetime.datetime] = None order_id: Optional[str] = None payment_method: Optional[Borgun3DFinalPaymentMethodInfo] = None three_d_secure: Optional[Borgun3DFinal3DSecureInfo] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class PaymentMethodCreditCardInfo: payment_type: Optional[str] = None token: Optional[str] = None pan: Optional[str] = None exp_year: Optional[str] = None exp_month: Optional[str] = None cvc: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class PaymentRequestCreditCard: payment_method: Optional[PaymentMethodCreditCardInfo] = None amount: Decimal = decimal.Decimal(0) currency: Optional[str] = None order_id: Optional[str] = None trans_action_date: datetime.datetime = datetime.datetime(1, 1, 1) save_card_to_token: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BorgunApplePayThreeDSecureInfo: data_type: Optional[str] = None security_level_ind: Optional[str] = None cavv: Optional[str] = None ucaf: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BorgunApplePayFinalInfo: order_id: Optional[str] = None three_d_secure: Optional[BorgunApplePayThreeDSecureInfo] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OwnerCards: id: int = 0 owner_id: int = 0 owner_card_type_id: Optional[int] = None phone_verification_id: Optional[int] = None initial_max_tickets: Optional[int] = None current_available_tickets: Optional[int] = None time_stamp_created_u_t_c: Optional[datetime.datetime] = None time_stamp_last_changed_u_t_c: Optional[datetime.datetime] = None time_stamp_bought_u_t_c: Optional[datetime.datetime] = None time_stamp_ordered_u_t_c: Optional[datetime.datetime] = None card_valid_from_u_t_c: Optional[datetime.datetime] = None card_valid_to_u_t_c: Optional[datetime.datetime] = None has_store_credit: bool = False card_price: Decimal = decimal.Decimal(0) price_paid: Decimal = decimal.Decimal(0) initial_store_credit: Optional[Decimal] = None current_store_credit: Optional[Decimal] = None phone_full_verification_number: Optional[str] = None holder_id: Optional[str] = None holder_name: Optional[str] = None holder_email: Optional[str] = None card_price_currency: Optional[str] = None price_paid_currency: Optional[str] = None device_id: Optional[str] = None payment_method_id: Optional[str] = None payment_reference: Optional[str] = None phone_verification_number: Optional[str] = None payment_phone_number: Optional[str] = None payment_id: Optional[str] = None payment_status: Optional[str] = None payment_token_id: Optional[str] = None max_tickets_per_event: Optional[int] = None multiple_payments_id: Optional[str] = None image_url: Optional[str] = None background_image_url: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GeneralOrderResponse: status_code: int = 0 message: Optional[str] = None success: bool = False payment_is_pending: bool = False order_token_id: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OwnerCardsOrderResult(GeneralOrderResponse): cards: Optional[List[OwnerCards]] = None # @Route("/OrderOwnerCards", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OwnerCardsOrderRequest(IReturn[OwnerCardsOrderResult]): owner_card_type_ids: Optional[List[int]] = None payment_method_id: Optional[str] = None card_info: Optional[PaymentRequestCreditCard] = None apple_pay_info: Optional[BorgunApplePayFinalInfo] = None borgun3_d_final_info: Optional[Borgun3DFinalRequest] = None payment_phone_number: Optional[str] = None app_meta_data: Optional[str] = None holder_id: Optional[str] = None holder_name: Optional[str] = None holder_email: Optional[str] = None return_cards: bool = False phone_verification_number: Optional[str] = None device_id: Optional[str] = None request_unix_u_t_c_time_stamp: int = 0 signature: Optional[RequestSignature] = None