Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
lindroth committed Dec 3, 2019
1 parent 1355537 commit 0f76cee
Show file tree
Hide file tree
Showing 22 changed files with 57 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion client_token_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion client_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion credit_card_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"time"

"github.com/braintree-go/braintree-go/testhelpers"
"github.com/dietdoctor/braintree-go/testhelpers"
)

func TestCreditCard(t *testing.T) {
Expand Down
68 changes: 34 additions & 34 deletions customer.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion customer_apple_pay_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion customer_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion disbursement.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/xml"

"github.com/braintree-go/braintree-go/date"
"github.com/dietdoctor/braintree-go/date"
)

type Disbursement struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/subscription/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"net/http"
"os"

"github.com/braintree-go/braintree-go"
"github.com/dietdoctor/braintree-go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/transaction/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"net/http"
"os"

"github.com/braintree-go/braintree-go"
"github.com/dietdoctor/braintree-go"
)

type BraintreeJS struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/transaction_3ds/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net/http"
"os"

"github.com/braintree-go/braintree-go"
"github.com/dietdoctor/braintree-go"
)

func getBT() *braintree.Braintree {
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module github.com/braintree-go/braintree-go
module github.com/dietdoctor/braintree-go

go 1.12
2 changes: 1 addition & 1 deletion init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"os"
"time"

"github.com/braintree-go/braintree-go/testhelpers"
"github.com/dietdoctor/braintree-go/testhelpers"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion merchant_account_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion payment_method_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"strings"

"github.com/braintree-go/braintree-go/xmlnil"
"github.com/dietdoctor/braintree-go/xmlnil"
)

type Response struct {
Expand Down
2 changes: 1 addition & 1 deletion subscription_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/xml"
"time"

"github.com/braintree-go/braintree-go/customfields"
"github.com/dietdoctor/braintree-go/customfields"
)

type TransactionStatus string
Expand Down
2 changes: 1 addition & 1 deletion transaction_apple_pay_details_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion transaction_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

"github.com/braintree-go/braintree-go/testhelpers"
"github.com/dietdoctor/braintree-go/testhelpers"
)

func randomAmount() *Decimal {
Expand Down
2 changes: 1 addition & 1 deletion webhook_notification_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 0f76cee

Please sign in to comment.