diff --git a/.travis.yml b/.travis.yml index 07308696..399f66f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: go -go_import_path: github.com/braintree-go/braintree-go +go_import_path: github.com/dietdoctor/braintree-go install: - source .default.env diff --git a/README.md b/README.md index 173efad3..b88bf05a 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ import ( "testing" "net/http/httptest" - "github.com/braintree-go/braintree-go" + "github.com/dietdoctor/braintree-go" ) func TestMyWebhook(t *testing.T) { diff --git a/client_token_integration_test.go b/client_token_integration_test.go index 8c90df03..d135127e 100644 --- a/client_token_integration_test.go +++ b/client_token_integration_test.go @@ -6,7 +6,7 @@ import ( "context" "testing" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) // This test will fail unless you set up your Braintree sandbox account correctly. See TESTING.md for details. diff --git a/client_token_test.go b/client_token_test.go index ea716402..a14d74e4 100644 --- a/client_token_test.go +++ b/client_token_test.go @@ -6,7 +6,7 @@ import ( "encoding/xml" "testing" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) func TestClientToken_MarshalXML(t *testing.T) { diff --git a/credit_card_integration_test.go b/credit_card_integration_test.go index 860ba56f..53c21f56 100644 --- a/credit_card_integration_test.go +++ b/credit_card_integration_test.go @@ -10,7 +10,7 @@ import ( "time" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) func TestCreditCard(t *testing.T) { diff --git a/customer.go b/customer.go index 5943af36..38b10ae4 100644 --- a/customer.go +++ b/customer.go @@ -1,31 +1,31 @@ package braintree import ( - "github.com/braintree-go/braintree-go/customfields" + "github.com/dietdoctor/braintree-go/customfields" "time" ) type Customer struct { - XMLName string `xml:"customer"` - Id string `xml:"id"` - FirstName string `xml:"first-name"` - LastName string `xml:"last-name"` - Company string `xml:"company"` - Email string `xml:"email"` - Phone string `xml:"phone"` - Fax string `xml:"fax"` - Website string `xml:"website"` - CustomFields customfields.CustomFields `xml:"custom-fields"` - CreditCard *CreditCard `xml:"credit-card"` - CreditCards *CreditCards `xml:"credit-cards"` - PayPalAccounts *PayPalAccounts `xml:"paypal-accounts"` - VenmoAccounts *VenmoAccounts `xml:"venmo-accounts"` - AndroidPayCards *AndroidPayCards `xml:"android-pay-cards"` - ApplePayCards *ApplePayCards `xml:"apple-pay-cards"` - PaymentMethodNonce string `xml:"payment-method-nonce"` - Addresses *Addresses `xml:"addresses"` - CreatedAt *time.Time `xml:"created-at"` - UpdatedAt *time.Time `xml:"updated-at"` + XMLName string `xml:"customer"` + Id string `xml:"id"` + FirstName string `xml:"first-name"` + LastName string `xml:"last-name"` + Company string `xml:"company"` + Email string `xml:"email"` + Phone string `xml:"phone"` + Fax string `xml:"fax"` + Website string `xml:"website"` + CustomFields customfields.CustomFields `xml:"custom-fields"` + CreditCard *CreditCard `xml:"credit-card"` + CreditCards *CreditCards `xml:"credit-cards"` + PayPalAccounts *PayPalAccounts `xml:"paypal-accounts"` + VenmoAccounts *VenmoAccounts `xml:"venmo-accounts"` + AndroidPayCards *AndroidPayCards `xml:"android-pay-cards"` + ApplePayCards *ApplePayCards `xml:"apple-pay-cards"` + PaymentMethodNonce string `xml:"payment-method-nonce"` + Addresses *Addresses `xml:"addresses"` + CreatedAt *time.Time `xml:"created-at"` + UpdatedAt *time.Time `xml:"updated-at"` } // PaymentMethods returns a slice of all PaymentMethods this customer has @@ -60,19 +60,19 @@ func (c *Customer) DefaultPaymentMethod() PaymentMethod { } type CustomerRequest struct { - XMLName string `xml:"customer"` - ID string `xml:"id,omitempty"` - FirstName string `xml:"first-name,omitempty"` - LastName string `xml:"last-name,omitempty"` - Company string `xml:"company,omitempty"` - Email string `xml:"email,omitempty"` - Phone string `xml:"phone,omitempty"` - Fax string `xml:"fax,omitempty"` - Website string `xml:"website,omitempty"` - CustomFields customfields.CustomFields `xml:"custom-fields,omitempty"` - CreditCard *CreditCard `xml:"credit-card,omitempty"` - PaymentMethodNonce string `xml:"payment-method-nonce,omitempty"` - DefaultPaymentMethodToken string `xml:"default_payment_method_token"` + XMLName string `xml:"customer"` + ID string `xml:"id,omitempty"` + FirstName string `xml:"first-name,omitempty"` + LastName string `xml:"last-name,omitempty"` + Company string `xml:"company,omitempty"` + Email string `xml:"email,omitempty"` + Phone string `xml:"phone,omitempty"` + Fax string `xml:"fax,omitempty"` + Website string `xml:"website,omitempty"` + CustomFields customfields.CustomFields `xml:"custom-fields,omitempty"` + CreditCard *CreditCard `xml:"credit-card,omitempty"` + PaymentMethodNonce string `xml:"payment-method-nonce,omitempty"` + DefaultPaymentMethodToken string `xml:"default_payment_method_token"` } type CustomerSearchResult struct { diff --git a/customer_apple_pay_integration_test.go b/customer_apple_pay_integration_test.go index 4b5e769b..9b5e93a2 100644 --- a/customer_apple_pay_integration_test.go +++ b/customer_apple_pay_integration_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) func TestCustomerApplePayCard(t *testing.T) { diff --git a/customer_integration_test.go b/customer_integration_test.go index d7c5b20c..5034f8f1 100644 --- a/customer_integration_test.go +++ b/customer_integration_test.go @@ -11,7 +11,7 @@ import ( "fmt" "strings" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) // This test will fail unless you set up your Braintree sandbox account correctly. See TESTING.md for details. diff --git a/disbursement.go b/disbursement.go index 8b0e089f..fb428fcc 100644 --- a/disbursement.go +++ b/disbursement.go @@ -4,7 +4,7 @@ import ( "context" "encoding/xml" - "github.com/braintree-go/braintree-go/date" + "github.com/dietdoctor/braintree-go/date" ) type Disbursement struct { diff --git a/examples/subscription/server.go b/examples/subscription/server.go index a1f717bd..45d3fc37 100644 --- a/examples/subscription/server.go +++ b/examples/subscription/server.go @@ -24,7 +24,7 @@ import ( "net/http" "os" - "github.com/braintree-go/braintree-go" + "github.com/dietdoctor/braintree-go" ) func main() { diff --git a/examples/transaction/server.go b/examples/transaction/server.go index 432d692d..0ca05295 100644 --- a/examples/transaction/server.go +++ b/examples/transaction/server.go @@ -23,7 +23,7 @@ import ( "net/http" "os" - "github.com/braintree-go/braintree-go" + "github.com/dietdoctor/braintree-go" ) type BraintreeJS struct { diff --git a/examples/transaction_3ds/server.go b/examples/transaction_3ds/server.go index 66a0edc1..700fc7c1 100644 --- a/examples/transaction_3ds/server.go +++ b/examples/transaction_3ds/server.go @@ -19,7 +19,7 @@ import ( "net/http" "os" - "github.com/braintree-go/braintree-go" + "github.com/dietdoctor/braintree-go" ) func getBT() *braintree.Braintree { diff --git a/go.mod b/go.mod index 70523f5e..d2399a7e 100644 --- a/go.mod +++ b/go.mod @@ -1 +1,3 @@ -module github.com/braintree-go/braintree-go +module github.com/dietdoctor/braintree-go + +go 1.12 diff --git a/init_test.go b/init_test.go index 4912ee3e..7928c127 100644 --- a/init_test.go +++ b/init_test.go @@ -10,7 +10,7 @@ import ( "os" "time" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) const ( diff --git a/merchant_account_integration_test.go b/merchant_account_integration_test.go index 668db62f..f1309fa9 100644 --- a/merchant_account_integration_test.go +++ b/merchant_account_integration_test.go @@ -7,7 +7,7 @@ import ( "encoding/xml" "testing" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) func TestMerchantAccountCreate(t *testing.T) { diff --git a/payment_method_integration_test.go b/payment_method_integration_test.go index 4b54e3ac..2b8dccb7 100644 --- a/payment_method_integration_test.go +++ b/payment_method_integration_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) func TestPaymentMethod(t *testing.T) { diff --git a/response.go b/response.go index f37e0c5b..519dfc3a 100644 --- a/response.go +++ b/response.go @@ -8,7 +8,7 @@ import ( "net/http" "strings" - "github.com/braintree-go/braintree-go/xmlnil" + "github.com/dietdoctor/braintree-go/xmlnil" ) type Response struct { diff --git a/subscription_integration_test.go b/subscription_integration_test.go index 189f402f..e13ad7b0 100644 --- a/subscription_integration_test.go +++ b/subscription_integration_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) // This test will fail unless you set up your Braintree sandbox account correctly. See TESTING.md for details. diff --git a/transaction.go b/transaction.go index bcccbc38..a1531dd2 100644 --- a/transaction.go +++ b/transaction.go @@ -4,7 +4,7 @@ import ( "encoding/xml" "time" - "github.com/braintree-go/braintree-go/customfields" + "github.com/dietdoctor/braintree-go/customfields" ) type TransactionStatus string diff --git a/transaction_apple_pay_details_integration_test.go b/transaction_apple_pay_details_integration_test.go index b1ca9dcf..c77c6e67 100644 --- a/transaction_apple_pay_details_integration_test.go +++ b/transaction_apple_pay_details_integration_test.go @@ -6,7 +6,7 @@ import ( "context" "testing" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) func TestTransactionApplePayDetails(t *testing.T) { diff --git a/transaction_integration_test.go b/transaction_integration_test.go index 0ab0572d..8ea8fdc3 100644 --- a/transaction_integration_test.go +++ b/transaction_integration_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/braintree-go/braintree-go/testhelpers" + "github.com/dietdoctor/braintree-go/testhelpers" ) func randomAmount() *Decimal { diff --git a/webhook_notification_gateway.go b/webhook_notification_gateway.go index 1f33c031..78a81244 100644 --- a/webhook_notification_gateway.go +++ b/webhook_notification_gateway.go @@ -3,7 +3,7 @@ package braintree import ( "encoding/base64" "encoding/xml" - "github.com/braintree-go/braintree-go/xmlnil" + "github.com/dietdoctor/braintree-go/xmlnil" "net/http" )