Skip to content

Commit

Permalink
Release 3.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldlineConnect committed Apr 18, 2024
1 parent 81dae2a commit 97c5a11
Show file tree
Hide file tree
Showing 420 changed files with 1,394 additions and 1,347 deletions.
6 changes: 3 additions & 3 deletions Client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ type Client struct {
apiResource *communicator.APIResource
}

// WithClientMetaInfo returns a new Client which uses the passed meta data for the X-GCS-ClientMetaInfo header.
// - clientMetaInfo is a JSON string containing the meta data for the client
// - can give an error if the given clientMetaInfo is not a valid JSON string
// WithClientMetaInfo returns a new Client which uses the passed metadata for the X-GCS-ClientMetaInfo header.
// * clientMetaInfo is a JSON string containing the metadata for the client
// * can give an error if the given clientMetaInfo is not a valid JSON string
func (c *Client) WithClientMetaInfo(clientMetaInfo string) (*Client, error) {
if len(c.apiResource.ClientMetaInfo()) == 0 && len(clientMetaInfo) == 0 {
return c, nil
Expand Down
4 changes: 2 additions & 2 deletions Client_Logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,8 @@ func TestLogErrorOnly(t *testing.T) {
requestHeaders := map[string][]string{}

listener, sl, client, mux, err := createEmptyTimedTestEnvironment(
20*time.Millisecond,
50*time.Millisecond)
100*time.Millisecond,
100*time.Millisecond)
if err != nil {
t.Fatalf("%v: %v", logPrefix, err)
}
Expand Down
6 changes: 3 additions & 3 deletions Integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ func TestIntegratedPayment(t *testing.T) {
}

context := NewCallContext(idempotenceKey)
if err != nil {
t.Fatal(err)
}

result, err := doCreatePayment(client, request, context)
if err != nil {
Expand All @@ -135,6 +132,9 @@ func TestIntegratedPayment(t *testing.T) {
}

secondResult, err := doCreatePayment(client, request, context)
if err != nil {
t.Fatal(err)
}
if idempotenceKey != context.IdempotenceKey {
t.Fatalf("idempotence key mismatch")
}
Expand Down
22 changes: 0 additions & 22 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,3 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*** Notices for dependency on Gabs (https://github.com/Jeffail/gabs)

Copyright (c) 2014 Ashley Jeffs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
4 changes: 2 additions & 2 deletions apiv1/Client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func (c *Client) Merchant(merchantID string) *merchant.Client {
return client
}

// NewClient constructs a v1 Client
// NewClient constructs a new v1 client
//
// parent is the *communicator.APIResource on top of which we want to build the new v1 Client
// parent is the communicator.APIResource on top of which we want to build the new v1 client
func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) {
apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion apiv1/domain/APIError.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type APIError struct {
RequestID *string `json:"requestId,omitempty"`
}

// NewAPIError constructs a new APIError
// NewAPIError constructs a new APIError instance
func NewAPIError() *APIError {
return &APIError{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AccountFundingRecipient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type AccountFundingRecipient struct {
PartialPan *string `json:"partialPan,omitempty"`
}

// NewAccountFundingRecipient constructs a new AccountFundingRecipient
// NewAccountFundingRecipient constructs a new AccountFundingRecipient instance
func NewAccountFundingRecipient() *AccountFundingRecipient {
return &AccountFundingRecipient{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AccountOnFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type AccountOnFile struct {
PaymentProductID *int32 `json:"paymentProductId,omitempty"`
}

// NewAccountOnFile constructs a new AccountOnFile
// NewAccountOnFile constructs a new AccountOnFile instance
func NewAccountOnFile() *AccountOnFile {
return &AccountOnFile{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AccountOnFileAttribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type AccountOnFileAttribute struct {
Value *string `json:"value,omitempty"`
}

// NewAccountOnFileAttribute constructs a new AccountOnFileAttribute
// NewAccountOnFileAttribute constructs a new AccountOnFileAttribute instance
func NewAccountOnFileAttribute() *AccountOnFileAttribute {
return &AccountOnFileAttribute{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AccountOnFileDisplayHints.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type AccountOnFileDisplayHints struct {
Logo *string `json:"logo,omitempty"`
}

// NewAccountOnFileDisplayHints constructs a new AccountOnFileDisplayHints
// NewAccountOnFileDisplayHints constructs a new AccountOnFileDisplayHints instance
func NewAccountOnFileDisplayHints() *AccountOnFileDisplayHints {
return &AccountOnFileDisplayHints{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AdditionalOrderInput.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type AdditionalOrderInput struct {
TypeInformation *OrderTypeInformation `json:"typeInformation,omitempty"`
}

// NewAdditionalOrderInput constructs a new AdditionalOrderInput
// NewAdditionalOrderInput constructs a new AdditionalOrderInput instance
func NewAdditionalOrderInput() *AdditionalOrderInput {
return &AdditionalOrderInput{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AdditionalOrderInputAirlineData.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type AdditionalOrderInputAirlineData struct {
LodgingData *LodgingData `json:"lodgingData,omitempty"`
}

// NewAdditionalOrderInputAirlineData constructs a new AdditionalOrderInputAirlineData
// NewAdditionalOrderInputAirlineData constructs a new AdditionalOrderInputAirlineData instance
func NewAdditionalOrderInputAirlineData() *AdditionalOrderInputAirlineData {
return &AdditionalOrderInputAirlineData{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/Address.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Address struct {
Zip *string `json:"zip,omitempty"`
}

// NewAddress constructs a new Address
// NewAddress constructs a new Address instance
func NewAddress() *Address {
return &Address{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AddressPersonal.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type AddressPersonal struct {
Zip *string `json:"zip,omitempty"`
}

// NewAddressPersonal constructs a new AddressPersonal
// NewAddressPersonal constructs a new AddressPersonal instance
func NewAddressPersonal() *AddressPersonal {
return &AddressPersonal{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AfrName.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type AfrName struct {
Surname *string `json:"surname,omitempty"`
}

// NewAfrName constructs a new AfrName
// NewAfrName constructs a new AfrName instance
func NewAfrName() *AfrName {
return &AfrName{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AirlineData.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type AirlineData struct {
TravelAgencyName *string `json:"travelAgencyName,omitempty"`
}

// NewAirlineData constructs a new AirlineData
// NewAirlineData constructs a new AirlineData instance
func NewAirlineData() *AirlineData {
return &AirlineData{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AirlineFlightLeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type AirlineFlightLeg struct {
Taxes *int32 `json:"taxes,omitempty"`
}

// NewAirlineFlightLeg constructs a new AirlineFlightLeg
// NewAirlineFlightLeg constructs a new AirlineFlightLeg instance
func NewAirlineFlightLeg() *AirlineFlightLeg {
return &AirlineFlightLeg{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AirlinePassenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type AirlinePassenger struct {
Title *string `json:"title,omitempty"`
}

// NewAirlinePassenger constructs a new AirlinePassenger
// NewAirlinePassenger constructs a new AirlinePassenger instance
func NewAirlinePassenger() *AirlinePassenger {
return &AirlinePassenger{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AmountBreakdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type AmountBreakdown struct {
Type *string `json:"type,omitempty"`
}

// NewAmountBreakdown constructs a new AmountBreakdown
// NewAmountBreakdown constructs a new AmountBreakdown instance
func NewAmountBreakdown() *AmountBreakdown {
return &AmountBreakdown{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AmountOfMoney.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type AmountOfMoney struct {
CurrencyCode *string `json:"currencyCode,omitempty"`
}

// NewAmountOfMoney constructs a new AmountOfMoney
// NewAmountOfMoney constructs a new AmountOfMoney instance
func NewAmountOfMoney() *AmountOfMoney {
return &AmountOfMoney{}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type ApprovePaymentCardPaymentMethodSpecificOutput struct {
VoidResponseID *string `json:"voidResponseId,omitempty"`
}

// NewApprovePaymentCardPaymentMethodSpecificOutput constructs a new ApprovePaymentCardPaymentMethodSpecificOutput
// NewApprovePaymentCardPaymentMethodSpecificOutput constructs a new ApprovePaymentCardPaymentMethodSpecificOutput instance
func NewApprovePaymentCardPaymentMethodSpecificOutput() *ApprovePaymentCardPaymentMethodSpecificOutput {
return &ApprovePaymentCardPaymentMethodSpecificOutput{}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type ApprovePaymentMobilePaymentMethodSpecificOutput struct {
VoidResponseID *string `json:"voidResponseId,omitempty"`
}

// NewApprovePaymentMobilePaymentMethodSpecificOutput constructs a new ApprovePaymentMobilePaymentMethodSpecificOutput
// NewApprovePaymentMobilePaymentMethodSpecificOutput constructs a new ApprovePaymentMobilePaymentMethodSpecificOutput instance
func NewApprovePaymentMobilePaymentMethodSpecificOutput() *ApprovePaymentMobilePaymentMethodSpecificOutput {
return &ApprovePaymentMobilePaymentMethodSpecificOutput{}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput struct {
Token *string `json:"token,omitempty"`
}

// NewApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput constructs a new ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput
// NewApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput constructs a new ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput instance
func NewApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput() *ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput {
return &ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/ApprovePaymentRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type ApprovePaymentRequest struct {
SepaDirectDebitPaymentMethodSpecificInput *ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput `json:"sepaDirectDebitPaymentMethodSpecificInput,omitempty"`
}

// NewApprovePaymentRequest constructs a new ApprovePaymentRequest
// NewApprovePaymentRequest constructs a new ApprovePaymentRequest instance
func NewApprovePaymentRequest() *ApprovePaymentRequest {
return &ApprovePaymentRequest{}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput struct {
Token *string `json:"token,omitempty"`
}

// NewApprovePaymentSepaDirectDebitPaymentMethodSpecificInput constructs a new ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput
// NewApprovePaymentSepaDirectDebitPaymentMethodSpecificInput constructs a new ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput instance
func NewApprovePaymentSepaDirectDebitPaymentMethodSpecificInput() *ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput {
return &ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/ApprovePayoutRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type ApprovePayoutRequest struct {
DatePayout *string `json:"datePayout,omitempty"`
}

// NewApprovePayoutRequest constructs a new ApprovePayoutRequest
// NewApprovePayoutRequest constructs a new ApprovePayoutRequest instance
func NewApprovePayoutRequest() *ApprovePayoutRequest {
return &ApprovePayoutRequest{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/ApproveRefundRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type ApproveRefundRequest struct {
Amount *int64 `json:"amount,omitempty"`
}

// NewApproveRefundRequest constructs a new ApproveRefundRequest
// NewApproveRefundRequest constructs a new ApproveRefundRequest instance
func NewApproveRefundRequest() *ApproveRefundRequest {
return &ApproveRefundRequest{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/ApproveTokenRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type ApproveTokenRequest struct {
MandateSigned *bool `json:"mandateSigned,omitempty"`
}

// NewApproveTokenRequest constructs a new ApproveTokenRequest
// NewApproveTokenRequest constructs a new ApproveTokenRequest instance
func NewApproveTokenRequest() *ApproveTokenRequest {
return &ApproveTokenRequest{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/AuthenticationIndicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type AuthenticationIndicator struct {
Value *string `json:"value,omitempty"`
}

// NewAuthenticationIndicator constructs a new AuthenticationIndicator
// NewAuthenticationIndicator constructs a new AuthenticationIndicator instance
func NewAuthenticationIndicator() *AuthenticationIndicator {
return &AuthenticationIndicator{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankAccountBban.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type BankAccountBban struct {
CountryCode *string `json:"countryCode,omitempty"`
}

// NewBankAccountBban constructs a new BankAccountBban
// NewBankAccountBban constructs a new BankAccountBban instance
func NewBankAccountBban() *BankAccountBban {
return &BankAccountBban{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankAccountBbanRefund.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type BankAccountBbanRefund struct {
SwiftCode *string `json:"swiftCode,omitempty"`
}

// NewBankAccountBbanRefund constructs a new BankAccountBbanRefund
// NewBankAccountBbanRefund constructs a new BankAccountBbanRefund instance
func NewBankAccountBbanRefund() *BankAccountBbanRefund {
return &BankAccountBbanRefund{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankAccountIban.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type BankAccountIban struct {
Iban *string `json:"iban,omitempty"`
}

// NewBankAccountIban constructs a new BankAccountIban
// NewBankAccountIban constructs a new BankAccountIban instance
func NewBankAccountIban() *BankAccountIban {
return &BankAccountIban{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankData.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type BankData struct {
ReformattedBranchCode *string `json:"reformattedBranchCode,omitempty"`
}

// NewBankData constructs a new BankData
// NewBankData constructs a new BankData instance
func NewBankData() *BankData {
return &BankData{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankDetailsRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type BankDetailsRequest struct {
BankAccountIban *BankAccountIban `json:"bankAccountIban,omitempty"`
}

// NewBankDetailsRequest constructs a new BankDetailsRequest
// NewBankDetailsRequest constructs a new BankDetailsRequest instance
func NewBankDetailsRequest() *BankDetailsRequest {
return &BankDetailsRequest{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankDetailsResponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type BankDetailsResponse struct {
Swift *Swift `json:"swift,omitempty"`
}

// NewBankDetailsResponse constructs a new BankDetailsResponse
// NewBankDetailsResponse constructs a new BankDetailsResponse instance
func NewBankDetailsResponse() *BankDetailsResponse {
return &BankDetailsResponse{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankRefundMethodSpecificInput.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type BankRefundMethodSpecificInput struct {
CountryCode *string `json:"countryCode,omitempty"`
}

// NewBankRefundMethodSpecificInput constructs a new BankRefundMethodSpecificInput
// NewBankRefundMethodSpecificInput constructs a new BankRefundMethodSpecificInput instance
func NewBankRefundMethodSpecificInput() *BankRefundMethodSpecificInput {
return &BankRefundMethodSpecificInput{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankTransferPaymentMethodSpecificInput.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type BankTransferPaymentMethodSpecificInput struct {
PaymentProductID *int32 `json:"paymentProductId,omitempty"`
}

// NewBankTransferPaymentMethodSpecificInput constructs a new BankTransferPaymentMethodSpecificInput
// NewBankTransferPaymentMethodSpecificInput constructs a new BankTransferPaymentMethodSpecificInput instance
func NewBankTransferPaymentMethodSpecificInput() *BankTransferPaymentMethodSpecificInput {
return &BankTransferPaymentMethodSpecificInput{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankTransferPaymentMethodSpecificInputBase.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type BankTransferPaymentMethodSpecificInputBase struct {
PaymentProductID *int32 `json:"paymentProductId,omitempty"`
}

// NewBankTransferPaymentMethodSpecificInputBase constructs a new BankTransferPaymentMethodSpecificInputBase
// NewBankTransferPaymentMethodSpecificInputBase constructs a new BankTransferPaymentMethodSpecificInputBase instance
func NewBankTransferPaymentMethodSpecificInputBase() *BankTransferPaymentMethodSpecificInputBase {
return &BankTransferPaymentMethodSpecificInputBase{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankTransferPaymentMethodSpecificOutput.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type BankTransferPaymentMethodSpecificOutput struct {
PaymentProductID *int32 `json:"paymentProductId,omitempty"`
}

// NewBankTransferPaymentMethodSpecificOutput constructs a new BankTransferPaymentMethodSpecificOutput
// NewBankTransferPaymentMethodSpecificOutput constructs a new BankTransferPaymentMethodSpecificOutput instance
func NewBankTransferPaymentMethodSpecificOutput() *BankTransferPaymentMethodSpecificOutput {
return &BankTransferPaymentMethodSpecificOutput{}
}
2 changes: 1 addition & 1 deletion apiv1/domain/BankTransferPayoutMethodSpecificInput.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type BankTransferPayoutMethodSpecificInput struct {
SwiftCode *string `json:"swiftCode,omitempty"`
}

// NewBankTransferPayoutMethodSpecificInput constructs a new BankTransferPayoutMethodSpecificInput
// NewBankTransferPayoutMethodSpecificInput constructs a new BankTransferPayoutMethodSpecificInput instance
func NewBankTransferPayoutMethodSpecificInput() *BankTransferPayoutMethodSpecificInput {
return &BankTransferPayoutMethodSpecificInput{}
}
Loading

0 comments on commit 97c5a11

Please sign in to comment.