Enum google_api_proto::google::ads::googleads::v14::errors::billing_setup_error_enum::BillingSetupError
source · #[repr(i32)]pub enum BillingSetupError {
Show 22 variants
Unspecified = 0,
Unknown = 1,
CannotUseExistingAndNewAccount = 2,
CannotRemoveStartedBillingSetup = 3,
CannotChangeBillingToSamePaymentsAccount = 4,
BillingSetupNotPermittedForCustomerStatus = 5,
InvalidPaymentsAccount = 6,
BillingSetupNotPermittedForCustomerCategory = 7,
InvalidStartTimeType = 8,
ThirdPartyAlreadyHasBilling = 9,
BillingSetupInProgress = 10,
NoSignupPermission = 11,
ChangeOfBillToInProgress = 12,
PaymentsProfileNotFound = 13,
PaymentsAccountNotFound = 14,
PaymentsProfileIneligible = 15,
PaymentsAccountIneligible = 16,
CustomerNeedsInternalApproval = 17,
PaymentsProfileNeedsServiceAgreementAcceptance = 18,
PaymentsAccountIneligibleCurrencyCodeMismatch = 19,
FutureStartTimeProhibited = 20,
TooManyBillingSetupsForPaymentsAccount = 21,
}
Expand description
Enum describing possible billing setup errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
CannotUseExistingAndNewAccount = 2
Cannot specify both an existing payments account and a new payments account when setting up billing.
CannotRemoveStartedBillingSetup = 3
Cannot cancel an approved billing setup whose start time has passed.
CannotChangeBillingToSamePaymentsAccount = 4
Cannot perform a Change of Bill-To (CBT) to the same payments account.
BillingSetupNotPermittedForCustomerStatus = 5
Billing setups can only be used by customers with ENABLED or DRAFT status.
InvalidPaymentsAccount = 6
Billing setups must either include a correctly formatted existing payments account id, or a non-empty new payments account name.
BillingSetupNotPermittedForCustomerCategory = 7
Only billable and third-party customers can create billing setups.
InvalidStartTimeType = 8
Billing setup creations can only use NOW for start time type.
ThirdPartyAlreadyHasBilling = 9
Billing setups can only be created for a third-party customer if they do not already have a setup.
BillingSetupInProgress = 10
Billing setups cannot be created if there is already a pending billing in progress.
NoSignupPermission = 11
Billing setups can only be created by customers who have permission to setup billings. Users can contact a representative for help setting up permissions.
ChangeOfBillToInProgress = 12
Billing setups cannot be created if there is already a future-approved billing.
PaymentsProfileNotFound = 13
Requested payments profile not found.
PaymentsAccountNotFound = 14
Requested payments account not found.
PaymentsProfileIneligible = 15
Billing setup creation failed because the payments profile is ineligible.
PaymentsAccountIneligible = 16
Billing setup creation failed because the payments account is ineligible.
CustomerNeedsInternalApproval = 17
Billing setup creation failed because the payments profile needs internal approval.
PaymentsProfileNeedsServiceAgreementAcceptance = 18
Billing setup creation failed because the user needs to accept master service agreement on the payments profile.
PaymentsAccountIneligibleCurrencyCodeMismatch = 19
Payments account has different currency code than the current customer and hence cannot be used to setup billing.
FutureStartTimeProhibited = 20
A start time in the future cannot be used because there is currently no active billing setup for this customer.
TooManyBillingSetupsForPaymentsAccount = 21
The payments account has maximum number of billing setups.
Implementations§
source§impl BillingSetupError
impl BillingSetupError
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for BillingSetupError
impl Clone for BillingSetupError
source§fn clone(&self) -> BillingSetupError
fn clone(&self) -> BillingSetupError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BillingSetupError
impl Debug for BillingSetupError
source§impl Default for BillingSetupError
impl Default for BillingSetupError
source§fn default() -> BillingSetupError
fn default() -> BillingSetupError
source§impl From<BillingSetupError> for i32
impl From<BillingSetupError> for i32
source§fn from(value: BillingSetupError) -> i32
fn from(value: BillingSetupError) -> i32
source§impl Hash for BillingSetupError
impl Hash for BillingSetupError
source§impl Ord for BillingSetupError
impl Ord for BillingSetupError
source§fn cmp(&self, other: &BillingSetupError) -> Ordering
fn cmp(&self, other: &BillingSetupError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BillingSetupError
impl PartialEq for BillingSetupError
source§fn eq(&self, other: &BillingSetupError) -> bool
fn eq(&self, other: &BillingSetupError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BillingSetupError
impl PartialOrd for BillingSetupError
source§fn partial_cmp(&self, other: &BillingSetupError) -> Option<Ordering>
fn partial_cmp(&self, other: &BillingSetupError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for BillingSetupError
impl TryFrom<i32> for BillingSetupError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<BillingSetupError, DecodeError>
fn try_from(value: i32) -> Result<BillingSetupError, DecodeError>
impl Copy for BillingSetupError
impl Eq for BillingSetupError
impl StructuralPartialEq for BillingSetupError
Auto Trait Implementations§
impl Freeze for BillingSetupError
impl RefUnwindSafe for BillingSetupError
impl Send for BillingSetupError
impl Sync for BillingSetupError
impl Unpin for BillingSetupError
impl UnwindSafe for BillingSetupError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request