use crate::xml::AnetEnum;
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum AuthIndicator {
#[anet(value = "pre")]
Pre,
#[anet(value = "final")]
Final,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum BankAccountType {
#[anet(value = "checking")]
Checking,
#[anet(value = "savings")]
Savings,
#[anet(value = "businessChecking")]
BusinessChecking,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum EcheckType {
#[anet(value = "PPD")]
Ppd,
#[anet(value = "WEB")]
Web,
#[anet(value = "CCD")]
Ccd,
#[anet(value = "TEL")]
Tel,
#[anet(value = "ARC")]
Arc,
#[anet(value = "BOC")]
Boc,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum PaymentMethod {
#[anet(value = "creditCard")]
CreditCard,
#[anet(value = "eCheck")]
ECheck,
#[anet(value = "payPal")]
PayPal,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum CardType {
#[anet(value = "Visa")]
Visa,
#[anet(value = "MasterCard")]
MasterCard,
#[anet(value = "AmericanExpress")]
AmericanExpress,
#[anet(value = "Discover")]
Discover,
#[anet(value = "JCB")]
Jcb,
#[anet(value = "DinersClub")]
DinersClub,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum AccountType {
#[anet(value = "Visa")]
Visa,
#[anet(value = "MasterCard")]
MasterCard,
#[anet(value = "AmericanExpress")]
AmericanExpress,
#[anet(value = "Discover")]
Discover,
#[anet(value = "JCB")]
Jcb,
#[anet(value = "DinersClub")]
DinersClub,
#[anet(value = "eCheck")]
ECheck,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum CustomerType {
#[anet(value = "individual")]
Individual,
#[anet(value = "business")]
Business,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum ArbSubscriptionUnit {
#[anet(value = "days")]
Days,
#[anet(value = "months")]
Months,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum ValidationMode {
#[anet(value = "none")]
None,
#[anet(value = "testMode")]
TestMode,
#[anet(value = "liveMode")]
LiveMode,
#[anet(value = "oldLiveMode")]
OldLiveMode,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum SplitTenderStatus {
#[anet(value = "completed")]
Completed,
#[anet(value = "held")]
Held,
#[anet(value = "voided")]
Voided,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum ArbSubscriptionStatus {
#[anet(value = "active")]
Active,
#[anet(value = "expired")]
Expired,
#[anet(value = "suspended")]
Suspended,
#[anet(value = "canceled")]
Canceled,
#[anet(value = "terminated")]
Terminated,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum TransactionType {
#[anet(value = "authOnlyTransaction")]
AuthOnlyTransaction,
#[anet(value = "authCaptureTransaction")]
AuthCaptureTransaction,
#[anet(value = "captureOnlyTransaction")]
CaptureOnlyTransaction,
#[anet(value = "refundTransaction")]
RefundTransaction,
#[anet(value = "priorAuthCaptureTransaction")]
PriorAuthCaptureTransaction,
#[anet(value = "voidTransaction")]
VoidTransaction,
#[anet(value = "getDetailsTransaction")]
GetDetailsTransaction,
#[anet(value = "authOnlyContinueTransaction")]
AuthOnlyContinueTransaction,
#[anet(value = "authCaptureContinueTransaction")]
AuthCaptureContinueTransaction,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum TransactionStatus {
#[anet(value = "authorizedPendingCapture")]
AuthorizedPendingCapture,
#[anet(value = "capturedPendingSettlement")]
CapturedPendingSettlement,
#[anet(value = "communicationError")]
CommunicationError,
#[anet(value = "refundSettledSuccessfully")]
RefundSettledSuccessfully,
#[anet(value = "refundPendingSettlement")]
RefundPendingSettlement,
#[anet(value = "approvedReview")]
ApprovedReview,
#[anet(value = "declined")]
Declined,
#[anet(value = "couldNotVoid")]
CouldNotVoid,
#[anet(value = "expired")]
Expired,
#[anet(value = "generalError")]
GeneralError,
#[anet(value = "pendingFinalSettlement")]
PendingFinalSettlement,
#[anet(value = "pendingSettlement")]
PendingSettlement,
#[anet(value = "failedReview")]
FailedReview,
#[anet(value = "settledSuccessfully")]
SettledSuccessfully,
#[anet(value = "settlementError")]
SettlementError,
#[anet(value = "underReview")]
UnderReview,
#[anet(value = "updatingSettlement")]
UpdatingSettlement,
#[anet(value = "voided")]
Voided,
#[anet(value = "FDSPendingReview")]
FdsPendingReview,
#[anet(value = "FDSAuthorizedPendingReview")]
FdsAuthorizedPendingReview,
#[anet(value = "returnedItem")]
ReturnedItem,
#[anet(value = "chargeback")]
Chargeback,
#[anet(value = "chargebackReversal")]
ChargebackReversal,
#[anet(value = "authorizedPendingRelease")]
AuthorizedPendingRelease,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum SettlementState {
#[anet(value = "settledSuccessfully")]
SettledSuccessfully,
#[anet(value = "settlementError")]
SettlementError,
#[anet(value = "pendingSettlement")]
PendingSettlement,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum FdsFilterAction {
#[anet(value = "reject")]
Reject,
#[anet(value = "decline")]
Decline,
#[anet(value = "hold")]
Hold,
#[anet(value = "authAndHold")]
AuthAndHold,
#[anet(value = "report")]
Report,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum Permissions {
#[anet(value = "API_Merchant_BasicReporting")]
ApiMerchantBasicReporting,
#[anet(value = "Submit_Charge")]
SubmitCharge,
#[anet(value = "Submit_Refund")]
SubmitRefund,
#[anet(value = "Submit_Update")]
SubmitUpdate,
#[anet(value = "Mobile_Admin")]
MobileAdmin,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum DeviceActivation {
#[anet(value = "Activate")]
Activate,
#[anet(value = "Disable")]
Disable,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum TransactionGroupStatus {
#[anet(value = "any")]
Any,
#[anet(value = "pendingApproval")]
PendingApproval,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum AfdsTransaction {
#[anet(value = "approve")]
Approve,
#[anet(value = "decline")]
Decline,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum CustomerProfileType {
#[anet(value = "regular")]
Regular,
#[anet(value = "guest")]
Guest,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum WebCheckOutType {
#[anet(value = "PAN")]
Pan,
#[anet(value = "TOKEN")]
Token,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum Operation {
#[anet(value = "DECRYPT")]
Decrypt,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum EncryptionAlgorithm {
#[anet(value = "TDES")]
Tdes,
#[anet(value = "AES")]
Aes,
#[anet(value = "RSA")]
Rsa,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum Encoding {
#[anet(value = "Base64")]
Base64,
#[anet(value = "Hex")]
Hex,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum SettingName {
#[anet(value = "emailCustomer")]
EmailCustomer,
#[anet(value = "merchantEmail")]
MerchantEmail,
#[anet(value = "allowPartialAuth")]
AllowPartialAuth,
#[anet(value = "headerEmailReceipt")]
HeaderEmailReceipt,
#[anet(value = "footerEmailReceipt")]
FooterEmailReceipt,
#[anet(value = "recurringBilling")]
RecurringBilling,
#[anet(value = "duplicateWindow")]
DuplicateWindow,
#[anet(value = "testRequest")]
TestRequest,
#[anet(value = "hostedProfileReturnUrl")]
HostedProfileReturnUrl,
#[anet(value = "hostedProfileReturnUrlText")]
HostedProfileReturnUrlText,
#[anet(value = "hostedProfilePageBorderVisible")]
HostedProfilePageBorderVisible,
#[anet(value = "hostedProfileIFrameCommunicatorUrl")]
HostedProfileIFrameCommunicatorUrl,
#[anet(value = "hostedProfileHeadingBgColor")]
HostedProfileHeadingBgColor,
#[anet(value = "hostedProfileValidationMode")]
HostedProfileValidationMode,
#[anet(value = "hostedProfileBillingAddressRequired")]
HostedProfileBillingAddressRequired,
#[anet(value = "hostedProfileCardCodeRequired")]
HostedProfileCardCodeRequired,
#[anet(value = "hostedProfileBillingAddressOptions")]
HostedProfileBillingAddressOptions,
#[anet(value = "hostedProfileManageOptions")]
HostedProfileManageOptions,
#[anet(value = "hostedPaymentIFrameCommunicatorUrl")]
HostedPaymentIFrameCommunicatorUrl,
#[anet(value = "hostedPaymentButtonOptions")]
HostedPaymentButtonOptions,
#[anet(value = "hostedPaymentReturnOptions")]
HostedPaymentReturnOptions,
#[anet(value = "hostedPaymentOrderOptions")]
HostedPaymentOrderOptions,
#[anet(value = "hostedPaymentPaymentOptions")]
HostedPaymentPaymentOptions,
#[anet(value = "hostedPaymentBillingAddressOptions")]
HostedPaymentBillingAddressOptions,
#[anet(value = "hostedPaymentShippingAddressOptions")]
HostedPaymentShippingAddressOptions,
#[anet(value = "hostedPaymentSecurityOptions")]
HostedPaymentSecurityOptions,
#[anet(value = "hostedPaymentCustomerOptions")]
HostedPaymentCustomerOptions,
#[anet(value = "hostedPaymentStyleOptions")]
HostedPaymentStyleOptions,
#[anet(value = "typeEmailReceipt")]
TypeEmailReceipt,
#[anet(value = "hostedProfilePaymentOptions")]
HostedProfilePaymentOptions,
#[anet(value = "hostedProfileSaveButtonText")]
HostedProfileSaveButtonText,
#[anet(value = "hostedPaymentVisaCheckoutOptions")]
HostedPaymentVisaCheckoutOptions,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum DeliveryMethod {
#[anet(value = "EMAIL")]
Email,
#[anet(value = "SMS")]
Sms,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum MessageType {
#[anet(value = "Ok")]
Ok,
#[anet(value = "Error")]
Error,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum TransactionListOrderField {
#[anet(value = "id")]
Id,
#[anet(value = "submitTimeUTC")]
SubmitTimeUtc,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum ArbGetSubscriptionListSearchType {
#[anet(value = "cardExpiringThisMonth")]
CardExpiringThisMonth,
#[anet(value = "subscriptionActive")]
SubscriptionActive,
#[anet(value = "subscriptionExpiringThisMonth")]
SubscriptionExpiringThisMonth,
#[anet(value = "subscriptionInactive")]
SubscriptionInactive,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum ArbGetSubscriptionListOrderField {
#[anet(value = "id")]
Id,
#[anet(value = "name")]
Name,
#[anet(value = "status")]
Status,
#[anet(value = "createTimeStampUTC")]
CreateTimeStampUtc,
#[anet(value = "lastName")]
LastName,
#[anet(value = "firstName")]
FirstName,
#[anet(value = "accountNumber")]
AccountNumber,
#[anet(value = "amount")]
Amount,
#[anet(value = "pastOccurrences")]
PastOccurrences,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum CustomerPaymentProfileOrderField {
#[anet(value = "id")]
Id,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum CustomerPaymentProfileSearchType {
#[anet(value = "cardsExpiringInMonth")]
CardsExpiringInMonth,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum AuJobType {
#[anet(value = "all")]
All,
#[anet(value = "updates")]
Updates,
#[anet(value = "deletes")]
Deletes,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum MerchantInitTransReason {
#[anet(value = "resubmission")]
Resubmission,
#[anet(value = "delayedCharge")]
DelayedCharge,
#[anet(value = "reauthorization")]
Reauthorization,
#[anet(value = "noShow")]
NoShow,
#[anet(other)]
Other(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, AnetEnum)]
#[non_exhaustive]
pub enum PaymentMethodsType {
#[anet(value = "Visa")]
Visa,
#[anet(value = "MasterCard")]
MasterCard,
#[anet(value = "Discover")]
Discover,
#[anet(value = "AmericanExpress")]
AmericanExpress,
#[anet(value = "DinersClub")]
DinersClub,
#[anet(value = "JCB")]
Jcb,
#[anet(value = "EnRoute")]
EnRoute,
#[anet(value = "Echeck")]
Echeck,
#[anet(value = "Paypal")]
Paypal,
#[anet(value = "VisaCheckout")]
VisaCheckout,
#[anet(value = "ApplePay")]
ApplePay,
#[anet(value = "AndroidPay")]
AndroidPay,
#[anet(value = "GooglePay")]
GooglePay,
#[anet(other)]
Other(String),
}