Delete all Braintree code

We never launched this, don't planning on launching it now anyway, and it's rotted over the past two years anyway.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=202993577
This commit is contained in:
mcilwain 2018-07-02 12:24:54 -07:00 committed by jianglai
parent 7023b818b7
commit 32b3563126
67 changed files with 28 additions and 3352 deletions

View file

@ -158,16 +158,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
SUSPENDED;
}
/** Method for acquiring money from a registrar customer. */
public enum BillingMethod {
/** Billing method where billing invoice data is exported to an external accounting system. */
EXTERNAL,
/** Billing method where we accept Braintree credit card payments in the Registrar Console. */
BRAINTREE;
}
/** Regex for E.164 phone number format specified by {@code contact.xsd}. */
private static final Pattern E164_PATTERN = Pattern.compile("\\+[0-9]{1,3}\\.[0-9]{1,14}");
@ -398,16 +388,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
*/
boolean contactsRequireSyncing = true;
/**
* Method for receiving money from a registrar customer.
*
* <p>Each registrar may opt-in to their preferred billing method. This value can be changed at
* any time using the {@code update_registrar} command.
*
* <p><b>Note:</b> This value should not be changed if the balance is non-zero.
*/
BillingMethod billingMethod;
/** Whether the registrar must acknowledge the price to register non-standard-priced domains. */
boolean premiumPriceAckRequired;
@ -555,10 +535,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
return driveFolderId;
}
public BillingMethod getBillingMethod() {
return firstNonNull(billingMethod, BillingMethod.EXTERNAL);
}
/**
* Returns a list of all {@link RegistrarContact} objects for this registrar sorted by their email
* address.
@ -834,11 +810,6 @@ public class Registrar extends ImmutableObject implements Buildable, Jsonifiable
return this;
}
public Builder setBillingMethod(BillingMethod billingMethod) {
getInstance().billingMethod = billingMethod;
return this;
}
public Builder setPassword(String password) {
// Passwords must be [6,16] chars long. See "pwType" in the base EPP schema of RFC 5730.
checkArgument(