billing_setup_error.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.ads.googleads.v12.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V12.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "BillingSetupErrorProto";
  20. option java_package = "com.google.ads.googleads.v12.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V12::Errors";
  24. // Proto file describing billing setup errors.
  25. // Container for enum describing possible billing setup errors.
  26. message BillingSetupErrorEnum {
  27. // Enum describing possible billing setup errors.
  28. enum BillingSetupError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // Cannot specify both an existing payments account and a new payments
  34. // account when setting up billing.
  35. CANNOT_USE_EXISTING_AND_NEW_ACCOUNT = 2;
  36. // Cannot cancel an approved billing setup whose start time has passed.
  37. CANNOT_REMOVE_STARTED_BILLING_SETUP = 3;
  38. // Cannot perform a Change of Bill-To (CBT) to the same payments account.
  39. CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT = 4;
  40. // Billing setups can only be used by customers with ENABLED or DRAFT
  41. // status.
  42. BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS = 5;
  43. // Billing setups must either include a correctly formatted existing
  44. // payments account id, or a non-empty new payments account name.
  45. INVALID_PAYMENTS_ACCOUNT = 6;
  46. // Only billable and third-party customers can create billing setups.
  47. BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY = 7;
  48. // Billing setup creations can only use NOW for start time type.
  49. INVALID_START_TIME_TYPE = 8;
  50. // Billing setups can only be created for a third-party customer if they do
  51. // not already have a setup.
  52. THIRD_PARTY_ALREADY_HAS_BILLING = 9;
  53. // Billing setups cannot be created if there is already a pending billing in
  54. // progress.
  55. BILLING_SETUP_IN_PROGRESS = 10;
  56. // Billing setups can only be created by customers who have permission to
  57. // setup billings. Users can contact a representative for help setting up
  58. // permissions.
  59. NO_SIGNUP_PERMISSION = 11;
  60. // Billing setups cannot be created if there is already a future-approved
  61. // billing.
  62. CHANGE_OF_BILL_TO_IN_PROGRESS = 12;
  63. // Requested payments profile not found.
  64. PAYMENTS_PROFILE_NOT_FOUND = 13;
  65. // Requested payments account not found.
  66. PAYMENTS_ACCOUNT_NOT_FOUND = 14;
  67. // Billing setup creation failed because the payments profile is ineligible.
  68. PAYMENTS_PROFILE_INELIGIBLE = 15;
  69. // Billing setup creation failed because the payments account is ineligible.
  70. PAYMENTS_ACCOUNT_INELIGIBLE = 16;
  71. // Billing setup creation failed because the payments profile needs internal
  72. // approval.
  73. CUSTOMER_NEEDS_INTERNAL_APPROVAL = 17;
  74. // Payments account has different currency code than the current customer
  75. // and hence cannot be used to setup billing.
  76. PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH = 19;
  77. // A start time in the future cannot be used because there is currently no
  78. // active billing setup for this customer.
  79. FUTURE_START_TIME_PROHIBITED = 20;
  80. // The payments account has maximum number of billing setups.
  81. TOO_MANY_BILLING_SETUPS_FOR_PAYMENTS_ACCOUNT = 21;
  82. }
  83. }