use crate::types::wire::wire_enum;
wire_enum! {
pub enum AccountSubType {
Traditional => "traditional",
Roth => "roth",
}
}
wire_enum! {
pub enum AccountType {
Trading => "trading",
Custodial => "custodial",
DonorAdvised => "donor_advised",
Ira => "ira",
Hsa => "hsa",
}
}
wire_enum! {
pub enum TaxIdType {
UsaSsn => "USA_SSN",
UsaItin => "USA_ITIN",
ArgArCuit => "ARG_AR_CUIT",
AusTfn => "AUS_TFN",
AusAbn => "AUS_ABN",
BolNit => "BOL_NIT",
BraCpf => "BRA_CPF",
ChlRut => "CHL_RUT",
ColNit => "COL_NIT",
CriNite => "CRI_NITE",
DeuTaxId => "DEU_TAX_ID",
DomRnc => "DOM_RNC",
EcuRuc => "ECU_RUC",
FraSpi => "FRA_SPI",
GbrUtr => "GBR_UTR",
GbrNino => "GBR_NINO",
GtmNit => "GTM_NIT",
HndRtn => "HND_RTN",
HunTin => "HUN_TIN",
IdnKtp => "IDN_KTP",
IndPan => "IND_PAN",
IsrTaxId => "ISR_TAX_ID",
ItaTaxId => "ITA_TAX_ID",
JpnTaxId => "JPN_TAX_ID",
MexRfc => "MEX_RFC",
NicRuc => "NIC_RUC",
NldTin => "NLD_TIN",
PanRuc => "PAN_RUC",
PerRuc => "PER_RUC",
PryRuc => "PRY_RUC",
SgpNric => "SGP_NRIC",
SgpFin => "SGP_FIN",
SgpAsgd => "SGP_ASGD",
SgpItr => "SGP_ITR",
SlvNit => "SLV_NIT",
SweTaxId => "SWE_TAX_ID",
UryRut => "URY_RUT",
VenRif => "VEN_RIF",
NationalId => "NATIONAL_ID",
Passport => "PASSPORT",
PermanentResident => "PERMANENT_RESIDENT",
DriverLicense => "DRIVER_LICENSE",
OtherGovId => "OTHER_GOV_ID",
NotSpecified => "NOT_SPECIFIED",
}
}
wire_enum! {
pub enum VisaType {
B1 => "B1",
B2 => "B2",
Daca => "DACA",
E1 => "E1",
E2 => "E2",
E3 => "E3",
F1 => "F1",
G4 => "G4",
H1b => "H1B",
J1 => "J1",
L1 => "L1",
Other => "OTHER",
O1 => "O1",
Tn1 => "TN1",
}
}
wire_enum! {
pub enum FundingSource {
EmploymentIncome => "employment_income",
Investments => "investments",
Inheritance => "inheritance",
BusinessIncome => "business_income",
Savings => "savings",
Family => "family",
}
}
wire_enum! {
pub enum EmploymentStatus {
Unemployed => "UNEMPLOYED",
Employed => "EMPLOYED",
Student => "STUDENT",
Retired => "RETIRED",
}
}
wire_enum! {
pub enum AgreementType {
Margin => "margin_agreement",
Account => "account_agreement",
Customer => "customer_agreement",
Crypto => "crypto_agreement",
Options => "options_agreement",
CustodialCustomer => "custodial_customer_agreement",
}
}
wire_enum! {
pub enum DocumentType {
IdentityVerification => "identity_verification",
AddressVerification => "address_verification",
DateOfBirthVerification => "date_of_birth_verification",
TaxIdVerification => "tax_id_verification",
AccountApprovalLetter => "account_approval_letter",
LimitedTradingAuthorization => "limited_trading_authorization",
W8ben => "w8ben",
SocialSecurityNumberVerification => "social_security_number_verification",
Null => "",
CipResult => "cip_result",
Other => "other",
}
}
wire_enum! {
pub enum AccountEntities {
Contact => "contact",
Identity => "identity",
Disclosures => "disclosures",
Agreements => "agreements",
Documents => "documents",
TrustedContact => "trusted_contact",
UserConfigurations => "trading_configurations",
}
}
wire_enum! {
pub enum ClearingBroker {
Apex => "APEX",
Etc => "ETC",
Ic => "IC",
Velox => "VELOX",
Vision => "VISION",
SelfClearing => "SELF",
AlpacaApca => "ALPACA_APCA",
}
}
wire_enum! {
pub enum CIPProvider {
Alloy => "alloy",
Trulioo => "trulioo",
Onfido => "onfido",
Veriff => "veriff",
Jumio => "jumio",
Getmati => "getmati",
}
}
wire_enum! {
pub enum CIPStatus {
Complete => "complete",
Withdrawn => "withdrawn",
}
}
wire_enum! {
pub enum CIPResult {
Clear => "clear",
Consider => "consider",
}
}
wire_enum! {
pub enum CIPApprovalStatus {
Approved => "approved",
Rejected => "rejected",
}
}
wire_enum! {
pub enum TradeDocumentType {
AccountStatement => "account_statement",
TradeConfirmation => "trade_confirmation",
TradeConfirmationJson => "trade_confirmation_json",
TaxStatement => "tax_statement",
AccountApplication => "account_application",
Tax1099BDetails => "tax_1099_b_details",
Tax1099BForm => "tax_1099_b_form",
Tax1099DivDetails => "tax_1099_div_details",
Tax1099DivForm => "tax_1099_div_form",
Tax1099IntDetails => "tax_1099_int_details",
Tax1099IntForm => "tax_1099_int_form",
TaxW8 => "tax_w8",
}
}
wire_enum! {
pub enum TradeDocumentSubType {
Type1099Comp => "1099-Comp",
Type1042S => "1042-S",
Type4806 => "480.6",
CourtesyStatement => "courtesy_statement",
}
}
wire_enum! {
pub enum UploadDocumentSubType {
AccountApplication => "Account Application",
FormW8Ben => "Form W-8BEN",
Passport => "passport",
}
}
wire_enum! {
pub enum UploadDocumentMimeType {
Pdf => "application/pdf",
Png => "image/png",
Jpeg => "image/jpeg",
Json => "application/json",
}
}
wire_enum! {
pub enum ACHRelationshipStatus {
Queued => "QUEUED",
Approved => "APPROVED",
Pending => "PENDING",
}
}
wire_enum! {
pub enum BankAccountType {
Checking => "CHECKING",
Savings => "SAVINGS",
None => "",
}
}
wire_enum! {
pub enum IdentifierType {
Aba => "ABA",
Bic => "BIC",
}
}
wire_enum! {
pub enum BankStatus {
Queued => "QUEUED",
SentToClearing => "SENT_TO_CLEARING",
Approved => "APPROVED",
Canceled => "CANCELED",
}
}
wire_enum! {
pub enum TransferType {
Ach => "ach",
Wire => "wire",
}
}
wire_enum! {
pub enum TransferStatus {
Queued => "QUEUED",
ApprovalPending => "APPROVAL_PENDING",
Pending => "PENDING",
SentToClearing => "SENT_TO_CLEARING",
Rejected => "REJECTED",
Canceled => "CANCELED",
Approved => "APPROVED",
Settled => "SETTLED",
Complete => "COMPLETE",
Returned => "RETURNED",
}
}
wire_enum! {
pub enum TransferDirection {
Incoming => "INCOMING",
Outgoing => "OUTGOING",
}
}
wire_enum! {
pub enum TransferTiming {
Immediate => "immediate",
}
}
wire_enum! {
pub enum FeePaymentMethod {
User => "user",
Invoice => "invoice",
}
}
wire_enum! {
pub enum JournalEntryType {
Cash => "JNLC",
Security => "JNLS",
}
}
wire_enum! {
pub enum JournalStatus {
Queued => "queued",
SentToClearing => "sent_to_clearing",
Pending => "pending",
Executed => "executed",
ActivityCreated => "activity_created",
Rejected => "rejected",
Canceled => "canceled",
Refused => "refused",
Correct => "correct",
Deleted => "deleted",
}
}
wire_enum! {
pub enum PortfolioStatus {
Active => "active",
Inactive => "inactive",
NeedsAdjustment => "needs_adjustment",
}
}
wire_enum! {
pub enum WeightType {
Cash => "cash",
Asset => "asset",
}
}
wire_enum! {
pub enum RebalancingConditionsType {
DriftBand => "drift_band",
Calendar => "calendar",
}
}
wire_enum! {
pub enum DriftBandSubType {
Absolute => "absolute",
Relative => "relative",
}
}
wire_enum! {
pub enum CalendarSubType {
Weekly => "weekly",
Monthly => "monthly",
Quarterly => "quarterly",
Annually => "annually",
}
}
wire_enum! {
pub enum RunType {
FullRebalance => "full_rebalance",
InvestCash => "invest_cash",
}
}
wire_enum! {
pub enum RunInitiatedFrom {
System => "system",
Api => "api",
}
}
wire_enum! {
pub enum RunStatus {
Queued => "QUEUED",
InProgress => "IN_PROGRESS",
Canceled => "CANCELED",
CanceledMidRun => "CANCELED_MID_RUN",
Error => "ERROR",
Timeout => "TIMEOUT",
CompletedSuccess => "COMPLETED_SUCCESS",
CompletedAdjusted => "COMPLETED_ADJUSTED",
}
}