Skip to content

Commit

Permalink
Release 3.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldlineConnect committed Jun 4, 2024
1 parent 97c5a11 commit dafba4e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
1 change: 1 addition & 0 deletions apiv1/domain/CardPaymentMethodSpecificOutput.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type CardPaymentMethodSpecificOutput struct {
Card *CardEssentials `json:"card,omitempty"`
FraudResults *CardFraudResults `json:"fraudResults,omitempty"`
InitialSchemeTransactionID *string `json:"initialSchemeTransactionId,omitempty"`
NetworkTokenUsed *bool `json:"networkTokenUsed,omitempty"`
PaymentProductID *int32 `json:"paymentProductId,omitempty"`
SchemeTransactionID *string `json:"schemeTransactionId,omitempty"`
ThreeDSecureResults *ThreeDSecureResults `json:"threeDSecureResults,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions apiv1/domain/OrderLineDetails.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type OrderLineDetails struct {
DiscountAmount *int64 `json:"discountAmount,omitempty"`
GoogleProductCategoryID *int64 `json:"googleProductCategoryId,omitempty"`
LineAmountTotal *int64 `json:"lineAmountTotal,omitempty"`
NaicsCommodityCode *string `json:"naicsCommodityCode,omitempty"`
ProductCategory *string `json:"productCategory,omitempty"`
ProductCode *string `json:"productCode,omitempty"`
ProductName *string `json:"productName,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions apiv1/domain/Shipping.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Shipping struct {
EmailAddress *string `json:"emailAddress,omitempty"`
FirstUsageDate *string `json:"firstUsageDate,omitempty"`
IsFirstUsage *bool `json:"isFirstUsage,omitempty"`
ShippedFromZip *string `json:"shippedFromZip,omitempty"`
TrackingNumber *string `json:"trackingNumber,omitempty"`
Type *string `json:"type,omitempty"`
}
Expand Down
25 changes: 4 additions & 21 deletions communicator/Connection.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package communicator

import (
"io"
"net/url"
"time"

Expand All @@ -13,6 +14,9 @@ import (
// Instead of setting up a new HTTP connection for each request, this connection uses a pool of HTTP connections.
// Thread-safe
type Connection interface {
logging.Capable
obfuscation.Capable
io.Closer

// Get sends a GET request to the Worldline Global Collect platform and calls the given response handler with the response.
Get(resourceURI url.URL, requestHeaders []communication.Header, handler communication.ResponseHandler) (interface{}, error)
Expand All @@ -39,25 +43,4 @@ type Connection interface {

// CloseExpiredConnections closes all expired HTTP connections.
CloseExpiredConnections()

// IMPLEMENTATION logging.Capable INTERFACE

// EnableLogging turns on logging using the given communicator logger.
EnableLogging(communicatorLogger logging.CommunicatorLogger)

// DisableLogging turns off logging.
DisableLogging()

// IMPLEMENTATION obfuscation.Capable INTERFACE

// SetBodyObfuscator sets the body obfuscator to use.
SetBodyObfuscator(bodyObfuscator obfuscation.BodyObfuscator)

// SetHeaderObfuscator sets the header obfuscator to use.
SetHeaderObfuscator(headerObfuscator obfuscation.HeaderObfuscator)

// IMPLEMENTATION io.Closer INTERFACE

// Close closes the connection of the Communicator
Close() error
}
2 changes: 1 addition & 1 deletion communicator/MetadataProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func getPlatformIdentifier() string {
return runtime.GOOS + " " + runtime.Version() + "(" + runtime.GOARCH + ")"
}

const sdkVersion = "3.0.1"
const sdkVersion = "3.1.0"
const sdkIdentifier = "GoServerSDK/v" + sdkVersion
const serverMetaInfoHeader = "X-GCS-ServerMetaInfo"

Expand Down

0 comments on commit dafba4e

Please sign in to comment.