Releases: braintree-go/braintree-go
Releases · braintree-go/braintree-go
v0.22.0
IMPROVEMENTS:
- Add TransactionRefundRequest.
- Add RefundWithRequest, with OrderID, to TransactionGateway.
- Add ProductID to CreditCard.
- Add AuthorizationExpiresAt to Transaction.
- Add ProcessorResponseType to Transaction.
- Add GenerateWithRequest to ClientTokenGateway.
INTERNAL:
- Minor test improvements.
v0.21.0
BACKWARDS INCOMPATIBILITES:
- Move package from github.com/lionelbarrow/braintree-go to github.com/braintree-go/braintree-go.
IMPROVEMENTS:
- Add go.mod and go.sum for support of Go1.11 modules.
- Add BIN to ApplePayCard.
- Add BIN to ApplePayDetails.
- Add AccountUpdaterDailyReport webhook subject.
v0.20.0
BACKWARDS INCOMPATIBILITES:
- Add subscription ID parameter to SubscriptionGateway Update. See #243.
DEPRECATED:
- TransactionGateway Search and SearchNext functions are deprecated, use SearchIDs and SearchPage instead.
- SubscriptionGateway Search and SearchNext functions are deprecated, use SearchIDs and SearchPage instead.
- CustomerGateway Search function is deprecated, use SearchIDs and SearchPage instead.
IMPROVEMENTS:
- Add CreatedAt, UpdatedAt to Subscription.
- Add StoreInVaultOnSuccess to TransactionOptions.
- Add PaymentInstrumentType constants to Transaction.
- Add SearchPage to TransactionGateway, deprecating Search and SearchNext.
- Add SearchPage to SubscriptionGateway, deprecating Search and SearchNext.
- Add ExpiringBetweenIDs, ExpiringBetweenPage to CreditCardGateway.
- Add SearchIDs, SearchPage to CustomerGateway.
- Add PaymentMethodNonce, PaymentMethodNonceDetails, PaymentMethodNonceGateway.
- Add 3DS support:
- Add ThreeDSecure to TransactionOptions.
- Add ThreeDSecureInfo to Transaction.
v0.19.0
BACKWARDS INCOMPATIBILITES:
- Rewrite error handling and interfaces. See #222 for details.
IMPROVEMENTS:
- Add TransactionLineItemGateway, TransactionLineItem, TransactionLineItemRequest, and add LineItems to TransactionRequest.
- Add DisputeGateway, Dispute, DisputeEvidence, DisputeTextEvidenceRequest, related types, and add Disputes to Transaction.
- Add support for validation errors on all fields. See #222 for details.
- Add RetryCharge to SubscriptionGateway.
- Add TransactionSource to TransactionRequest.
- Add CurrentBillingCycle to Modification.
- Add SubscriptionDetails to Transaction.
- Add StatusEvents to Subscription.
- Add SearchIDs, Search, and SearchNext to SubscriptionGateway.
- Add CreatedAt and UpdatedAt to Customer.
- Add comments to some exported functions, constants, and types.
INTERNAL:
- Fix VenmoSDK tests.
- Fix errcheck checks.
- Other minor test fixes.
v0.18.0
BACKWARDS INCOMPATIBILITES:
- Require TLS 1.2 on outgoing connections.
- Replace Address with AddressRequest for creating Addresses.
- Replace Customer with CustomerRequest for creating and updating Customers.
IMPROVEMENTS:
- Add SearchIDs to TransactionGateway.
- Add SearchNext to TransactionGateway.
- Add SkipAdvancedFraudChecking to TransactionOptions.
- Add Update to AddressGateway.
- Add Addresses to Customer.
v0.17.0
IMPROVEMENTS:
- Add NumerOfBillingCycles to Modifications.
- Add PurchaseOrderNumber to Transaction and TransactionRequest.
INTERNAL:
- Remove omitempty from structs only used for deserialization.
- Add build tags for unit and integration tests.
- Add analysis detailed warning messages.
- Remove slow unit tests.
v0.16.0
BACKWARDS INCOMPATIBILITES:
- Support for Go1.6 has been dropped. Support from this version onwards is Go1.7+.
- Add
context.Context
as the first parameter to call functions that make an outgoing remote call.
IMPROVEMENTS:
- Add
go test
-log
flag that logs requests and responses to stderr.
BUG FIXES:
- Responses not GZIP encoded were still attempted to be GZIP decoded.
v0.15.0
BACKWARDS INCOMPATIBILITES:
- Change
VerifyCard
onCreditCardOptions
andPaymentMethodRequestOptions
frombool
to*bool
.
BUG FIXES:
- Setting
false
for theVerifyCard
field onCreditCardOptions
andPaymentMethodRequestOptions
did not send a value to Braintree and would not turn off verification if verification was enabled account wide.
v0.14.0
IMPROVEMENTS:
- Add support for transaction cloning:
Clone
function added to transaction gateway.TransactionCloneRequest
added.TransactionCloneOptions
added.
- Add support for escrow:
EscrowStatus
added toTransaction
.HoldInEscrow
added toTransactionOptions
.CancelRelease
function added to transaction gateway.ReleaseFromEscrow
function added to transaction gateway.HoldInEscrow
function added to transaction gateway.
Channel
added toTransaction
,TransactionRequest
, andTransactionCloneRequest
.
BUG FIXES:
- Test and CI reliability improvements to reduce flakiness of integration tests.
v0.13.0
BACKWARDS INCOMPATIBILITES:
- Nullable struct types were removed, with *NullBool/*NullInt64 replaced with *bool/*int and bool/int.
IMPROVEMENTS:
TransactionOptionsPaypalRequest
added toTransactionOptions
.TaxAmount
added toTransaction
andTransactionRequest
.TaxExempt
added toTransaction
andTransactionRequest
.
BUG FIXES:
- Minor example typo fix.