mirror of
https://github.com/google/nomulus.git
synced 2025-07-22 10:46:10 +02:00
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:
parent
7023b818b7
commit
32b3563126
67 changed files with 28 additions and 3352 deletions
|
@ -32,14 +32,11 @@ import java.lang.annotation.Documented;
|
|||
import java.lang.annotation.Retention;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.inject.Named;
|
||||
import javax.inject.Qualifier;
|
||||
import javax.inject.Singleton;
|
||||
import org.joda.money.CurrencyUnit;
|
||||
import org.joda.time.DateTimeConstants;
|
||||
import org.joda.time.Duration;
|
||||
|
||||
|
@ -887,51 +884,6 @@ public final class RegistryConfig {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Braintree Merchant Account IDs for each supported currency.
|
||||
*
|
||||
* @see google.registry.ui.server.registrar.RegistrarPaymentAction
|
||||
* @see google.registry.ui.server.registrar.RegistrarPaymentSetupAction
|
||||
*/
|
||||
@Provides
|
||||
@Config("braintreeMerchantAccountIds")
|
||||
public static ImmutableMap<CurrencyUnit, String> provideBraintreeMerchantAccountId(
|
||||
RegistryConfigSettings config) {
|
||||
Map<String, String> merchantAccountIds = config.braintree.merchantAccountIdsMap;
|
||||
ImmutableMap.Builder<CurrencyUnit, String> builder = new ImmutableMap.Builder<>();
|
||||
for (Entry<String, String> entry : merchantAccountIds.entrySet()) {
|
||||
builder.put(CurrencyUnit.of(entry.getKey()), entry.getValue());
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Braintree Merchant ID of Registry, used for accessing Braintree API.
|
||||
*
|
||||
* <p>This is a base32 value copied from the Braintree website.
|
||||
*
|
||||
* @see google.registry.braintree.BraintreeModule
|
||||
*/
|
||||
@Provides
|
||||
@Config("braintreeMerchantId")
|
||||
public static String provideBraintreeMerchantId(RegistryConfigSettings config) {
|
||||
return config.braintree.merchantId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Braintree Public Key of Registry, used for accessing Braintree API.
|
||||
*
|
||||
* <p>This is a base32 value copied from the Braintree website.
|
||||
*
|
||||
* @see google.registry.braintree.BraintreeModule
|
||||
* @see google.registry.keyring.api.Keyring#getBraintreePrivateKey()
|
||||
*/
|
||||
@Provides
|
||||
@Config("braintreePublicKey")
|
||||
public static String provideBraintreePublicKey(RegistryConfigSettings config) {
|
||||
return config.braintree.publicKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disclaimer displayed at the end of WHOIS query results.
|
||||
*
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.config;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/** The POJO that YAML config files are deserialized into. */
|
||||
public class RegistryConfigSettings {
|
||||
|
@ -33,7 +32,6 @@ public class RegistryConfigSettings {
|
|||
public RegistrarConsole registrarConsole;
|
||||
public Monitoring monitoring;
|
||||
public Misc misc;
|
||||
public Braintree braintree;
|
||||
public Kms kms;
|
||||
public RegistryTool registryTool;
|
||||
|
||||
|
@ -158,13 +156,6 @@ public class RegistryConfigSettings {
|
|||
public int asyncDeleteDelaySeconds;
|
||||
}
|
||||
|
||||
/** Configuration for Braintree credit card payment processing. */
|
||||
public static class Braintree {
|
||||
public String merchantId;
|
||||
public String publicKey;
|
||||
public Map<String, String> merchantAccountIdsMap;
|
||||
}
|
||||
|
||||
/** Configuration options for the registry tool. */
|
||||
public static class RegistryTool {
|
||||
public String clientSecretFilename;
|
||||
|
|
|
@ -246,21 +246,6 @@ misc:
|
|||
# hosts from being used on domains.
|
||||
asyncDeleteDelaySeconds: 90
|
||||
|
||||
# Braintree is a credit card payment processor that is used on the registrar
|
||||
# console to allow registrars to pay their invoices.
|
||||
braintree:
|
||||
# Merchant ID of the Braintree account.
|
||||
merchantId: example
|
||||
|
||||
# Public key used for accessing Braintree API (this is found on their site).
|
||||
publicKey: example
|
||||
|
||||
# A map of JODA Money CurrencyUnits, specified in three letter ISO-4217
|
||||
# format, to Braintree account IDs (each account is limited to a single
|
||||
# currency). For example, one entry might be:
|
||||
# USD: accountIdUsingUSD
|
||||
merchantAccountIdsMap: {}
|
||||
|
||||
kms:
|
||||
# GCP project containing the KMS keyring. Should only be used for KMS in
|
||||
# order to keep a simple locked down IAM configuration.
|
||||
|
|
|
@ -57,15 +57,5 @@ registrarConsole:
|
|||
misc:
|
||||
sheetExportId: placeholder
|
||||
|
||||
# You only need to specify this section if using Braintree.
|
||||
braintree:
|
||||
merchantId: placeholder
|
||||
publicKey: placeholder
|
||||
# Only include currencies that you use.
|
||||
merchantAccountIdsMap:
|
||||
EUR: placeholder
|
||||
JPY: placeholder
|
||||
USD: placeholder
|
||||
|
||||
kms:
|
||||
projectId: placeholder
|
||||
|
|
|
@ -19,8 +19,3 @@ caching:
|
|||
staticPremiumListMaxCachedEntries: 50
|
||||
eppResourceCachingEnabled: true
|
||||
eppResourceCachingSeconds: 0
|
||||
|
||||
braintree:
|
||||
merchantAccountIdsMap:
|
||||
USD: accountIdUsd
|
||||
JPY: accountIdJpy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue