This repository was archived by the owner on Mar 19, 2024. It is now read-only.
Releases: Ingenico-ePayments/connect-sdk-go
Releases · Ingenico-ePayments/connect-sdk-go
2.0.0
- Added:
- Added method
UploadFile
to structdisputes.Client
and methodFiles
to structmerchant.Client
to support uploading and downloading of files for disputes. - Added support for binary requests and responses:
- Added interface
communicator.BodyHandler
that can be used to process binary response bodies. - Added interface
communication.ResponseHandler
that can be used to process binary responses. - Added structs
communication.UploadableFile
andcommunication.MultipartFormDataObject
and interfacecommunicator.MultipartFormDataRequest
for sendingmultipart/form-data
requests. - Refactored struct
communicator.Communicator
. It has newGetWithHandler
,DeleteWithHandler
,PostWithHandler
andPutWithHandler
methods that take acommunicator.BodyHandler
instead of a response object. ThePost
,PostWithHandler
,Put
andPutWithHandler
methods have special support for objects of typescommunication.MultipartFormDataObject
andcommunicator.MultipartFormDataRequest
. - Refactored interface
communicator.Connection
. Its methods no longer return acommunication.Response
object but instead take acommunication.ResponseHandler
response handler. It also has newPostMultipart
andPutMultipart
methods that take acommunication.MultipartFormDataObject
. - Added method
UnmarshalFromReader
to interfacecommunicator.Marshaller
. - Added method
SetBinaryContentBody
to structslogging.RequestLogMessageBuilder
andlogging.ResponseLogMessageBuilder
to support logging binary content.
- Added interface
- Added the following methods to type
communication.Headers
:GetHeader
returns a single header (ornil
).GetHeaderValue
returns a single header value (or an empty string).GetDispositionFilename
returns the filename of theContent-Disposition
header (or an empty string).
- Added method
- Removed:
- Removed method
PublicKey
from structproducts.Client
, and structpublickey.PublicKey
. Both were only used for encryption for Android Pay. Now that Android Pay has been replaced by Google Pay, which uses a different mechanism for encryption, this call is no longer needed. - Removed several structs for domain classes that were generated but never used. In other SDKs these existed only as base classes for other classes, but Go does not support this and therefore these structs served no purpose.
- Removed method
communicator.AddRequestParameter
. Generatedcommunicator.ParamRequest
implementations directly create thecommunicator.RequestParam
objects instead of calling this method. - Removed struct
communication.Response
in favor of streaming responses. - Removed struct
communication.Request
, which was only used internally. - Removed method
Response
of structerrors.ResponseError
.
- Removed method
If you are not using custom implementations, this version is compatible with the previous version. Otherwise you need to perform the following steps:
- If you have created your own implementation of
communicator.Connection
, you need to change the implementation of theGet
,Delete
,Post
andPut
methods. These now take aResponseHandler
instead of returning aResponse
object. You also need to implement the newPostMultipart
andPutMultipart
methods. You probably also should take care to not log any binary request or response bodies. - If you have created your own implementation of
communicator.Communicator
you need to change any overriddenGet
,Delete
,Post
andPut
methods to also supportMultipartFormDataRequest
objects. You also need to override the new methods that take aBodyHandler
. - If you have created your own implementation of
communicator.Marshaller
you need to implement the newUnmarshalFromReader
method.
1.35.0
- Added:
- Added properties
PaymentProduct1521SpecificInput
,PaymentProduct1522SpecificInput
,PaymentProduct1523SpecificInput
,PaymentProduct1524SpecificInput
andPaymentProduct1526SpecificInput
to structpayment.CashPaymentMethodSpecificInput
.
- Added properties
- Fixed:
- Removed invalid SDK data information from the create payment request example.
1.34.0
- Added:
- Added property
ThirdPartyData
to structpayment.MerchantAction
. - Added property
PaymentProduct861SpecificInput
to structpayment.RedirectPaymentMethodSpecificInput
. - Added property
OpenID
to structpayment.RedirectPaymentProduct863SpecificInput
. - Added property
HostedCheckoutId
to structspayments.FindParams
andrefunds.FindParams
.
- Added property
1.33.0
This release contains several changes for 3-D Secure version 2. Several properties have been deprecated in favor of new properties. The deprecated properties will still work though.
- Added:
- Added property
VatNumber
to structdefinitions.CompanyInformation
. - Added property
Merchant
to structshostedcheckout.CreateRequest
,payment.CompletePaymentRequest
,payment.CreateRequest
,riskassessments.RiskAssessment
,riskassessments.RiskAssessmentBankAccount
andriskassessments.RiskAssessmentCard
. - Added properties
Recurring
andUnscheduledCardOnFileSequenceIndicator
to structspayment.AbstractCardPaymentMethodSpecificInput
,payment.CardPaymentMethodSpecificInput
andpayment.CardPaymentMethodSpecificInputBase
. - Added property
ThreeDSecure
to structspayment.CardPaymentMethodSpecificInput
andpayment.CardPaymentMethodSpecificInputBase
. - Added properties
MobilePhoneNumber
andWorkPhoneNumber
to structpayment.ContactDetails
. - Added properties
Account
,AccountType
,Device
andIsPreviousCustomer
to structpayment.Customer
. - Added properties
DirectoryServerTransactionId
,ThreeDSecureVersion
andThreeDServerTransactionId
to structpayment.ExternalCardholderAuthenticationData
. - Added property
MobileThreeDSecureChallengeParameters
to structpayment.MerchantAction
. - Added property
Customer
to structpayment.OrderApprovePayment
. - Added property
TransactionType
to structpayment.OrderTypeInformation
. - Added property
RedirectionData
to structpayment.RedirectPaymentMethodSpecificInput
. - Added properties
Address
,AddressIndicator
,Comments
,FirstUsageDate
,IsFirstUsage
,TrackingNumber
andType
to structpayment.Shipping
. - Added properties
GiftCardPurchase
,IsPreOrder
,PreOrderItemAvailabilityDate
andReOrderIndicator
to structpayment.ShoppingCart
. - Added properties
DirectoryServerTransactionId
,SdkData
,ThreeDSecureData
,ThreeDSecureVersion
andThreeDServerTransactionId
to structpayment.ThreeDSecureResults
. - Added properties
Account
,AccountType
,Device
andIsPreviousCustomer
to structriskassessments.CustomerRiskAssessment
. - Added property
Shipping
to structriskassessments.OrderRiskAssessment
.
- Added property
- Deprecated:
- Deprecated property
IsRegisteredCustomer
of structdefinitions.AirlineData
in favor of new propertypayment.Order.Customer.AccountType
. - Deprecated property
VatNumber
of structsdefinitions.CustomerBase
,payment.Customer
andtoken.CustomerToken
in favor of new propertydefinitions.CompanyInformation.VatNumber
. - Deprecated property
AddressesAreIdentical
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Shipping.AddressIndicator
. - Deprecated property
CardOwnerAddress
of structdefinitions.FraudFields
, which should be the same as existing propertypayment.Order.Customer.BillingAddress
. - Deprecated property
DefaultFormFill
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Customer.Device.DefaultFormFill
. - Deprecated property
DeviceFingerprintActivated
of structdefinitions.FraudFields
with no replacement. - Deprecated property
DeviceFingerprintTransactionId
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Customer.Device.DeviceFingerprintTransactionId
. - Deprecated property
HasForgottenPwd
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Customer.Account.HasForgottenPassword
. - Deprecated property
HasPassword
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Customer.Account.HasPassword
. - Deprecated property
IsPreviousCustomer
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Customer.IsPreviousCustomer
. - Deprecated property
ShipComments
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Shipping.Comments
. - Deprecated property
ShipmentTrackingNumber
of structdefinitions.FraudFields
in favor of new propertypayment.Order.Shipping.TrackingNumber
. - Deprecated property
ShippingDetails
of structdefinitions.FraudFields
with no replacement. - Deprecated property
Website
of structdefinitions.FraudFields
in favor of new propertypayment.Merchant.WebsiteUrl
. - Deprecated struct
definitions.FraudFieldsShippingDetails
with no replacement. - Deprecated property
RecurringPaymentSequenceIndicator
of structspayment.AbstractCardPaymentMethodSpecificInput
,payment.CardPaymentMethodSpecificInput
andpayment.CardPaymentMethodSpecificInputBase
in favor of new propertyRecurring.RecurringPaymentSequenceIndicator
. - Deprecated property
SkipAuthentication
of structpayment.AbstractCardPaymentMethodSpecificInput
with no replacement. - Deprecated property
SkipAuthentication
of structspayment.CardPaymentMethodSpecificInput
andpayment.CardPaymentMethodSpecificInputBase
in favor of new propertyThreeDSecure.SkipAuthentication
of its child structs. - Deprecated property
UnscheduledCardOnFileIndicator
of structspayment.AbstractCardPaymentMethodSpecificInput
,payment.CardPaymentMethodSpecificInput
andpayment.CardPaymentMethodSpecificInputBase
in favor of new propertyUnscheduledCardOnFileSequenceIndicator
. - Deprecated property
ExternalCardholderAuthenticationData
of structpayment.CardPaymentMethodSpecificInput
in favor of new propertyThreeDSecure.ExternalCardholderAuthenticationData
. - Deprecated property
ReturnUrl
of structpayment.CardPaymentMethodSpecificInput
in favor of new propertyThreeDSecure.RedirectionData.ReturnUrl
. - Deprecated property
PaymentProduct1503SpecificInput
of structpayment.CashPaymentMethodSpecificInput
and structpayment.CashPaymentProduct1503SpecificInput
, since Boleto Bancario no longer uses redirects. - Deprecated property
ShippingAddress
of structpayment.Customer
in favor of new propertypayment.Order.Shipping.Address
. - Deprecated property
Seller
of structpayment.Order
in favor of new propertypayment.Merchant.Seller
. - Deprecated property
ReturnUrl
of structpayment.RedirectPaymentMethodSpecificInput
in favor of new propertyRedirectionData.ReturnUrl
. - Deprecated property
ShippingAddress
of structriskassessments.CustomerRiskAssessment
in favor of new propertyriskassessments.OrderRiskAssessment.Shipping.Address
.
- Deprecated property
1.32.0
- Added:
- Added property
Shipping
to structpayment.Order
. - Added property
ContactPhone
to structpayment.Product840CustomerAccount
. - Added method
Privacypolicy
to structservices.Client
.
- Added property
1.31.0
- Added:
- Added method
Cancel
to structdisputes.Client
.
- Added method
1.30.0
- Added:
- Added property
PaymentProduct840SpecificInput
to structpayment.RedirectPaymentMethodSpecificInputBase
. - Added property
AddressSelectionAtPayPal
to structpayment.RedirectPaymentProduct840SpecificInput
. - Added methods
Dispute
andDisputes
to structpayments.Client
and methodDisputes
to structmerchant.Client
to handle disputes.
- Added property
1.29.0
- Added:
- Added property
MobilePaymentMethodSpecificInput
to structhostedcheckout.CreateRequest
. - Added properties
Pan
andPaymentMethod
to structpayment.DecryptedPaymentData
. - Added property
IsJavaScriptRequired
to structsproduct.PaymentProduct
andproduct.PaymentProductResponse
. - Added property
Gateway
to structproduct.PaymentProduct320SpecificData
. - Added property
ExistingUniqueMandateReference
to structspayment.SepaDirectDebitPaymentProduct771SpecificInput
andpayment.SepaDirectDebitPaymentProduct771SpecificInputBase
.
- Added property
- Changed:
- Use minimal TLS version 1.2 for PCI DSS compliance.
- Deprecated:
- Deprecated property
MandateReference
of structspayment.AbstractSepaDirectDebitPaymentProduct771SpecificInput
,payment.SepaDirectDebitPaymentProduct771SpecificInput
andpayment.SepaDirectDebitPaymentProduct771SpecificInputBase
in favor of the newExistingUniqueMandateReference
property of the latter two.
- Deprecated property
- Removed:
- Removed property
PaymentProduct320SpecificInput
from structpayment.MobilePaymentMethodSpecificInput
. This was only used for Android Pay if you decrypted Google's payment data yourself. Now that Android Pay has been replaced by Google Pay this field is no longer needed. - Removed property
TransactionId
from structpayment.MobilePaymentMethodSpecificInput
. This was only used for Android Pay and Apple Pay if you decrypted Google's or Apple's payment data yourself. This field was never used, and has therefore been dropped.
- Removed property
- Fixed:
- Fixed an
index out of range
error when using UTF-8 runes while logging is enabled.
- Fixed an
1.28.0
- Added:
- Added property
Fraugster
to structdefinitions.CardFraudResults
.
- Added property
1.27.0
- Added:
- Added property
PaymentProduct3201SpecificOutput
to structpayment.RedirectPaymentMethodSpecificOutput
.
- Added property