diff --git a/Client.go b/Client.go index 71d8f89..4f115c6 100644 --- a/Client.go +++ b/Client.go @@ -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 diff --git a/Client_Logging_test.go b/Client_Logging_test.go index 049a990..c4f7ba1 100644 --- a/Client_Logging_test.go +++ b/Client_Logging_test.go @@ -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) } diff --git a/Integration_test.go b/Integration_test.go index 4a560dc..74d030c 100644 --- a/Integration_test.go +++ b/Integration_test.go @@ -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 { @@ -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") } diff --git a/LICENSE.txt b/LICENSE.txt index be4dc19..bd1079c 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -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. diff --git a/apiv1/Client.go b/apiv1/Client.go index 06aee47..f82917a 100644 --- a/apiv1/Client.go +++ b/apiv1/Client.go @@ -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 { diff --git a/apiv1/domain/APIError.go b/apiv1/domain/APIError.go index f967bfd..0131a82 100644 --- a/apiv1/domain/APIError.go +++ b/apiv1/domain/APIError.go @@ -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{} } diff --git a/apiv1/domain/AccountFundingRecipient.go b/apiv1/domain/AccountFundingRecipient.go index 69d290e..a94c9ca 100644 --- a/apiv1/domain/AccountFundingRecipient.go +++ b/apiv1/domain/AccountFundingRecipient.go @@ -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{} } diff --git a/apiv1/domain/AccountOnFile.go b/apiv1/domain/AccountOnFile.go index 6a2baf6..ff02adb 100644 --- a/apiv1/domain/AccountOnFile.go +++ b/apiv1/domain/AccountOnFile.go @@ -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{} } diff --git a/apiv1/domain/AccountOnFileAttribute.go b/apiv1/domain/AccountOnFileAttribute.go index f5c8e7e..6cf0a01 100644 --- a/apiv1/domain/AccountOnFileAttribute.go +++ b/apiv1/domain/AccountOnFileAttribute.go @@ -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{} } diff --git a/apiv1/domain/AccountOnFileDisplayHints.go b/apiv1/domain/AccountOnFileDisplayHints.go index 6d5199e..2a8cba7 100644 --- a/apiv1/domain/AccountOnFileDisplayHints.go +++ b/apiv1/domain/AccountOnFileDisplayHints.go @@ -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{} } diff --git a/apiv1/domain/AdditionalOrderInput.go b/apiv1/domain/AdditionalOrderInput.go index abcc6c9..26fa732 100644 --- a/apiv1/domain/AdditionalOrderInput.go +++ b/apiv1/domain/AdditionalOrderInput.go @@ -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{} } diff --git a/apiv1/domain/AdditionalOrderInputAirlineData.go b/apiv1/domain/AdditionalOrderInputAirlineData.go index 2856ab9..c792aad 100644 --- a/apiv1/domain/AdditionalOrderInputAirlineData.go +++ b/apiv1/domain/AdditionalOrderInputAirlineData.go @@ -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{} } diff --git a/apiv1/domain/Address.go b/apiv1/domain/Address.go index 1233406..28dc75b 100644 --- a/apiv1/domain/Address.go +++ b/apiv1/domain/Address.go @@ -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{} } diff --git a/apiv1/domain/AddressPersonal.go b/apiv1/domain/AddressPersonal.go index 87559a5..e6df569 100644 --- a/apiv1/domain/AddressPersonal.go +++ b/apiv1/domain/AddressPersonal.go @@ -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{} } diff --git a/apiv1/domain/AfrName.go b/apiv1/domain/AfrName.go index 3a57411..d0dda1b 100644 --- a/apiv1/domain/AfrName.go +++ b/apiv1/domain/AfrName.go @@ -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{} } diff --git a/apiv1/domain/AirlineData.go b/apiv1/domain/AirlineData.go index 1ccd0a9..fc3687a 100644 --- a/apiv1/domain/AirlineData.go +++ b/apiv1/domain/AirlineData.go @@ -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{} } diff --git a/apiv1/domain/AirlineFlightLeg.go b/apiv1/domain/AirlineFlightLeg.go index 4ff3548..1593fc4 100644 --- a/apiv1/domain/AirlineFlightLeg.go +++ b/apiv1/domain/AirlineFlightLeg.go @@ -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{} } diff --git a/apiv1/domain/AirlinePassenger.go b/apiv1/domain/AirlinePassenger.go index 2e4d4e6..8733b6e 100644 --- a/apiv1/domain/AirlinePassenger.go +++ b/apiv1/domain/AirlinePassenger.go @@ -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{} } diff --git a/apiv1/domain/AmountBreakdown.go b/apiv1/domain/AmountBreakdown.go index ed4d29a..bb1a241 100644 --- a/apiv1/domain/AmountBreakdown.go +++ b/apiv1/domain/AmountBreakdown.go @@ -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{} } diff --git a/apiv1/domain/AmountOfMoney.go b/apiv1/domain/AmountOfMoney.go index d1b8232..2b5c39d 100644 --- a/apiv1/domain/AmountOfMoney.go +++ b/apiv1/domain/AmountOfMoney.go @@ -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{} } diff --git a/apiv1/domain/ApprovePaymentCardPaymentMethodSpecificOutput.go b/apiv1/domain/ApprovePaymentCardPaymentMethodSpecificOutput.go index 919b446..6d655e3 100644 --- a/apiv1/domain/ApprovePaymentCardPaymentMethodSpecificOutput.go +++ b/apiv1/domain/ApprovePaymentCardPaymentMethodSpecificOutput.go @@ -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{} } diff --git a/apiv1/domain/ApprovePaymentMobilePaymentMethodSpecificOutput.go b/apiv1/domain/ApprovePaymentMobilePaymentMethodSpecificOutput.go index e45171d..15f9ce9 100644 --- a/apiv1/domain/ApprovePaymentMobilePaymentMethodSpecificOutput.go +++ b/apiv1/domain/ApprovePaymentMobilePaymentMethodSpecificOutput.go @@ -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{} } diff --git a/apiv1/domain/ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput.go b/apiv1/domain/ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput.go index 17a9fe5..834ff95 100644 --- a/apiv1/domain/ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput.go +++ b/apiv1/domain/ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput.go @@ -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{} } diff --git a/apiv1/domain/ApprovePaymentRequest.go b/apiv1/domain/ApprovePaymentRequest.go index 62b0875..bf754c9 100644 --- a/apiv1/domain/ApprovePaymentRequest.go +++ b/apiv1/domain/ApprovePaymentRequest.go @@ -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{} } diff --git a/apiv1/domain/ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput.go b/apiv1/domain/ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput.go index 1eab925..70a8b30 100644 --- a/apiv1/domain/ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput.go +++ b/apiv1/domain/ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput.go @@ -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{} } diff --git a/apiv1/domain/ApprovePayoutRequest.go b/apiv1/domain/ApprovePayoutRequest.go index eb119f4..b382bb1 100644 --- a/apiv1/domain/ApprovePayoutRequest.go +++ b/apiv1/domain/ApprovePayoutRequest.go @@ -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{} } diff --git a/apiv1/domain/ApproveRefundRequest.go b/apiv1/domain/ApproveRefundRequest.go index 7d657f1..5f1405e 100644 --- a/apiv1/domain/ApproveRefundRequest.go +++ b/apiv1/domain/ApproveRefundRequest.go @@ -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{} } diff --git a/apiv1/domain/ApproveTokenRequest.go b/apiv1/domain/ApproveTokenRequest.go index cad88e1..f5df16a 100644 --- a/apiv1/domain/ApproveTokenRequest.go +++ b/apiv1/domain/ApproveTokenRequest.go @@ -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{} } diff --git a/apiv1/domain/AuthenticationIndicator.go b/apiv1/domain/AuthenticationIndicator.go index 2c249df..fc26058 100644 --- a/apiv1/domain/AuthenticationIndicator.go +++ b/apiv1/domain/AuthenticationIndicator.go @@ -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{} } diff --git a/apiv1/domain/BankAccountBban.go b/apiv1/domain/BankAccountBban.go index 8a1e57d..3218fc2 100644 --- a/apiv1/domain/BankAccountBban.go +++ b/apiv1/domain/BankAccountBban.go @@ -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{} } diff --git a/apiv1/domain/BankAccountBbanRefund.go b/apiv1/domain/BankAccountBbanRefund.go index 7f14af9..1f7a26e 100644 --- a/apiv1/domain/BankAccountBbanRefund.go +++ b/apiv1/domain/BankAccountBbanRefund.go @@ -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{} } diff --git a/apiv1/domain/BankAccountIban.go b/apiv1/domain/BankAccountIban.go index 30aa151..4e3eea9 100644 --- a/apiv1/domain/BankAccountIban.go +++ b/apiv1/domain/BankAccountIban.go @@ -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{} } diff --git a/apiv1/domain/BankData.go b/apiv1/domain/BankData.go index 6f5a7a1..d28392d 100644 --- a/apiv1/domain/BankData.go +++ b/apiv1/domain/BankData.go @@ -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{} } diff --git a/apiv1/domain/BankDetailsRequest.go b/apiv1/domain/BankDetailsRequest.go index 6571b19..c9ec10a 100644 --- a/apiv1/domain/BankDetailsRequest.go +++ b/apiv1/domain/BankDetailsRequest.go @@ -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{} } diff --git a/apiv1/domain/BankDetailsResponse.go b/apiv1/domain/BankDetailsResponse.go index 2f73962..9b17697 100644 --- a/apiv1/domain/BankDetailsResponse.go +++ b/apiv1/domain/BankDetailsResponse.go @@ -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{} } diff --git a/apiv1/domain/BankRefundMethodSpecificInput.go b/apiv1/domain/BankRefundMethodSpecificInput.go index 6c484f0..4cc6638 100644 --- a/apiv1/domain/BankRefundMethodSpecificInput.go +++ b/apiv1/domain/BankRefundMethodSpecificInput.go @@ -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{} } diff --git a/apiv1/domain/BankTransferPaymentMethodSpecificInput.go b/apiv1/domain/BankTransferPaymentMethodSpecificInput.go index 79db68f..720ca3b 100644 --- a/apiv1/domain/BankTransferPaymentMethodSpecificInput.go +++ b/apiv1/domain/BankTransferPaymentMethodSpecificInput.go @@ -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{} } diff --git a/apiv1/domain/BankTransferPaymentMethodSpecificInputBase.go b/apiv1/domain/BankTransferPaymentMethodSpecificInputBase.go index 0a6c4aa..4d97051 100644 --- a/apiv1/domain/BankTransferPaymentMethodSpecificInputBase.go +++ b/apiv1/domain/BankTransferPaymentMethodSpecificInputBase.go @@ -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{} } diff --git a/apiv1/domain/BankTransferPaymentMethodSpecificOutput.go b/apiv1/domain/BankTransferPaymentMethodSpecificOutput.go index 044e09f..b67b677 100644 --- a/apiv1/domain/BankTransferPaymentMethodSpecificOutput.go +++ b/apiv1/domain/BankTransferPaymentMethodSpecificOutput.go @@ -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{} } diff --git a/apiv1/domain/BankTransferPayoutMethodSpecificInput.go b/apiv1/domain/BankTransferPayoutMethodSpecificInput.go index e063118..7708e90 100644 --- a/apiv1/domain/BankTransferPayoutMethodSpecificInput.go +++ b/apiv1/domain/BankTransferPayoutMethodSpecificInput.go @@ -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{} } diff --git a/apiv1/domain/BoletoBancarioRequirednessValidator.go b/apiv1/domain/BoletoBancarioRequirednessValidator.go index bee8d67..ead0adf 100644 --- a/apiv1/domain/BoletoBancarioRequirednessValidator.go +++ b/apiv1/domain/BoletoBancarioRequirednessValidator.go @@ -8,7 +8,7 @@ type BoletoBancarioRequirednessValidator struct { FiscalNumberLength *int32 `json:"fiscalNumberLength,omitempty"` } -// NewBoletoBancarioRequirednessValidator constructs a new BoletoBancarioRequirednessValidator +// NewBoletoBancarioRequirednessValidator constructs a new BoletoBancarioRequirednessValidator instance func NewBoletoBancarioRequirednessValidator() *BoletoBancarioRequirednessValidator { return &BoletoBancarioRequirednessValidator{} } diff --git a/apiv1/domain/BrowserData.go b/apiv1/domain/BrowserData.go index 8b57572..ba23432 100644 --- a/apiv1/domain/BrowserData.go +++ b/apiv1/domain/BrowserData.go @@ -14,7 +14,7 @@ type BrowserData struct { ScreenWidth *string `json:"screenWidth,omitempty"` } -// NewBrowserData constructs a new BrowserData +// NewBrowserData constructs a new BrowserData instance func NewBrowserData() *BrowserData { return &BrowserData{} } diff --git a/apiv1/domain/CancelApprovalPaymentResponse.go b/apiv1/domain/CancelApprovalPaymentResponse.go index ca349e4..4e2d504 100644 --- a/apiv1/domain/CancelApprovalPaymentResponse.go +++ b/apiv1/domain/CancelApprovalPaymentResponse.go @@ -8,7 +8,7 @@ type CancelApprovalPaymentResponse struct { Payment *Payment `json:"payment,omitempty"` } -// NewCancelApprovalPaymentResponse constructs a new CancelApprovalPaymentResponse +// NewCancelApprovalPaymentResponse constructs a new CancelApprovalPaymentResponse instance func NewCancelApprovalPaymentResponse() *CancelApprovalPaymentResponse { return &CancelApprovalPaymentResponse{} } diff --git a/apiv1/domain/CancelPaymentCardPaymentMethodSpecificOutput.go b/apiv1/domain/CancelPaymentCardPaymentMethodSpecificOutput.go index abbf858..8260a4f 100644 --- a/apiv1/domain/CancelPaymentCardPaymentMethodSpecificOutput.go +++ b/apiv1/domain/CancelPaymentCardPaymentMethodSpecificOutput.go @@ -8,7 +8,7 @@ type CancelPaymentCardPaymentMethodSpecificOutput struct { VoidResponseID *string `json:"voidResponseId,omitempty"` } -// NewCancelPaymentCardPaymentMethodSpecificOutput constructs a new CancelPaymentCardPaymentMethodSpecificOutput +// NewCancelPaymentCardPaymentMethodSpecificOutput constructs a new CancelPaymentCardPaymentMethodSpecificOutput instance func NewCancelPaymentCardPaymentMethodSpecificOutput() *CancelPaymentCardPaymentMethodSpecificOutput { return &CancelPaymentCardPaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/CancelPaymentMobilePaymentMethodSpecificOutput.go b/apiv1/domain/CancelPaymentMobilePaymentMethodSpecificOutput.go index ca2701e..4dc6eae 100644 --- a/apiv1/domain/CancelPaymentMobilePaymentMethodSpecificOutput.go +++ b/apiv1/domain/CancelPaymentMobilePaymentMethodSpecificOutput.go @@ -8,7 +8,7 @@ type CancelPaymentMobilePaymentMethodSpecificOutput struct { VoidResponseID *string `json:"voidResponseId,omitempty"` } -// NewCancelPaymentMobilePaymentMethodSpecificOutput constructs a new CancelPaymentMobilePaymentMethodSpecificOutput +// NewCancelPaymentMobilePaymentMethodSpecificOutput constructs a new CancelPaymentMobilePaymentMethodSpecificOutput instance func NewCancelPaymentMobilePaymentMethodSpecificOutput() *CancelPaymentMobilePaymentMethodSpecificOutput { return &CancelPaymentMobilePaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/CancelPaymentResponse.go b/apiv1/domain/CancelPaymentResponse.go index 6679a0f..7b39af4 100644 --- a/apiv1/domain/CancelPaymentResponse.go +++ b/apiv1/domain/CancelPaymentResponse.go @@ -10,7 +10,7 @@ type CancelPaymentResponse struct { Payment *Payment `json:"payment,omitempty"` } -// NewCancelPaymentResponse constructs a new CancelPaymentResponse +// NewCancelPaymentResponse constructs a new CancelPaymentResponse instance func NewCancelPaymentResponse() *CancelPaymentResponse { return &CancelPaymentResponse{} } diff --git a/apiv1/domain/Capture.go b/apiv1/domain/Capture.go index 909c280..925846b 100644 --- a/apiv1/domain/Capture.go +++ b/apiv1/domain/Capture.go @@ -11,7 +11,7 @@ type Capture struct { StatusOutput *CaptureStatusOutput `json:"statusOutput,omitempty"` } -// NewCapture constructs a new Capture +// NewCapture constructs a new Capture instance func NewCapture() *Capture { return &Capture{} } diff --git a/apiv1/domain/CaptureOutput.go b/apiv1/domain/CaptureOutput.go index 1804a47..afde220 100644 --- a/apiv1/domain/CaptureOutput.go +++ b/apiv1/domain/CaptureOutput.go @@ -22,7 +22,7 @@ type CaptureOutput struct { SepaDirectDebitPaymentMethodSpecificOutput *SepaDirectDebitPaymentMethodSpecificOutput `json:"sepaDirectDebitPaymentMethodSpecificOutput,omitempty"` } -// NewCaptureOutput constructs a new CaptureOutput +// NewCaptureOutput constructs a new CaptureOutput instance func NewCaptureOutput() *CaptureOutput { return &CaptureOutput{} } diff --git a/apiv1/domain/CapturePaymentRequest.go b/apiv1/domain/CapturePaymentRequest.go index 0322f7d..a4f980f 100644 --- a/apiv1/domain/CapturePaymentRequest.go +++ b/apiv1/domain/CapturePaymentRequest.go @@ -9,7 +9,7 @@ type CapturePaymentRequest struct { IsFinal *bool `json:"isFinal,omitempty"` } -// NewCapturePaymentRequest constructs a new CapturePaymentRequest +// NewCapturePaymentRequest constructs a new CapturePaymentRequest instance func NewCapturePaymentRequest() *CapturePaymentRequest { return &CapturePaymentRequest{} } diff --git a/apiv1/domain/CaptureResponse.go b/apiv1/domain/CaptureResponse.go index 0beb5ae..5775383 100644 --- a/apiv1/domain/CaptureResponse.go +++ b/apiv1/domain/CaptureResponse.go @@ -11,7 +11,7 @@ type CaptureResponse struct { StatusOutput *CaptureStatusOutput `json:"statusOutput,omitempty"` } -// NewCaptureResponse constructs a new CaptureResponse +// NewCaptureResponse constructs a new CaptureResponse instance func NewCaptureResponse() *CaptureResponse { return &CaptureResponse{} } diff --git a/apiv1/domain/CaptureStatusOutput.go b/apiv1/domain/CaptureStatusOutput.go index 6243060..2992a72 100644 --- a/apiv1/domain/CaptureStatusOutput.go +++ b/apiv1/domain/CaptureStatusOutput.go @@ -10,7 +10,7 @@ type CaptureStatusOutput struct { StatusCode *int32 `json:"statusCode,omitempty"` } -// NewCaptureStatusOutput constructs a new CaptureStatusOutput +// NewCaptureStatusOutput constructs a new CaptureStatusOutput instance func NewCaptureStatusOutput() *CaptureStatusOutput { return &CaptureStatusOutput{} } diff --git a/apiv1/domain/CapturesResponse.go b/apiv1/domain/CapturesResponse.go index 7e3fe7e..1d818d8 100644 --- a/apiv1/domain/CapturesResponse.go +++ b/apiv1/domain/CapturesResponse.go @@ -8,7 +8,7 @@ type CapturesResponse struct { Captures *[]Capture `json:"captures,omitempty"` } -// NewCapturesResponse constructs a new CapturesResponse +// NewCapturesResponse constructs a new CapturesResponse instance func NewCapturesResponse() *CapturesResponse { return &CapturesResponse{} } diff --git a/apiv1/domain/Card.go b/apiv1/domain/Card.go index 7b79466..f3b8e42 100644 --- a/apiv1/domain/Card.go +++ b/apiv1/domain/Card.go @@ -13,7 +13,7 @@ type Card struct { PartialPin *string `json:"partialPin,omitempty"` } -// NewCard constructs a new Card +// NewCard constructs a new Card instance func NewCard() *Card { return &Card{} } diff --git a/apiv1/domain/CardEssentials.go b/apiv1/domain/CardEssentials.go index 39a4473..3ca9e68 100644 --- a/apiv1/domain/CardEssentials.go +++ b/apiv1/domain/CardEssentials.go @@ -10,7 +10,7 @@ type CardEssentials struct { ExpiryDate *string `json:"expiryDate,omitempty"` } -// NewCardEssentials constructs a new CardEssentials +// NewCardEssentials constructs a new CardEssentials instance func NewCardEssentials() *CardEssentials { return &CardEssentials{} } diff --git a/apiv1/domain/CardFraudResults.go b/apiv1/domain/CardFraudResults.go index eac3105..b9c3e9c 100644 --- a/apiv1/domain/CardFraudResults.go +++ b/apiv1/domain/CardFraudResults.go @@ -14,7 +14,7 @@ type CardFraudResults struct { RetailDecisions *FraudResultsRetailDecisions `json:"retailDecisions,omitempty"` } -// NewCardFraudResults constructs a new CardFraudResults +// NewCardFraudResults constructs a new CardFraudResults instance func NewCardFraudResults() *CardFraudResults { return &CardFraudResults{} } diff --git a/apiv1/domain/CardPaymentMethodSpecificInput.go b/apiv1/domain/CardPaymentMethodSpecificInput.go index 12a5b69..d911cc4 100644 --- a/apiv1/domain/CardPaymentMethodSpecificInput.go +++ b/apiv1/domain/CardPaymentMethodSpecificInput.go @@ -35,7 +35,7 @@ type CardPaymentMethodSpecificInput struct { UnscheduledCardOnFileSequenceIndicator *string `json:"unscheduledCardOnFileSequenceIndicator,omitempty"` } -// NewCardPaymentMethodSpecificInput constructs a new CardPaymentMethodSpecificInput +// NewCardPaymentMethodSpecificInput constructs a new CardPaymentMethodSpecificInput instance func NewCardPaymentMethodSpecificInput() *CardPaymentMethodSpecificInput { return &CardPaymentMethodSpecificInput{} } diff --git a/apiv1/domain/CardPaymentMethodSpecificInputBase.go b/apiv1/domain/CardPaymentMethodSpecificInputBase.go index 22f2dc8..6d43394 100644 --- a/apiv1/domain/CardPaymentMethodSpecificInputBase.go +++ b/apiv1/domain/CardPaymentMethodSpecificInputBase.go @@ -27,7 +27,7 @@ type CardPaymentMethodSpecificInputBase struct { UnscheduledCardOnFileSequenceIndicator *string `json:"unscheduledCardOnFileSequenceIndicator,omitempty"` } -// NewCardPaymentMethodSpecificInputBase constructs a new CardPaymentMethodSpecificInputBase +// NewCardPaymentMethodSpecificInputBase constructs a new CardPaymentMethodSpecificInputBase instance func NewCardPaymentMethodSpecificInputBase() *CardPaymentMethodSpecificInputBase { return &CardPaymentMethodSpecificInputBase{} } diff --git a/apiv1/domain/CardPaymentMethodSpecificOutput.go b/apiv1/domain/CardPaymentMethodSpecificOutput.go index 5f596a2..bcfae59 100644 --- a/apiv1/domain/CardPaymentMethodSpecificOutput.go +++ b/apiv1/domain/CardPaymentMethodSpecificOutput.go @@ -15,7 +15,7 @@ type CardPaymentMethodSpecificOutput struct { Token *string `json:"token,omitempty"` } -// NewCardPaymentMethodSpecificOutput constructs a new CardPaymentMethodSpecificOutput +// NewCardPaymentMethodSpecificOutput constructs a new CardPaymentMethodSpecificOutput instance func NewCardPaymentMethodSpecificOutput() *CardPaymentMethodSpecificOutput { return &CardPaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/CardPayoutMethodSpecificInput.go b/apiv1/domain/CardPayoutMethodSpecificInput.go index 4110d63..af7fb9f 100644 --- a/apiv1/domain/CardPayoutMethodSpecificInput.go +++ b/apiv1/domain/CardPayoutMethodSpecificInput.go @@ -11,7 +11,7 @@ type CardPayoutMethodSpecificInput struct { Token *string `json:"token,omitempty"` } -// NewCardPayoutMethodSpecificInput constructs a new CardPayoutMethodSpecificInput +// NewCardPayoutMethodSpecificInput constructs a new CardPayoutMethodSpecificInput instance func NewCardPayoutMethodSpecificInput() *CardPayoutMethodSpecificInput { return &CardPayoutMethodSpecificInput{} } diff --git a/apiv1/domain/CardRecurrenceDetails.go b/apiv1/domain/CardRecurrenceDetails.go index 3ad7919..97a3cc6 100644 --- a/apiv1/domain/CardRecurrenceDetails.go +++ b/apiv1/domain/CardRecurrenceDetails.go @@ -10,7 +10,7 @@ type CardRecurrenceDetails struct { RecurringPaymentSequenceIndicator *string `json:"recurringPaymentSequenceIndicator,omitempty"` } -// NewCardRecurrenceDetails constructs a new CardRecurrenceDetails +// NewCardRecurrenceDetails constructs a new CardRecurrenceDetails instance func NewCardRecurrenceDetails() *CardRecurrenceDetails { return &CardRecurrenceDetails{} } diff --git a/apiv1/domain/CardWithoutCvv.go b/apiv1/domain/CardWithoutCvv.go index c637bc4..34e72de 100644 --- a/apiv1/domain/CardWithoutCvv.go +++ b/apiv1/domain/CardWithoutCvv.go @@ -11,7 +11,7 @@ type CardWithoutCvv struct { IssueNumber *string `json:"issueNumber,omitempty"` } -// NewCardWithoutCvv constructs a new CardWithoutCvv +// NewCardWithoutCvv constructs a new CardWithoutCvv instance func NewCardWithoutCvv() *CardWithoutCvv { return &CardWithoutCvv{} } diff --git a/apiv1/domain/CashPaymentMethodSpecificInput.go b/apiv1/domain/CashPaymentMethodSpecificInput.go index 7362d79..1843483 100644 --- a/apiv1/domain/CashPaymentMethodSpecificInput.go +++ b/apiv1/domain/CashPaymentMethodSpecificInput.go @@ -16,7 +16,7 @@ type CashPaymentMethodSpecificInput struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewCashPaymentMethodSpecificInput constructs a new CashPaymentMethodSpecificInput +// NewCashPaymentMethodSpecificInput constructs a new CashPaymentMethodSpecificInput instance func NewCashPaymentMethodSpecificInput() *CashPaymentMethodSpecificInput { return &CashPaymentMethodSpecificInput{} } diff --git a/apiv1/domain/CashPaymentMethodSpecificInputBase.go b/apiv1/domain/CashPaymentMethodSpecificInputBase.go index 0a42ed5..9abd1b8 100644 --- a/apiv1/domain/CashPaymentMethodSpecificInputBase.go +++ b/apiv1/domain/CashPaymentMethodSpecificInputBase.go @@ -8,7 +8,7 @@ type CashPaymentMethodSpecificInputBase struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewCashPaymentMethodSpecificInputBase constructs a new CashPaymentMethodSpecificInputBase +// NewCashPaymentMethodSpecificInputBase constructs a new CashPaymentMethodSpecificInputBase instance func NewCashPaymentMethodSpecificInputBase() *CashPaymentMethodSpecificInputBase { return &CashPaymentMethodSpecificInputBase{} } diff --git a/apiv1/domain/CashPaymentMethodSpecificOutput.go b/apiv1/domain/CashPaymentMethodSpecificOutput.go index 24f0188..af90b8a 100644 --- a/apiv1/domain/CashPaymentMethodSpecificOutput.go +++ b/apiv1/domain/CashPaymentMethodSpecificOutput.go @@ -9,7 +9,7 @@ type CashPaymentMethodSpecificOutput struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewCashPaymentMethodSpecificOutput constructs a new CashPaymentMethodSpecificOutput +// NewCashPaymentMethodSpecificOutput constructs a new CashPaymentMethodSpecificOutput instance func NewCashPaymentMethodSpecificOutput() *CashPaymentMethodSpecificOutput { return &CashPaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/CashPaymentProduct1503SpecificInput.go b/apiv1/domain/CashPaymentProduct1503SpecificInput.go index 3b544af..ceb12e7 100644 --- a/apiv1/domain/CashPaymentProduct1503SpecificInput.go +++ b/apiv1/domain/CashPaymentProduct1503SpecificInput.go @@ -11,7 +11,7 @@ type CashPaymentProduct1503SpecificInput struct { ReturnURL *string `json:"returnUrl,omitempty"` } -// NewCashPaymentProduct1503SpecificInput constructs a new CashPaymentProduct1503SpecificInput +// NewCashPaymentProduct1503SpecificInput constructs a new CashPaymentProduct1503SpecificInput instance func NewCashPaymentProduct1503SpecificInput() *CashPaymentProduct1503SpecificInput { return &CashPaymentProduct1503SpecificInput{} } diff --git a/apiv1/domain/CashPaymentProduct1504SpecificInput.go b/apiv1/domain/CashPaymentProduct1504SpecificInput.go index 752e058..d09f450 100644 --- a/apiv1/domain/CashPaymentProduct1504SpecificInput.go +++ b/apiv1/domain/CashPaymentProduct1504SpecificInput.go @@ -8,7 +8,7 @@ type CashPaymentProduct1504SpecificInput struct { ReturnURL *string `json:"returnUrl,omitempty"` } -// NewCashPaymentProduct1504SpecificInput constructs a new CashPaymentProduct1504SpecificInput +// NewCashPaymentProduct1504SpecificInput constructs a new CashPaymentProduct1504SpecificInput instance func NewCashPaymentProduct1504SpecificInput() *CashPaymentProduct1504SpecificInput { return &CashPaymentProduct1504SpecificInput{} } diff --git a/apiv1/domain/CashPaymentProduct1521SpecificInput.go b/apiv1/domain/CashPaymentProduct1521SpecificInput.go index 3d0e969..b8ab9db 100644 --- a/apiv1/domain/CashPaymentProduct1521SpecificInput.go +++ b/apiv1/domain/CashPaymentProduct1521SpecificInput.go @@ -8,7 +8,7 @@ type CashPaymentProduct1521SpecificInput struct { ReturnURL *string `json:"returnUrl,omitempty"` } -// NewCashPaymentProduct1521SpecificInput constructs a new CashPaymentProduct1521SpecificInput +// NewCashPaymentProduct1521SpecificInput constructs a new CashPaymentProduct1521SpecificInput instance func NewCashPaymentProduct1521SpecificInput() *CashPaymentProduct1521SpecificInput { return &CashPaymentProduct1521SpecificInput{} } diff --git a/apiv1/domain/CashPaymentProduct1522SpecificInput.go b/apiv1/domain/CashPaymentProduct1522SpecificInput.go index 9534751..d45610b 100644 --- a/apiv1/domain/CashPaymentProduct1522SpecificInput.go +++ b/apiv1/domain/CashPaymentProduct1522SpecificInput.go @@ -8,7 +8,7 @@ type CashPaymentProduct1522SpecificInput struct { ReturnURL *string `json:"returnUrl,omitempty"` } -// NewCashPaymentProduct1522SpecificInput constructs a new CashPaymentProduct1522SpecificInput +// NewCashPaymentProduct1522SpecificInput constructs a new CashPaymentProduct1522SpecificInput instance func NewCashPaymentProduct1522SpecificInput() *CashPaymentProduct1522SpecificInput { return &CashPaymentProduct1522SpecificInput{} } diff --git a/apiv1/domain/CashPaymentProduct1523SpecificInput.go b/apiv1/domain/CashPaymentProduct1523SpecificInput.go index e7d4383..b71b155 100644 --- a/apiv1/domain/CashPaymentProduct1523SpecificInput.go +++ b/apiv1/domain/CashPaymentProduct1523SpecificInput.go @@ -8,7 +8,7 @@ type CashPaymentProduct1523SpecificInput struct { ReturnURL *string `json:"returnUrl,omitempty"` } -// NewCashPaymentProduct1523SpecificInput constructs a new CashPaymentProduct1523SpecificInput +// NewCashPaymentProduct1523SpecificInput constructs a new CashPaymentProduct1523SpecificInput instance func NewCashPaymentProduct1523SpecificInput() *CashPaymentProduct1523SpecificInput { return &CashPaymentProduct1523SpecificInput{} } diff --git a/apiv1/domain/CashPaymentProduct1524SpecificInput.go b/apiv1/domain/CashPaymentProduct1524SpecificInput.go index 34f2620..f1922a1 100644 --- a/apiv1/domain/CashPaymentProduct1524SpecificInput.go +++ b/apiv1/domain/CashPaymentProduct1524SpecificInput.go @@ -8,7 +8,7 @@ type CashPaymentProduct1524SpecificInput struct { ReturnURL *string `json:"returnUrl,omitempty"` } -// NewCashPaymentProduct1524SpecificInput constructs a new CashPaymentProduct1524SpecificInput +// NewCashPaymentProduct1524SpecificInput constructs a new CashPaymentProduct1524SpecificInput instance func NewCashPaymentProduct1524SpecificInput() *CashPaymentProduct1524SpecificInput { return &CashPaymentProduct1524SpecificInput{} } diff --git a/apiv1/domain/CashPaymentProduct1526SpecificInput.go b/apiv1/domain/CashPaymentProduct1526SpecificInput.go index 6d2a1a5..96d29b3 100644 --- a/apiv1/domain/CashPaymentProduct1526SpecificInput.go +++ b/apiv1/domain/CashPaymentProduct1526SpecificInput.go @@ -8,7 +8,7 @@ type CashPaymentProduct1526SpecificInput struct { ReturnURL *string `json:"returnUrl,omitempty"` } -// NewCashPaymentProduct1526SpecificInput constructs a new CashPaymentProduct1526SpecificInput +// NewCashPaymentProduct1526SpecificInput constructs a new CashPaymentProduct1526SpecificInput instance func NewCashPaymentProduct1526SpecificInput() *CashPaymentProduct1526SpecificInput { return &CashPaymentProduct1526SpecificInput{} } diff --git a/apiv1/domain/CompanyInformation.go b/apiv1/domain/CompanyInformation.go index 4e0e0ae..340534d 100644 --- a/apiv1/domain/CompanyInformation.go +++ b/apiv1/domain/CompanyInformation.go @@ -9,7 +9,7 @@ type CompanyInformation struct { VatNumber *string `json:"vatNumber,omitempty"` } -// NewCompanyInformation constructs a new CompanyInformation +// NewCompanyInformation constructs a new CompanyInformation instance func NewCompanyInformation() *CompanyInformation { return &CompanyInformation{} } diff --git a/apiv1/domain/CompletePaymentCardPaymentMethodSpecificInput.go b/apiv1/domain/CompletePaymentCardPaymentMethodSpecificInput.go index bd6f774..99909b7 100644 --- a/apiv1/domain/CompletePaymentCardPaymentMethodSpecificInput.go +++ b/apiv1/domain/CompletePaymentCardPaymentMethodSpecificInput.go @@ -8,7 +8,7 @@ type CompletePaymentCardPaymentMethodSpecificInput struct { Card *CardWithoutCvv `json:"card,omitempty"` } -// NewCompletePaymentCardPaymentMethodSpecificInput constructs a new CompletePaymentCardPaymentMethodSpecificInput +// NewCompletePaymentCardPaymentMethodSpecificInput constructs a new CompletePaymentCardPaymentMethodSpecificInput instance func NewCompletePaymentCardPaymentMethodSpecificInput() *CompletePaymentCardPaymentMethodSpecificInput { return &CompletePaymentCardPaymentMethodSpecificInput{} } diff --git a/apiv1/domain/CompletePaymentRequest.go b/apiv1/domain/CompletePaymentRequest.go index cbe0533..92c65ab 100644 --- a/apiv1/domain/CompletePaymentRequest.go +++ b/apiv1/domain/CompletePaymentRequest.go @@ -10,7 +10,7 @@ type CompletePaymentRequest struct { Order *Order `json:"order,omitempty"` } -// NewCompletePaymentRequest constructs a new CompletePaymentRequest +// NewCompletePaymentRequest constructs a new CompletePaymentRequest instance func NewCompletePaymentRequest() *CompletePaymentRequest { return &CompletePaymentRequest{} } diff --git a/apiv1/domain/CompletePaymentResponse.go b/apiv1/domain/CompletePaymentResponse.go index 154b7f2..be87e3c 100644 --- a/apiv1/domain/CompletePaymentResponse.go +++ b/apiv1/domain/CompletePaymentResponse.go @@ -10,7 +10,7 @@ type CompletePaymentResponse struct { Payment *Payment `json:"payment,omitempty"` } -// NewCompletePaymentResponse constructs a new CompletePaymentResponse +// NewCompletePaymentResponse constructs a new CompletePaymentResponse instance func NewCompletePaymentResponse() *CompletePaymentResponse { return &CompletePaymentResponse{} } diff --git a/apiv1/domain/ContactDetails.go b/apiv1/domain/ContactDetails.go index 5c4d5f7..6724e37 100644 --- a/apiv1/domain/ContactDetails.go +++ b/apiv1/domain/ContactDetails.go @@ -13,7 +13,7 @@ type ContactDetails struct { WorkPhoneNumber *string `json:"workPhoneNumber,omitempty"` } -// NewContactDetails constructs a new ContactDetails +// NewContactDetails constructs a new ContactDetails instance func NewContactDetails() *ContactDetails { return &ContactDetails{} } diff --git a/apiv1/domain/ContactDetailsBase.go b/apiv1/domain/ContactDetailsBase.go index b8bcede..f8d7173 100644 --- a/apiv1/domain/ContactDetailsBase.go +++ b/apiv1/domain/ContactDetailsBase.go @@ -9,7 +9,7 @@ type ContactDetailsBase struct { EmailMessageType *string `json:"emailMessageType,omitempty"` } -// NewContactDetailsBase constructs a new ContactDetailsBase +// NewContactDetailsBase constructs a new ContactDetailsBase instance func NewContactDetailsBase() *ContactDetailsBase { return &ContactDetailsBase{} } diff --git a/apiv1/domain/ContactDetailsRiskAssessment.go b/apiv1/domain/ContactDetailsRiskAssessment.go index e7d41e0..6678c55 100644 --- a/apiv1/domain/ContactDetailsRiskAssessment.go +++ b/apiv1/domain/ContactDetailsRiskAssessment.go @@ -8,7 +8,7 @@ type ContactDetailsRiskAssessment struct { EmailAddress *string `json:"emailAddress,omitempty"` } -// NewContactDetailsRiskAssessment constructs a new ContactDetailsRiskAssessment +// NewContactDetailsRiskAssessment constructs a new ContactDetailsRiskAssessment instance func NewContactDetailsRiskAssessment() *ContactDetailsRiskAssessment { return &ContactDetailsRiskAssessment{} } diff --git a/apiv1/domain/ContactDetailsToken.go b/apiv1/domain/ContactDetailsToken.go index 402597d..c588181 100644 --- a/apiv1/domain/ContactDetailsToken.go +++ b/apiv1/domain/ContactDetailsToken.go @@ -9,7 +9,7 @@ type ContactDetailsToken struct { EmailMessageType *string `json:"emailMessageType,omitempty"` } -// NewContactDetailsToken constructs a new ContactDetailsToken +// NewContactDetailsToken constructs a new ContactDetailsToken instance func NewContactDetailsToken() *ContactDetailsToken { return &ContactDetailsToken{} } diff --git a/apiv1/domain/ConvertAmount.go b/apiv1/domain/ConvertAmount.go index 5a99fdc..bab5be7 100644 --- a/apiv1/domain/ConvertAmount.go +++ b/apiv1/domain/ConvertAmount.go @@ -8,7 +8,7 @@ type ConvertAmount struct { ConvertedAmount *int64 `json:"convertedAmount,omitempty"` } -// NewConvertAmount constructs a new ConvertAmount +// NewConvertAmount constructs a new ConvertAmount instance func NewConvertAmount() *ConvertAmount { return &ConvertAmount{} } diff --git a/apiv1/domain/CreateDisputeRequest.go b/apiv1/domain/CreateDisputeRequest.go index 8906687..5cb727f 100644 --- a/apiv1/domain/CreateDisputeRequest.go +++ b/apiv1/domain/CreateDisputeRequest.go @@ -12,7 +12,7 @@ type CreateDisputeRequest struct { RequestMessage *string `json:"requestMessage,omitempty"` } -// NewCreateDisputeRequest constructs a new CreateDisputeRequest +// NewCreateDisputeRequest constructs a new CreateDisputeRequest instance func NewCreateDisputeRequest() *CreateDisputeRequest { return &CreateDisputeRequest{} } diff --git a/apiv1/domain/CreateHostedCheckoutRequest.go b/apiv1/domain/CreateHostedCheckoutRequest.go index 8af5392..b3588b3 100644 --- a/apiv1/domain/CreateHostedCheckoutRequest.go +++ b/apiv1/domain/CreateHostedCheckoutRequest.go @@ -18,7 +18,7 @@ type CreateHostedCheckoutRequest struct { SepaDirectDebitPaymentMethodSpecificInput *SepaDirectDebitPaymentMethodSpecificInputBase `json:"sepaDirectDebitPaymentMethodSpecificInput,omitempty"` } -// NewCreateHostedCheckoutRequest constructs a new CreateHostedCheckoutRequest +// NewCreateHostedCheckoutRequest constructs a new CreateHostedCheckoutRequest instance func NewCreateHostedCheckoutRequest() *CreateHostedCheckoutRequest { return &CreateHostedCheckoutRequest{} } diff --git a/apiv1/domain/CreateHostedCheckoutResponse.go b/apiv1/domain/CreateHostedCheckoutResponse.go index 744e720..adb4e99 100644 --- a/apiv1/domain/CreateHostedCheckoutResponse.go +++ b/apiv1/domain/CreateHostedCheckoutResponse.go @@ -12,7 +12,7 @@ type CreateHostedCheckoutResponse struct { PartialRedirectURL *string `json:"partialRedirectUrl,omitempty"` } -// NewCreateHostedCheckoutResponse constructs a new CreateHostedCheckoutResponse +// NewCreateHostedCheckoutResponse constructs a new CreateHostedCheckoutResponse instance func NewCreateHostedCheckoutResponse() *CreateHostedCheckoutResponse { return &CreateHostedCheckoutResponse{} } diff --git a/apiv1/domain/CreateHostedMandateManagementRequest.go b/apiv1/domain/CreateHostedMandateManagementRequest.go index 89f39e3..2bdd17e 100644 --- a/apiv1/domain/CreateHostedMandateManagementRequest.go +++ b/apiv1/domain/CreateHostedMandateManagementRequest.go @@ -9,7 +9,7 @@ type CreateHostedMandateManagementRequest struct { HostedMandateManagementSpecificInput *HostedMandateManagementSpecificInput `json:"hostedMandateManagementSpecificInput,omitempty"` } -// NewCreateHostedMandateManagementRequest constructs a new CreateHostedMandateManagementRequest +// NewCreateHostedMandateManagementRequest constructs a new CreateHostedMandateManagementRequest instance func NewCreateHostedMandateManagementRequest() *CreateHostedMandateManagementRequest { return &CreateHostedMandateManagementRequest{} } diff --git a/apiv1/domain/CreateHostedMandateManagementResponse.go b/apiv1/domain/CreateHostedMandateManagementResponse.go index b17a955..08ef001 100644 --- a/apiv1/domain/CreateHostedMandateManagementResponse.go +++ b/apiv1/domain/CreateHostedMandateManagementResponse.go @@ -10,7 +10,7 @@ type CreateHostedMandateManagementResponse struct { PartialRedirectURL *string `json:"partialRedirectUrl,omitempty"` } -// NewCreateHostedMandateManagementResponse constructs a new CreateHostedMandateManagementResponse +// NewCreateHostedMandateManagementResponse constructs a new CreateHostedMandateManagementResponse instance func NewCreateHostedMandateManagementResponse() *CreateHostedMandateManagementResponse { return &CreateHostedMandateManagementResponse{} } diff --git a/apiv1/domain/CreateMandateBase.go b/apiv1/domain/CreateMandateBase.go index fadb3da..8894f18 100644 --- a/apiv1/domain/CreateMandateBase.go +++ b/apiv1/domain/CreateMandateBase.go @@ -14,7 +14,7 @@ type CreateMandateBase struct { UniqueMandateReference *string `json:"uniqueMandateReference,omitempty"` } -// NewCreateMandateBase constructs a new CreateMandateBase +// NewCreateMandateBase constructs a new CreateMandateBase instance func NewCreateMandateBase() *CreateMandateBase { return &CreateMandateBase{} } diff --git a/apiv1/domain/CreateMandateRequest.go b/apiv1/domain/CreateMandateRequest.go index f4852c1..11f0d20 100644 --- a/apiv1/domain/CreateMandateRequest.go +++ b/apiv1/domain/CreateMandateRequest.go @@ -15,7 +15,7 @@ type CreateMandateRequest struct { UniqueMandateReference *string `json:"uniqueMandateReference,omitempty"` } -// NewCreateMandateRequest constructs a new CreateMandateRequest +// NewCreateMandateRequest constructs a new CreateMandateRequest instance func NewCreateMandateRequest() *CreateMandateRequest { return &CreateMandateRequest{} } diff --git a/apiv1/domain/CreateMandateResponse.go b/apiv1/domain/CreateMandateResponse.go index 22bcf11..016e2bb 100644 --- a/apiv1/domain/CreateMandateResponse.go +++ b/apiv1/domain/CreateMandateResponse.go @@ -9,7 +9,7 @@ type CreateMandateResponse struct { MerchantAction *MandateMerchantAction `json:"merchantAction,omitempty"` } -// NewCreateMandateResponse constructs a new CreateMandateResponse +// NewCreateMandateResponse constructs a new CreateMandateResponse instance func NewCreateMandateResponse() *CreateMandateResponse { return &CreateMandateResponse{} } diff --git a/apiv1/domain/CreateMandateWithReturnURL.go b/apiv1/domain/CreateMandateWithReturnURL.go index cd8b8fe..d507118 100644 --- a/apiv1/domain/CreateMandateWithReturnURL.go +++ b/apiv1/domain/CreateMandateWithReturnURL.go @@ -15,7 +15,7 @@ type CreateMandateWithReturnURL struct { UniqueMandateReference *string `json:"uniqueMandateReference,omitempty"` } -// NewCreateMandateWithReturnURL constructs a new CreateMandateWithReturnURL +// NewCreateMandateWithReturnURL constructs a new CreateMandateWithReturnURL instance func NewCreateMandateWithReturnURL() *CreateMandateWithReturnURL { return &CreateMandateWithReturnURL{} } diff --git a/apiv1/domain/CreatePaymentProductSessionRequest.go b/apiv1/domain/CreatePaymentProductSessionRequest.go index c317ddf..9b156d9 100644 --- a/apiv1/domain/CreatePaymentProductSessionRequest.go +++ b/apiv1/domain/CreatePaymentProductSessionRequest.go @@ -8,7 +8,7 @@ type CreatePaymentProductSessionRequest struct { PaymentProductSession302SpecificInput *MobilePaymentProductSession302SpecificInput `json:"paymentProductSession302SpecificInput,omitempty"` } -// NewCreatePaymentProductSessionRequest constructs a new CreatePaymentProductSessionRequest +// NewCreatePaymentProductSessionRequest constructs a new CreatePaymentProductSessionRequest instance func NewCreatePaymentProductSessionRequest() *CreatePaymentProductSessionRequest { return &CreatePaymentProductSessionRequest{} } diff --git a/apiv1/domain/CreatePaymentProductSessionResponse.go b/apiv1/domain/CreatePaymentProductSessionResponse.go index b1d77ee..9b7bc88 100644 --- a/apiv1/domain/CreatePaymentProductSessionResponse.go +++ b/apiv1/domain/CreatePaymentProductSessionResponse.go @@ -8,7 +8,7 @@ type CreatePaymentProductSessionResponse struct { PaymentProductSession302SpecificOutput *MobilePaymentProductSession302SpecificOutput `json:"paymentProductSession302SpecificOutput,omitempty"` } -// NewCreatePaymentProductSessionResponse constructs a new CreatePaymentProductSessionResponse +// NewCreatePaymentProductSessionResponse constructs a new CreatePaymentProductSessionResponse instance func NewCreatePaymentProductSessionResponse() *CreatePaymentProductSessionResponse { return &CreatePaymentProductSessionResponse{} } diff --git a/apiv1/domain/CreatePaymentRequest.go b/apiv1/domain/CreatePaymentRequest.go index f6464a2..4869931 100644 --- a/apiv1/domain/CreatePaymentRequest.go +++ b/apiv1/domain/CreatePaymentRequest.go @@ -20,7 +20,7 @@ type CreatePaymentRequest struct { SepaDirectDebitPaymentMethodSpecificInput *SepaDirectDebitPaymentMethodSpecificInput `json:"sepaDirectDebitPaymentMethodSpecificInput,omitempty"` } -// NewCreatePaymentRequest constructs a new CreatePaymentRequest +// NewCreatePaymentRequest constructs a new CreatePaymentRequest instance func NewCreatePaymentRequest() *CreatePaymentRequest { return &CreatePaymentRequest{} } diff --git a/apiv1/domain/CreatePaymentResponse.go b/apiv1/domain/CreatePaymentResponse.go index e50e5be..7255b9c 100644 --- a/apiv1/domain/CreatePaymentResponse.go +++ b/apiv1/domain/CreatePaymentResponse.go @@ -10,7 +10,7 @@ type CreatePaymentResponse struct { Payment *Payment `json:"payment,omitempty"` } -// NewCreatePaymentResponse constructs a new CreatePaymentResponse +// NewCreatePaymentResponse constructs a new CreatePaymentResponse instance func NewCreatePaymentResponse() *CreatePaymentResponse { return &CreatePaymentResponse{} } diff --git a/apiv1/domain/CreatePaymentResult.go b/apiv1/domain/CreatePaymentResult.go index bbe8c96..c1f230c 100644 --- a/apiv1/domain/CreatePaymentResult.go +++ b/apiv1/domain/CreatePaymentResult.go @@ -10,7 +10,7 @@ type CreatePaymentResult struct { Payment *Payment `json:"payment,omitempty"` } -// NewCreatePaymentResult constructs a new CreatePaymentResult +// NewCreatePaymentResult constructs a new CreatePaymentResult instance func NewCreatePaymentResult() *CreatePaymentResult { return &CreatePaymentResult{} } diff --git a/apiv1/domain/CreatePayoutRequest.go b/apiv1/domain/CreatePayoutRequest.go index a6e1167..30bcf4a 100644 --- a/apiv1/domain/CreatePayoutRequest.go +++ b/apiv1/domain/CreatePayoutRequest.go @@ -27,7 +27,7 @@ type CreatePayoutRequest struct { SwiftCode *string `json:"swiftCode,omitempty"` } -// NewCreatePayoutRequest constructs a new CreatePayoutRequest +// NewCreatePayoutRequest constructs a new CreatePayoutRequest instance func NewCreatePayoutRequest() *CreatePayoutRequest { return &CreatePayoutRequest{} } diff --git a/apiv1/domain/CreateTokenRequest.go b/apiv1/domain/CreateTokenRequest.go index 4504150..b5419a5 100644 --- a/apiv1/domain/CreateTokenRequest.go +++ b/apiv1/domain/CreateTokenRequest.go @@ -13,7 +13,7 @@ type CreateTokenRequest struct { SepaDirectDebit *TokenSepaDirectDebitWithoutCreditor `json:"sepaDirectDebit,omitempty"` } -// NewCreateTokenRequest constructs a new CreateTokenRequest +// NewCreateTokenRequest constructs a new CreateTokenRequest instance func NewCreateTokenRequest() *CreateTokenRequest { return &CreateTokenRequest{} } diff --git a/apiv1/domain/CreateTokenResponse.go b/apiv1/domain/CreateTokenResponse.go index 69e98bc..d5e9338 100644 --- a/apiv1/domain/CreateTokenResponse.go +++ b/apiv1/domain/CreateTokenResponse.go @@ -10,7 +10,7 @@ type CreateTokenResponse struct { Token *string `json:"token,omitempty"` } -// NewCreateTokenResponse constructs a new CreateTokenResponse +// NewCreateTokenResponse constructs a new CreateTokenResponse instance func NewCreateTokenResponse() *CreateTokenResponse { return &CreateTokenResponse{} } diff --git a/apiv1/domain/CreatedPaymentOutput.go b/apiv1/domain/CreatedPaymentOutput.go index d845f54..cda84c6 100644 --- a/apiv1/domain/CreatedPaymentOutput.go +++ b/apiv1/domain/CreatedPaymentOutput.go @@ -15,7 +15,7 @@ type CreatedPaymentOutput struct { Tokens *string `json:"tokens,omitempty"` } -// NewCreatedPaymentOutput constructs a new CreatedPaymentOutput +// NewCreatedPaymentOutput constructs a new CreatedPaymentOutput instance func NewCreatedPaymentOutput() *CreatedPaymentOutput { return &CreatedPaymentOutput{} } diff --git a/apiv1/domain/Creditor.go b/apiv1/domain/Creditor.go index c26ffcc..077c5bc 100644 --- a/apiv1/domain/Creditor.go +++ b/apiv1/domain/Creditor.go @@ -18,7 +18,7 @@ type Creditor struct { Zip *string `json:"zip,omitempty"` } -// NewCreditor constructs a new Creditor +// NewCreditor constructs a new Creditor instance func NewCreditor() *Creditor { return &Creditor{} } diff --git a/apiv1/domain/Customer.go b/apiv1/domain/Customer.go index 9af33e1..46b0f7e 100644 --- a/apiv1/domain/Customer.go +++ b/apiv1/domain/Customer.go @@ -23,7 +23,7 @@ type Customer struct { VatNumber *string `json:"vatNumber,omitempty"` } -// NewCustomer constructs a new Customer +// NewCustomer constructs a new Customer instance func NewCustomer() *Customer { return &Customer{} } diff --git a/apiv1/domain/CustomerAccount.go b/apiv1/domain/CustomerAccount.go index ba168f0..201668e 100644 --- a/apiv1/domain/CustomerAccount.go +++ b/apiv1/domain/CustomerAccount.go @@ -19,7 +19,7 @@ type CustomerAccount struct { PaymentActivity *CustomerPaymentActivity `json:"paymentActivity,omitempty"` } -// NewCustomerAccount constructs a new CustomerAccount +// NewCustomerAccount constructs a new CustomerAccount instance func NewCustomerAccount() *CustomerAccount { return &CustomerAccount{} } diff --git a/apiv1/domain/CustomerAccountAuthentication.go b/apiv1/domain/CustomerAccountAuthentication.go index 4b85d04..6530f82 100644 --- a/apiv1/domain/CustomerAccountAuthentication.go +++ b/apiv1/domain/CustomerAccountAuthentication.go @@ -10,7 +10,7 @@ type CustomerAccountAuthentication struct { UtcTimestamp *string `json:"utcTimestamp,omitempty"` } -// NewCustomerAccountAuthentication constructs a new CustomerAccountAuthentication +// NewCustomerAccountAuthentication constructs a new CustomerAccountAuthentication instance func NewCustomerAccountAuthentication() *CustomerAccountAuthentication { return &CustomerAccountAuthentication{} } diff --git a/apiv1/domain/CustomerAccountRiskAssessment.go b/apiv1/domain/CustomerAccountRiskAssessment.go index b14f970..33c418f 100644 --- a/apiv1/domain/CustomerAccountRiskAssessment.go +++ b/apiv1/domain/CustomerAccountRiskAssessment.go @@ -9,7 +9,7 @@ type CustomerAccountRiskAssessment struct { HasPassword *bool `json:"hasPassword,omitempty"` } -// NewCustomerAccountRiskAssessment constructs a new CustomerAccountRiskAssessment +// NewCustomerAccountRiskAssessment constructs a new CustomerAccountRiskAssessment instance func NewCustomerAccountRiskAssessment() *CustomerAccountRiskAssessment { return &CustomerAccountRiskAssessment{} } diff --git a/apiv1/domain/CustomerApprovePayment.go b/apiv1/domain/CustomerApprovePayment.go index dd3df61..901c923 100644 --- a/apiv1/domain/CustomerApprovePayment.go +++ b/apiv1/domain/CustomerApprovePayment.go @@ -8,7 +8,7 @@ type CustomerApprovePayment struct { AccountType *string `json:"accountType,omitempty"` } -// NewCustomerApprovePayment constructs a new CustomerApprovePayment +// NewCustomerApprovePayment constructs a new CustomerApprovePayment instance func NewCustomerApprovePayment() *CustomerApprovePayment { return &CustomerApprovePayment{} } diff --git a/apiv1/domain/CustomerDevice.go b/apiv1/domain/CustomerDevice.go index b6912af..075fdb5 100644 --- a/apiv1/domain/CustomerDevice.go +++ b/apiv1/domain/CustomerDevice.go @@ -15,7 +15,7 @@ type CustomerDevice struct { UserAgent *string `json:"userAgent,omitempty"` } -// NewCustomerDevice constructs a new CustomerDevice +// NewCustomerDevice constructs a new CustomerDevice instance func NewCustomerDevice() *CustomerDevice { return &CustomerDevice{} } diff --git a/apiv1/domain/CustomerDeviceRiskAssessment.go b/apiv1/domain/CustomerDeviceRiskAssessment.go index eed63d8..66cf6ea 100644 --- a/apiv1/domain/CustomerDeviceRiskAssessment.go +++ b/apiv1/domain/CustomerDeviceRiskAssessment.go @@ -9,7 +9,7 @@ type CustomerDeviceRiskAssessment struct { DeviceFingerprintTransactionID *string `json:"deviceFingerprintTransactionId,omitempty"` } -// NewCustomerDeviceRiskAssessment constructs a new CustomerDeviceRiskAssessment +// NewCustomerDeviceRiskAssessment constructs a new CustomerDeviceRiskAssessment instance func NewCustomerDeviceRiskAssessment() *CustomerDeviceRiskAssessment { return &CustomerDeviceRiskAssessment{} } diff --git a/apiv1/domain/CustomerPaymentActivity.go b/apiv1/domain/CustomerPaymentActivity.go index 1da0dcd..0898fff 100644 --- a/apiv1/domain/CustomerPaymentActivity.go +++ b/apiv1/domain/CustomerPaymentActivity.go @@ -10,7 +10,7 @@ type CustomerPaymentActivity struct { NumberOfPurchasesLast6Months *int32 `json:"numberOfPurchasesLast6Months,omitempty"` } -// NewCustomerPaymentActivity constructs a new CustomerPaymentActivity +// NewCustomerPaymentActivity constructs a new CustomerPaymentActivity instance func NewCustomerPaymentActivity() *CustomerPaymentActivity { return &CustomerPaymentActivity{} } diff --git a/apiv1/domain/CustomerRiskAssessment.go b/apiv1/domain/CustomerRiskAssessment.go index 3886469..e316268 100644 --- a/apiv1/domain/CustomerRiskAssessment.go +++ b/apiv1/domain/CustomerRiskAssessment.go @@ -17,7 +17,7 @@ type CustomerRiskAssessment struct { ShippingAddress *AddressPersonal `json:"shippingAddress,omitempty"` } -// NewCustomerRiskAssessment constructs a new CustomerRiskAssessment +// NewCustomerRiskAssessment constructs a new CustomerRiskAssessment instance func NewCustomerRiskAssessment() *CustomerRiskAssessment { return &CustomerRiskAssessment{} } diff --git a/apiv1/domain/CustomerToken.go b/apiv1/domain/CustomerToken.go index 60c1b7d..ad91db8 100644 --- a/apiv1/domain/CustomerToken.go +++ b/apiv1/domain/CustomerToken.go @@ -13,7 +13,7 @@ type CustomerToken struct { VatNumber *string `json:"vatNumber,omitempty"` } -// NewCustomerToken constructs a new CustomerToken +// NewCustomerToken constructs a new CustomerToken instance func NewCustomerToken() *CustomerToken { return &CustomerToken{} } diff --git a/apiv1/domain/CustomerTokenWithContactDetails.go b/apiv1/domain/CustomerTokenWithContactDetails.go index d512b66..e68b274 100644 --- a/apiv1/domain/CustomerTokenWithContactDetails.go +++ b/apiv1/domain/CustomerTokenWithContactDetails.go @@ -14,7 +14,7 @@ type CustomerTokenWithContactDetails struct { VatNumber *string `json:"vatNumber,omitempty"` } -// NewCustomerTokenWithContactDetails constructs a new CustomerTokenWithContactDetails +// NewCustomerTokenWithContactDetails constructs a new CustomerTokenWithContactDetails instance func NewCustomerTokenWithContactDetails() *CustomerTokenWithContactDetails { return &CustomerTokenWithContactDetails{} } diff --git a/apiv1/domain/Debtor.go b/apiv1/domain/Debtor.go index 634f0d8..c4c95fa 100644 --- a/apiv1/domain/Debtor.go +++ b/apiv1/domain/Debtor.go @@ -18,7 +18,7 @@ type Debtor struct { Zip *string `json:"zip,omitempty"` } -// NewDebtor constructs a new Debtor +// NewDebtor constructs a new Debtor instance func NewDebtor() *Debtor { return &Debtor{} } diff --git a/apiv1/domain/DecryptedPaymentData.go b/apiv1/domain/DecryptedPaymentData.go index ac93f48..75e1ff0 100644 --- a/apiv1/domain/DecryptedPaymentData.go +++ b/apiv1/domain/DecryptedPaymentData.go @@ -16,7 +16,7 @@ type DecryptedPaymentData struct { PaymentMethod *string `json:"paymentMethod,omitempty"` } -// NewDecryptedPaymentData constructs a new DecryptedPaymentData +// NewDecryptedPaymentData constructs a new DecryptedPaymentData instance func NewDecryptedPaymentData() *DecryptedPaymentData { return &DecryptedPaymentData{} } diff --git a/apiv1/domain/DeviceFingerprintDetails.go b/apiv1/domain/DeviceFingerprintDetails.go index 19c0810..f6ac7a5 100644 --- a/apiv1/domain/DeviceFingerprintDetails.go +++ b/apiv1/domain/DeviceFingerprintDetails.go @@ -9,7 +9,7 @@ type DeviceFingerprintDetails struct { RawDeviceFingerprintOutput *string `json:"rawDeviceFingerprintOutput,omitempty"` } -// NewDeviceFingerprintDetails constructs a new DeviceFingerprintDetails +// NewDeviceFingerprintDetails constructs a new DeviceFingerprintDetails instance func NewDeviceFingerprintDetails() *DeviceFingerprintDetails { return &DeviceFingerprintDetails{} } diff --git a/apiv1/domain/DeviceFingerprintRequest.go b/apiv1/domain/DeviceFingerprintRequest.go index e8cba7a..4d73ec8 100644 --- a/apiv1/domain/DeviceFingerprintRequest.go +++ b/apiv1/domain/DeviceFingerprintRequest.go @@ -8,7 +8,7 @@ type DeviceFingerprintRequest struct { CollectorCallback *string `json:"collectorCallback,omitempty"` } -// NewDeviceFingerprintRequest constructs a new DeviceFingerprintRequest +// NewDeviceFingerprintRequest constructs a new DeviceFingerprintRequest instance func NewDeviceFingerprintRequest() *DeviceFingerprintRequest { return &DeviceFingerprintRequest{} } diff --git a/apiv1/domain/DeviceFingerprintResponse.go b/apiv1/domain/DeviceFingerprintResponse.go index aec9387..c5f260b 100644 --- a/apiv1/domain/DeviceFingerprintResponse.go +++ b/apiv1/domain/DeviceFingerprintResponse.go @@ -9,7 +9,7 @@ type DeviceFingerprintResponse struct { HTML *string `json:"html,omitempty"` } -// NewDeviceFingerprintResponse constructs a new DeviceFingerprintResponse +// NewDeviceFingerprintResponse constructs a new DeviceFingerprintResponse instance func NewDeviceFingerprintResponse() *DeviceFingerprintResponse { return &DeviceFingerprintResponse{} } diff --git a/apiv1/domain/DeviceRenderOptions.go b/apiv1/domain/DeviceRenderOptions.go index 721d683..b15cf6d 100644 --- a/apiv1/domain/DeviceRenderOptions.go +++ b/apiv1/domain/DeviceRenderOptions.go @@ -11,7 +11,7 @@ type DeviceRenderOptions struct { SdkUITypes *[]string `json:"sdkUiTypes,omitempty"` } -// NewDeviceRenderOptions constructs a new DeviceRenderOptions +// NewDeviceRenderOptions constructs a new DeviceRenderOptions instance func NewDeviceRenderOptions() *DeviceRenderOptions { return &DeviceRenderOptions{} } diff --git a/apiv1/domain/Directory.go b/apiv1/domain/Directory.go index 2d8b5c9..3376c65 100644 --- a/apiv1/domain/Directory.go +++ b/apiv1/domain/Directory.go @@ -8,7 +8,7 @@ type Directory struct { Entries *[]DirectoryEntry `json:"entries,omitempty"` } -// NewDirectory constructs a new Directory +// NewDirectory constructs a new Directory instance func NewDirectory() *Directory { return &Directory{} } diff --git a/apiv1/domain/DirectoryEntry.go b/apiv1/domain/DirectoryEntry.go index 2a1efcd..cf3d8b4 100644 --- a/apiv1/domain/DirectoryEntry.go +++ b/apiv1/domain/DirectoryEntry.go @@ -11,7 +11,7 @@ type DirectoryEntry struct { IssuerName *string `json:"issuerName,omitempty"` } -// NewDirectoryEntry constructs a new DirectoryEntry +// NewDirectoryEntry constructs a new DirectoryEntry instance func NewDirectoryEntry() *DirectoryEntry { return &DirectoryEntry{} } diff --git a/apiv1/domain/DisplayedData.go b/apiv1/domain/DisplayedData.go index 8bf402f..d786641 100644 --- a/apiv1/domain/DisplayedData.go +++ b/apiv1/domain/DisplayedData.go @@ -10,7 +10,7 @@ type DisplayedData struct { ShowData *[]KeyValuePair `json:"showData,omitempty"` } -// NewDisplayedData constructs a new DisplayedData +// NewDisplayedData constructs a new DisplayedData instance func NewDisplayedData() *DisplayedData { return &DisplayedData{} } diff --git a/apiv1/domain/Dispute.go b/apiv1/domain/Dispute.go index 03ef6c8..ccf77a5 100644 --- a/apiv1/domain/Dispute.go +++ b/apiv1/domain/Dispute.go @@ -12,7 +12,7 @@ type Dispute struct { StatusOutput *DisputeStatusOutput `json:"statusOutput,omitempty"` } -// NewDispute constructs a new Dispute +// NewDispute constructs a new Dispute instance func NewDispute() *Dispute { return &Dispute{} } diff --git a/apiv1/domain/DisputeCreationDetail.go b/apiv1/domain/DisputeCreationDetail.go index 9e2a137..e3cf8d0 100644 --- a/apiv1/domain/DisputeCreationDetail.go +++ b/apiv1/domain/DisputeCreationDetail.go @@ -10,7 +10,7 @@ type DisputeCreationDetail struct { UserName *string `json:"userName,omitempty"` } -// NewDisputeCreationDetail constructs a new DisputeCreationDetail +// NewDisputeCreationDetail constructs a new DisputeCreationDetail instance func NewDisputeCreationDetail() *DisputeCreationDetail { return &DisputeCreationDetail{} } diff --git a/apiv1/domain/DisputeOutput.go b/apiv1/domain/DisputeOutput.go index 9d1b2e4..fca923a 100644 --- a/apiv1/domain/DisputeOutput.go +++ b/apiv1/domain/DisputeOutput.go @@ -16,7 +16,7 @@ type DisputeOutput struct { ResponseMessage *string `json:"responseMessage,omitempty"` } -// NewDisputeOutput constructs a new DisputeOutput +// NewDisputeOutput constructs a new DisputeOutput instance func NewDisputeOutput() *DisputeOutput { return &DisputeOutput{} } diff --git a/apiv1/domain/DisputeReference.go b/apiv1/domain/DisputeReference.go index 704e1ca..25e61c1 100644 --- a/apiv1/domain/DisputeReference.go +++ b/apiv1/domain/DisputeReference.go @@ -12,7 +12,7 @@ type DisputeReference struct { ProviderReference *string `json:"providerReference,omitempty"` } -// NewDisputeReference constructs a new DisputeReference +// NewDisputeReference constructs a new DisputeReference instance func NewDisputeReference() *DisputeReference { return &DisputeReference{} } diff --git a/apiv1/domain/DisputeResponse.go b/apiv1/domain/DisputeResponse.go index a2bcc80..0ecc5f2 100644 --- a/apiv1/domain/DisputeResponse.go +++ b/apiv1/domain/DisputeResponse.go @@ -12,7 +12,7 @@ type DisputeResponse struct { StatusOutput *DisputeStatusOutput `json:"statusOutput,omitempty"` } -// NewDisputeResponse constructs a new DisputeResponse +// NewDisputeResponse constructs a new DisputeResponse instance func NewDisputeResponse() *DisputeResponse { return &DisputeResponse{} } diff --git a/apiv1/domain/DisputeStatusOutput.go b/apiv1/domain/DisputeStatusOutput.go index c7e43b9..fe83cae 100644 --- a/apiv1/domain/DisputeStatusOutput.go +++ b/apiv1/domain/DisputeStatusOutput.go @@ -11,7 +11,7 @@ type DisputeStatusOutput struct { StatusCodeChangeDateTime *string `json:"statusCodeChangeDateTime,omitempty"` } -// NewDisputeStatusOutput constructs a new DisputeStatusOutput +// NewDisputeStatusOutput constructs a new DisputeStatusOutput instance func NewDisputeStatusOutput() *DisputeStatusOutput { return &DisputeStatusOutput{} } diff --git a/apiv1/domain/DisputesResponse.go b/apiv1/domain/DisputesResponse.go index d9053b6..07e0d17 100644 --- a/apiv1/domain/DisputesResponse.go +++ b/apiv1/domain/DisputesResponse.go @@ -8,7 +8,7 @@ type DisputesResponse struct { Disputes *[]Dispute `json:"disputes,omitempty"` } -// NewDisputesResponse constructs a new DisputesResponse +// NewDisputesResponse constructs a new DisputesResponse instance func NewDisputesResponse() *DisputesResponse { return &DisputesResponse{} } diff --git a/apiv1/domain/EInvoicePaymentMethodSpecificInput.go b/apiv1/domain/EInvoicePaymentMethodSpecificInput.go index 11e3387..e701971 100644 --- a/apiv1/domain/EInvoicePaymentMethodSpecificInput.go +++ b/apiv1/domain/EInvoicePaymentMethodSpecificInput.go @@ -11,7 +11,7 @@ type EInvoicePaymentMethodSpecificInput struct { RequiresApproval *bool `json:"requiresApproval,omitempty"` } -// NewEInvoicePaymentMethodSpecificInput constructs a new EInvoicePaymentMethodSpecificInput +// NewEInvoicePaymentMethodSpecificInput constructs a new EInvoicePaymentMethodSpecificInput instance func NewEInvoicePaymentMethodSpecificInput() *EInvoicePaymentMethodSpecificInput { return &EInvoicePaymentMethodSpecificInput{} } diff --git a/apiv1/domain/EInvoicePaymentMethodSpecificInputBase.go b/apiv1/domain/EInvoicePaymentMethodSpecificInputBase.go index 4d0da6d..ce8579d 100644 --- a/apiv1/domain/EInvoicePaymentMethodSpecificInputBase.go +++ b/apiv1/domain/EInvoicePaymentMethodSpecificInputBase.go @@ -9,7 +9,7 @@ type EInvoicePaymentMethodSpecificInputBase struct { RequiresApproval *bool `json:"requiresApproval,omitempty"` } -// NewEInvoicePaymentMethodSpecificInputBase constructs a new EInvoicePaymentMethodSpecificInputBase +// NewEInvoicePaymentMethodSpecificInputBase constructs a new EInvoicePaymentMethodSpecificInputBase instance func NewEInvoicePaymentMethodSpecificInputBase() *EInvoicePaymentMethodSpecificInputBase { return &EInvoicePaymentMethodSpecificInputBase{} } diff --git a/apiv1/domain/EInvoicePaymentMethodSpecificOutput.go b/apiv1/domain/EInvoicePaymentMethodSpecificOutput.go index c8f0baf..4fb687d 100644 --- a/apiv1/domain/EInvoicePaymentMethodSpecificOutput.go +++ b/apiv1/domain/EInvoicePaymentMethodSpecificOutput.go @@ -10,7 +10,7 @@ type EInvoicePaymentMethodSpecificOutput struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewEInvoicePaymentMethodSpecificOutput constructs a new EInvoicePaymentMethodSpecificOutput +// NewEInvoicePaymentMethodSpecificOutput constructs a new EInvoicePaymentMethodSpecificOutput instance func NewEInvoicePaymentMethodSpecificOutput() *EInvoicePaymentMethodSpecificOutput { return &EInvoicePaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/EInvoicePaymentProduct9000SpecificInput.go b/apiv1/domain/EInvoicePaymentProduct9000SpecificInput.go index ba173a2..cce2c54 100644 --- a/apiv1/domain/EInvoicePaymentProduct9000SpecificInput.go +++ b/apiv1/domain/EInvoicePaymentProduct9000SpecificInput.go @@ -9,7 +9,7 @@ type EInvoicePaymentProduct9000SpecificInput struct { InstallmentID *string `json:"installmentId,omitempty"` } -// NewEInvoicePaymentProduct9000SpecificInput constructs a new EInvoicePaymentProduct9000SpecificInput +// NewEInvoicePaymentProduct9000SpecificInput constructs a new EInvoicePaymentProduct9000SpecificInput instance func NewEInvoicePaymentProduct9000SpecificInput() *EInvoicePaymentProduct9000SpecificInput { return &EInvoicePaymentProduct9000SpecificInput{} } diff --git a/apiv1/domain/EInvoicePaymentProduct9000SpecificOutput.go b/apiv1/domain/EInvoicePaymentProduct9000SpecificOutput.go index 9eaadd4..ce61388 100644 --- a/apiv1/domain/EInvoicePaymentProduct9000SpecificOutput.go +++ b/apiv1/domain/EInvoicePaymentProduct9000SpecificOutput.go @@ -8,7 +8,7 @@ type EInvoicePaymentProduct9000SpecificOutput struct { InstallmentID *string `json:"installmentId,omitempty"` } -// NewEInvoicePaymentProduct9000SpecificOutput constructs a new EInvoicePaymentProduct9000SpecificOutput +// NewEInvoicePaymentProduct9000SpecificOutput constructs a new EInvoicePaymentProduct9000SpecificOutput instance func NewEInvoicePaymentProduct9000SpecificOutput() *EInvoicePaymentProduct9000SpecificOutput { return &EInvoicePaymentProduct9000SpecificOutput{} } diff --git a/apiv1/domain/EmptyValidator.go b/apiv1/domain/EmptyValidator.go index c0a24b2..45d0117 100644 --- a/apiv1/domain/EmptyValidator.go +++ b/apiv1/domain/EmptyValidator.go @@ -7,7 +7,7 @@ package domain type EmptyValidator struct { } -// NewEmptyValidator constructs a new EmptyValidator +// NewEmptyValidator constructs a new EmptyValidator instance func NewEmptyValidator() *EmptyValidator { return &EmptyValidator{} } diff --git a/apiv1/domain/ErrorResponse.go b/apiv1/domain/ErrorResponse.go index 158d63d..ae83801 100644 --- a/apiv1/domain/ErrorResponse.go +++ b/apiv1/domain/ErrorResponse.go @@ -9,7 +9,7 @@ type ErrorResponse struct { Errors *[]APIError `json:"errors,omitempty"` } -// NewErrorResponse constructs a new ErrorResponse +// NewErrorResponse constructs a new ErrorResponse instance func NewErrorResponse() *ErrorResponse { return &ErrorResponse{} } diff --git a/apiv1/domain/ExemptionOutput.go b/apiv1/domain/ExemptionOutput.go index b2ead43..7a42891 100644 --- a/apiv1/domain/ExemptionOutput.go +++ b/apiv1/domain/ExemptionOutput.go @@ -10,7 +10,7 @@ type ExemptionOutput struct { ExemptionRequest *string `json:"exemptionRequest,omitempty"` } -// NewExemptionOutput constructs a new ExemptionOutput +// NewExemptionOutput constructs a new ExemptionOutput instance func NewExemptionOutput() *ExemptionOutput { return &ExemptionOutput{} } diff --git a/apiv1/domain/ExternalCardholderAuthenticationData.go b/apiv1/domain/ExternalCardholderAuthenticationData.go index d4f16b8..e02e455 100644 --- a/apiv1/domain/ExternalCardholderAuthenticationData.go +++ b/apiv1/domain/ExternalCardholderAuthenticationData.go @@ -19,7 +19,7 @@ type ExternalCardholderAuthenticationData struct { Xid *string `json:"xid,omitempty"` } -// NewExternalCardholderAuthenticationData constructs a new ExternalCardholderAuthenticationData +// NewExternalCardholderAuthenticationData constructs a new ExternalCardholderAuthenticationData instance func NewExternalCardholderAuthenticationData() *ExternalCardholderAuthenticationData { return &ExternalCardholderAuthenticationData{} } diff --git a/apiv1/domain/FindPaymentsResponse.go b/apiv1/domain/FindPaymentsResponse.go index b2ca9a1..dac7892 100644 --- a/apiv1/domain/FindPaymentsResponse.go +++ b/apiv1/domain/FindPaymentsResponse.go @@ -11,7 +11,7 @@ type FindPaymentsResponse struct { TotalCount *int32 `json:"totalCount,omitempty"` } -// NewFindPaymentsResponse constructs a new FindPaymentsResponse +// NewFindPaymentsResponse constructs a new FindPaymentsResponse instance func NewFindPaymentsResponse() *FindPaymentsResponse { return &FindPaymentsResponse{} } diff --git a/apiv1/domain/FindPayoutsResponse.go b/apiv1/domain/FindPayoutsResponse.go index 4b41fc8..aa355da 100644 --- a/apiv1/domain/FindPayoutsResponse.go +++ b/apiv1/domain/FindPayoutsResponse.go @@ -11,7 +11,7 @@ type FindPayoutsResponse struct { TotalCount *int32 `json:"totalCount,omitempty"` } -// NewFindPayoutsResponse constructs a new FindPayoutsResponse +// NewFindPayoutsResponse constructs a new FindPayoutsResponse instance func NewFindPayoutsResponse() *FindPayoutsResponse { return &FindPayoutsResponse{} } diff --git a/apiv1/domain/FindRefundsResponse.go b/apiv1/domain/FindRefundsResponse.go index 612446f..7e6167a 100644 --- a/apiv1/domain/FindRefundsResponse.go +++ b/apiv1/domain/FindRefundsResponse.go @@ -11,7 +11,7 @@ type FindRefundsResponse struct { TotalCount *int32 `json:"totalCount,omitempty"` } -// NewFindRefundsResponse constructs a new FindRefundsResponse +// NewFindRefundsResponse constructs a new FindRefundsResponse instance func NewFindRefundsResponse() *FindRefundsResponse { return &FindRefundsResponse{} } diff --git a/apiv1/domain/FixedListValidator.go b/apiv1/domain/FixedListValidator.go index 493f924..ae2919c 100644 --- a/apiv1/domain/FixedListValidator.go +++ b/apiv1/domain/FixedListValidator.go @@ -8,7 +8,7 @@ type FixedListValidator struct { AllowedValues *[]string `json:"allowedValues,omitempty"` } -// NewFixedListValidator constructs a new FixedListValidator +// NewFixedListValidator constructs a new FixedListValidator instance func NewFixedListValidator() *FixedListValidator { return &FixedListValidator{} } diff --git a/apiv1/domain/FraudFields.go b/apiv1/domain/FraudFields.go index 2a7ce08..fb133d1 100644 --- a/apiv1/domain/FraudFields.go +++ b/apiv1/domain/FraudFields.go @@ -37,7 +37,7 @@ type FraudFields struct { Website *string `json:"website,omitempty"` } -// NewFraudFields constructs a new FraudFields +// NewFraudFields constructs a new FraudFields instance func NewFraudFields() *FraudFields { return &FraudFields{} } diff --git a/apiv1/domain/FraudFieldsShippingDetails.go b/apiv1/domain/FraudFieldsShippingDetails.go index ba61333..9ee67bf 100644 --- a/apiv1/domain/FraudFieldsShippingDetails.go +++ b/apiv1/domain/FraudFieldsShippingDetails.go @@ -15,7 +15,7 @@ type FraudFieldsShippingDetails struct { MethodType *int32 `json:"methodType,omitempty"` } -// NewFraudFieldsShippingDetails constructs a new FraudFieldsShippingDetails +// NewFraudFieldsShippingDetails constructs a new FraudFieldsShippingDetails instance func NewFraudFieldsShippingDetails() *FraudFieldsShippingDetails { return &FraudFieldsShippingDetails{} } diff --git a/apiv1/domain/FraudResults.go b/apiv1/domain/FraudResults.go index fb9bce3..410381d 100644 --- a/apiv1/domain/FraudResults.go +++ b/apiv1/domain/FraudResults.go @@ -10,7 +10,7 @@ type FraudResults struct { MicrosoftFraudProtection *MicrosoftFraudResults `json:"microsoftFraudProtection,omitempty"` } -// NewFraudResults constructs a new FraudResults +// NewFraudResults constructs a new FraudResults instance func NewFraudResults() *FraudResults { return &FraudResults{} } diff --git a/apiv1/domain/FraudResultsRetailDecisions.go b/apiv1/domain/FraudResultsRetailDecisions.go index 6461503..3a50745 100644 --- a/apiv1/domain/FraudResultsRetailDecisions.go +++ b/apiv1/domain/FraudResultsRetailDecisions.go @@ -10,7 +10,7 @@ type FraudResultsRetailDecisions struct { FraudRCF *string `json:"fraudRCF,omitempty"` } -// NewFraudResultsRetailDecisions constructs a new FraudResultsRetailDecisions +// NewFraudResultsRetailDecisions constructs a new FraudResultsRetailDecisions instance func NewFraudResultsRetailDecisions() *FraudResultsRetailDecisions { return &FraudResultsRetailDecisions{} } diff --git a/apiv1/domain/FraugsterResults.go b/apiv1/domain/FraugsterResults.go index 8395ec3..2c8983c 100644 --- a/apiv1/domain/FraugsterResults.go +++ b/apiv1/domain/FraugsterResults.go @@ -9,7 +9,7 @@ type FraugsterResults struct { FraudScore *int32 `json:"fraudScore,omitempty"` } -// NewFraugsterResults constructs a new FraugsterResults +// NewFraugsterResults constructs a new FraugsterResults instance func NewFraugsterResults() *FraugsterResults { return &FraugsterResults{} } diff --git a/apiv1/domain/Frequency.go b/apiv1/domain/Frequency.go index eaac89e..aeb59f9 100644 --- a/apiv1/domain/Frequency.go +++ b/apiv1/domain/Frequency.go @@ -9,7 +9,7 @@ type Frequency struct { IntervalFrequency *int32 `json:"intervalFrequency,omitempty"` } -// NewFrequency constructs a new Frequency +// NewFrequency constructs a new Frequency instance func NewFrequency() *Frequency { return &Frequency{} } diff --git a/apiv1/domain/GPayThreeDSecure.go b/apiv1/domain/GPayThreeDSecure.go index 3752e36..2cd0210 100644 --- a/apiv1/domain/GPayThreeDSecure.go +++ b/apiv1/domain/GPayThreeDSecure.go @@ -12,7 +12,7 @@ type GPayThreeDSecure struct { SkipAuthentication *bool `json:"skipAuthentication,omitempty"` } -// NewGPayThreeDSecure constructs a new GPayThreeDSecure +// NewGPayThreeDSecure constructs a new GPayThreeDSecure instance func NewGPayThreeDSecure() *GPayThreeDSecure { return &GPayThreeDSecure{} } diff --git a/apiv1/domain/GetCustomerDetailsRequest.go b/apiv1/domain/GetCustomerDetailsRequest.go index 0cdb169..ce6ac85 100644 --- a/apiv1/domain/GetCustomerDetailsRequest.go +++ b/apiv1/domain/GetCustomerDetailsRequest.go @@ -9,7 +9,7 @@ type GetCustomerDetailsRequest struct { Values *[]KeyValuePair `json:"values,omitempty"` } -// NewGetCustomerDetailsRequest constructs a new GetCustomerDetailsRequest +// NewGetCustomerDetailsRequest constructs a new GetCustomerDetailsRequest instance func NewGetCustomerDetailsRequest() *GetCustomerDetailsRequest { return &GetCustomerDetailsRequest{} } diff --git a/apiv1/domain/GetCustomerDetailsResponse.go b/apiv1/domain/GetCustomerDetailsResponse.go index 9d33280..2f2a529 100644 --- a/apiv1/domain/GetCustomerDetailsResponse.go +++ b/apiv1/domain/GetCustomerDetailsResponse.go @@ -17,7 +17,7 @@ type GetCustomerDetailsResponse struct { Zip *string `json:"zip,omitempty"` } -// NewGetCustomerDetailsResponse constructs a new GetCustomerDetailsResponse +// NewGetCustomerDetailsResponse constructs a new GetCustomerDetailsResponse instance func NewGetCustomerDetailsResponse() *GetCustomerDetailsResponse { return &GetCustomerDetailsResponse{} } diff --git a/apiv1/domain/GetHostedCheckoutResponse.go b/apiv1/domain/GetHostedCheckoutResponse.go index fb5b000..f2ff36e 100644 --- a/apiv1/domain/GetHostedCheckoutResponse.go +++ b/apiv1/domain/GetHostedCheckoutResponse.go @@ -9,7 +9,7 @@ type GetHostedCheckoutResponse struct { Status *string `json:"status,omitempty"` } -// NewGetHostedCheckoutResponse constructs a new GetHostedCheckoutResponse +// NewGetHostedCheckoutResponse constructs a new GetHostedCheckoutResponse instance func NewGetHostedCheckoutResponse() *GetHostedCheckoutResponse { return &GetHostedCheckoutResponse{} } diff --git a/apiv1/domain/GetHostedMandateManagementResponse.go b/apiv1/domain/GetHostedMandateManagementResponse.go index 7459830..90c7c76 100644 --- a/apiv1/domain/GetHostedMandateManagementResponse.go +++ b/apiv1/domain/GetHostedMandateManagementResponse.go @@ -9,7 +9,7 @@ type GetHostedMandateManagementResponse struct { Status *string `json:"status,omitempty"` } -// NewGetHostedMandateManagementResponse constructs a new GetHostedMandateManagementResponse +// NewGetHostedMandateManagementResponse constructs a new GetHostedMandateManagementResponse instance func NewGetHostedMandateManagementResponse() *GetHostedMandateManagementResponse { return &GetHostedMandateManagementResponse{} } diff --git a/apiv1/domain/GetIINDetailsRequest.go b/apiv1/domain/GetIINDetailsRequest.go index 814da65..08e68b5 100644 --- a/apiv1/domain/GetIINDetailsRequest.go +++ b/apiv1/domain/GetIINDetailsRequest.go @@ -9,7 +9,7 @@ type GetIINDetailsRequest struct { PaymentContext *PaymentContext `json:"paymentContext,omitempty"` } -// NewGetIINDetailsRequest constructs a new GetIINDetailsRequest +// NewGetIINDetailsRequest constructs a new GetIINDetailsRequest instance func NewGetIINDetailsRequest() *GetIINDetailsRequest { return &GetIINDetailsRequest{} } diff --git a/apiv1/domain/GetIINDetailsResponse.go b/apiv1/domain/GetIINDetailsResponse.go index 8187fb9..6d2686e 100644 --- a/apiv1/domain/GetIINDetailsResponse.go +++ b/apiv1/domain/GetIINDetailsResponse.go @@ -11,7 +11,7 @@ type GetIINDetailsResponse struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewGetIINDetailsResponse constructs a new GetIINDetailsResponse +// NewGetIINDetailsResponse constructs a new GetIINDetailsResponse instance func NewGetIINDetailsResponse() *GetIINDetailsResponse { return &GetIINDetailsResponse{} } diff --git a/apiv1/domain/GetInstallmentRequest.go b/apiv1/domain/GetInstallmentRequest.go index b2f67d6..6e063df 100644 --- a/apiv1/domain/GetInstallmentRequest.go +++ b/apiv1/domain/GetInstallmentRequest.go @@ -11,7 +11,7 @@ type GetInstallmentRequest struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewGetInstallmentRequest constructs a new GetInstallmentRequest +// NewGetInstallmentRequest constructs a new GetInstallmentRequest instance func NewGetInstallmentRequest() *GetInstallmentRequest { return &GetInstallmentRequest{} } diff --git a/apiv1/domain/GetMandateResponse.go b/apiv1/domain/GetMandateResponse.go index 4e2afb9..e9ed632 100644 --- a/apiv1/domain/GetMandateResponse.go +++ b/apiv1/domain/GetMandateResponse.go @@ -8,7 +8,7 @@ type GetMandateResponse struct { Mandate *MandateResponse `json:"mandate,omitempty"` } -// NewGetMandateResponse constructs a new GetMandateResponse +// NewGetMandateResponse constructs a new GetMandateResponse instance func NewGetMandateResponse() *GetMandateResponse { return &GetMandateResponse{} } diff --git a/apiv1/domain/GetPrivacyPolicyResponse.go b/apiv1/domain/GetPrivacyPolicyResponse.go index edba35e..138e3c3 100644 --- a/apiv1/domain/GetPrivacyPolicyResponse.go +++ b/apiv1/domain/GetPrivacyPolicyResponse.go @@ -8,7 +8,7 @@ type GetPrivacyPolicyResponse struct { HTMLContent *string `json:"htmlContent,omitempty"` } -// NewGetPrivacyPolicyResponse constructs a new GetPrivacyPolicyResponse +// NewGetPrivacyPolicyResponse constructs a new GetPrivacyPolicyResponse instance func NewGetPrivacyPolicyResponse() *GetPrivacyPolicyResponse { return &GetPrivacyPolicyResponse{} } diff --git a/apiv1/domain/GiftCardPurchase.go b/apiv1/domain/GiftCardPurchase.go index 86bc6b9..e8af522 100644 --- a/apiv1/domain/GiftCardPurchase.go +++ b/apiv1/domain/GiftCardPurchase.go @@ -9,7 +9,7 @@ type GiftCardPurchase struct { NumberOfGiftCards *int32 `json:"numberOfGiftCards,omitempty"` } -// NewGiftCardPurchase constructs a new GiftCardPurchase +// NewGiftCardPurchase constructs a new GiftCardPurchase instance func NewGiftCardPurchase() *GiftCardPurchase { return &GiftCardPurchase{} } diff --git a/apiv1/domain/HostedCheckoutSpecificInput.go b/apiv1/domain/HostedCheckoutSpecificInput.go index f38470f..a90da50 100644 --- a/apiv1/domain/HostedCheckoutSpecificInput.go +++ b/apiv1/domain/HostedCheckoutSpecificInput.go @@ -17,7 +17,7 @@ type HostedCheckoutSpecificInput struct { Variant *string `json:"variant,omitempty"` } -// NewHostedCheckoutSpecificInput constructs a new HostedCheckoutSpecificInput +// NewHostedCheckoutSpecificInput constructs a new HostedCheckoutSpecificInput instance func NewHostedCheckoutSpecificInput() *HostedCheckoutSpecificInput { return &HostedCheckoutSpecificInput{} } diff --git a/apiv1/domain/HostedCheckoutSpecificOutput.go b/apiv1/domain/HostedCheckoutSpecificOutput.go index 0294f36..d894c79 100644 --- a/apiv1/domain/HostedCheckoutSpecificOutput.go +++ b/apiv1/domain/HostedCheckoutSpecificOutput.go @@ -9,7 +9,7 @@ type HostedCheckoutSpecificOutput struct { Variant *string `json:"variant,omitempty"` } -// NewHostedCheckoutSpecificOutput constructs a new HostedCheckoutSpecificOutput +// NewHostedCheckoutSpecificOutput constructs a new HostedCheckoutSpecificOutput instance func NewHostedCheckoutSpecificOutput() *HostedCheckoutSpecificOutput { return &HostedCheckoutSpecificOutput{} } diff --git a/apiv1/domain/HostedFile.go b/apiv1/domain/HostedFile.go index 59cc86c..d94a9a6 100644 --- a/apiv1/domain/HostedFile.go +++ b/apiv1/domain/HostedFile.go @@ -11,7 +11,7 @@ type HostedFile struct { ID *string `json:"id,omitempty"` } -// NewHostedFile constructs a new HostedFile +// NewHostedFile constructs a new HostedFile instance func NewHostedFile() *HostedFile { return &HostedFile{} } diff --git a/apiv1/domain/HostedMandateInfo.go b/apiv1/domain/HostedMandateInfo.go index f1bd641..d1b6bcb 100644 --- a/apiv1/domain/HostedMandateInfo.go +++ b/apiv1/domain/HostedMandateInfo.go @@ -13,7 +13,7 @@ type HostedMandateInfo struct { UniqueMandateReference *string `json:"uniqueMandateReference,omitempty"` } -// NewHostedMandateInfo constructs a new HostedMandateInfo +// NewHostedMandateInfo constructs a new HostedMandateInfo instance func NewHostedMandateInfo() *HostedMandateInfo { return &HostedMandateInfo{} } diff --git a/apiv1/domain/HostedMandateManagementSpecificInput.go b/apiv1/domain/HostedMandateManagementSpecificInput.go index ecab2a0..c6fee1d 100644 --- a/apiv1/domain/HostedMandateManagementSpecificInput.go +++ b/apiv1/domain/HostedMandateManagementSpecificInput.go @@ -11,7 +11,7 @@ type HostedMandateManagementSpecificInput struct { Variant *string `json:"variant,omitempty"` } -// NewHostedMandateManagementSpecificInput constructs a new HostedMandateManagementSpecificInput +// NewHostedMandateManagementSpecificInput constructs a new HostedMandateManagementSpecificInput instance func NewHostedMandateManagementSpecificInput() *HostedMandateManagementSpecificInput { return &HostedMandateManagementSpecificInput{} } diff --git a/apiv1/domain/IINDetail.go b/apiv1/domain/IINDetail.go index bd51ee6..d71e40b 100644 --- a/apiv1/domain/IINDetail.go +++ b/apiv1/domain/IINDetail.go @@ -9,7 +9,7 @@ type IINDetail struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewIINDetail constructs a new IINDetail +// NewIINDetail constructs a new IINDetail instance func NewIINDetail() *IINDetail { return &IINDetail{} } diff --git a/apiv1/domain/InAuth.go b/apiv1/domain/InAuth.go index 6b335d7..e55894e 100644 --- a/apiv1/domain/InAuth.go +++ b/apiv1/domain/InAuth.go @@ -12,7 +12,7 @@ type InAuth struct { TrueIPAddressCountry *string `json:"trueIpAddressCountry,omitempty"` } -// NewInAuth constructs a new InAuth +// NewInAuth constructs a new InAuth instance func NewInAuth() *InAuth { return &InAuth{} } diff --git a/apiv1/domain/InstallmentDisplayHints.go b/apiv1/domain/InstallmentDisplayHints.go index 25cdb29..13c558f 100644 --- a/apiv1/domain/InstallmentDisplayHints.go +++ b/apiv1/domain/InstallmentDisplayHints.go @@ -10,7 +10,7 @@ type InstallmentDisplayHints struct { Logo *string `json:"logo,omitempty"` } -// NewInstallmentDisplayHints constructs a new InstallmentDisplayHints +// NewInstallmentDisplayHints constructs a new InstallmentDisplayHints instance func NewInstallmentDisplayHints() *InstallmentDisplayHints { return &InstallmentDisplayHints{} } diff --git a/apiv1/domain/InstallmentOptions.go b/apiv1/domain/InstallmentOptions.go index 380f0e7..254513c 100644 --- a/apiv1/domain/InstallmentOptions.go +++ b/apiv1/domain/InstallmentOptions.go @@ -10,7 +10,7 @@ type InstallmentOptions struct { InstallmentPlans *[]Installments `json:"installmentPlans,omitempty"` } -// NewInstallmentOptions constructs a new InstallmentOptions +// NewInstallmentOptions constructs a new InstallmentOptions instance func NewInstallmentOptions() *InstallmentOptions { return &InstallmentOptions{} } diff --git a/apiv1/domain/InstallmentOptionsResponse.go b/apiv1/domain/InstallmentOptionsResponse.go index 3af8f20..0e6d711 100644 --- a/apiv1/domain/InstallmentOptionsResponse.go +++ b/apiv1/domain/InstallmentOptionsResponse.go @@ -8,7 +8,7 @@ type InstallmentOptionsResponse struct { InstallmentOptions *[]InstallmentOptions `json:"installmentOptions,omitempty"` } -// NewInstallmentOptionsResponse constructs a new InstallmentOptionsResponse +// NewInstallmentOptionsResponse constructs a new InstallmentOptionsResponse instance func NewInstallmentOptionsResponse() *InstallmentOptionsResponse { return &InstallmentOptionsResponse{} } diff --git a/apiv1/domain/Installments.go b/apiv1/domain/Installments.go index 58b53e4..7b28131 100644 --- a/apiv1/domain/Installments.go +++ b/apiv1/domain/Installments.go @@ -13,7 +13,7 @@ type Installments struct { NumberOfInstallments *int64 `json:"numberOfInstallments,omitempty"` } -// NewInstallments constructs a new Installments +// NewInstallments constructs a new Installments instance func NewInstallments() *Installments { return &Installments{} } diff --git a/apiv1/domain/InvoicePaymentMethodSpecificInput.go b/apiv1/domain/InvoicePaymentMethodSpecificInput.go index 4d60590..0f33654 100644 --- a/apiv1/domain/InvoicePaymentMethodSpecificInput.go +++ b/apiv1/domain/InvoicePaymentMethodSpecificInput.go @@ -9,7 +9,7 @@ type InvoicePaymentMethodSpecificInput struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewInvoicePaymentMethodSpecificInput constructs a new InvoicePaymentMethodSpecificInput +// NewInvoicePaymentMethodSpecificInput constructs a new InvoicePaymentMethodSpecificInput instance func NewInvoicePaymentMethodSpecificInput() *InvoicePaymentMethodSpecificInput { return &InvoicePaymentMethodSpecificInput{} } diff --git a/apiv1/domain/InvoicePaymentMethodSpecificOutput.go b/apiv1/domain/InvoicePaymentMethodSpecificOutput.go index 266975a..6facc77 100644 --- a/apiv1/domain/InvoicePaymentMethodSpecificOutput.go +++ b/apiv1/domain/InvoicePaymentMethodSpecificOutput.go @@ -9,7 +9,7 @@ type InvoicePaymentMethodSpecificOutput struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewInvoicePaymentMethodSpecificOutput constructs a new InvoicePaymentMethodSpecificOutput +// NewInvoicePaymentMethodSpecificOutput constructs a new InvoicePaymentMethodSpecificOutput instance func NewInvoicePaymentMethodSpecificOutput() *InvoicePaymentMethodSpecificOutput { return &InvoicePaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/KeyValuePair.go b/apiv1/domain/KeyValuePair.go index 1bac91b..9176a5f 100644 --- a/apiv1/domain/KeyValuePair.go +++ b/apiv1/domain/KeyValuePair.go @@ -9,7 +9,7 @@ type KeyValuePair struct { Value *string `json:"value,omitempty"` } -// NewKeyValuePair constructs a new KeyValuePair +// NewKeyValuePair constructs a new KeyValuePair instance func NewKeyValuePair() *KeyValuePair { return &KeyValuePair{} } diff --git a/apiv1/domain/LabelTemplateElement.go b/apiv1/domain/LabelTemplateElement.go index 60e5188..b536484 100644 --- a/apiv1/domain/LabelTemplateElement.go +++ b/apiv1/domain/LabelTemplateElement.go @@ -9,7 +9,7 @@ type LabelTemplateElement struct { Mask *string `json:"mask,omitempty"` } -// NewLabelTemplateElement constructs a new LabelTemplateElement +// NewLabelTemplateElement constructs a new LabelTemplateElement instance func NewLabelTemplateElement() *LabelTemplateElement { return &LabelTemplateElement{} } diff --git a/apiv1/domain/LengthValidator.go b/apiv1/domain/LengthValidator.go index 8a25fde..2a48013 100644 --- a/apiv1/domain/LengthValidator.go +++ b/apiv1/domain/LengthValidator.go @@ -9,7 +9,7 @@ type LengthValidator struct { MinLength *int32 `json:"minLength,omitempty"` } -// NewLengthValidator constructs a new LengthValidator +// NewLengthValidator constructs a new LengthValidator instance func NewLengthValidator() *LengthValidator { return &LengthValidator{} } diff --git a/apiv1/domain/Level3SummaryData.go b/apiv1/domain/Level3SummaryData.go index 77d37c1..936c90e 100644 --- a/apiv1/domain/Level3SummaryData.go +++ b/apiv1/domain/Level3SummaryData.go @@ -15,7 +15,7 @@ type Level3SummaryData struct { ShippingAmount *int64 `json:"shippingAmount,omitempty"` } -// NewLevel3SummaryData constructs a new Level3SummaryData +// NewLevel3SummaryData constructs a new Level3SummaryData instance func NewLevel3SummaryData() *Level3SummaryData { return &Level3SummaryData{} } diff --git a/apiv1/domain/LineItem.go b/apiv1/domain/LineItem.go index c73a4bc..8f4de2d 100644 --- a/apiv1/domain/LineItem.go +++ b/apiv1/domain/LineItem.go @@ -12,7 +12,7 @@ type LineItem struct { OrderLineDetails *OrderLineDetails `json:"orderLineDetails,omitempty"` } -// NewLineItem constructs a new LineItem +// NewLineItem constructs a new LineItem instance func NewLineItem() *LineItem { return &LineItem{} } diff --git a/apiv1/domain/LineItemInvoiceData.go b/apiv1/domain/LineItemInvoiceData.go index b75df48..aea5e5a 100644 --- a/apiv1/domain/LineItemInvoiceData.go +++ b/apiv1/domain/LineItemInvoiceData.go @@ -12,7 +12,7 @@ type LineItemInvoiceData struct { PricePerItem *int64 `json:"pricePerItem,omitempty"` } -// NewLineItemInvoiceData constructs a new LineItemInvoiceData +// NewLineItemInvoiceData constructs a new LineItemInvoiceData instance func NewLineItemInvoiceData() *LineItemInvoiceData { return &LineItemInvoiceData{} } diff --git a/apiv1/domain/LineItemLevel3InterchangeInformation.go b/apiv1/domain/LineItemLevel3InterchangeInformation.go index 991b8b4..434a843 100644 --- a/apiv1/domain/LineItemLevel3InterchangeInformation.go +++ b/apiv1/domain/LineItemLevel3InterchangeInformation.go @@ -15,7 +15,7 @@ type LineItemLevel3InterchangeInformation struct { Unit *string `json:"unit,omitempty"` } -// NewLineItemLevel3InterchangeInformation constructs a new LineItemLevel3InterchangeInformation +// NewLineItemLevel3InterchangeInformation constructs a new LineItemLevel3InterchangeInformation instance func NewLineItemLevel3InterchangeInformation() *LineItemLevel3InterchangeInformation { return &LineItemLevel3InterchangeInformation{} } diff --git a/apiv1/domain/LoanRecipient.go b/apiv1/domain/LoanRecipient.go index 9b01432..48b91b5 100644 --- a/apiv1/domain/LoanRecipient.go +++ b/apiv1/domain/LoanRecipient.go @@ -19,7 +19,7 @@ type LoanRecipient struct { Zip *string `json:"zip,omitempty"` } -// NewLoanRecipient constructs a new LoanRecipient +// NewLoanRecipient constructs a new LoanRecipient instance func NewLoanRecipient() *LoanRecipient { return &LoanRecipient{} } diff --git a/apiv1/domain/LodgingCharge.go b/apiv1/domain/LodgingCharge.go index cc3e4e5..7239788 100644 --- a/apiv1/domain/LodgingCharge.go +++ b/apiv1/domain/LodgingCharge.go @@ -10,7 +10,7 @@ type LodgingCharge struct { ChargeType *string `json:"chargeType,omitempty"` } -// NewLodgingCharge constructs a new LodgingCharge +// NewLodgingCharge constructs a new LodgingCharge instance func NewLodgingCharge() *LodgingCharge { return &LodgingCharge{} } diff --git a/apiv1/domain/LodgingData.go b/apiv1/domain/LodgingData.go index 8d31542..9196e6a 100644 --- a/apiv1/domain/LodgingData.go +++ b/apiv1/domain/LodgingData.go @@ -23,7 +23,7 @@ type LodgingData struct { Rooms *[]LodgingRoom `json:"rooms,omitempty"` } -// NewLodgingData constructs a new LodgingData +// NewLodgingData constructs a new LodgingData instance func NewLodgingData() *LodgingData { return &LodgingData{} } diff --git a/apiv1/domain/LodgingRoom.go b/apiv1/domain/LodgingRoom.go index 50012c9..f73b115 100644 --- a/apiv1/domain/LodgingRoom.go +++ b/apiv1/domain/LodgingRoom.go @@ -16,7 +16,7 @@ type LodgingRoom struct { TypeOfRoom *string `json:"typeOfRoom,omitempty"` } -// NewLodgingRoom constructs a new LodgingRoom +// NewLodgingRoom constructs a new LodgingRoom instance func NewLodgingRoom() *LodgingRoom { return &LodgingRoom{} } diff --git a/apiv1/domain/MandateAddress.go b/apiv1/domain/MandateAddress.go index 649d451..3648fc3 100644 --- a/apiv1/domain/MandateAddress.go +++ b/apiv1/domain/MandateAddress.go @@ -12,7 +12,7 @@ type MandateAddress struct { Zip *string `json:"zip,omitempty"` } -// NewMandateAddress constructs a new MandateAddress +// NewMandateAddress constructs a new MandateAddress instance func NewMandateAddress() *MandateAddress { return &MandateAddress{} } diff --git a/apiv1/domain/MandateApproval.go b/apiv1/domain/MandateApproval.go index acb985e..5bb74dd 100644 --- a/apiv1/domain/MandateApproval.go +++ b/apiv1/domain/MandateApproval.go @@ -10,7 +10,7 @@ type MandateApproval struct { MandateSigned *bool `json:"mandateSigned,omitempty"` } -// NewMandateApproval constructs a new MandateApproval +// NewMandateApproval constructs a new MandateApproval instance func NewMandateApproval() *MandateApproval { return &MandateApproval{} } diff --git a/apiv1/domain/MandateContactDetails.go b/apiv1/domain/MandateContactDetails.go index 1639f7c..837bc01 100644 --- a/apiv1/domain/MandateContactDetails.go +++ b/apiv1/domain/MandateContactDetails.go @@ -8,7 +8,7 @@ type MandateContactDetails struct { EmailAddress *string `json:"emailAddress,omitempty"` } -// NewMandateContactDetails constructs a new MandateContactDetails +// NewMandateContactDetails constructs a new MandateContactDetails instance func NewMandateContactDetails() *MandateContactDetails { return &MandateContactDetails{} } diff --git a/apiv1/domain/MandateCustomer.go b/apiv1/domain/MandateCustomer.go index a95ec62..0485e38 100644 --- a/apiv1/domain/MandateCustomer.go +++ b/apiv1/domain/MandateCustomer.go @@ -12,7 +12,7 @@ type MandateCustomer struct { PersonalInformation *MandatePersonalInformation `json:"personalInformation,omitempty"` } -// NewMandateCustomer constructs a new MandateCustomer +// NewMandateCustomer constructs a new MandateCustomer instance func NewMandateCustomer() *MandateCustomer { return &MandateCustomer{} } diff --git a/apiv1/domain/MandateMerchantAction.go b/apiv1/domain/MandateMerchantAction.go index b31d053..3cad5bf 100644 --- a/apiv1/domain/MandateMerchantAction.go +++ b/apiv1/domain/MandateMerchantAction.go @@ -9,7 +9,7 @@ type MandateMerchantAction struct { RedirectData *MandateRedirectData `json:"redirectData,omitempty"` } -// NewMandateMerchantAction constructs a new MandateMerchantAction +// NewMandateMerchantAction constructs a new MandateMerchantAction instance func NewMandateMerchantAction() *MandateMerchantAction { return &MandateMerchantAction{} } diff --git a/apiv1/domain/MandateNonSepaDirectDebit.go b/apiv1/domain/MandateNonSepaDirectDebit.go index 0076321..89e85d9 100644 --- a/apiv1/domain/MandateNonSepaDirectDebit.go +++ b/apiv1/domain/MandateNonSepaDirectDebit.go @@ -9,7 +9,7 @@ type MandateNonSepaDirectDebit struct { PaymentProduct730SpecificData *TokenNonSepaDirectDebitPaymentProduct730SpecificData `json:"paymentProduct730SpecificData,omitempty"` } -// NewMandateNonSepaDirectDebit constructs a new MandateNonSepaDirectDebit +// NewMandateNonSepaDirectDebit constructs a new MandateNonSepaDirectDebit instance func NewMandateNonSepaDirectDebit() *MandateNonSepaDirectDebit { return &MandateNonSepaDirectDebit{} } diff --git a/apiv1/domain/MandatePersonalInformation.go b/apiv1/domain/MandatePersonalInformation.go index a734c63..f9a0f9e 100644 --- a/apiv1/domain/MandatePersonalInformation.go +++ b/apiv1/domain/MandatePersonalInformation.go @@ -9,7 +9,7 @@ type MandatePersonalInformation struct { Title *string `json:"title,omitempty"` } -// NewMandatePersonalInformation constructs a new MandatePersonalInformation +// NewMandatePersonalInformation constructs a new MandatePersonalInformation instance func NewMandatePersonalInformation() *MandatePersonalInformation { return &MandatePersonalInformation{} } diff --git a/apiv1/domain/MandatePersonalName.go b/apiv1/domain/MandatePersonalName.go index 47031ab..8e92301 100644 --- a/apiv1/domain/MandatePersonalName.go +++ b/apiv1/domain/MandatePersonalName.go @@ -9,7 +9,7 @@ type MandatePersonalName struct { Surname *string `json:"surname,omitempty"` } -// NewMandatePersonalName constructs a new MandatePersonalName +// NewMandatePersonalName constructs a new MandatePersonalName instance func NewMandatePersonalName() *MandatePersonalName { return &MandatePersonalName{} } diff --git a/apiv1/domain/MandateRedirectData.go b/apiv1/domain/MandateRedirectData.go index 9dcc954..efb7fe8 100644 --- a/apiv1/domain/MandateRedirectData.go +++ b/apiv1/domain/MandateRedirectData.go @@ -9,7 +9,7 @@ type MandateRedirectData struct { RedirectURL *string `json:"redirectURL,omitempty"` } -// NewMandateRedirectData constructs a new MandateRedirectData +// NewMandateRedirectData constructs a new MandateRedirectData instance func NewMandateRedirectData() *MandateRedirectData { return &MandateRedirectData{} } diff --git a/apiv1/domain/MandateResponse.go b/apiv1/domain/MandateResponse.go index 8339b2f..b4f3c28 100644 --- a/apiv1/domain/MandateResponse.go +++ b/apiv1/domain/MandateResponse.go @@ -13,7 +13,7 @@ type MandateResponse struct { UniqueMandateReference *string `json:"uniqueMandateReference,omitempty"` } -// NewMandateResponse constructs a new MandateResponse +// NewMandateResponse constructs a new MandateResponse instance func NewMandateResponse() *MandateResponse { return &MandateResponse{} } diff --git a/apiv1/domain/MandateSepaDirectDebit.go b/apiv1/domain/MandateSepaDirectDebit.go index ce8582a..61e3540 100644 --- a/apiv1/domain/MandateSepaDirectDebit.go +++ b/apiv1/domain/MandateSepaDirectDebit.go @@ -15,7 +15,7 @@ type MandateSepaDirectDebit struct { PreNotification *string `json:"preNotification,omitempty"` } -// NewMandateSepaDirectDebit constructs a new MandateSepaDirectDebit +// NewMandateSepaDirectDebit constructs a new MandateSepaDirectDebit instance func NewMandateSepaDirectDebit() *MandateSepaDirectDebit { return &MandateSepaDirectDebit{} } diff --git a/apiv1/domain/MandateSepaDirectDebitWithoutCreditor.go b/apiv1/domain/MandateSepaDirectDebitWithoutCreditor.go index a05e722..8a7c6ff 100644 --- a/apiv1/domain/MandateSepaDirectDebitWithoutCreditor.go +++ b/apiv1/domain/MandateSepaDirectDebitWithoutCreditor.go @@ -13,7 +13,7 @@ type MandateSepaDirectDebitWithoutCreditor struct { PreNotification *string `json:"preNotification,omitempty"` } -// NewMandateSepaDirectDebitWithoutCreditor constructs a new MandateSepaDirectDebitWithoutCreditor +// NewMandateSepaDirectDebitWithoutCreditor constructs a new MandateSepaDirectDebitWithoutCreditor instance func NewMandateSepaDirectDebitWithoutCreditor() *MandateSepaDirectDebitWithoutCreditor { return &MandateSepaDirectDebitWithoutCreditor{} } diff --git a/apiv1/domain/Merchant.go b/apiv1/domain/Merchant.go index 16dafd6..280d40a 100644 --- a/apiv1/domain/Merchant.go +++ b/apiv1/domain/Merchant.go @@ -11,7 +11,7 @@ type Merchant struct { WebsiteURL *string `json:"websiteUrl,omitempty"` } -// NewMerchant constructs a new Merchant +// NewMerchant constructs a new Merchant instance func NewMerchant() *Merchant { return &Merchant{} } diff --git a/apiv1/domain/MerchantAction.go b/apiv1/domain/MerchantAction.go index c2677d2..858bc96 100644 --- a/apiv1/domain/MerchantAction.go +++ b/apiv1/domain/MerchantAction.go @@ -14,7 +14,7 @@ type MerchantAction struct { ThirdPartyData *ThirdPartyData `json:"thirdPartyData,omitempty"` } -// NewMerchantAction constructs a new MerchantAction +// NewMerchantAction constructs a new MerchantAction instance func NewMerchantAction() *MerchantAction { return &MerchantAction{} } diff --git a/apiv1/domain/MerchantRiskAssessment.go b/apiv1/domain/MerchantRiskAssessment.go index bc3e02c..50365bd 100644 --- a/apiv1/domain/MerchantRiskAssessment.go +++ b/apiv1/domain/MerchantRiskAssessment.go @@ -8,7 +8,7 @@ type MerchantRiskAssessment struct { WebsiteURL *string `json:"websiteUrl,omitempty"` } -// NewMerchantRiskAssessment constructs a new MerchantRiskAssessment +// NewMerchantRiskAssessment constructs a new MerchantRiskAssessment instance func NewMerchantRiskAssessment() *MerchantRiskAssessment { return &MerchantRiskAssessment{} } diff --git a/apiv1/domain/MicrosoftFraudResults.go b/apiv1/domain/MicrosoftFraudResults.go index a681949..11c4524 100644 --- a/apiv1/domain/MicrosoftFraudResults.go +++ b/apiv1/domain/MicrosoftFraudResults.go @@ -14,7 +14,7 @@ type MicrosoftFraudResults struct { UserDeviceType *string `json:"userDeviceType,omitempty"` } -// NewMicrosoftFraudResults constructs a new MicrosoftFraudResults +// NewMicrosoftFraudResults constructs a new MicrosoftFraudResults instance func NewMicrosoftFraudResults() *MicrosoftFraudResults { return &MicrosoftFraudResults{} } diff --git a/apiv1/domain/MobilePaymentData.go b/apiv1/domain/MobilePaymentData.go index e4c91a4..53b28ec 100644 --- a/apiv1/domain/MobilePaymentData.go +++ b/apiv1/domain/MobilePaymentData.go @@ -9,7 +9,7 @@ type MobilePaymentData struct { ExpiryDate *string `json:"expiryDate,omitempty"` } -// NewMobilePaymentData constructs a new MobilePaymentData +// NewMobilePaymentData constructs a new MobilePaymentData instance func NewMobilePaymentData() *MobilePaymentData { return &MobilePaymentData{} } diff --git a/apiv1/domain/MobilePaymentMethodSpecificInput.go b/apiv1/domain/MobilePaymentMethodSpecificInput.go index 49468c3..8e97c27 100644 --- a/apiv1/domain/MobilePaymentMethodSpecificInput.go +++ b/apiv1/domain/MobilePaymentMethodSpecificInput.go @@ -15,7 +15,7 @@ type MobilePaymentMethodSpecificInput struct { SkipFraudService *bool `json:"skipFraudService,omitempty"` } -// NewMobilePaymentMethodSpecificInput constructs a new MobilePaymentMethodSpecificInput +// NewMobilePaymentMethodSpecificInput constructs a new MobilePaymentMethodSpecificInput instance func NewMobilePaymentMethodSpecificInput() *MobilePaymentMethodSpecificInput { return &MobilePaymentMethodSpecificInput{} } diff --git a/apiv1/domain/MobilePaymentMethodSpecificInputHostedCheckout.go b/apiv1/domain/MobilePaymentMethodSpecificInputHostedCheckout.go index 75641d6..8ecb730 100644 --- a/apiv1/domain/MobilePaymentMethodSpecificInputHostedCheckout.go +++ b/apiv1/domain/MobilePaymentMethodSpecificInputHostedCheckout.go @@ -14,7 +14,7 @@ type MobilePaymentMethodSpecificInputHostedCheckout struct { SkipFraudService *bool `json:"skipFraudService,omitempty"` } -// NewMobilePaymentMethodSpecificInputHostedCheckout constructs a new MobilePaymentMethodSpecificInputHostedCheckout +// NewMobilePaymentMethodSpecificInputHostedCheckout constructs a new MobilePaymentMethodSpecificInputHostedCheckout instance func NewMobilePaymentMethodSpecificInputHostedCheckout() *MobilePaymentMethodSpecificInputHostedCheckout { return &MobilePaymentMethodSpecificInputHostedCheckout{} } diff --git a/apiv1/domain/MobilePaymentMethodSpecificOutput.go b/apiv1/domain/MobilePaymentMethodSpecificOutput.go index e9c438a..fb6b15d 100644 --- a/apiv1/domain/MobilePaymentMethodSpecificOutput.go +++ b/apiv1/domain/MobilePaymentMethodSpecificOutput.go @@ -13,7 +13,7 @@ type MobilePaymentMethodSpecificOutput struct { ThreeDSecureResults *ThreeDSecureResults `json:"threeDSecureResults,omitempty"` } -// NewMobilePaymentMethodSpecificOutput constructs a new MobilePaymentMethodSpecificOutput +// NewMobilePaymentMethodSpecificOutput constructs a new MobilePaymentMethodSpecificOutput instance func NewMobilePaymentMethodSpecificOutput() *MobilePaymentMethodSpecificOutput { return &MobilePaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/MobilePaymentProduct302SpecificInputHostedCheckout.go b/apiv1/domain/MobilePaymentProduct302SpecificInputHostedCheckout.go index d8e5df0..2c6f57e 100644 --- a/apiv1/domain/MobilePaymentProduct302SpecificInputHostedCheckout.go +++ b/apiv1/domain/MobilePaymentProduct302SpecificInputHostedCheckout.go @@ -8,7 +8,7 @@ type MobilePaymentProduct302SpecificInputHostedCheckout struct { BusinessName *string `json:"businessName,omitempty"` } -// NewMobilePaymentProduct302SpecificInputHostedCheckout constructs a new MobilePaymentProduct302SpecificInputHostedCheckout +// NewMobilePaymentProduct302SpecificInputHostedCheckout constructs a new MobilePaymentProduct302SpecificInputHostedCheckout instance func NewMobilePaymentProduct302SpecificInputHostedCheckout() *MobilePaymentProduct302SpecificInputHostedCheckout { return &MobilePaymentProduct302SpecificInputHostedCheckout{} } diff --git a/apiv1/domain/MobilePaymentProduct320SpecificInput.go b/apiv1/domain/MobilePaymentProduct320SpecificInput.go index 5a695d1..654a208 100644 --- a/apiv1/domain/MobilePaymentProduct320SpecificInput.go +++ b/apiv1/domain/MobilePaymentProduct320SpecificInput.go @@ -9,7 +9,7 @@ type MobilePaymentProduct320SpecificInput struct { ThreeDSecure *GPayThreeDSecure `json:"threeDSecure,omitempty"` } -// NewMobilePaymentProduct320SpecificInput constructs a new MobilePaymentProduct320SpecificInput +// NewMobilePaymentProduct320SpecificInput constructs a new MobilePaymentProduct320SpecificInput instance func NewMobilePaymentProduct320SpecificInput() *MobilePaymentProduct320SpecificInput { return &MobilePaymentProduct320SpecificInput{} } diff --git a/apiv1/domain/MobilePaymentProduct320SpecificInputHostedCheckout.go b/apiv1/domain/MobilePaymentProduct320SpecificInputHostedCheckout.go index 7c0d3e4..cd086bd 100644 --- a/apiv1/domain/MobilePaymentProduct320SpecificInputHostedCheckout.go +++ b/apiv1/domain/MobilePaymentProduct320SpecificInputHostedCheckout.go @@ -10,7 +10,7 @@ type MobilePaymentProduct320SpecificInputHostedCheckout struct { ThreeDSecure *GPayThreeDSecure `json:"threeDSecure,omitempty"` } -// NewMobilePaymentProduct320SpecificInputHostedCheckout constructs a new MobilePaymentProduct320SpecificInputHostedCheckout +// NewMobilePaymentProduct320SpecificInputHostedCheckout constructs a new MobilePaymentProduct320SpecificInputHostedCheckout instance func NewMobilePaymentProduct320SpecificInputHostedCheckout() *MobilePaymentProduct320SpecificInputHostedCheckout { return &MobilePaymentProduct320SpecificInputHostedCheckout{} } diff --git a/apiv1/domain/MobilePaymentProductSession302SpecificInput.go b/apiv1/domain/MobilePaymentProductSession302SpecificInput.go index 1137f05..0a1f4ff 100644 --- a/apiv1/domain/MobilePaymentProductSession302SpecificInput.go +++ b/apiv1/domain/MobilePaymentProductSession302SpecificInput.go @@ -10,7 +10,7 @@ type MobilePaymentProductSession302SpecificInput struct { ValidationURL *string `json:"validationUrl,omitempty"` } -// NewMobilePaymentProductSession302SpecificInput constructs a new MobilePaymentProductSession302SpecificInput +// NewMobilePaymentProductSession302SpecificInput constructs a new MobilePaymentProductSession302SpecificInput instance func NewMobilePaymentProductSession302SpecificInput() *MobilePaymentProductSession302SpecificInput { return &MobilePaymentProductSession302SpecificInput{} } diff --git a/apiv1/domain/MobilePaymentProductSession302SpecificOutput.go b/apiv1/domain/MobilePaymentProductSession302SpecificOutput.go index d0eb823..e3ac16f 100644 --- a/apiv1/domain/MobilePaymentProductSession302SpecificOutput.go +++ b/apiv1/domain/MobilePaymentProductSession302SpecificOutput.go @@ -8,7 +8,7 @@ type MobilePaymentProductSession302SpecificOutput struct { SessionObject *string `json:"sessionObject,omitempty"` } -// NewMobilePaymentProductSession302SpecificOutput constructs a new MobilePaymentProductSession302SpecificOutput +// NewMobilePaymentProductSession302SpecificOutput constructs a new MobilePaymentProductSession302SpecificOutput instance func NewMobilePaymentProductSession302SpecificOutput() *MobilePaymentProductSession302SpecificOutput { return &MobilePaymentProductSession302SpecificOutput{} } diff --git a/apiv1/domain/MobileThreeDSecureChallengeParameters.go b/apiv1/domain/MobileThreeDSecureChallengeParameters.go index c7e1f6b..96ddff4 100644 --- a/apiv1/domain/MobileThreeDSecureChallengeParameters.go +++ b/apiv1/domain/MobileThreeDSecureChallengeParameters.go @@ -11,7 +11,7 @@ type MobileThreeDSecureChallengeParameters struct { ThreeDServerTransactionID *string `json:"threeDServerTransactionId,omitempty"` } -// NewMobileThreeDSecureChallengeParameters constructs a new MobileThreeDSecureChallengeParameters +// NewMobileThreeDSecureChallengeParameters constructs a new MobileThreeDSecureChallengeParameters instance func NewMobileThreeDSecureChallengeParameters() *MobileThreeDSecureChallengeParameters { return &MobileThreeDSecureChallengeParameters{} } diff --git a/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificInput.go b/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificInput.go index c5f8441..a4462a3 100644 --- a/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificInput.go +++ b/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificInput.go @@ -17,7 +17,7 @@ type NonSepaDirectDebitPaymentMethodSpecificInput struct { Tokenize *bool `json:"tokenize,omitempty"` } -// NewNonSepaDirectDebitPaymentMethodSpecificInput constructs a new NonSepaDirectDebitPaymentMethodSpecificInput +// NewNonSepaDirectDebitPaymentMethodSpecificInput constructs a new NonSepaDirectDebitPaymentMethodSpecificInput instance func NewNonSepaDirectDebitPaymentMethodSpecificInput() *NonSepaDirectDebitPaymentMethodSpecificInput { return &NonSepaDirectDebitPaymentMethodSpecificInput{} } diff --git a/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificOutput.go b/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificOutput.go index ca56d5c..93fbea7 100644 --- a/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificOutput.go +++ b/apiv1/domain/NonSepaDirectDebitPaymentMethodSpecificOutput.go @@ -9,7 +9,7 @@ type NonSepaDirectDebitPaymentMethodSpecificOutput struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewNonSepaDirectDebitPaymentMethodSpecificOutput constructs a new NonSepaDirectDebitPaymentMethodSpecificOutput +// NewNonSepaDirectDebitPaymentMethodSpecificOutput constructs a new NonSepaDirectDebitPaymentMethodSpecificOutput instance func NewNonSepaDirectDebitPaymentMethodSpecificOutput() *NonSepaDirectDebitPaymentMethodSpecificOutput { return &NonSepaDirectDebitPaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/NonSepaDirectDebitPaymentProduct705SpecificInput.go b/apiv1/domain/NonSepaDirectDebitPaymentProduct705SpecificInput.go index fe51f62..3ab2a11 100644 --- a/apiv1/domain/NonSepaDirectDebitPaymentProduct705SpecificInput.go +++ b/apiv1/domain/NonSepaDirectDebitPaymentProduct705SpecificInput.go @@ -10,7 +10,7 @@ type NonSepaDirectDebitPaymentProduct705SpecificInput struct { TransactionType *string `json:"transactionType,omitempty"` } -// NewNonSepaDirectDebitPaymentProduct705SpecificInput constructs a new NonSepaDirectDebitPaymentProduct705SpecificInput +// NewNonSepaDirectDebitPaymentProduct705SpecificInput constructs a new NonSepaDirectDebitPaymentProduct705SpecificInput instance func NewNonSepaDirectDebitPaymentProduct705SpecificInput() *NonSepaDirectDebitPaymentProduct705SpecificInput { return &NonSepaDirectDebitPaymentProduct705SpecificInput{} } diff --git a/apiv1/domain/NonSepaDirectDebitPaymentProduct730SpecificInput.go b/apiv1/domain/NonSepaDirectDebitPaymentProduct730SpecificInput.go index 5ece219..2fd0a84 100644 --- a/apiv1/domain/NonSepaDirectDebitPaymentProduct730SpecificInput.go +++ b/apiv1/domain/NonSepaDirectDebitPaymentProduct730SpecificInput.go @@ -8,7 +8,7 @@ type NonSepaDirectDebitPaymentProduct730SpecificInput struct { BankAccountBban *BankAccountBban `json:"bankAccountBban,omitempty"` } -// NewNonSepaDirectDebitPaymentProduct730SpecificInput constructs a new NonSepaDirectDebitPaymentProduct730SpecificInput +// NewNonSepaDirectDebitPaymentProduct730SpecificInput constructs a new NonSepaDirectDebitPaymentProduct730SpecificInput instance func NewNonSepaDirectDebitPaymentProduct730SpecificInput() *NonSepaDirectDebitPaymentProduct730SpecificInput { return &NonSepaDirectDebitPaymentProduct730SpecificInput{} } diff --git a/apiv1/domain/Order.go b/apiv1/domain/Order.go index 019fe00..e101a91 100644 --- a/apiv1/domain/Order.go +++ b/apiv1/domain/Order.go @@ -17,7 +17,7 @@ type Order struct { ShoppingCart *ShoppingCart `json:"shoppingCart,omitempty"` } -// NewOrder constructs a new Order +// NewOrder constructs a new Order instance func NewOrder() *Order { return &Order{} } diff --git a/apiv1/domain/OrderApprovePayment.go b/apiv1/domain/OrderApprovePayment.go index 7a2968b..460bbeb 100644 --- a/apiv1/domain/OrderApprovePayment.go +++ b/apiv1/domain/OrderApprovePayment.go @@ -10,7 +10,7 @@ type OrderApprovePayment struct { References *OrderReferencesApprovePayment `json:"references,omitempty"` } -// NewOrderApprovePayment constructs a new OrderApprovePayment +// NewOrderApprovePayment constructs a new OrderApprovePayment instance func NewOrderApprovePayment() *OrderApprovePayment { return &OrderApprovePayment{} } diff --git a/apiv1/domain/OrderInvoiceData.go b/apiv1/domain/OrderInvoiceData.go index 855c7be..ad5ff51 100644 --- a/apiv1/domain/OrderInvoiceData.go +++ b/apiv1/domain/OrderInvoiceData.go @@ -11,7 +11,7 @@ type OrderInvoiceData struct { TextQualifiers *[]string `json:"textQualifiers,omitempty"` } -// NewOrderInvoiceData constructs a new OrderInvoiceData +// NewOrderInvoiceData constructs a new OrderInvoiceData instance func NewOrderInvoiceData() *OrderInvoiceData { return &OrderInvoiceData{} } diff --git a/apiv1/domain/OrderLineDetails.go b/apiv1/domain/OrderLineDetails.go index c3a8436..7004453 100644 --- a/apiv1/domain/OrderLineDetails.go +++ b/apiv1/domain/OrderLineDetails.go @@ -19,7 +19,7 @@ type OrderLineDetails struct { Unit *string `json:"unit,omitempty"` } -// NewOrderLineDetails constructs a new OrderLineDetails +// NewOrderLineDetails constructs a new OrderLineDetails instance func NewOrderLineDetails() *OrderLineDetails { return &OrderLineDetails{} } diff --git a/apiv1/domain/OrderOutput.go b/apiv1/domain/OrderOutput.go index 881bfae..e3f45e5 100644 --- a/apiv1/domain/OrderOutput.go +++ b/apiv1/domain/OrderOutput.go @@ -9,7 +9,7 @@ type OrderOutput struct { References *PaymentReferences `json:"references,omitempty"` } -// NewOrderOutput constructs a new OrderOutput +// NewOrderOutput constructs a new OrderOutput instance func NewOrderOutput() *OrderOutput { return &OrderOutput{} } diff --git a/apiv1/domain/OrderReferences.go b/apiv1/domain/OrderReferences.go index 25e6b67..be47872 100644 --- a/apiv1/domain/OrderReferences.go +++ b/apiv1/domain/OrderReferences.go @@ -13,7 +13,7 @@ type OrderReferences struct { ProviderMerchantID *string `json:"providerMerchantId,omitempty"` } -// NewOrderReferences constructs a new OrderReferences +// NewOrderReferences constructs a new OrderReferences instance func NewOrderReferences() *OrderReferences { return &OrderReferences{} } diff --git a/apiv1/domain/OrderReferencesApprovePayment.go b/apiv1/domain/OrderReferencesApprovePayment.go index 8c8ca1b..d5ead1a 100644 --- a/apiv1/domain/OrderReferencesApprovePayment.go +++ b/apiv1/domain/OrderReferencesApprovePayment.go @@ -8,7 +8,7 @@ type OrderReferencesApprovePayment struct { MerchantReference *string `json:"merchantReference,omitempty"` } -// NewOrderReferencesApprovePayment constructs a new OrderReferencesApprovePayment +// NewOrderReferencesApprovePayment constructs a new OrderReferencesApprovePayment instance func NewOrderReferencesApprovePayment() *OrderReferencesApprovePayment { return &OrderReferencesApprovePayment{} } diff --git a/apiv1/domain/OrderRiskAssessment.go b/apiv1/domain/OrderRiskAssessment.go index b4c4b15..005fb53 100644 --- a/apiv1/domain/OrderRiskAssessment.go +++ b/apiv1/domain/OrderRiskAssessment.go @@ -11,7 +11,7 @@ type OrderRiskAssessment struct { Shipping *ShippingRiskAssessment `json:"shipping,omitempty"` } -// NewOrderRiskAssessment constructs a new OrderRiskAssessment +// NewOrderRiskAssessment constructs a new OrderRiskAssessment instance func NewOrderRiskAssessment() *OrderRiskAssessment { return &OrderRiskAssessment{} } diff --git a/apiv1/domain/OrderStatusOutput.go b/apiv1/domain/OrderStatusOutput.go index e935c15..9d9be62 100644 --- a/apiv1/domain/OrderStatusOutput.go +++ b/apiv1/domain/OrderStatusOutput.go @@ -14,7 +14,7 @@ type OrderStatusOutput struct { StatusCodeChangeDateTime *string `json:"statusCodeChangeDateTime,omitempty"` } -// NewOrderStatusOutput constructs a new OrderStatusOutput +// NewOrderStatusOutput constructs a new OrderStatusOutput instance func NewOrderStatusOutput() *OrderStatusOutput { return &OrderStatusOutput{} } diff --git a/apiv1/domain/OrderTypeInformation.go b/apiv1/domain/OrderTypeInformation.go index 654b390..87be299 100644 --- a/apiv1/domain/OrderTypeInformation.go +++ b/apiv1/domain/OrderTypeInformation.go @@ -11,7 +11,7 @@ type OrderTypeInformation struct { UsageType *string `json:"usageType,omitempty"` } -// NewOrderTypeInformation constructs a new OrderTypeInformation +// NewOrderTypeInformation constructs a new OrderTypeInformation instance func NewOrderTypeInformation() *OrderTypeInformation { return &OrderTypeInformation{} } diff --git a/apiv1/domain/Payment.go b/apiv1/domain/Payment.go index 3a56692..f50a8be 100644 --- a/apiv1/domain/Payment.go +++ b/apiv1/domain/Payment.go @@ -12,7 +12,7 @@ type Payment struct { StatusOutput *PaymentStatusOutput `json:"statusOutput,omitempty"` } -// NewPayment constructs a new Payment +// NewPayment constructs a new Payment instance func NewPayment() *Payment { return &Payment{} } diff --git a/apiv1/domain/PaymentAccountOnFile.go b/apiv1/domain/PaymentAccountOnFile.go index cdbfc18..7229391 100644 --- a/apiv1/domain/PaymentAccountOnFile.go +++ b/apiv1/domain/PaymentAccountOnFile.go @@ -9,7 +9,7 @@ type PaymentAccountOnFile struct { NumberOfCardOnFileCreationAttemptsLast24Hours *int32 `json:"numberOfCardOnFileCreationAttemptsLast24Hours,omitempty"` } -// NewPaymentAccountOnFile constructs a new PaymentAccountOnFile +// NewPaymentAccountOnFile constructs a new PaymentAccountOnFile instance func NewPaymentAccountOnFile() *PaymentAccountOnFile { return &PaymentAccountOnFile{} } diff --git a/apiv1/domain/PaymentApprovalResponse.go b/apiv1/domain/PaymentApprovalResponse.go index ffbab21..d1ac8d2 100644 --- a/apiv1/domain/PaymentApprovalResponse.go +++ b/apiv1/domain/PaymentApprovalResponse.go @@ -12,7 +12,7 @@ type PaymentApprovalResponse struct { PaymentMethodSpecificOutput *ApprovePaymentCardPaymentMethodSpecificOutput `json:"paymentMethodSpecificOutput,omitempty"` } -// NewPaymentApprovalResponse constructs a new PaymentApprovalResponse +// NewPaymentApprovalResponse constructs a new PaymentApprovalResponse instance func NewPaymentApprovalResponse() *PaymentApprovalResponse { return &PaymentApprovalResponse{} } diff --git a/apiv1/domain/PaymentContext.go b/apiv1/domain/PaymentContext.go index c53525d..7a374f2 100644 --- a/apiv1/domain/PaymentContext.go +++ b/apiv1/domain/PaymentContext.go @@ -11,7 +11,7 @@ type PaymentContext struct { IsRecurring *bool `json:"isRecurring,omitempty"` } -// NewPaymentContext constructs a new PaymentContext +// NewPaymentContext constructs a new PaymentContext instance func NewPaymentContext() *PaymentContext { return &PaymentContext{} } diff --git a/apiv1/domain/PaymentCreationOutput.go b/apiv1/domain/PaymentCreationOutput.go index 93c2aff..1428e9d 100644 --- a/apiv1/domain/PaymentCreationOutput.go +++ b/apiv1/domain/PaymentCreationOutput.go @@ -13,7 +13,7 @@ type PaymentCreationOutput struct { TokenizationSucceeded *bool `json:"tokenizationSucceeded,omitempty"` } -// NewPaymentCreationOutput constructs a new PaymentCreationOutput +// NewPaymentCreationOutput constructs a new PaymentCreationOutput instance func NewPaymentCreationOutput() *PaymentCreationOutput { return &PaymentCreationOutput{} } diff --git a/apiv1/domain/PaymentCreationReferences.go b/apiv1/domain/PaymentCreationReferences.go index 0ec6ae0..aa9fe61 100644 --- a/apiv1/domain/PaymentCreationReferences.go +++ b/apiv1/domain/PaymentCreationReferences.go @@ -9,7 +9,7 @@ type PaymentCreationReferences struct { ExternalReference *string `json:"externalReference,omitempty"` } -// NewPaymentCreationReferences constructs a new PaymentCreationReferences +// NewPaymentCreationReferences constructs a new PaymentCreationReferences instance func NewPaymentCreationReferences() *PaymentCreationReferences { return &PaymentCreationReferences{} } diff --git a/apiv1/domain/PaymentErrorResponse.go b/apiv1/domain/PaymentErrorResponse.go index 0e8fb14..2cd8842 100644 --- a/apiv1/domain/PaymentErrorResponse.go +++ b/apiv1/domain/PaymentErrorResponse.go @@ -10,7 +10,7 @@ type PaymentErrorResponse struct { PaymentResult *CreatePaymentResult `json:"paymentResult,omitempty"` } -// NewPaymentErrorResponse constructs a new PaymentErrorResponse +// NewPaymentErrorResponse constructs a new PaymentErrorResponse instance func NewPaymentErrorResponse() *PaymentErrorResponse { return &PaymentErrorResponse{} } diff --git a/apiv1/domain/PaymentOutput.go b/apiv1/domain/PaymentOutput.go index 073bb7d..c1ec8dc 100644 --- a/apiv1/domain/PaymentOutput.go +++ b/apiv1/domain/PaymentOutput.go @@ -22,7 +22,7 @@ type PaymentOutput struct { SepaDirectDebitPaymentMethodSpecificOutput *SepaDirectDebitPaymentMethodSpecificOutput `json:"sepaDirectDebitPaymentMethodSpecificOutput,omitempty"` } -// NewPaymentOutput constructs a new PaymentOutput +// NewPaymentOutput constructs a new PaymentOutput instance func NewPaymentOutput() *PaymentOutput { return &PaymentOutput{} } diff --git a/apiv1/domain/PaymentProduct.go b/apiv1/domain/PaymentProduct.go index 3152c5c..41fd194 100644 --- a/apiv1/domain/PaymentProduct.go +++ b/apiv1/domain/PaymentProduct.go @@ -32,7 +32,7 @@ type PaymentProduct struct { UsesRedirectionTo3rdParty *bool `json:"usesRedirectionTo3rdParty,omitempty"` } -// NewPaymentProduct constructs a new PaymentProduct +// NewPaymentProduct constructs a new PaymentProduct instance func NewPaymentProduct() *PaymentProduct { return &PaymentProduct{} } diff --git a/apiv1/domain/PaymentProduct302SpecificData.go b/apiv1/domain/PaymentProduct302SpecificData.go index 9b6112d..353b6ac 100644 --- a/apiv1/domain/PaymentProduct302SpecificData.go +++ b/apiv1/domain/PaymentProduct302SpecificData.go @@ -8,7 +8,7 @@ type PaymentProduct302SpecificData struct { Networks *[]string `json:"networks,omitempty"` } -// NewPaymentProduct302SpecificData constructs a new PaymentProduct302SpecificData +// NewPaymentProduct302SpecificData constructs a new PaymentProduct302SpecificData instance func NewPaymentProduct302SpecificData() *PaymentProduct302SpecificData { return &PaymentProduct302SpecificData{} } diff --git a/apiv1/domain/PaymentProduct3201SpecificOutput.go b/apiv1/domain/PaymentProduct3201SpecificOutput.go index 2a026d1..0f8b26b 100644 --- a/apiv1/domain/PaymentProduct3201SpecificOutput.go +++ b/apiv1/domain/PaymentProduct3201SpecificOutput.go @@ -8,7 +8,7 @@ type PaymentProduct3201SpecificOutput struct { Card *CardEssentials `json:"card,omitempty"` } -// NewPaymentProduct3201SpecificOutput constructs a new PaymentProduct3201SpecificOutput +// NewPaymentProduct3201SpecificOutput constructs a new PaymentProduct3201SpecificOutput instance func NewPaymentProduct3201SpecificOutput() *PaymentProduct3201SpecificOutput { return &PaymentProduct3201SpecificOutput{} } diff --git a/apiv1/domain/PaymentProduct320SpecificData.go b/apiv1/domain/PaymentProduct320SpecificData.go index 92ed43c..7f3c528 100644 --- a/apiv1/domain/PaymentProduct320SpecificData.go +++ b/apiv1/domain/PaymentProduct320SpecificData.go @@ -9,7 +9,7 @@ type PaymentProduct320SpecificData struct { Networks *[]string `json:"networks,omitempty"` } -// NewPaymentProduct320SpecificData constructs a new PaymentProduct320SpecificData +// NewPaymentProduct320SpecificData constructs a new PaymentProduct320SpecificData instance func NewPaymentProduct320SpecificData() *PaymentProduct320SpecificData { return &PaymentProduct320SpecificData{} } diff --git a/apiv1/domain/PaymentProduct771SpecificOutput.go b/apiv1/domain/PaymentProduct771SpecificOutput.go index ee63d8f..6709c91 100644 --- a/apiv1/domain/PaymentProduct771SpecificOutput.go +++ b/apiv1/domain/PaymentProduct771SpecificOutput.go @@ -8,7 +8,7 @@ type PaymentProduct771SpecificOutput struct { MandateReference *string `json:"mandateReference,omitempty"` } -// NewPaymentProduct771SpecificOutput constructs a new PaymentProduct771SpecificOutput +// NewPaymentProduct771SpecificOutput constructs a new PaymentProduct771SpecificOutput instance func NewPaymentProduct771SpecificOutput() *PaymentProduct771SpecificOutput { return &PaymentProduct771SpecificOutput{} } diff --git a/apiv1/domain/PaymentProduct806SpecificOutput.go b/apiv1/domain/PaymentProduct806SpecificOutput.go index 0e9e79e..e280418 100644 --- a/apiv1/domain/PaymentProduct806SpecificOutput.go +++ b/apiv1/domain/PaymentProduct806SpecificOutput.go @@ -9,7 +9,7 @@ type PaymentProduct806SpecificOutput struct { CustomerAccount *TrustlyBankAccount `json:"customerAccount,omitempty"` } -// NewPaymentProduct806SpecificOutput constructs a new PaymentProduct806SpecificOutput +// NewPaymentProduct806SpecificOutput constructs a new PaymentProduct806SpecificOutput instance func NewPaymentProduct806SpecificOutput() *PaymentProduct806SpecificOutput { return &PaymentProduct806SpecificOutput{} } diff --git a/apiv1/domain/PaymentProduct836SpecificOutput.go b/apiv1/domain/PaymentProduct836SpecificOutput.go index 6436599..74dca8b 100644 --- a/apiv1/domain/PaymentProduct836SpecificOutput.go +++ b/apiv1/domain/PaymentProduct836SpecificOutput.go @@ -8,7 +8,7 @@ type PaymentProduct836SpecificOutput struct { SecurityIndicator *string `json:"securityIndicator,omitempty"` } -// NewPaymentProduct836SpecificOutput constructs a new PaymentProduct836SpecificOutput +// NewPaymentProduct836SpecificOutput constructs a new PaymentProduct836SpecificOutput instance func NewPaymentProduct836SpecificOutput() *PaymentProduct836SpecificOutput { return &PaymentProduct836SpecificOutput{} } diff --git a/apiv1/domain/PaymentProduct840CustomerAccount.go b/apiv1/domain/PaymentProduct840CustomerAccount.go index 4945367..c61e252 100644 --- a/apiv1/domain/PaymentProduct840CustomerAccount.go +++ b/apiv1/domain/PaymentProduct840CustomerAccount.go @@ -17,7 +17,7 @@ type PaymentProduct840CustomerAccount struct { Surname *string `json:"surname,omitempty"` } -// NewPaymentProduct840CustomerAccount constructs a new PaymentProduct840CustomerAccount +// NewPaymentProduct840CustomerAccount constructs a new PaymentProduct840CustomerAccount instance func NewPaymentProduct840CustomerAccount() *PaymentProduct840CustomerAccount { return &PaymentProduct840CustomerAccount{} } diff --git a/apiv1/domain/PaymentProduct840SpecificOutput.go b/apiv1/domain/PaymentProduct840SpecificOutput.go index c0dd790..10a6022 100644 --- a/apiv1/domain/PaymentProduct840SpecificOutput.go +++ b/apiv1/domain/PaymentProduct840SpecificOutput.go @@ -11,7 +11,7 @@ type PaymentProduct840SpecificOutput struct { ProtectionEligibility *ProtectionEligibility `json:"protectionEligibility,omitempty"` } -// NewPaymentProduct840SpecificOutput constructs a new PaymentProduct840SpecificOutput +// NewPaymentProduct840SpecificOutput constructs a new PaymentProduct840SpecificOutput instance func NewPaymentProduct840SpecificOutput() *PaymentProduct840SpecificOutput { return &PaymentProduct840SpecificOutput{} } diff --git a/apiv1/domain/PaymentProduct863SpecificData.go b/apiv1/domain/PaymentProduct863SpecificData.go index a1bb1c6..9d41ea1 100644 --- a/apiv1/domain/PaymentProduct863SpecificData.go +++ b/apiv1/domain/PaymentProduct863SpecificData.go @@ -8,7 +8,7 @@ type PaymentProduct863SpecificData struct { IntegrationTypes *[]string `json:"integrationTypes,omitempty"` } -// NewPaymentProduct863SpecificData constructs a new PaymentProduct863SpecificData +// NewPaymentProduct863SpecificData constructs a new PaymentProduct863SpecificData instance func NewPaymentProduct863SpecificData() *PaymentProduct863SpecificData { return &PaymentProduct863SpecificData{} } diff --git a/apiv1/domain/PaymentProduct863ThirdPartyData.go b/apiv1/domain/PaymentProduct863ThirdPartyData.go index 75bd5fc..f6a13a7 100644 --- a/apiv1/domain/PaymentProduct863ThirdPartyData.go +++ b/apiv1/domain/PaymentProduct863ThirdPartyData.go @@ -14,7 +14,7 @@ type PaymentProduct863ThirdPartyData struct { TimeStamp *string `json:"timeStamp,omitempty"` } -// NewPaymentProduct863ThirdPartyData constructs a new PaymentProduct863ThirdPartyData +// NewPaymentProduct863ThirdPartyData constructs a new PaymentProduct863ThirdPartyData instance func NewPaymentProduct863ThirdPartyData() *PaymentProduct863ThirdPartyData { return &PaymentProduct863ThirdPartyData{} } diff --git a/apiv1/domain/PaymentProductDisplayHints.go b/apiv1/domain/PaymentProductDisplayHints.go index 3a0db02..81a7bd2 100644 --- a/apiv1/domain/PaymentProductDisplayHints.go +++ b/apiv1/domain/PaymentProductDisplayHints.go @@ -10,7 +10,7 @@ type PaymentProductDisplayHints struct { Logo *string `json:"logo,omitempty"` } -// NewPaymentProductDisplayHints constructs a new PaymentProductDisplayHints +// NewPaymentProductDisplayHints constructs a new PaymentProductDisplayHints instance func NewPaymentProductDisplayHints() *PaymentProductDisplayHints { return &PaymentProductDisplayHints{} } diff --git a/apiv1/domain/PaymentProductField.go b/apiv1/domain/PaymentProductField.go index 16788eb..777855a 100644 --- a/apiv1/domain/PaymentProductField.go +++ b/apiv1/domain/PaymentProductField.go @@ -12,7 +12,7 @@ type PaymentProductField struct { UsedForLookup *bool `json:"usedForLookup,omitempty"` } -// NewPaymentProductField constructs a new PaymentProductField +// NewPaymentProductField constructs a new PaymentProductField instance func NewPaymentProductField() *PaymentProductField { return &PaymentProductField{} } diff --git a/apiv1/domain/PaymentProductFieldDataRestrictions.go b/apiv1/domain/PaymentProductFieldDataRestrictions.go index 0bf585a..0347e22 100644 --- a/apiv1/domain/PaymentProductFieldDataRestrictions.go +++ b/apiv1/domain/PaymentProductFieldDataRestrictions.go @@ -9,7 +9,7 @@ type PaymentProductFieldDataRestrictions struct { Validators *PaymentProductFieldValidators `json:"validators,omitempty"` } -// NewPaymentProductFieldDataRestrictions constructs a new PaymentProductFieldDataRestrictions +// NewPaymentProductFieldDataRestrictions constructs a new PaymentProductFieldDataRestrictions instance func NewPaymentProductFieldDataRestrictions() *PaymentProductFieldDataRestrictions { return &PaymentProductFieldDataRestrictions{} } diff --git a/apiv1/domain/PaymentProductFieldDisplayElement.go b/apiv1/domain/PaymentProductFieldDisplayElement.go index 54c407e..2ac15c7 100644 --- a/apiv1/domain/PaymentProductFieldDisplayElement.go +++ b/apiv1/domain/PaymentProductFieldDisplayElement.go @@ -11,7 +11,7 @@ type PaymentProductFieldDisplayElement struct { Value *string `json:"value,omitempty"` } -// NewPaymentProductFieldDisplayElement constructs a new PaymentProductFieldDisplayElement +// NewPaymentProductFieldDisplayElement constructs a new PaymentProductFieldDisplayElement instance func NewPaymentProductFieldDisplayElement() *PaymentProductFieldDisplayElement { return &PaymentProductFieldDisplayElement{} } diff --git a/apiv1/domain/PaymentProductFieldDisplayHints.go b/apiv1/domain/PaymentProductFieldDisplayHints.go index 5413053..4a80907 100644 --- a/apiv1/domain/PaymentProductFieldDisplayHints.go +++ b/apiv1/domain/PaymentProductFieldDisplayHints.go @@ -17,7 +17,7 @@ type PaymentProductFieldDisplayHints struct { Tooltip *PaymentProductFieldTooltip `json:"tooltip,omitempty"` } -// NewPaymentProductFieldDisplayHints constructs a new PaymentProductFieldDisplayHints +// NewPaymentProductFieldDisplayHints constructs a new PaymentProductFieldDisplayHints instance func NewPaymentProductFieldDisplayHints() *PaymentProductFieldDisplayHints { return &PaymentProductFieldDisplayHints{} } diff --git a/apiv1/domain/PaymentProductFieldFormElement.go b/apiv1/domain/PaymentProductFieldFormElement.go index 8223777..aaee9af 100644 --- a/apiv1/domain/PaymentProductFieldFormElement.go +++ b/apiv1/domain/PaymentProductFieldFormElement.go @@ -9,7 +9,7 @@ type PaymentProductFieldFormElement struct { ValueMapping *[]ValueMappingElement `json:"valueMapping,omitempty"` } -// NewPaymentProductFieldFormElement constructs a new PaymentProductFieldFormElement +// NewPaymentProductFieldFormElement constructs a new PaymentProductFieldFormElement instance func NewPaymentProductFieldFormElement() *PaymentProductFieldFormElement { return &PaymentProductFieldFormElement{} } diff --git a/apiv1/domain/PaymentProductFieldTooltip.go b/apiv1/domain/PaymentProductFieldTooltip.go index 9d9bea1..e8db18b 100644 --- a/apiv1/domain/PaymentProductFieldTooltip.go +++ b/apiv1/domain/PaymentProductFieldTooltip.go @@ -9,7 +9,7 @@ type PaymentProductFieldTooltip struct { Label *string `json:"label,omitempty"` } -// NewPaymentProductFieldTooltip constructs a new PaymentProductFieldTooltip +// NewPaymentProductFieldTooltip constructs a new PaymentProductFieldTooltip instance func NewPaymentProductFieldTooltip() *PaymentProductFieldTooltip { return &PaymentProductFieldTooltip{} } diff --git a/apiv1/domain/PaymentProductFieldValidators.go b/apiv1/domain/PaymentProductFieldValidators.go index e53885e..4560e55 100644 --- a/apiv1/domain/PaymentProductFieldValidators.go +++ b/apiv1/domain/PaymentProductFieldValidators.go @@ -18,7 +18,7 @@ type PaymentProductFieldValidators struct { TermsAndConditions *EmptyValidator `json:"termsAndConditions,omitempty"` } -// NewPaymentProductFieldValidators constructs a new PaymentProductFieldValidators +// NewPaymentProductFieldValidators constructs a new PaymentProductFieldValidators instance func NewPaymentProductFieldValidators() *PaymentProductFieldValidators { return &PaymentProductFieldValidators{} } diff --git a/apiv1/domain/PaymentProductFilter.go b/apiv1/domain/PaymentProductFilter.go index c42eac9..7f068ab 100644 --- a/apiv1/domain/PaymentProductFilter.go +++ b/apiv1/domain/PaymentProductFilter.go @@ -9,7 +9,7 @@ type PaymentProductFilter struct { Products *[]int32 `json:"products,omitempty"` } -// NewPaymentProductFilter constructs a new PaymentProductFilter +// NewPaymentProductFilter constructs a new PaymentProductFilter instance func NewPaymentProductFilter() *PaymentProductFilter { return &PaymentProductFilter{} } diff --git a/apiv1/domain/PaymentProductFiltersClientSession.go b/apiv1/domain/PaymentProductFiltersClientSession.go index a7b8193..801ee0b 100644 --- a/apiv1/domain/PaymentProductFiltersClientSession.go +++ b/apiv1/domain/PaymentProductFiltersClientSession.go @@ -9,7 +9,7 @@ type PaymentProductFiltersClientSession struct { RestrictTo *PaymentProductFilter `json:"restrictTo,omitempty"` } -// NewPaymentProductFiltersClientSession constructs a new PaymentProductFiltersClientSession +// NewPaymentProductFiltersClientSession constructs a new PaymentProductFiltersClientSession instance func NewPaymentProductFiltersClientSession() *PaymentProductFiltersClientSession { return &PaymentProductFiltersClientSession{} } diff --git a/apiv1/domain/PaymentProductFiltersHostedCheckout.go b/apiv1/domain/PaymentProductFiltersHostedCheckout.go index 282621e..31c9b80 100644 --- a/apiv1/domain/PaymentProductFiltersHostedCheckout.go +++ b/apiv1/domain/PaymentProductFiltersHostedCheckout.go @@ -10,7 +10,7 @@ type PaymentProductFiltersHostedCheckout struct { TokensOnly *bool `json:"tokensOnly,omitempty"` } -// NewPaymentProductFiltersHostedCheckout constructs a new PaymentProductFiltersHostedCheckout +// NewPaymentProductFiltersHostedCheckout constructs a new PaymentProductFiltersHostedCheckout instance func NewPaymentProductFiltersHostedCheckout() *PaymentProductFiltersHostedCheckout { return &PaymentProductFiltersHostedCheckout{} } diff --git a/apiv1/domain/PaymentProductGroup.go b/apiv1/domain/PaymentProductGroup.go index 6c9bee5..defcb73 100644 --- a/apiv1/domain/PaymentProductGroup.go +++ b/apiv1/domain/PaymentProductGroup.go @@ -13,7 +13,7 @@ type PaymentProductGroup struct { ID *string `json:"id,omitempty"` } -// NewPaymentProductGroup constructs a new PaymentProductGroup +// NewPaymentProductGroup constructs a new PaymentProductGroup instance func NewPaymentProductGroup() *PaymentProductGroup { return &PaymentProductGroup{} } diff --git a/apiv1/domain/PaymentProductGroupResponse.go b/apiv1/domain/PaymentProductGroupResponse.go index 8df071a..4ce164b 100644 --- a/apiv1/domain/PaymentProductGroupResponse.go +++ b/apiv1/domain/PaymentProductGroupResponse.go @@ -13,7 +13,7 @@ type PaymentProductGroupResponse struct { ID *string `json:"id,omitempty"` } -// NewPaymentProductGroupResponse constructs a new PaymentProductGroupResponse +// NewPaymentProductGroupResponse constructs a new PaymentProductGroupResponse instance func NewPaymentProductGroupResponse() *PaymentProductGroupResponse { return &PaymentProductGroupResponse{} } diff --git a/apiv1/domain/PaymentProductGroups.go b/apiv1/domain/PaymentProductGroups.go index 912febb..d546d09 100644 --- a/apiv1/domain/PaymentProductGroups.go +++ b/apiv1/domain/PaymentProductGroups.go @@ -8,7 +8,7 @@ type PaymentProductGroups struct { PaymentProductGroups *[]PaymentProductGroup `json:"paymentProductGroups,omitempty"` } -// NewPaymentProductGroups constructs a new PaymentProductGroups +// NewPaymentProductGroups constructs a new PaymentProductGroups instance func NewPaymentProductGroups() *PaymentProductGroups { return &PaymentProductGroups{} } diff --git a/apiv1/domain/PaymentProductNetworksResponse.go b/apiv1/domain/PaymentProductNetworksResponse.go index 172e6a3..26e933f 100644 --- a/apiv1/domain/PaymentProductNetworksResponse.go +++ b/apiv1/domain/PaymentProductNetworksResponse.go @@ -8,7 +8,7 @@ type PaymentProductNetworksResponse struct { Networks *[]string `json:"networks,omitempty"` } -// NewPaymentProductNetworksResponse constructs a new PaymentProductNetworksResponse +// NewPaymentProductNetworksResponse constructs a new PaymentProductNetworksResponse instance func NewPaymentProductNetworksResponse() *PaymentProductNetworksResponse { return &PaymentProductNetworksResponse{} } diff --git a/apiv1/domain/PaymentProductResponse.go b/apiv1/domain/PaymentProductResponse.go index 4801f19..b2beae5 100644 --- a/apiv1/domain/PaymentProductResponse.go +++ b/apiv1/domain/PaymentProductResponse.go @@ -32,7 +32,7 @@ type PaymentProductResponse struct { UsesRedirectionTo3rdParty *bool `json:"usesRedirectionTo3rdParty,omitempty"` } -// NewPaymentProductResponse constructs a new PaymentProductResponse +// NewPaymentProductResponse constructs a new PaymentProductResponse instance func NewPaymentProductResponse() *PaymentProductResponse { return &PaymentProductResponse{} } diff --git a/apiv1/domain/PaymentProducts.go b/apiv1/domain/PaymentProducts.go index 98fe19d..0a4953f 100644 --- a/apiv1/domain/PaymentProducts.go +++ b/apiv1/domain/PaymentProducts.go @@ -8,7 +8,7 @@ type PaymentProducts struct { PaymentProducts *[]PaymentProduct `json:"paymentProducts,omitempty"` } -// NewPaymentProducts constructs a new PaymentProducts +// NewPaymentProducts constructs a new PaymentProducts instance func NewPaymentProducts() *PaymentProducts { return &PaymentProducts{} } diff --git a/apiv1/domain/PaymentReferences.go b/apiv1/domain/PaymentReferences.go index bc51397..481a0c3 100644 --- a/apiv1/domain/PaymentReferences.go +++ b/apiv1/domain/PaymentReferences.go @@ -14,7 +14,7 @@ type PaymentReferences struct { ReferenceOrigPayment *string `json:"referenceOrigPayment,omitempty"` } -// NewPaymentReferences constructs a new PaymentReferences +// NewPaymentReferences constructs a new PaymentReferences instance func NewPaymentReferences() *PaymentReferences { return &PaymentReferences{} } diff --git a/apiv1/domain/PaymentResponse.go b/apiv1/domain/PaymentResponse.go index e6f5bc0..894dcbd 100644 --- a/apiv1/domain/PaymentResponse.go +++ b/apiv1/domain/PaymentResponse.go @@ -12,7 +12,7 @@ type PaymentResponse struct { StatusOutput *PaymentStatusOutput `json:"statusOutput,omitempty"` } -// NewPaymentResponse constructs a new PaymentResponse +// NewPaymentResponse constructs a new PaymentResponse instance func NewPaymentResponse() *PaymentResponse { return &PaymentResponse{} } diff --git a/apiv1/domain/PaymentStatusOutput.go b/apiv1/domain/PaymentStatusOutput.go index d24c479..9595e7c 100644 --- a/apiv1/domain/PaymentStatusOutput.go +++ b/apiv1/domain/PaymentStatusOutput.go @@ -17,7 +17,7 @@ type PaymentStatusOutput struct { ThreeDSecureStatus *string `json:"threeDSecureStatus,omitempty"` } -// NewPaymentStatusOutput constructs a new PaymentStatusOutput +// NewPaymentStatusOutput constructs a new PaymentStatusOutput instance func NewPaymentStatusOutput() *PaymentStatusOutput { return &PaymentStatusOutput{} } diff --git a/apiv1/domain/PayoutCustomer.go b/apiv1/domain/PayoutCustomer.go index ddade23..ab14740 100644 --- a/apiv1/domain/PayoutCustomer.go +++ b/apiv1/domain/PayoutCustomer.go @@ -12,7 +12,7 @@ type PayoutCustomer struct { Name *PersonalName `json:"name,omitempty"` } -// NewPayoutCustomer constructs a new PayoutCustomer +// NewPayoutCustomer constructs a new PayoutCustomer instance func NewPayoutCustomer() *PayoutCustomer { return &PayoutCustomer{} } diff --git a/apiv1/domain/PayoutDetails.go b/apiv1/domain/PayoutDetails.go index 7f27498..6211437 100644 --- a/apiv1/domain/PayoutDetails.go +++ b/apiv1/domain/PayoutDetails.go @@ -10,7 +10,7 @@ type PayoutDetails struct { References *PayoutReferences `json:"references,omitempty"` } -// NewPayoutDetails constructs a new PayoutDetails +// NewPayoutDetails constructs a new PayoutDetails instance func NewPayoutDetails() *PayoutDetails { return &PayoutDetails{} } diff --git a/apiv1/domain/PayoutErrorResponse.go b/apiv1/domain/PayoutErrorResponse.go index d2be9ad..7592a7e 100644 --- a/apiv1/domain/PayoutErrorResponse.go +++ b/apiv1/domain/PayoutErrorResponse.go @@ -10,7 +10,7 @@ type PayoutErrorResponse struct { PayoutResult *PayoutResult `json:"payoutResult,omitempty"` } -// NewPayoutErrorResponse constructs a new PayoutErrorResponse +// NewPayoutErrorResponse constructs a new PayoutErrorResponse instance func NewPayoutErrorResponse() *PayoutErrorResponse { return &PayoutErrorResponse{} } diff --git a/apiv1/domain/PayoutMerchant.go b/apiv1/domain/PayoutMerchant.go index 0203ca0..60e10b8 100644 --- a/apiv1/domain/PayoutMerchant.go +++ b/apiv1/domain/PayoutMerchant.go @@ -8,7 +8,7 @@ type PayoutMerchant struct { ConfigurationID *string `json:"configurationId,omitempty"` } -// NewPayoutMerchant constructs a new PayoutMerchant +// NewPayoutMerchant constructs a new PayoutMerchant instance func NewPayoutMerchant() *PayoutMerchant { return &PayoutMerchant{} } diff --git a/apiv1/domain/PayoutRecipient.go b/apiv1/domain/PayoutRecipient.go index c789716..2601fc6 100644 --- a/apiv1/domain/PayoutRecipient.go +++ b/apiv1/domain/PayoutRecipient.go @@ -10,7 +10,7 @@ type PayoutRecipient struct { SurnamePrefix *string `json:"surnamePrefix,omitempty"` } -// NewPayoutRecipient constructs a new PayoutRecipient +// NewPayoutRecipient constructs a new PayoutRecipient instance func NewPayoutRecipient() *PayoutRecipient { return &PayoutRecipient{} } diff --git a/apiv1/domain/PayoutReferences.go b/apiv1/domain/PayoutReferences.go index 4e4944f..ee52259 100644 --- a/apiv1/domain/PayoutReferences.go +++ b/apiv1/domain/PayoutReferences.go @@ -10,7 +10,7 @@ type PayoutReferences struct { MerchantReference *string `json:"merchantReference,omitempty"` } -// NewPayoutReferences constructs a new PayoutReferences +// NewPayoutReferences constructs a new PayoutReferences instance func NewPayoutReferences() *PayoutReferences { return &PayoutReferences{} } diff --git a/apiv1/domain/PayoutResponse.go b/apiv1/domain/PayoutResponse.go index f0adea9..f3948b3 100644 --- a/apiv1/domain/PayoutResponse.go +++ b/apiv1/domain/PayoutResponse.go @@ -11,7 +11,7 @@ type PayoutResponse struct { StatusOutput *OrderStatusOutput `json:"statusOutput,omitempty"` } -// NewPayoutResponse constructs a new PayoutResponse +// NewPayoutResponse constructs a new PayoutResponse instance func NewPayoutResponse() *PayoutResponse { return &PayoutResponse{} } diff --git a/apiv1/domain/PayoutResult.go b/apiv1/domain/PayoutResult.go index 630ae04..a70c094 100644 --- a/apiv1/domain/PayoutResult.go +++ b/apiv1/domain/PayoutResult.go @@ -11,7 +11,7 @@ type PayoutResult struct { StatusOutput *OrderStatusOutput `json:"statusOutput,omitempty"` } -// NewPayoutResult constructs a new PayoutResult +// NewPayoutResult constructs a new PayoutResult instance func NewPayoutResult() *PayoutResult { return &PayoutResult{} } diff --git a/apiv1/domain/PersonalIdentification.go b/apiv1/domain/PersonalIdentification.go index 64dc7c6..144fe6d 100644 --- a/apiv1/domain/PersonalIdentification.go +++ b/apiv1/domain/PersonalIdentification.go @@ -10,7 +10,7 @@ type PersonalIdentification struct { IDValue *string `json:"idValue,omitempty"` } -// NewPersonalIdentification constructs a new PersonalIdentification +// NewPersonalIdentification constructs a new PersonalIdentification instance func NewPersonalIdentification() *PersonalIdentification { return &PersonalIdentification{} } diff --git a/apiv1/domain/PersonalInformation.go b/apiv1/domain/PersonalInformation.go index 2705804..0c1d051 100644 --- a/apiv1/domain/PersonalInformation.go +++ b/apiv1/domain/PersonalInformation.go @@ -11,7 +11,7 @@ type PersonalInformation struct { Name *PersonalName `json:"name,omitempty"` } -// NewPersonalInformation constructs a new PersonalInformation +// NewPersonalInformation constructs a new PersonalInformation instance func NewPersonalInformation() *PersonalInformation { return &PersonalInformation{} } diff --git a/apiv1/domain/PersonalInformationRiskAssessment.go b/apiv1/domain/PersonalInformationRiskAssessment.go index e32736f..1d24591 100644 --- a/apiv1/domain/PersonalInformationRiskAssessment.go +++ b/apiv1/domain/PersonalInformationRiskAssessment.go @@ -8,7 +8,7 @@ type PersonalInformationRiskAssessment struct { Name *PersonalNameRiskAssessment `json:"name,omitempty"` } -// NewPersonalInformationRiskAssessment constructs a new PersonalInformationRiskAssessment +// NewPersonalInformationRiskAssessment constructs a new PersonalInformationRiskAssessment instance func NewPersonalInformationRiskAssessment() *PersonalInformationRiskAssessment { return &PersonalInformationRiskAssessment{} } diff --git a/apiv1/domain/PersonalInformationToken.go b/apiv1/domain/PersonalInformationToken.go index 20f5c67..b8e2c13 100644 --- a/apiv1/domain/PersonalInformationToken.go +++ b/apiv1/domain/PersonalInformationToken.go @@ -8,7 +8,7 @@ type PersonalInformationToken struct { Name *PersonalNameToken `json:"name,omitempty"` } -// NewPersonalInformationToken constructs a new PersonalInformationToken +// NewPersonalInformationToken constructs a new PersonalInformationToken instance func NewPersonalInformationToken() *PersonalInformationToken { return &PersonalInformationToken{} } diff --git a/apiv1/domain/PersonalName.go b/apiv1/domain/PersonalName.go index 3fe2f42..1cd09be 100644 --- a/apiv1/domain/PersonalName.go +++ b/apiv1/domain/PersonalName.go @@ -11,7 +11,7 @@ type PersonalName struct { Title *string `json:"title,omitempty"` } -// NewPersonalName constructs a new PersonalName +// NewPersonalName constructs a new PersonalName instance func NewPersonalName() *PersonalName { return &PersonalName{} } diff --git a/apiv1/domain/PersonalNameRiskAssessment.go b/apiv1/domain/PersonalNameRiskAssessment.go index 995b5cd..76d0fef 100644 --- a/apiv1/domain/PersonalNameRiskAssessment.go +++ b/apiv1/domain/PersonalNameRiskAssessment.go @@ -10,7 +10,7 @@ type PersonalNameRiskAssessment struct { SurnamePrefix *string `json:"surnamePrefix,omitempty"` } -// NewPersonalNameRiskAssessment constructs a new PersonalNameRiskAssessment +// NewPersonalNameRiskAssessment constructs a new PersonalNameRiskAssessment instance func NewPersonalNameRiskAssessment() *PersonalNameRiskAssessment { return &PersonalNameRiskAssessment{} } diff --git a/apiv1/domain/PersonalNameToken.go b/apiv1/domain/PersonalNameToken.go index c2a7dc4..4501287 100644 --- a/apiv1/domain/PersonalNameToken.go +++ b/apiv1/domain/PersonalNameToken.go @@ -10,7 +10,7 @@ type PersonalNameToken struct { SurnamePrefix *string `json:"surnamePrefix,omitempty"` } -// NewPersonalNameToken constructs a new PersonalNameToken +// NewPersonalNameToken constructs a new PersonalNameToken instance func NewPersonalNameToken() *PersonalNameToken { return &PersonalNameToken{} } diff --git a/apiv1/domain/ProtectionEligibility.go b/apiv1/domain/ProtectionEligibility.go index e34b32e..d8d6040 100644 --- a/apiv1/domain/ProtectionEligibility.go +++ b/apiv1/domain/ProtectionEligibility.go @@ -9,7 +9,7 @@ type ProtectionEligibility struct { Type *string `json:"type,omitempty"` } -// NewProtectionEligibility constructs a new ProtectionEligibility +// NewProtectionEligibility constructs a new ProtectionEligibility instance func NewProtectionEligibility() *ProtectionEligibility { return &ProtectionEligibility{} } diff --git a/apiv1/domain/RangeValidator.go b/apiv1/domain/RangeValidator.go index 97c7171..32f2e40 100644 --- a/apiv1/domain/RangeValidator.go +++ b/apiv1/domain/RangeValidator.go @@ -9,7 +9,7 @@ type RangeValidator struct { MinValue *int32 `json:"minValue,omitempty"` } -// NewRangeValidator constructs a new RangeValidator +// NewRangeValidator constructs a new RangeValidator instance func NewRangeValidator() *RangeValidator { return &RangeValidator{} } diff --git a/apiv1/domain/RecurringPaymentsData.go b/apiv1/domain/RecurringPaymentsData.go index b058ba8..85ace31 100644 --- a/apiv1/domain/RecurringPaymentsData.go +++ b/apiv1/domain/RecurringPaymentsData.go @@ -9,7 +9,7 @@ type RecurringPaymentsData struct { TrialInformation *TrialInformation `json:"trialInformation,omitempty"` } -// NewRecurringPaymentsData constructs a new RecurringPaymentsData +// NewRecurringPaymentsData constructs a new RecurringPaymentsData instance func NewRecurringPaymentsData() *RecurringPaymentsData { return &RecurringPaymentsData{} } diff --git a/apiv1/domain/RedirectData.go b/apiv1/domain/RedirectData.go index 3f4f93b..61c6a99 100644 --- a/apiv1/domain/RedirectData.go +++ b/apiv1/domain/RedirectData.go @@ -9,7 +9,7 @@ type RedirectData struct { RedirectURL *string `json:"redirectURL,omitempty"` } -// NewRedirectData constructs a new RedirectData +// NewRedirectData constructs a new RedirectData instance func NewRedirectData() *RedirectData { return &RedirectData{} } diff --git a/apiv1/domain/RedirectPaymentMethodSpecificInput.go b/apiv1/domain/RedirectPaymentMethodSpecificInput.go index 075fa1c..39eac65 100644 --- a/apiv1/domain/RedirectPaymentMethodSpecificInput.go +++ b/apiv1/domain/RedirectPaymentMethodSpecificInput.go @@ -25,7 +25,7 @@ type RedirectPaymentMethodSpecificInput struct { Tokenize *bool `json:"tokenize,omitempty"` } -// NewRedirectPaymentMethodSpecificInput constructs a new RedirectPaymentMethodSpecificInput +// NewRedirectPaymentMethodSpecificInput constructs a new RedirectPaymentMethodSpecificInput instance func NewRedirectPaymentMethodSpecificInput() *RedirectPaymentMethodSpecificInput { return &RedirectPaymentMethodSpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentMethodSpecificInputBase.go b/apiv1/domain/RedirectPaymentMethodSpecificInputBase.go index 7ddd509..7395ed4 100644 --- a/apiv1/domain/RedirectPaymentMethodSpecificInputBase.go +++ b/apiv1/domain/RedirectPaymentMethodSpecificInputBase.go @@ -15,7 +15,7 @@ type RedirectPaymentMethodSpecificInputBase struct { Tokenize *bool `json:"tokenize,omitempty"` } -// NewRedirectPaymentMethodSpecificInputBase constructs a new RedirectPaymentMethodSpecificInputBase +// NewRedirectPaymentMethodSpecificInputBase constructs a new RedirectPaymentMethodSpecificInputBase instance func NewRedirectPaymentMethodSpecificInputBase() *RedirectPaymentMethodSpecificInputBase { return &RedirectPaymentMethodSpecificInputBase{} } diff --git a/apiv1/domain/RedirectPaymentMethodSpecificOutput.go b/apiv1/domain/RedirectPaymentMethodSpecificOutput.go index 1035eab..92eb810 100644 --- a/apiv1/domain/RedirectPaymentMethodSpecificOutput.go +++ b/apiv1/domain/RedirectPaymentMethodSpecificOutput.go @@ -17,7 +17,7 @@ type RedirectPaymentMethodSpecificOutput struct { Token *string `json:"token,omitempty"` } -// NewRedirectPaymentMethodSpecificOutput constructs a new RedirectPaymentMethodSpecificOutput +// NewRedirectPaymentMethodSpecificOutput constructs a new RedirectPaymentMethodSpecificOutput instance func NewRedirectPaymentMethodSpecificOutput() *RedirectPaymentMethodSpecificOutput { return &RedirectPaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/RedirectPaymentProduct4101SpecificInput.go b/apiv1/domain/RedirectPaymentProduct4101SpecificInput.go index 7acf206..2e1ae8a 100644 --- a/apiv1/domain/RedirectPaymentProduct4101SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct4101SpecificInput.go @@ -10,7 +10,7 @@ type RedirectPaymentProduct4101SpecificInput struct { VirtualPaymentAddress *string `json:"virtualPaymentAddress,omitempty"` } -// NewRedirectPaymentProduct4101SpecificInput constructs a new RedirectPaymentProduct4101SpecificInput +// NewRedirectPaymentProduct4101SpecificInput constructs a new RedirectPaymentProduct4101SpecificInput instance func NewRedirectPaymentProduct4101SpecificInput() *RedirectPaymentProduct4101SpecificInput { return &RedirectPaymentProduct4101SpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentProduct4101SpecificInputBase.go b/apiv1/domain/RedirectPaymentProduct4101SpecificInputBase.go index 1eb8ee0..e31656b 100644 --- a/apiv1/domain/RedirectPaymentProduct4101SpecificInputBase.go +++ b/apiv1/domain/RedirectPaymentProduct4101SpecificInputBase.go @@ -8,7 +8,7 @@ type RedirectPaymentProduct4101SpecificInputBase struct { DisplayName *string `json:"displayName,omitempty"` } -// NewRedirectPaymentProduct4101SpecificInputBase constructs a new RedirectPaymentProduct4101SpecificInputBase +// NewRedirectPaymentProduct4101SpecificInputBase constructs a new RedirectPaymentProduct4101SpecificInputBase instance func NewRedirectPaymentProduct4101SpecificInputBase() *RedirectPaymentProduct4101SpecificInputBase { return &RedirectPaymentProduct4101SpecificInputBase{} } diff --git a/apiv1/domain/RedirectPaymentProduct809SpecificInput.go b/apiv1/domain/RedirectPaymentProduct809SpecificInput.go index 94683c0..9232260 100644 --- a/apiv1/domain/RedirectPaymentProduct809SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct809SpecificInput.go @@ -10,7 +10,7 @@ type RedirectPaymentProduct809SpecificInput struct { IssuerID *string `json:"issuerId,omitempty"` } -// NewRedirectPaymentProduct809SpecificInput constructs a new RedirectPaymentProduct809SpecificInput +// NewRedirectPaymentProduct809SpecificInput constructs a new RedirectPaymentProduct809SpecificInput instance func NewRedirectPaymentProduct809SpecificInput() *RedirectPaymentProduct809SpecificInput { return &RedirectPaymentProduct809SpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentProduct816SpecificInput.go b/apiv1/domain/RedirectPaymentProduct816SpecificInput.go index 8936327..6800d82 100644 --- a/apiv1/domain/RedirectPaymentProduct816SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct816SpecificInput.go @@ -8,7 +8,7 @@ type RedirectPaymentProduct816SpecificInput struct { BankAccountIban *BankAccountIban `json:"bankAccountIban,omitempty"` } -// NewRedirectPaymentProduct816SpecificInput constructs a new RedirectPaymentProduct816SpecificInput +// NewRedirectPaymentProduct816SpecificInput constructs a new RedirectPaymentProduct816SpecificInput instance func NewRedirectPaymentProduct816SpecificInput() *RedirectPaymentProduct816SpecificInput { return &RedirectPaymentProduct816SpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentProduct840SpecificInput.go b/apiv1/domain/RedirectPaymentProduct840SpecificInput.go index d9057f9..ea20c8e 100644 --- a/apiv1/domain/RedirectPaymentProduct840SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct840SpecificInput.go @@ -11,7 +11,7 @@ type RedirectPaymentProduct840SpecificInput struct { IsShortcut *bool `json:"isShortcut,omitempty"` } -// NewRedirectPaymentProduct840SpecificInput constructs a new RedirectPaymentProduct840SpecificInput +// NewRedirectPaymentProduct840SpecificInput constructs a new RedirectPaymentProduct840SpecificInput instance func NewRedirectPaymentProduct840SpecificInput() *RedirectPaymentProduct840SpecificInput { return &RedirectPaymentProduct840SpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentProduct840SpecificInputBase.go b/apiv1/domain/RedirectPaymentProduct840SpecificInputBase.go index 144c424..81fd840 100644 --- a/apiv1/domain/RedirectPaymentProduct840SpecificInputBase.go +++ b/apiv1/domain/RedirectPaymentProduct840SpecificInputBase.go @@ -8,7 +8,7 @@ type RedirectPaymentProduct840SpecificInputBase struct { AddressSelectionAtPayPal *bool `json:"addressSelectionAtPayPal,omitempty"` } -// NewRedirectPaymentProduct840SpecificInputBase constructs a new RedirectPaymentProduct840SpecificInputBase +// NewRedirectPaymentProduct840SpecificInputBase constructs a new RedirectPaymentProduct840SpecificInputBase instance func NewRedirectPaymentProduct840SpecificInputBase() *RedirectPaymentProduct840SpecificInputBase { return &RedirectPaymentProduct840SpecificInputBase{} } diff --git a/apiv1/domain/RedirectPaymentProduct861SpecificInput.go b/apiv1/domain/RedirectPaymentProduct861SpecificInput.go index 2a10e76..10a7b1b 100644 --- a/apiv1/domain/RedirectPaymentProduct861SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct861SpecificInput.go @@ -8,7 +8,7 @@ type RedirectPaymentProduct861SpecificInput struct { MobileDevice *bool `json:"mobileDevice,omitempty"` } -// NewRedirectPaymentProduct861SpecificInput constructs a new RedirectPaymentProduct861SpecificInput +// NewRedirectPaymentProduct861SpecificInput constructs a new RedirectPaymentProduct861SpecificInput instance func NewRedirectPaymentProduct861SpecificInput() *RedirectPaymentProduct861SpecificInput { return &RedirectPaymentProduct861SpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentProduct863SpecificInput.go b/apiv1/domain/RedirectPaymentProduct863SpecificInput.go index 6928796..e6c09c6 100644 --- a/apiv1/domain/RedirectPaymentProduct863SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct863SpecificInput.go @@ -9,7 +9,7 @@ type RedirectPaymentProduct863SpecificInput struct { OpenID *string `json:"openId,omitempty"` } -// NewRedirectPaymentProduct863SpecificInput constructs a new RedirectPaymentProduct863SpecificInput +// NewRedirectPaymentProduct863SpecificInput constructs a new RedirectPaymentProduct863SpecificInput instance func NewRedirectPaymentProduct863SpecificInput() *RedirectPaymentProduct863SpecificInput { return &RedirectPaymentProduct863SpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentProduct869SpecificInput.go b/apiv1/domain/RedirectPaymentProduct869SpecificInput.go index 64efe28..76f32c5 100644 --- a/apiv1/domain/RedirectPaymentProduct869SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct869SpecificInput.go @@ -10,7 +10,7 @@ type RedirectPaymentProduct869SpecificInput struct { ResidentIDNumber *string `json:"residentIdNumber,omitempty"` } -// NewRedirectPaymentProduct869SpecificInput constructs a new RedirectPaymentProduct869SpecificInput +// NewRedirectPaymentProduct869SpecificInput constructs a new RedirectPaymentProduct869SpecificInput instance func NewRedirectPaymentProduct869SpecificInput() *RedirectPaymentProduct869SpecificInput { return &RedirectPaymentProduct869SpecificInput{} } diff --git a/apiv1/domain/RedirectPaymentProduct882SpecificInput.go b/apiv1/domain/RedirectPaymentProduct882SpecificInput.go index 3eae7eb..5f25e1a 100644 --- a/apiv1/domain/RedirectPaymentProduct882SpecificInput.go +++ b/apiv1/domain/RedirectPaymentProduct882SpecificInput.go @@ -8,7 +8,7 @@ type RedirectPaymentProduct882SpecificInput struct { IssuerID *string `json:"issuerId,omitempty"` } -// NewRedirectPaymentProduct882SpecificInput constructs a new RedirectPaymentProduct882SpecificInput +// NewRedirectPaymentProduct882SpecificInput constructs a new RedirectPaymentProduct882SpecificInput instance func NewRedirectPaymentProduct882SpecificInput() *RedirectPaymentProduct882SpecificInput { return &RedirectPaymentProduct882SpecificInput{} } diff --git a/apiv1/domain/RedirectionData.go b/apiv1/domain/RedirectionData.go index ba7107f..f5ccd19 100644 --- a/apiv1/domain/RedirectionData.go +++ b/apiv1/domain/RedirectionData.go @@ -9,7 +9,7 @@ type RedirectionData struct { Variant *string `json:"variant,omitempty"` } -// NewRedirectionData constructs a new RedirectionData +// NewRedirectionData constructs a new RedirectionData instance func NewRedirectionData() *RedirectionData { return &RedirectionData{} } diff --git a/apiv1/domain/RefundBankMethodSpecificOutput.go b/apiv1/domain/RefundBankMethodSpecificOutput.go index a8a535a..6d612ce 100644 --- a/apiv1/domain/RefundBankMethodSpecificOutput.go +++ b/apiv1/domain/RefundBankMethodSpecificOutput.go @@ -10,7 +10,7 @@ type RefundBankMethodSpecificOutput struct { TotalAmountRefunded *int64 `json:"totalAmountRefunded,omitempty"` } -// NewRefundBankMethodSpecificOutput constructs a new RefundBankMethodSpecificOutput +// NewRefundBankMethodSpecificOutput constructs a new RefundBankMethodSpecificOutput instance func NewRefundBankMethodSpecificOutput() *RefundBankMethodSpecificOutput { return &RefundBankMethodSpecificOutput{} } diff --git a/apiv1/domain/RefundCardMethodSpecificOutput.go b/apiv1/domain/RefundCardMethodSpecificOutput.go index 0e78530..4e5100a 100644 --- a/apiv1/domain/RefundCardMethodSpecificOutput.go +++ b/apiv1/domain/RefundCardMethodSpecificOutput.go @@ -12,7 +12,7 @@ type RefundCardMethodSpecificOutput struct { TotalAmountRefunded *int64 `json:"totalAmountRefunded,omitempty"` } -// NewRefundCardMethodSpecificOutput constructs a new RefundCardMethodSpecificOutput +// NewRefundCardMethodSpecificOutput constructs a new RefundCardMethodSpecificOutput instance func NewRefundCardMethodSpecificOutput() *RefundCardMethodSpecificOutput { return &RefundCardMethodSpecificOutput{} } diff --git a/apiv1/domain/RefundCashMethodSpecificOutput.go b/apiv1/domain/RefundCashMethodSpecificOutput.go index 752cf01..a876abb 100644 --- a/apiv1/domain/RefundCashMethodSpecificOutput.go +++ b/apiv1/domain/RefundCashMethodSpecificOutput.go @@ -10,7 +10,7 @@ type RefundCashMethodSpecificOutput struct { TotalAmountRefunded *int64 `json:"totalAmountRefunded,omitempty"` } -// NewRefundCashMethodSpecificOutput constructs a new RefundCashMethodSpecificOutput +// NewRefundCashMethodSpecificOutput constructs a new RefundCashMethodSpecificOutput instance func NewRefundCashMethodSpecificOutput() *RefundCashMethodSpecificOutput { return &RefundCashMethodSpecificOutput{} } diff --git a/apiv1/domain/RefundCustomer.go b/apiv1/domain/RefundCustomer.go index 4b8f892..095e6e2 100644 --- a/apiv1/domain/RefundCustomer.go +++ b/apiv1/domain/RefundCustomer.go @@ -11,7 +11,7 @@ type RefundCustomer struct { FiscalNumber *string `json:"fiscalNumber,omitempty"` } -// NewRefundCustomer constructs a new RefundCustomer +// NewRefundCustomer constructs a new RefundCustomer instance func NewRefundCustomer() *RefundCustomer { return &RefundCustomer{} } diff --git a/apiv1/domain/RefundEInvoiceMethodSpecificOutput.go b/apiv1/domain/RefundEInvoiceMethodSpecificOutput.go index 1b45cc9..d0ff5eb 100644 --- a/apiv1/domain/RefundEInvoiceMethodSpecificOutput.go +++ b/apiv1/domain/RefundEInvoiceMethodSpecificOutput.go @@ -10,7 +10,7 @@ type RefundEInvoiceMethodSpecificOutput struct { TotalAmountRefunded *int64 `json:"totalAmountRefunded,omitempty"` } -// NewRefundEInvoiceMethodSpecificOutput constructs a new RefundEInvoiceMethodSpecificOutput +// NewRefundEInvoiceMethodSpecificOutput constructs a new RefundEInvoiceMethodSpecificOutput instance func NewRefundEInvoiceMethodSpecificOutput() *RefundEInvoiceMethodSpecificOutput { return &RefundEInvoiceMethodSpecificOutput{} } diff --git a/apiv1/domain/RefundEWalletMethodSpecificOutput.go b/apiv1/domain/RefundEWalletMethodSpecificOutput.go index 05e9ea0..f56673a 100644 --- a/apiv1/domain/RefundEWalletMethodSpecificOutput.go +++ b/apiv1/domain/RefundEWalletMethodSpecificOutput.go @@ -11,7 +11,7 @@ type RefundEWalletMethodSpecificOutput struct { TotalAmountRefunded *int64 `json:"totalAmountRefunded,omitempty"` } -// NewRefundEWalletMethodSpecificOutput constructs a new RefundEWalletMethodSpecificOutput +// NewRefundEWalletMethodSpecificOutput constructs a new RefundEWalletMethodSpecificOutput instance func NewRefundEWalletMethodSpecificOutput() *RefundEWalletMethodSpecificOutput { return &RefundEWalletMethodSpecificOutput{} } diff --git a/apiv1/domain/RefundErrorResponse.go b/apiv1/domain/RefundErrorResponse.go index e7013bd..912438a 100644 --- a/apiv1/domain/RefundErrorResponse.go +++ b/apiv1/domain/RefundErrorResponse.go @@ -10,7 +10,7 @@ type RefundErrorResponse struct { RefundResult *RefundResult `json:"refundResult,omitempty"` } -// NewRefundErrorResponse constructs a new RefundErrorResponse +// NewRefundErrorResponse constructs a new RefundErrorResponse instance func NewRefundErrorResponse() *RefundErrorResponse { return &RefundErrorResponse{} } diff --git a/apiv1/domain/RefundMobileMethodSpecificOutput.go b/apiv1/domain/RefundMobileMethodSpecificOutput.go index 5e90c55..f11919e 100644 --- a/apiv1/domain/RefundMobileMethodSpecificOutput.go +++ b/apiv1/domain/RefundMobileMethodSpecificOutput.go @@ -11,7 +11,7 @@ type RefundMobileMethodSpecificOutput struct { TotalAmountRefunded *int64 `json:"totalAmountRefunded,omitempty"` } -// NewRefundMobileMethodSpecificOutput constructs a new RefundMobileMethodSpecificOutput +// NewRefundMobileMethodSpecificOutput constructs a new RefundMobileMethodSpecificOutput instance func NewRefundMobileMethodSpecificOutput() *RefundMobileMethodSpecificOutput { return &RefundMobileMethodSpecificOutput{} } diff --git a/apiv1/domain/RefundOutput.go b/apiv1/domain/RefundOutput.go index bd093c2..c90db2d 100644 --- a/apiv1/domain/RefundOutput.go +++ b/apiv1/domain/RefundOutput.go @@ -17,7 +17,7 @@ type RefundOutput struct { References *PaymentReferences `json:"references,omitempty"` } -// NewRefundOutput constructs a new RefundOutput +// NewRefundOutput constructs a new RefundOutput instance func NewRefundOutput() *RefundOutput { return &RefundOutput{} } diff --git a/apiv1/domain/RefundPaymentProduct840CustomerAccount.go b/apiv1/domain/RefundPaymentProduct840CustomerAccount.go index 3bdc411..9a98205 100644 --- a/apiv1/domain/RefundPaymentProduct840CustomerAccount.go +++ b/apiv1/domain/RefundPaymentProduct840CustomerAccount.go @@ -10,7 +10,7 @@ type RefundPaymentProduct840CustomerAccount struct { PayerID *string `json:"payerId,omitempty"` } -// NewRefundPaymentProduct840CustomerAccount constructs a new RefundPaymentProduct840CustomerAccount +// NewRefundPaymentProduct840CustomerAccount constructs a new RefundPaymentProduct840CustomerAccount instance func NewRefundPaymentProduct840CustomerAccount() *RefundPaymentProduct840CustomerAccount { return &RefundPaymentProduct840CustomerAccount{} } diff --git a/apiv1/domain/RefundPaymentProduct840SpecificOutput.go b/apiv1/domain/RefundPaymentProduct840SpecificOutput.go index 92853bb..112cb09 100644 --- a/apiv1/domain/RefundPaymentProduct840SpecificOutput.go +++ b/apiv1/domain/RefundPaymentProduct840SpecificOutput.go @@ -8,7 +8,7 @@ type RefundPaymentProduct840SpecificOutput struct { CustomerAccount *RefundPaymentProduct840CustomerAccount `json:"customerAccount,omitempty"` } -// NewRefundPaymentProduct840SpecificOutput constructs a new RefundPaymentProduct840SpecificOutput +// NewRefundPaymentProduct840SpecificOutput constructs a new RefundPaymentProduct840SpecificOutput instance func NewRefundPaymentProduct840SpecificOutput() *RefundPaymentProduct840SpecificOutput { return &RefundPaymentProduct840SpecificOutput{} } diff --git a/apiv1/domain/RefundReferences.go b/apiv1/domain/RefundReferences.go index e467c19..1c58c4f 100644 --- a/apiv1/domain/RefundReferences.go +++ b/apiv1/domain/RefundReferences.go @@ -8,7 +8,7 @@ type RefundReferences struct { MerchantReference *string `json:"merchantReference,omitempty"` } -// NewRefundReferences constructs a new RefundReferences +// NewRefundReferences constructs a new RefundReferences instance func NewRefundReferences() *RefundReferences { return &RefundReferences{} } diff --git a/apiv1/domain/RefundRequest.go b/apiv1/domain/RefundRequest.go index 3e4aed7..a1f9912 100644 --- a/apiv1/domain/RefundRequest.go +++ b/apiv1/domain/RefundRequest.go @@ -12,7 +12,7 @@ type RefundRequest struct { RefundReferences *RefundReferences `json:"refundReferences,omitempty"` } -// NewRefundRequest constructs a new RefundRequest +// NewRefundRequest constructs a new RefundRequest instance func NewRefundRequest() *RefundRequest { return &RefundRequest{} } diff --git a/apiv1/domain/RefundResponse.go b/apiv1/domain/RefundResponse.go index 37d071d..345ff8f 100644 --- a/apiv1/domain/RefundResponse.go +++ b/apiv1/domain/RefundResponse.go @@ -11,7 +11,7 @@ type RefundResponse struct { StatusOutput *OrderStatusOutput `json:"statusOutput,omitempty"` } -// NewRefundResponse constructs a new RefundResponse +// NewRefundResponse constructs a new RefundResponse instance func NewRefundResponse() *RefundResponse { return &RefundResponse{} } diff --git a/apiv1/domain/RefundResult.go b/apiv1/domain/RefundResult.go index c919972..01f8741 100644 --- a/apiv1/domain/RefundResult.go +++ b/apiv1/domain/RefundResult.go @@ -11,7 +11,7 @@ type RefundResult struct { StatusOutput *OrderStatusOutput `json:"statusOutput,omitempty"` } -// NewRefundResult constructs a new RefundResult +// NewRefundResult constructs a new RefundResult instance func NewRefundResult() *RefundResult { return &RefundResult{} } diff --git a/apiv1/domain/RefundsResponse.go b/apiv1/domain/RefundsResponse.go index e957ed8..3539169 100644 --- a/apiv1/domain/RefundsResponse.go +++ b/apiv1/domain/RefundsResponse.go @@ -8,7 +8,7 @@ type RefundsResponse struct { Refunds *[]RefundResult `json:"refunds,omitempty"` } -// NewRefundsResponse constructs a new RefundsResponse +// NewRefundsResponse constructs a new RefundsResponse instance func NewRefundsResponse() *RefundsResponse { return &RefundsResponse{} } diff --git a/apiv1/domain/RegularExpressionValidator.go b/apiv1/domain/RegularExpressionValidator.go index 08c6666..f88807e 100644 --- a/apiv1/domain/RegularExpressionValidator.go +++ b/apiv1/domain/RegularExpressionValidator.go @@ -8,7 +8,7 @@ type RegularExpressionValidator struct { RegularExpression *string `json:"regularExpression,omitempty"` } -// NewRegularExpressionValidator constructs a new RegularExpressionValidator +// NewRegularExpressionValidator constructs a new RegularExpressionValidator instance func NewRegularExpressionValidator() *RegularExpressionValidator { return &RegularExpressionValidator{} } diff --git a/apiv1/domain/ResultDoRiskAssessment.go b/apiv1/domain/ResultDoRiskAssessment.go index e96eaff..42aa765 100644 --- a/apiv1/domain/ResultDoRiskAssessment.go +++ b/apiv1/domain/ResultDoRiskAssessment.go @@ -11,7 +11,7 @@ type ResultDoRiskAssessment struct { ValidationBankAccountOutput *ValidationBankAccountOutput `json:"validationBankAccountOutput,omitempty"` } -// NewResultDoRiskAssessment constructs a new ResultDoRiskAssessment +// NewResultDoRiskAssessment constructs a new ResultDoRiskAssessment instance func NewResultDoRiskAssessment() *ResultDoRiskAssessment { return &ResultDoRiskAssessment{} } diff --git a/apiv1/domain/RetailDecisionsCCFraudCheckOutput.go b/apiv1/domain/RetailDecisionsCCFraudCheckOutput.go index 0b835c2..7d73154 100644 --- a/apiv1/domain/RetailDecisionsCCFraudCheckOutput.go +++ b/apiv1/domain/RetailDecisionsCCFraudCheckOutput.go @@ -10,7 +10,7 @@ type RetailDecisionsCCFraudCheckOutput struct { FraudRCF *string `json:"fraudRCF,omitempty"` } -// NewRetailDecisionsCCFraudCheckOutput constructs a new RetailDecisionsCCFraudCheckOutput +// NewRetailDecisionsCCFraudCheckOutput constructs a new RetailDecisionsCCFraudCheckOutput instance func NewRetailDecisionsCCFraudCheckOutput() *RetailDecisionsCCFraudCheckOutput { return &RetailDecisionsCCFraudCheckOutput{} } diff --git a/apiv1/domain/RiskAssessmentBankAccount.go b/apiv1/domain/RiskAssessmentBankAccount.go index 596dc2f..c88e6e9 100644 --- a/apiv1/domain/RiskAssessmentBankAccount.go +++ b/apiv1/domain/RiskAssessmentBankAccount.go @@ -13,7 +13,7 @@ type RiskAssessmentBankAccount struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewRiskAssessmentBankAccount constructs a new RiskAssessmentBankAccount +// NewRiskAssessmentBankAccount constructs a new RiskAssessmentBankAccount instance func NewRiskAssessmentBankAccount() *RiskAssessmentBankAccount { return &RiskAssessmentBankAccount{} } diff --git a/apiv1/domain/RiskAssessmentCard.go b/apiv1/domain/RiskAssessmentCard.go index af4693e..3275bc0 100644 --- a/apiv1/domain/RiskAssessmentCard.go +++ b/apiv1/domain/RiskAssessmentCard.go @@ -12,7 +12,7 @@ type RiskAssessmentCard struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewRiskAssessmentCard constructs a new RiskAssessmentCard +// NewRiskAssessmentCard constructs a new RiskAssessmentCard instance func NewRiskAssessmentCard() *RiskAssessmentCard { return &RiskAssessmentCard{} } diff --git a/apiv1/domain/RiskAssessmentResponse.go b/apiv1/domain/RiskAssessmentResponse.go index b7b2535..bd4f955 100644 --- a/apiv1/domain/RiskAssessmentResponse.go +++ b/apiv1/domain/RiskAssessmentResponse.go @@ -8,7 +8,7 @@ type RiskAssessmentResponse struct { Results *[]ResultDoRiskAssessment `json:"results,omitempty"` } -// NewRiskAssessmentResponse constructs a new RiskAssessmentResponse +// NewRiskAssessmentResponse constructs a new RiskAssessmentResponse instance func NewRiskAssessmentResponse() *RiskAssessmentResponse { return &RiskAssessmentResponse{} } diff --git a/apiv1/domain/SchemeTokenData.go b/apiv1/domain/SchemeTokenData.go index 2025c49..c2c5b65 100644 --- a/apiv1/domain/SchemeTokenData.go +++ b/apiv1/domain/SchemeTokenData.go @@ -12,7 +12,7 @@ type SchemeTokenData struct { TokenExpiryDate *string `json:"tokenExpiryDate,omitempty"` } -// NewSchemeTokenData constructs a new SchemeTokenData +// NewSchemeTokenData constructs a new SchemeTokenData instance func NewSchemeTokenData() *SchemeTokenData { return &SchemeTokenData{} } diff --git a/apiv1/domain/SdkDataInput.go b/apiv1/domain/SdkDataInput.go index 32ca10d..c04dc33 100644 --- a/apiv1/domain/SdkDataInput.go +++ b/apiv1/domain/SdkDataInput.go @@ -14,7 +14,7 @@ type SdkDataInput struct { SdkTransactionID *string `json:"sdkTransactionId,omitempty"` } -// NewSdkDataInput constructs a new SdkDataInput +// NewSdkDataInput constructs a new SdkDataInput instance func NewSdkDataInput() *SdkDataInput { return &SdkDataInput{} } diff --git a/apiv1/domain/SdkDataOutput.go b/apiv1/domain/SdkDataOutput.go index 122b54a..0511839 100644 --- a/apiv1/domain/SdkDataOutput.go +++ b/apiv1/domain/SdkDataOutput.go @@ -8,7 +8,7 @@ type SdkDataOutput struct { SdkTransactionID *string `json:"sdkTransactionId,omitempty"` } -// NewSdkDataOutput constructs a new SdkDataOutput +// NewSdkDataOutput constructs a new SdkDataOutput instance func NewSdkDataOutput() *SdkDataOutput { return &SdkDataOutput{} } diff --git a/apiv1/domain/Seller.go b/apiv1/domain/Seller.go index 539f7f3..f31b1db 100644 --- a/apiv1/domain/Seller.go +++ b/apiv1/domain/Seller.go @@ -19,7 +19,7 @@ type Seller struct { Type *string `json:"type,omitempty"` } -// NewSeller constructs a new Seller +// NewSeller constructs a new Seller instance func NewSeller() *Seller { return &Seller{} } diff --git a/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInput.go b/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInput.go index 2fdfddd..6379796 100644 --- a/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInput.go +++ b/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInput.go @@ -16,7 +16,7 @@ type SepaDirectDebitPaymentMethodSpecificInput struct { Tokenize *bool `json:"tokenize,omitempty"` } -// NewSepaDirectDebitPaymentMethodSpecificInput constructs a new SepaDirectDebitPaymentMethodSpecificInput +// NewSepaDirectDebitPaymentMethodSpecificInput constructs a new SepaDirectDebitPaymentMethodSpecificInput instance func NewSepaDirectDebitPaymentMethodSpecificInput() *SepaDirectDebitPaymentMethodSpecificInput { return &SepaDirectDebitPaymentMethodSpecificInput{} } diff --git a/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInputBase.go b/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInputBase.go index 9b5a92c..0ffd16f 100644 --- a/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInputBase.go +++ b/apiv1/domain/SepaDirectDebitPaymentMethodSpecificInputBase.go @@ -9,7 +9,7 @@ type SepaDirectDebitPaymentMethodSpecificInputBase struct { PaymentProductID *int32 `json:"paymentProductId,omitempty"` } -// NewSepaDirectDebitPaymentMethodSpecificInputBase constructs a new SepaDirectDebitPaymentMethodSpecificInputBase +// NewSepaDirectDebitPaymentMethodSpecificInputBase constructs a new SepaDirectDebitPaymentMethodSpecificInputBase instance func NewSepaDirectDebitPaymentMethodSpecificInputBase() *SepaDirectDebitPaymentMethodSpecificInputBase { return &SepaDirectDebitPaymentMethodSpecificInputBase{} } diff --git a/apiv1/domain/SepaDirectDebitPaymentMethodSpecificOutput.go b/apiv1/domain/SepaDirectDebitPaymentMethodSpecificOutput.go index 11806cf..1284617 100644 --- a/apiv1/domain/SepaDirectDebitPaymentMethodSpecificOutput.go +++ b/apiv1/domain/SepaDirectDebitPaymentMethodSpecificOutput.go @@ -11,7 +11,7 @@ type SepaDirectDebitPaymentMethodSpecificOutput struct { Token *string `json:"token,omitempty"` } -// NewSepaDirectDebitPaymentMethodSpecificOutput constructs a new SepaDirectDebitPaymentMethodSpecificOutput +// NewSepaDirectDebitPaymentMethodSpecificOutput constructs a new SepaDirectDebitPaymentMethodSpecificOutput instance func NewSepaDirectDebitPaymentMethodSpecificOutput() *SepaDirectDebitPaymentMethodSpecificOutput { return &SepaDirectDebitPaymentMethodSpecificOutput{} } diff --git a/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInput.go b/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInput.go index 506b42d..0da829e 100644 --- a/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInput.go +++ b/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInput.go @@ -11,7 +11,7 @@ type SepaDirectDebitPaymentProduct771SpecificInput struct { MandateReference *string `json:"mandateReference,omitempty"` } -// NewSepaDirectDebitPaymentProduct771SpecificInput constructs a new SepaDirectDebitPaymentProduct771SpecificInput +// NewSepaDirectDebitPaymentProduct771SpecificInput constructs a new SepaDirectDebitPaymentProduct771SpecificInput instance func NewSepaDirectDebitPaymentProduct771SpecificInput() *SepaDirectDebitPaymentProduct771SpecificInput { return &SepaDirectDebitPaymentProduct771SpecificInput{} } diff --git a/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInputBase.go b/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInputBase.go index c1d6b48..8d49374 100644 --- a/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInputBase.go +++ b/apiv1/domain/SepaDirectDebitPaymentProduct771SpecificInputBase.go @@ -11,7 +11,7 @@ type SepaDirectDebitPaymentProduct771SpecificInputBase struct { MandateReference *string `json:"mandateReference,omitempty"` } -// NewSepaDirectDebitPaymentProduct771SpecificInputBase constructs a new SepaDirectDebitPaymentProduct771SpecificInputBase +// NewSepaDirectDebitPaymentProduct771SpecificInputBase constructs a new SepaDirectDebitPaymentProduct771SpecificInputBase instance func NewSepaDirectDebitPaymentProduct771SpecificInputBase() *SepaDirectDebitPaymentProduct771SpecificInputBase { return &SepaDirectDebitPaymentProduct771SpecificInputBase{} } diff --git a/apiv1/domain/SessionRequest.go b/apiv1/domain/SessionRequest.go index ccceb2c..14360b3 100644 --- a/apiv1/domain/SessionRequest.go +++ b/apiv1/domain/SessionRequest.go @@ -9,7 +9,7 @@ type SessionRequest struct { Tokens *[]string `json:"tokens,omitempty"` } -// NewSessionRequest constructs a new SessionRequest +// NewSessionRequest constructs a new SessionRequest instance func NewSessionRequest() *SessionRequest { return &SessionRequest{} } diff --git a/apiv1/domain/SessionResponse.go b/apiv1/domain/SessionResponse.go index fa9b6d8..77b3b39 100644 --- a/apiv1/domain/SessionResponse.go +++ b/apiv1/domain/SessionResponse.go @@ -13,7 +13,7 @@ type SessionResponse struct { Region *string `json:"region,omitempty"` } -// NewSessionResponse constructs a new SessionResponse +// NewSessionResponse constructs a new SessionResponse instance func NewSessionResponse() *SessionResponse { return &SessionResponse{} } diff --git a/apiv1/domain/Shipping.go b/apiv1/domain/Shipping.go index 2be4ed7..7df6d4f 100644 --- a/apiv1/domain/Shipping.go +++ b/apiv1/domain/Shipping.go @@ -15,7 +15,7 @@ type Shipping struct { Type *string `json:"type,omitempty"` } -// NewShipping constructs a new Shipping +// NewShipping constructs a new Shipping instance func NewShipping() *Shipping { return &Shipping{} } diff --git a/apiv1/domain/ShippingRiskAssessment.go b/apiv1/domain/ShippingRiskAssessment.go index 9eca5f1..7369fe3 100644 --- a/apiv1/domain/ShippingRiskAssessment.go +++ b/apiv1/domain/ShippingRiskAssessment.go @@ -10,7 +10,7 @@ type ShippingRiskAssessment struct { TrackingNumber *string `json:"trackingNumber,omitempty"` } -// NewShippingRiskAssessment constructs a new ShippingRiskAssessment +// NewShippingRiskAssessment constructs a new ShippingRiskAssessment instance func NewShippingRiskAssessment() *ShippingRiskAssessment { return &ShippingRiskAssessment{} } diff --git a/apiv1/domain/ShoppingCart.go b/apiv1/domain/ShoppingCart.go index 438ed3a..61c0489 100644 --- a/apiv1/domain/ShoppingCart.go +++ b/apiv1/domain/ShoppingCart.go @@ -13,7 +13,7 @@ type ShoppingCart struct { ReOrderIndicator *bool `json:"reOrderIndicator,omitempty"` } -// NewShoppingCart constructs a new ShoppingCart +// NewShoppingCart constructs a new ShoppingCart instance func NewShoppingCart() *ShoppingCart { return &ShoppingCart{} } diff --git a/apiv1/domain/Swift.go b/apiv1/domain/Swift.go index 564d15e..4094d6b 100644 --- a/apiv1/domain/Swift.go +++ b/apiv1/domain/Swift.go @@ -17,7 +17,7 @@ type Swift struct { Services *string `json:"services,omitempty"` } -// NewSwift constructs a new Swift +// NewSwift constructs a new Swift instance func NewSwift() *Swift { return &Swift{} } diff --git a/apiv1/domain/TestConnection.go b/apiv1/domain/TestConnection.go index 7f28d40..34e3d60 100644 --- a/apiv1/domain/TestConnection.go +++ b/apiv1/domain/TestConnection.go @@ -8,7 +8,7 @@ type TestConnection struct { Result *string `json:"result,omitempty"` } -// NewTestConnection constructs a new TestConnection +// NewTestConnection constructs a new TestConnection instance func NewTestConnection() *TestConnection { return &TestConnection{} } diff --git a/apiv1/domain/ThirdPartyData.go b/apiv1/domain/ThirdPartyData.go index 641dd15..44e185d 100644 --- a/apiv1/domain/ThirdPartyData.go +++ b/apiv1/domain/ThirdPartyData.go @@ -8,7 +8,7 @@ type ThirdPartyData struct { PaymentProduct863 *PaymentProduct863ThirdPartyData `json:"paymentProduct863,omitempty"` } -// NewThirdPartyData constructs a new ThirdPartyData +// NewThirdPartyData constructs a new ThirdPartyData instance func NewThirdPartyData() *ThirdPartyData { return &ThirdPartyData{} } diff --git a/apiv1/domain/ThirdPartyStatusResponse.go b/apiv1/domain/ThirdPartyStatusResponse.go index c191afc..b17ddb5 100644 --- a/apiv1/domain/ThirdPartyStatusResponse.go +++ b/apiv1/domain/ThirdPartyStatusResponse.go @@ -8,7 +8,7 @@ type ThirdPartyStatusResponse struct { ThirdPartyStatus *string `json:"thirdPartyStatus,omitempty"` } -// NewThirdPartyStatusResponse constructs a new ThirdPartyStatusResponse +// NewThirdPartyStatusResponse constructs a new ThirdPartyStatusResponse instance func NewThirdPartyStatusResponse() *ThirdPartyStatusResponse { return &ThirdPartyStatusResponse{} } diff --git a/apiv1/domain/ThreeDSecure.go b/apiv1/domain/ThreeDSecure.go index ee75a60..9cbe991 100644 --- a/apiv1/domain/ThreeDSecure.go +++ b/apiv1/domain/ThreeDSecure.go @@ -18,7 +18,7 @@ type ThreeDSecure struct { TransactionRiskLevel *string `json:"transactionRiskLevel,omitempty"` } -// NewThreeDSecure constructs a new ThreeDSecure +// NewThreeDSecure constructs a new ThreeDSecure instance func NewThreeDSecure() *ThreeDSecure { return &ThreeDSecure{} } diff --git a/apiv1/domain/ThreeDSecureBase.go b/apiv1/domain/ThreeDSecureBase.go index d2d4d45..ee5cf19 100644 --- a/apiv1/domain/ThreeDSecureBase.go +++ b/apiv1/domain/ThreeDSecureBase.go @@ -16,7 +16,7 @@ type ThreeDSecureBase struct { TransactionRiskLevel *string `json:"transactionRiskLevel,omitempty"` } -// NewThreeDSecureBase constructs a new ThreeDSecureBase +// NewThreeDSecureBase constructs a new ThreeDSecureBase instance func NewThreeDSecureBase() *ThreeDSecureBase { return &ThreeDSecureBase{} } diff --git a/apiv1/domain/ThreeDSecureData.go b/apiv1/domain/ThreeDSecureData.go index e79894f..3cafde5 100644 --- a/apiv1/domain/ThreeDSecureData.go +++ b/apiv1/domain/ThreeDSecureData.go @@ -10,7 +10,7 @@ type ThreeDSecureData struct { UtcTimestamp *string `json:"utcTimestamp,omitempty"` } -// NewThreeDSecureData constructs a new ThreeDSecureData +// NewThreeDSecureData constructs a new ThreeDSecureData instance func NewThreeDSecureData() *ThreeDSecureData { return &ThreeDSecureData{} } diff --git a/apiv1/domain/ThreeDSecureResults.go b/apiv1/domain/ThreeDSecureResults.go index d538b8d..75300f3 100644 --- a/apiv1/domain/ThreeDSecureResults.go +++ b/apiv1/domain/ThreeDSecureResults.go @@ -20,7 +20,7 @@ type ThreeDSecureResults struct { Xid *string `json:"xid,omitempty"` } -// NewThreeDSecureResults constructs a new ThreeDSecureResults +// NewThreeDSecureResults constructs a new ThreeDSecureResults instance func NewThreeDSecureResults() *ThreeDSecureResults { return &ThreeDSecureResults{} } diff --git a/apiv1/domain/TokenCard.go b/apiv1/domain/TokenCard.go index da152ae..09eb1a8 100644 --- a/apiv1/domain/TokenCard.go +++ b/apiv1/domain/TokenCard.go @@ -10,7 +10,7 @@ type TokenCard struct { Data *TokenCardData `json:"data,omitempty"` } -// NewTokenCard constructs a new TokenCard +// NewTokenCard constructs a new TokenCard instance func NewTokenCard() *TokenCard { return &TokenCard{} } diff --git a/apiv1/domain/TokenCardData.go b/apiv1/domain/TokenCardData.go index 2c2778f..72837cc 100644 --- a/apiv1/domain/TokenCardData.go +++ b/apiv1/domain/TokenCardData.go @@ -10,7 +10,7 @@ type TokenCardData struct { ProviderReference *string `json:"providerReference,omitempty"` } -// NewTokenCardData constructs a new TokenCardData +// NewTokenCardData constructs a new TokenCardData instance func NewTokenCardData() *TokenCardData { return &TokenCardData{} } diff --git a/apiv1/domain/TokenEWallet.go b/apiv1/domain/TokenEWallet.go index 9bdde3b..15e1236 100644 --- a/apiv1/domain/TokenEWallet.go +++ b/apiv1/domain/TokenEWallet.go @@ -10,7 +10,7 @@ type TokenEWallet struct { Data *TokenEWalletData `json:"data,omitempty"` } -// NewTokenEWallet constructs a new TokenEWallet +// NewTokenEWallet constructs a new TokenEWallet instance func NewTokenEWallet() *TokenEWallet { return &TokenEWallet{} } diff --git a/apiv1/domain/TokenEWalletData.go b/apiv1/domain/TokenEWalletData.go index 58b86a0..84bc6b5 100644 --- a/apiv1/domain/TokenEWalletData.go +++ b/apiv1/domain/TokenEWalletData.go @@ -8,7 +8,7 @@ type TokenEWalletData struct { BillingAgreementID *string `json:"billingAgreementId,omitempty"` } -// NewTokenEWalletData constructs a new TokenEWalletData +// NewTokenEWalletData constructs a new TokenEWalletData instance func NewTokenEWalletData() *TokenEWalletData { return &TokenEWalletData{} } diff --git a/apiv1/domain/TokenNonSepaDirectDebit.go b/apiv1/domain/TokenNonSepaDirectDebit.go index 0d41119..5fa27c4 100644 --- a/apiv1/domain/TokenNonSepaDirectDebit.go +++ b/apiv1/domain/TokenNonSepaDirectDebit.go @@ -10,7 +10,7 @@ type TokenNonSepaDirectDebit struct { Mandate *MandateNonSepaDirectDebit `json:"mandate,omitempty"` } -// NewTokenNonSepaDirectDebit constructs a new TokenNonSepaDirectDebit +// NewTokenNonSepaDirectDebit constructs a new TokenNonSepaDirectDebit instance func NewTokenNonSepaDirectDebit() *TokenNonSepaDirectDebit { return &TokenNonSepaDirectDebit{} } diff --git a/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct705SpecificData.go b/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct705SpecificData.go index bff5f36..805d2c4 100644 --- a/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct705SpecificData.go +++ b/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct705SpecificData.go @@ -9,7 +9,7 @@ type TokenNonSepaDirectDebitPaymentProduct705SpecificData struct { BankAccountBban *BankAccountBban `json:"bankAccountBban,omitempty"` } -// NewTokenNonSepaDirectDebitPaymentProduct705SpecificData constructs a new TokenNonSepaDirectDebitPaymentProduct705SpecificData +// NewTokenNonSepaDirectDebitPaymentProduct705SpecificData constructs a new TokenNonSepaDirectDebitPaymentProduct705SpecificData instance func NewTokenNonSepaDirectDebitPaymentProduct705SpecificData() *TokenNonSepaDirectDebitPaymentProduct705SpecificData { return &TokenNonSepaDirectDebitPaymentProduct705SpecificData{} } diff --git a/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct730SpecificData.go b/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct730SpecificData.go index 728b398..690a843 100644 --- a/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct730SpecificData.go +++ b/apiv1/domain/TokenNonSepaDirectDebitPaymentProduct730SpecificData.go @@ -8,7 +8,7 @@ type TokenNonSepaDirectDebitPaymentProduct730SpecificData struct { BankAccountBban *BankAccountBban `json:"bankAccountBban,omitempty"` } -// NewTokenNonSepaDirectDebitPaymentProduct730SpecificData constructs a new TokenNonSepaDirectDebitPaymentProduct730SpecificData +// NewTokenNonSepaDirectDebitPaymentProduct730SpecificData constructs a new TokenNonSepaDirectDebitPaymentProduct730SpecificData instance func NewTokenNonSepaDirectDebitPaymentProduct730SpecificData() *TokenNonSepaDirectDebitPaymentProduct730SpecificData { return &TokenNonSepaDirectDebitPaymentProduct730SpecificData{} } diff --git a/apiv1/domain/TokenResponse.go b/apiv1/domain/TokenResponse.go index dae6f0f..10390a0 100644 --- a/apiv1/domain/TokenResponse.go +++ b/apiv1/domain/TokenResponse.go @@ -14,7 +14,7 @@ type TokenResponse struct { SepaDirectDebit *TokenSepaDirectDebit `json:"sepaDirectDebit,omitempty"` } -// NewTokenResponse constructs a new TokenResponse +// NewTokenResponse constructs a new TokenResponse instance func NewTokenResponse() *TokenResponse { return &TokenResponse{} } diff --git a/apiv1/domain/TokenSepaDirectDebit.go b/apiv1/domain/TokenSepaDirectDebit.go index b5f9ef6..4bc71db 100644 --- a/apiv1/domain/TokenSepaDirectDebit.go +++ b/apiv1/domain/TokenSepaDirectDebit.go @@ -10,7 +10,7 @@ type TokenSepaDirectDebit struct { Mandate *MandateSepaDirectDebit `json:"mandate,omitempty"` } -// NewTokenSepaDirectDebit constructs a new TokenSepaDirectDebit +// NewTokenSepaDirectDebit constructs a new TokenSepaDirectDebit instance func NewTokenSepaDirectDebit() *TokenSepaDirectDebit { return &TokenSepaDirectDebit{} } diff --git a/apiv1/domain/TokenSepaDirectDebitWithoutCreditor.go b/apiv1/domain/TokenSepaDirectDebitWithoutCreditor.go index 6ea720b..ebc2bb1 100644 --- a/apiv1/domain/TokenSepaDirectDebitWithoutCreditor.go +++ b/apiv1/domain/TokenSepaDirectDebitWithoutCreditor.go @@ -10,7 +10,7 @@ type TokenSepaDirectDebitWithoutCreditor struct { Mandate *MandateSepaDirectDebitWithoutCreditor `json:"mandate,omitempty"` } -// NewTokenSepaDirectDebitWithoutCreditor constructs a new TokenSepaDirectDebitWithoutCreditor +// NewTokenSepaDirectDebitWithoutCreditor constructs a new TokenSepaDirectDebitWithoutCreditor instance func NewTokenSepaDirectDebitWithoutCreditor() *TokenSepaDirectDebitWithoutCreditor { return &TokenSepaDirectDebitWithoutCreditor{} } diff --git a/apiv1/domain/TokenizePaymentRequest.go b/apiv1/domain/TokenizePaymentRequest.go index 72cf27f..aa8c389 100644 --- a/apiv1/domain/TokenizePaymentRequest.go +++ b/apiv1/domain/TokenizePaymentRequest.go @@ -8,7 +8,7 @@ type TokenizePaymentRequest struct { Alias *string `json:"alias,omitempty"` } -// NewTokenizePaymentRequest constructs a new TokenizePaymentRequest +// NewTokenizePaymentRequest constructs a new TokenizePaymentRequest instance func NewTokenizePaymentRequest() *TokenizePaymentRequest { return &TokenizePaymentRequest{} } diff --git a/apiv1/domain/TrialInformation.go b/apiv1/domain/TrialInformation.go index 3bd76b9..98374f7 100644 --- a/apiv1/domain/TrialInformation.go +++ b/apiv1/domain/TrialInformation.go @@ -12,7 +12,7 @@ type TrialInformation struct { TrialPeriodRecurring *Frequency `json:"trialPeriodRecurring,omitempty"` } -// NewTrialInformation constructs a new TrialInformation +// NewTrialInformation constructs a new TrialInformation instance func NewTrialInformation() *TrialInformation { return &TrialInformation{} } diff --git a/apiv1/domain/TrialPeriod.go b/apiv1/domain/TrialPeriod.go index d857460..2c285cf 100644 --- a/apiv1/domain/TrialPeriod.go +++ b/apiv1/domain/TrialPeriod.go @@ -9,7 +9,7 @@ type TrialPeriod struct { Interval *string `json:"interval,omitempty"` } -// NewTrialPeriod constructs a new TrialPeriod +// NewTrialPeriod constructs a new TrialPeriod instance func NewTrialPeriod() *TrialPeriod { return &TrialPeriod{} } diff --git a/apiv1/domain/TrustlyBankAccount.go b/apiv1/domain/TrustlyBankAccount.go index cf50dd0..eac4002 100644 --- a/apiv1/domain/TrustlyBankAccount.go +++ b/apiv1/domain/TrustlyBankAccount.go @@ -11,7 +11,7 @@ type TrustlyBankAccount struct { PersonIdentificationNumber *string `json:"personIdentificationNumber,omitempty"` } -// NewTrustlyBankAccount constructs a new TrustlyBankAccount +// NewTrustlyBankAccount constructs a new TrustlyBankAccount instance func NewTrustlyBankAccount() *TrustlyBankAccount { return &TrustlyBankAccount{} } diff --git a/apiv1/domain/UpdateTokenRequest.go b/apiv1/domain/UpdateTokenRequest.go index abdd7dd..89a75b5 100644 --- a/apiv1/domain/UpdateTokenRequest.go +++ b/apiv1/domain/UpdateTokenRequest.go @@ -12,7 +12,7 @@ type UpdateTokenRequest struct { SepaDirectDebit *TokenSepaDirectDebitWithoutCreditor `json:"sepaDirectDebit,omitempty"` } -// NewUpdateTokenRequest constructs a new UpdateTokenRequest +// NewUpdateTokenRequest constructs a new UpdateTokenRequest instance func NewUpdateTokenRequest() *UpdateTokenRequest { return &UpdateTokenRequest{} } diff --git a/apiv1/domain/UploadDisputeFileResponse.go b/apiv1/domain/UploadDisputeFileResponse.go index 096815a..9a48412 100644 --- a/apiv1/domain/UploadDisputeFileResponse.go +++ b/apiv1/domain/UploadDisputeFileResponse.go @@ -9,7 +9,7 @@ type UploadDisputeFileResponse struct { FileID *string `json:"fileId,omitempty"` } -// NewUploadDisputeFileResponse constructs a new UploadDisputeFileResponse +// NewUploadDisputeFileResponse constructs a new UploadDisputeFileResponse instance func NewUploadDisputeFileResponse() *UploadDisputeFileResponse { return &UploadDisputeFileResponse{} } diff --git a/apiv1/domain/ValidationBankAccountCheck.go b/apiv1/domain/ValidationBankAccountCheck.go index 49e200a..5ce6939 100644 --- a/apiv1/domain/ValidationBankAccountCheck.go +++ b/apiv1/domain/ValidationBankAccountCheck.go @@ -10,7 +10,7 @@ type ValidationBankAccountCheck struct { Result *string `json:"result,omitempty"` } -// NewValidationBankAccountCheck constructs a new ValidationBankAccountCheck +// NewValidationBankAccountCheck constructs a new ValidationBankAccountCheck instance func NewValidationBankAccountCheck() *ValidationBankAccountCheck { return &ValidationBankAccountCheck{} } diff --git a/apiv1/domain/ValidationBankAccountOutput.go b/apiv1/domain/ValidationBankAccountOutput.go index 173bda2..f401eca 100644 --- a/apiv1/domain/ValidationBankAccountOutput.go +++ b/apiv1/domain/ValidationBankAccountOutput.go @@ -12,7 +12,7 @@ type ValidationBankAccountOutput struct { ReformattedBranchCode *string `json:"reformattedBranchCode,omitempty"` } -// NewValidationBankAccountOutput constructs a new ValidationBankAccountOutput +// NewValidationBankAccountOutput constructs a new ValidationBankAccountOutput instance func NewValidationBankAccountOutput() *ValidationBankAccountOutput { return &ValidationBankAccountOutput{} } diff --git a/apiv1/domain/ValueMappingElement.go b/apiv1/domain/ValueMappingElement.go index 6e2e58e..b0f323c 100644 --- a/apiv1/domain/ValueMappingElement.go +++ b/apiv1/domain/ValueMappingElement.go @@ -11,7 +11,7 @@ type ValueMappingElement struct { Value *string `json:"value,omitempty"` } -// NewValueMappingElement constructs a new ValueMappingElement +// NewValueMappingElement constructs a new ValueMappingElement instance func NewValueMappingElement() *ValueMappingElement { return &ValueMappingElement{} } diff --git a/apiv1/domain/WebhooksEvent.go b/apiv1/domain/WebhooksEvent.go index 66eef52..adbfe29 100644 --- a/apiv1/domain/WebhooksEvent.go +++ b/apiv1/domain/WebhooksEvent.go @@ -17,7 +17,7 @@ type WebhooksEvent struct { Type *string `json:"type,omitempty"` } -// NewWebhooksEvent constructs a new WebhooksEvent +// NewWebhooksEvent constructs a new WebhooksEvent instance func NewWebhooksEvent() *WebhooksEvent { return &WebhooksEvent{} } diff --git a/apiv1/errors/ApiError.go b/apiv1/errors/APIError.go similarity index 79% rename from apiv1/errors/ApiError.go rename to apiv1/errors/APIError.go index 2f4d69d..6afd051 100644 --- a/apiv1/errors/ApiError.go +++ b/apiv1/errors/APIError.go @@ -19,9 +19,9 @@ type APIError interface { // ResponseBody gets the raw response body that was returned by the Worldline Global Collect platform. ResponseBody() string - // ErrorID gets the error identifier received from the Worldline Global Collect platform if available. + // ErrorID gets the errorId received from the Worldline Global Collect platform if available. ErrorID() string - // Errors gets the error list received from the Worldline Global Collect platform if available. Never nil. + // Errors gets the errors received from the Worldline Global Collect platform if available. Never nil. Errors() []domain.APIError } diff --git a/apiv1/errors/AuthorizationError.go b/apiv1/errors/AuthorizationError.go index 690d98b..979fbd7 100644 --- a/apiv1/errors/AuthorizationError.go +++ b/apiv1/errors/AuthorizationError.go @@ -19,57 +19,57 @@ type AuthorizationError struct { } // Message returns the error message -func (ae AuthorizationError) Message() string { - return ae.errorMessage +func (e AuthorizationError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (ae AuthorizationError) StatusCode() int { - return ae.statusCode +func (e AuthorizationError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (ae AuthorizationError) ResponseBody() string { - return ae.responseBody +func (e AuthorizationError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (ae AuthorizationError) ErrorID() string { - return ae.errorID +// ErrorID implements the APIError interface +func (e AuthorizationError) ErrorID() string { + return e.errorID } -// Errors returns a slice of underlying errors -func (ae AuthorizationError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e AuthorizationError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - return append([]domain.APIError{}, ae.errors...) + return append([]domain.APIError{}, e.errors...) } // String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (ae AuthorizationError) String() (list string) { - list = ae.errorMessage +func (e AuthorizationError) String() string { + list := e.errorMessage - if ae.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(ae.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(ae.responseBody) != 0 { - list = list + "; responseBody='" + ae.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } - return + return list } // Error implements the error interface -func (ae AuthorizationError) Error() string { - return ae.String() +func (e AuthorizationError) Error() string { + return e.String() } -// NewAuthorizationError creates an AuthorizationError with the given statusCode, responseBody, errorID and errors +// NewAuthorizationError creates a new AuthorizationError with the given statusCode, responseBody and response fields func NewAuthorizationError(statusCode int, responseBody, errorID string, errors []domain.APIError) (*AuthorizationError, error) { - return &AuthorizationError{"the Worldline Global Collect platform returned an incorrect request error response", statusCode, responseBody, errorID, errors}, nil + return &AuthorizationError{"the Worldline Global Collect platform returned an authorization error response", statusCode, responseBody, errorID, errors}, nil } -// NewAuthorizationErrorVerbose creates an AuthorizationError with the given message, statusCode, responseBody, errorID and errors +// NewAuthorizationErrorVerbose creates a new AuthorizationError with the given message, statusCode and response fields func NewAuthorizationErrorVerbose(message string, statusCode int, responseBody, errorID string, errors []domain.APIError) (*AuthorizationError, error) { return &AuthorizationError{message, statusCode, responseBody, errorID, errors}, nil } diff --git a/apiv1/errors/CreateAPIError.go b/apiv1/errors/CreateAPIError.go index cee9724..225ccd4 100644 --- a/apiv1/errors/CreateAPIError.go +++ b/apiv1/errors/CreateAPIError.go @@ -30,6 +30,7 @@ func CreateAPIError(statusCode int, responseBody string, errorObject interface{} if response.Errors != nil { errors = *response.Errors } + break } case *domain.PayoutErrorResponse: @@ -108,11 +109,17 @@ func CreateAPIError(statusCode int, responseBody string, errorObject interface{} return NewReferenceError(statusCode, responseBody, errorID, errors) } case http.StatusInternalServerError: - fallthrough + { + return NewPlatformError(statusCode, responseBody, errorID, errors) + } case http.StatusBadGateway: - fallthrough + { + return NewPlatformError(statusCode, responseBody, errorID, errors) + } case http.StatusServiceUnavailable: - fallthrough + { + return NewPlatformError(statusCode, responseBody, errorID, errors) + } default: { return NewPlatformError(statusCode, responseBody, errorID, errors) @@ -120,8 +127,10 @@ func CreateAPIError(statusCode int, responseBody string, errorObject interface{} } } -func isIdempotenceError(errors []domain.APIError, context *communicator.CallContext) (ok bool) { - ok = context != nil && len(context.GetIdempotenceKey()) != 0 && len(errors) == 1 && errors[0].Code != nil && *errors[0].Code == "1409" - - return +func isIdempotenceError(errors []domain.APIError, context *communicator.CallContext) bool { + return context != nil && + len(context.GetIdempotenceKey()) != 0 && + len(errors) == 1 && + errors[0].Code != nil && + *errors[0].Code == "1409" } diff --git a/apiv1/errors/DeclinedPaymentError.go b/apiv1/errors/DeclinedPaymentError.go index 7d81b5f..ff78396 100644 --- a/apiv1/errors/DeclinedPaymentError.go +++ b/apiv1/errors/DeclinedPaymentError.go @@ -11,7 +11,7 @@ import ( "github.com/Worldline-Global-Collect/connect-sdk-go/apiv1/domain" ) -// DeclinedPaymentError represents an error response from a create payment call +// DeclinedPaymentError represents an error response from a create payment call. type DeclinedPaymentError struct { errorMessage string statusCode int @@ -20,70 +20,71 @@ type DeclinedPaymentError struct { } // Message returns the error message -func (dpe DeclinedPaymentError) Message() string { - return dpe.errorMessage +func (e DeclinedPaymentError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (dpe DeclinedPaymentError) StatusCode() int { - return dpe.statusCode +func (e DeclinedPaymentError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (dpe DeclinedPaymentError) ResponseBody() string { - return dpe.responseBody +func (e DeclinedPaymentError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (dpe DeclinedPaymentError) ErrorID() string { - if dpe.errorResponse.ErrorID == nil { +// ErrorID implements the APIError interface +func (e DeclinedPaymentError) ErrorID() string { + if e.errorResponse.ErrorID == nil { return "" } - return *dpe.errorResponse.ErrorID + return *e.errorResponse.ErrorID } -// Errors returns a slice of underlying errors -func (dpe DeclinedPaymentError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e DeclinedPaymentError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - if dpe.errorResponse.Errors == nil { + if e.errorResponse.Errors == nil { return []domain.APIError{} } - return append([]domain.APIError{}, *dpe.errorResponse.Errors...) + return append([]domain.APIError{}, *e.errorResponse.Errors...) } -// PaymentResult returns the payment creation result -func (dpe DeclinedPaymentError) PaymentResult() *domain.CreatePaymentResult { - return dpe.errorResponse.PaymentResult +// PaymentResult returns the result of creating a payment +func (e DeclinedPaymentError) PaymentResult() *domain.CreatePaymentResult { + return e.errorResponse.PaymentResult } // String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (dpe DeclinedPaymentError) String() string { - list := dpe.errorMessage +func (e DeclinedPaymentError) String() string { + list := e.errorMessage - if dpe.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(dpe.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(dpe.responseBody) != 0 { - list = list + "; responseBody='" + dpe.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } return list } // Error implements the error interface -func (dpe DeclinedPaymentError) Error() string { - return dpe.String() +func (e DeclinedPaymentError) Error() string { + return e.String() } -// NewDeclinedPaymentError creates a DeclinedRefundError with the given statusCode, responseBody and errorResponse +// NewDeclinedPaymentError creates a new DeclinedPaymentError with the given statusCode, responseBody and errorResponse func NewDeclinedPaymentError(statusCode int, responseBody string, errorResponse *domain.PaymentErrorResponse) (*DeclinedPaymentError, error) { - if errorResponse.PaymentResult.Payment.ID == nil || errorResponse.PaymentResult.Payment.Status == nil { - return nil, goerr.New("cannot get payment") + errorMessage := "the Worldline Global Collect platform returned a declined payment response" + if errorResponse != nil && errorResponse.PaymentResult != nil && errorResponse.PaymentResult.Payment != nil { + payment := errorResponse.PaymentResult.Payment + if payment.ID == nil || payment.Status == nil { + return nil, goerr.New("cannot get properties from payment") + } + errorMessage = fmt.Sprintf("declined payment '%s' with status '%s'", *payment.ID, *payment.Status) } - errorMessage := fmt.Sprintf("declined payment '%s' with status '%s'", - *errorResponse.PaymentResult.Payment.ID, - *errorResponse.PaymentResult.Payment.Status) - return &DeclinedPaymentError{errorMessage, statusCode, responseBody, errorResponse}, nil } diff --git a/apiv1/errors/DeclinedPayoutError.go b/apiv1/errors/DeclinedPayoutError.go index 47b06f6..c376b73 100644 --- a/apiv1/errors/DeclinedPayoutError.go +++ b/apiv1/errors/DeclinedPayoutError.go @@ -11,7 +11,7 @@ import ( "github.com/Worldline-Global-Collect/connect-sdk-go/apiv1/domain" ) -// DeclinedPayoutError represents an error response from a create payout call +// DeclinedPayoutError represents an error response from a payout call. type DeclinedPayoutError struct { errorMessage string statusCode int @@ -20,70 +20,71 @@ type DeclinedPayoutError struct { } // Message returns the error message -func (dpe DeclinedPayoutError) Message() string { - return dpe.errorMessage +func (e DeclinedPayoutError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (dpe DeclinedPayoutError) StatusCode() int { - return dpe.statusCode +func (e DeclinedPayoutError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (dpe DeclinedPayoutError) ResponseBody() string { - return dpe.responseBody +func (e DeclinedPayoutError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (dpe DeclinedPayoutError) ErrorID() string { - if dpe.errorResponse.ErrorID == nil { +// ErrorID implements the APIError interface +func (e DeclinedPayoutError) ErrorID() string { + if e.errorResponse.ErrorID == nil { return "" } - return *dpe.errorResponse.ErrorID + return *e.errorResponse.ErrorID } -// Errors returns a slice of underlying errors -func (dpe DeclinedPayoutError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e DeclinedPayoutError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - if dpe.errorResponse.Errors == nil { + if e.errorResponse.Errors == nil { return []domain.APIError{} } - return append([]domain.APIError{}, *dpe.errorResponse.Errors...) + return append([]domain.APIError{}, *e.errorResponse.Errors...) } -// PayoutResult returns the payout result -func (dpe DeclinedPayoutError) PayoutResult() *domain.PayoutResult { - return dpe.errorResponse.PayoutResult +// PayoutResult returns the result of creating a payout +func (e DeclinedPayoutError) PayoutResult() *domain.PayoutResult { + return e.errorResponse.PayoutResult } // String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (dpe DeclinedPayoutError) String() string { - list := dpe.errorMessage +func (e DeclinedPayoutError) String() string { + list := e.errorMessage - if dpe.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(dpe.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(dpe.responseBody) != 0 { - list = list + "; responseBody='" + dpe.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } return list } // Error implements the error interface -func (dpe DeclinedPayoutError) Error() string { - return dpe.String() +func (e DeclinedPayoutError) Error() string { + return e.String() } -// NewDeclinedPayoutError creates a DeclinedPayoutError with the given statusCode, responseBody and errorResponse +// NewDeclinedPayoutError creates a new DeclinedPayoutError with the given statusCode, responseBody and errorResponse func NewDeclinedPayoutError(statusCode int, responseBody string, errorResponse *domain.PayoutErrorResponse) (*DeclinedPayoutError, error) { - if errorResponse.PayoutResult.ID == nil || errorResponse.PayoutResult.Status == nil { - return nil, goerr.New("cannot get payout") + errorMessage := "the Worldline Global Collect platform returned a declined payout response" + if errorResponse != nil && errorResponse.PayoutResult != nil { + payoutResult := errorResponse.PayoutResult + if payoutResult.ID == nil || payoutResult.Status == nil { + return nil, goerr.New("cannot get properties from payoutResult") + } + errorMessage = fmt.Sprintf("declined payout '%s' with status '%s'", *payoutResult.ID, *payoutResult.Status) } - errorMessage := fmt.Sprintf("declined payout '%s' with status '%s'", - *errorResponse.PayoutResult.ID, - *errorResponse.PayoutResult.Status) - return &DeclinedPayoutError{errorMessage, statusCode, responseBody, errorResponse}, nil } diff --git a/apiv1/errors/DeclinedRefundError.go b/apiv1/errors/DeclinedRefundError.go index 17e37ef..cb36240 100644 --- a/apiv1/errors/DeclinedRefundError.go +++ b/apiv1/errors/DeclinedRefundError.go @@ -11,7 +11,7 @@ import ( "github.com/Worldline-Global-Collect/connect-sdk-go/apiv1/domain" ) -// DeclinedRefundError represents an error response from a create refund call +// DeclinedRefundError represents an error response from a refund call. type DeclinedRefundError struct { errorMessage string statusCode int @@ -20,70 +20,71 @@ type DeclinedRefundError struct { } // Message returns the error message -func (dpe DeclinedRefundError) Message() string { - return dpe.errorMessage +func (e DeclinedRefundError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (dpe DeclinedRefundError) StatusCode() int { - return dpe.statusCode +func (e DeclinedRefundError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (dpe DeclinedRefundError) ResponseBody() string { - return dpe.responseBody +func (e DeclinedRefundError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (dpe DeclinedRefundError) ErrorID() string { - if dpe.errorResponse.ErrorID == nil { +// ErrorID implements the APIError interface +func (e DeclinedRefundError) ErrorID() string { + if e.errorResponse.ErrorID == nil { return "" } - return *dpe.errorResponse.ErrorID + return *e.errorResponse.ErrorID } -// Errors returns a slice of underlying errors -func (dpe DeclinedRefundError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e DeclinedRefundError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - if dpe.errorResponse.Errors == nil { + if e.errorResponse.Errors == nil { return []domain.APIError{} } - return append([]domain.APIError{}, *dpe.errorResponse.Errors...) + return append([]domain.APIError{}, *e.errorResponse.Errors...) } -// RefundResult returns the refund result -func (dpe DeclinedRefundError) RefundResult() *domain.RefundResult { - return dpe.errorResponse.RefundResult +// RefundResult returns the result of creating a refund +func (e DeclinedRefundError) RefundResult() *domain.RefundResult { + return e.errorResponse.RefundResult } // String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (dpe DeclinedRefundError) String() string { - list := dpe.errorMessage +func (e DeclinedRefundError) String() string { + list := e.errorMessage - if dpe.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(dpe.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(dpe.responseBody) != 0 { - list = list + "; responseBody='" + dpe.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } return list } // Error implements the error interface -func (dpe DeclinedRefundError) Error() string { - return dpe.String() +func (e DeclinedRefundError) Error() string { + return e.String() } -// NewDeclinedRefundError creates a DeclinedRefundError with the given statusCode, responseBody and errorResponse +// NewDeclinedRefundError creates a new DeclinedRefundError with the given statusCode, responseBody and errorResponse func NewDeclinedRefundError(statusCode int, responseBody string, errorResponse *domain.RefundErrorResponse) (*DeclinedRefundError, error) { - if errorResponse.RefundResult.ID == nil || errorResponse.RefundResult.Status == nil { - return nil, goerr.New("cannot get refund") + errorMessage := "the Worldline Global Collect platform returned a declined refund response" + if errorResponse != nil && errorResponse.RefundResult != nil { + refundResult := errorResponse.RefundResult + if refundResult.ID == nil || refundResult.Status == nil { + return nil, goerr.New("cannot get properties from refundResult") + } + errorMessage = fmt.Sprintf("declined refund '%s' with status '%s'", *refundResult.ID, *refundResult.Status) } - errorMessage := fmt.Sprintf("declined refund '%s' with status '%s'", - *errorResponse.RefundResult.ID, - *errorResponse.RefundResult.Status) - return &DeclinedRefundError{errorMessage, statusCode, responseBody, errorResponse}, nil } diff --git a/apiv1/errors/IdempotenceError.go b/apiv1/errors/IdempotenceError.go index 29f5b1e..b5cf8f5 100644 --- a/apiv1/errors/IdempotenceError.go +++ b/apiv1/errors/IdempotenceError.go @@ -22,67 +22,67 @@ type IdempotenceError struct { } // Message returns the error message -func (ie IdempotenceError) Message() string { - return ie.errorMessage +func (e IdempotenceError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (ie IdempotenceError) StatusCode() int { - return ie.statusCode +func (e IdempotenceError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (ie IdempotenceError) ResponseBody() string { - return ie.responseBody +func (e IdempotenceError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (ie IdempotenceError) ErrorID() string { - return ie.errorID +// ErrorID implements the APIError interface +func (e IdempotenceError) ErrorID() string { + return e.errorID } -// Errors returns a slice of underlying errors -func (ie IdempotenceError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e IdempotenceError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - return append([]domain.APIError{}, ie.errors...) + return append([]domain.APIError{}, e.errors...) } // IdempotenceKey returns the idempotence key used -func (ie IdempotenceError) IdempotenceKey() string { - return ie.idempotenceKey +func (e IdempotenceError) IdempotenceKey() string { + return e.idempotenceKey } // IdempotenceRequestTimestamp returns the timestamp of the request -func (ie IdempotenceError) IdempotenceRequestTimestamp() *int64 { - return ie.idempotenceRequestTimestamp +func (e IdempotenceError) IdempotenceRequestTimestamp() *int64 { + return e.idempotenceRequestTimestamp } // String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (ie IdempotenceError) String() string { - list := ie.errorMessage +func (e IdempotenceError) String() string { + list := e.errorMessage - if ie.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(ie.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(ie.responseBody) != 0 { - list = list + "; responseBody='" + ie.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } return list } // Error implements the error interface -func (ie IdempotenceError) Error() string { - return ie.String() +func (e IdempotenceError) Error() string { + return e.String() } -// NewIdempotenceError creates an IdempotenceError with the given idempotenceKey, idempotenceRequestTimestamp, statusCode, responseBody, errorID and errors +// NewIdempotenceError creates a new IdempotenceError with the given idempotenceKey, idempotenceRequestTimestamp, statusCode, responseBody and response fields func NewIdempotenceError(idempotenceKey string, idempotenceRequestTimestamp *int64, statusCode int, responseBody, errorID string, errors []domain.APIError) (*IdempotenceError, error) { - return &IdempotenceError{idempotenceKey, idempotenceRequestTimestamp, "the Worldline Global Collect platform returned an incorrect request error response", statusCode, responseBody, errorID, errors}, nil + return &IdempotenceError{idempotenceKey, idempotenceRequestTimestamp, "the Worldline Global Collect platform returned a duplicate request error response", statusCode, responseBody, errorID, errors}, nil } -// NewIdempotenceErrorVerbose creates an IdempotenceError with the given idempotenceKey, idempotenceRequestTimestamp, message, statusCode, responseBody, errorID and errors +// NewIdempotenceErrorVerbose creates a new IdempotenceError with the given idempotenceKey, idempotenceRequestTimestamp, message, statusCode, responseBody and response fields func NewIdempotenceErrorVerbose(idempotenceKey string, idempotenceRequestTimestamp *int64, message string, statusCode int, responseBody, errorID string, errors []domain.APIError) (*IdempotenceError, error) { return &IdempotenceError{idempotenceKey, idempotenceRequestTimestamp, message, statusCode, responseBody, errorID, errors}, nil } diff --git a/apiv1/errors/PlatformError.go b/apiv1/errors/PlatformError.go index f326535..40fea6b 100644 --- a/apiv1/errors/PlatformError.go +++ b/apiv1/errors/PlatformError.go @@ -19,57 +19,57 @@ type PlatformError struct { } // Message returns the error message -func (gce PlatformError) Message() string { - return gce.errorMessage +func (e PlatformError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (gce PlatformError) StatusCode() int { - return gce.statusCode +func (e PlatformError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (gce PlatformError) ResponseBody() string { - return gce.responseBody +func (e PlatformError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (gce PlatformError) ErrorID() string { - return gce.errorID +// ErrorID implements the APIError interface +func (e PlatformError) ErrorID() string { + return e.errorID } -// Errors returns a slice of underlying errors -func (gce PlatformError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e PlatformError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - return append([]domain.APIError{}, gce.errors...) + return append([]domain.APIError{}, e.errors...) } -// String implements the Stringer ineterface +// String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (gce PlatformError) String() string { - list := gce.errorMessage +func (e PlatformError) String() string { + list := e.errorMessage - if gce.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(gce.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(gce.responseBody) != 0 { - list = list + "; responseBody='" + gce.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } return list } // Error implements the error interface -func (gce PlatformError) Error() string { - return gce.String() +func (e PlatformError) Error() string { + return e.String() } -// NewPlatformError creates a PlatformError with the given statusCode, responseBody, errorID and errors +// NewPlatformError creates a new PlatformError with the given statusCode, responseBody and response fields func NewPlatformError(statusCode int, responseBody, errorID string, errors []domain.APIError) (*PlatformError, error) { return &PlatformError{"the Worldline Global Collect platform returned an error response", statusCode, responseBody, errorID, errors}, nil } -// NewPlatformErrorVerbose creates a PlatformError with the given message, statusCode, responseBody, errorID and errors +// NewPlatformErrorVerbose creates a new PlatformError with the given message, statusCode and response fields func NewPlatformErrorVerbose(message string, statusCode int, responseBody, errorID string, errors []domain.APIError) (*PlatformError, error) { return &PlatformError{message, statusCode, responseBody, errorID, errors}, nil } diff --git a/apiv1/errors/ReferenceError.go b/apiv1/errors/ReferenceError.go index 5e77972..95ed41b 100644 --- a/apiv1/errors/ReferenceError.go +++ b/apiv1/errors/ReferenceError.go @@ -19,57 +19,57 @@ type ReferenceError struct { } // Message returns the error message -func (re ReferenceError) Message() string { - return re.errorMessage +func (e ReferenceError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (re ReferenceError) StatusCode() int { - return re.statusCode +func (e ReferenceError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (re ReferenceError) ResponseBody() string { - return re.responseBody +func (e ReferenceError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (re ReferenceError) ErrorID() string { - return re.errorID +// ErrorID implements the APIError interface +func (e ReferenceError) ErrorID() string { + return e.errorID } -// Errors returns a slice of underlying errors -func (re ReferenceError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e ReferenceError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - return append([]domain.APIError{}, re.errors...) + return append([]domain.APIError{}, e.errors...) } // String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (re ReferenceError) String() string { - list := re.errorMessage +func (e ReferenceError) String() string { + list := e.errorMessage - if re.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(re.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(re.responseBody) != 0 { - list = list + "; responseBody='" + re.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } return list } // Error implements the error interface -func (re ReferenceError) Error() string { - return re.String() +func (e ReferenceError) Error() string { + return e.String() } -// NewReferenceError creates a ReferenceError with the given statusCode, responseBody, errorID and errors +// NewReferenceError creates a new ReferenceError with the given statusCode, responseBody and response fields func NewReferenceError(statusCode int, responseBody, errorID string, errors []domain.APIError) (*ReferenceError, error) { - return &ReferenceError{"the Worldline Global Collect platform returned an incorrect request error response", statusCode, responseBody, errorID, errors}, nil + return &ReferenceError{"the Worldline Global Collect platform returned a reference error response", statusCode, responseBody, errorID, errors}, nil } -// NewReferenceErrorVerbose creates a ReferenceError with the given message, statusCode, responseBody, errorID and errors +// NewReferenceErrorVerbose creates a new ReferenceError with the given message, statusCode and response fields func NewReferenceErrorVerbose(message string, statusCode int, responseBody, errorID string, errors []domain.APIError) (*ReferenceError, error) { return &ReferenceError{message, statusCode, responseBody, errorID, errors}, nil } diff --git a/apiv1/errors/ValidationError.go b/apiv1/errors/ValidationError.go index e04c5dd..fcf01ea 100644 --- a/apiv1/errors/ValidationError.go +++ b/apiv1/errors/ValidationError.go @@ -19,57 +19,57 @@ type ValidationError struct { } // Message returns the error message -func (ve ValidationError) Message() string { - return ve.errorMessage +func (e ValidationError) Message() string { + return e.errorMessage } // StatusCode returns the status code -func (ve ValidationError) StatusCode() int { - return ve.statusCode +func (e ValidationError) StatusCode() int { + return e.statusCode } // ResponseBody returns the response body -func (ve ValidationError) ResponseBody() string { - return ve.responseBody +func (e ValidationError) ResponseBody() string { + return e.responseBody } -// ErrorID returns the error id -func (ve ValidationError) ErrorID() string { - return ve.errorID +// ErrorID implements the APIError interface +func (e ValidationError) ErrorID() string { + return e.errorID } -// Errors returns a slice of underlying errors -func (ve ValidationError) Errors() []domain.APIError { +// Errors implements the APIError interface +func (e ValidationError) Errors() []domain.APIError { // Return a clone instead of the original slice - immutability insurance - return append([]domain.APIError{}, ve.errors...) + return append([]domain.APIError{}, e.errors...) } // String implements the Stringer interface // Format: 'errorMessage; statusCode=; responseBody=' -func (ve ValidationError) String() string { - list := ve.errorMessage +func (e ValidationError) String() string { + list := e.errorMessage - if ve.statusCode > 0 { - list = list + "; statusCode=" + strconv.Itoa(ve.statusCode) + if e.statusCode > 0 { + list = list + "; statusCode=" + strconv.Itoa(e.statusCode) } - if len(ve.responseBody) != 0 { - list = list + "; responseBody='" + ve.responseBody + "'" + if len(e.responseBody) != 0 { + list = list + "; responseBody='" + e.responseBody + "'" } return list } // Error implements the error interface -func (ve ValidationError) Error() string { - return ve.String() +func (e ValidationError) Error() string { + return e.String() } -// NewValidationError creates a ValidationError with the given statusCode, responseBody, errorID and errors +// NewValidationError creates a new ValidationError with the given statusCode, responseBody and response fields func NewValidationError(statusCode int, responseBody, errorID string, errors []domain.APIError) (*ValidationError, error) { return &ValidationError{"the Worldline Global Collect platform returned an incorrect request error response", statusCode, responseBody, errorID, errors}, nil } -// NewValidationErrorVerbose creates a ValidationError with the given message, statusCode, responseBody, errorID and errors +// NewValidationErrorVerbose creates a new ValidationError with the given message, statusCode and response fields func NewValidationErrorVerbose(message string, statusCode int, responseBody, errorID string, errors []domain.APIError) (*ValidationError, error) { return &ValidationError{message, statusCode, responseBody, errorID, errors}, nil } diff --git a/apiv1/merchant/Client.go b/apiv1/merchant/Client.go index 34f5711..27273f7 100644 --- a/apiv1/merchant/Client.go +++ b/apiv1/merchant/Client.go @@ -124,9 +124,9 @@ func (c *Client) Files() *files.Client { return client } -// NewClient constructs a Merchant Client +// NewClient constructs a new Merchant client // -// parent is the *communicator.APIResource on top of which we want to build the new Merchant Client +// parent is the communicator.APIResource on top of which we want to build the new Merchant client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/captures/Client.go b/apiv1/merchant/captures/Client.go index 2ae321a..9fc5151 100644 --- a/apiv1/merchant/captures/Client.go +++ b/apiv1/merchant/captures/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Get represents the resource /{merchantId}/captures/{captureId} - Get capture +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/captures/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(captureID string, context *communicator.CallContext) (domain.CaptureResponse, error) { var resultObject domain.CaptureResponse @@ -69,19 +70,20 @@ func (c *Client) Get(captureID string, context *communicator.CallContext) (domai } // Refund represents the resource /{merchantId}/captures/{captureId}/refund - Create Refund +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/captures/refund.html // // Can return any of the following errors: -// * DeclinedRefundError if the Worldline Global Collect platform declined / rejected the refund. The refund result will be available from the exception. -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * DeclinedRefundError if the Worldline Global Collect platform declined / rejected the refund. The refund result will be available from the exception. +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Refund(captureID string, body domain.RefundRequest, context *communicator.CallContext) (domain.RefundResponse, error) { var resultObject domain.RefundResponse @@ -122,9 +124,9 @@ func (c *Client) Refund(captureID string, body domain.RefundRequest, context *co return resultObject, nil } -// NewClient constructs a Captures Client +// NewClient constructs a new Captures client // -// parent is the *communicator.APIResource on top of which we want to build the new Captures Client +// parent is the communicator.APIResource on top of which we want to build the new Captures client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/disputes/Client.go b/apiv1/merchant/disputes/Client.go index 23b20e6..9e91b96 100644 --- a/apiv1/merchant/disputes/Client.go +++ b/apiv1/merchant/disputes/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Get represents the resource /{merchantId}/disputes/{disputeId} - Get dispute +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/disputes/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(disputeID string, context *communicator.CallContext) (domain.DisputeResponse, error) { var resultObject domain.DisputeResponse @@ -69,18 +70,19 @@ func (c *Client) Get(disputeID string, context *communicator.CallContext) (domai } // Submit represents the resource /{merchantId}/disputes/{disputeId}/submit - Submit dispute +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/disputes/submit.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Submit(disputeID string, context *communicator.CallContext) (domain.DisputeResponse, error) { var resultObject domain.DisputeResponse @@ -122,18 +124,19 @@ func (c *Client) Submit(disputeID string, context *communicator.CallContext) (do } // Cancel represents the resource /{merchantId}/disputes/{disputeId}/cancel - Cancel dispute +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/disputes/cancel.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cancel(disputeID string, context *communicator.CallContext) (domain.DisputeResponse, error) { var resultObject domain.DisputeResponse @@ -175,18 +178,19 @@ func (c *Client) Cancel(disputeID string, context *communicator.CallContext) (do } // UploadFile represents the resource /{merchantId}/disputes/{disputeId} - Upload File +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/fileserviceapi/v1/en_US/go/disputes/uploadFile.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) UploadFile(disputeID string, body UploadFileRequest, context *communicator.CallContext) (domain.UploadDisputeFileResponse, error) { var resultObject domain.UploadDisputeFileResponse @@ -227,9 +231,9 @@ func (c *Client) UploadFile(disputeID string, body UploadFileRequest, context *c return resultObject, nil } -// NewClient constructs a Disputes Client +// NewClient constructs a new Disputes client // -// parent is the *communicator.APIResource on top of which we want to build the new Disputes Client +// parent is the communicator.APIResource on top of which we want to build the new Disputes client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/disputes/UploadFileRequest.go b/apiv1/merchant/disputes/UploadFileRequest.go index e866118..850e1e8 100644 --- a/apiv1/merchant/disputes/UploadFileRequest.go +++ b/apiv1/merchant/disputes/UploadFileRequest.go @@ -9,6 +9,7 @@ import ( ) // UploadFileRequest represents multipart/form-data parameters for Upload File +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/fileserviceapi/v1/en_US/go/disputes/uploadFile.html type UploadFileRequest struct { File *domain.UploadableFile @@ -25,7 +26,7 @@ func (request UploadFileRequest) ToMultipartFormDataObject() *communication.Mult return multipart } -// NewUploadFileRequest constructs an instance of UploadFileRequest +// NewUploadFileRequest constructs a new UploadFileRequest instance func NewUploadFileRequest() *UploadFileRequest { return &UploadFileRequest{} } diff --git a/apiv1/merchant/files/Client.go b/apiv1/merchant/files/Client.go index 60f042b..95f5e18 100644 --- a/apiv1/merchant/files/Client.go +++ b/apiv1/merchant/files/Client.go @@ -16,18 +16,19 @@ type Client struct { } // GetFile represents the resource /{merchantId}/files/{fileId} - Retrieve File +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/fileserviceapi/v1/en_US/go/files/getFile.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) GetFile(fileID string, context *communicator.CallContext, bodyHandler communicator.BodyHandler) error { pathContext := map[string]string{ "fileId": fileID, @@ -66,9 +67,9 @@ func (c *Client) GetFile(fileID string, context *communicator.CallContext, bodyH return nil } -// NewClient constructs a Files Client +// NewClient constructs a new Files client // -// parent is the *communicator.APIResource on top of which we want to build the new Files Client +// parent is the communicator.APIResource on top of which we want to build the new Files client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/hostedcheckouts/Client.go b/apiv1/merchant/hostedcheckouts/Client.go index 0279dbe..ef13030 100644 --- a/apiv1/merchant/hostedcheckouts/Client.go +++ b/apiv1/merchant/hostedcheckouts/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Create represents the resource /{merchantId}/hostedcheckouts - Create hosted checkout +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/hostedcheckouts/create.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Create(body domain.CreateHostedCheckoutRequest, context *communicator.CallContext) (domain.CreateHostedCheckoutResponse, error) { var resultObject domain.CreateHostedCheckoutResponse @@ -65,18 +66,19 @@ func (c *Client) Create(body domain.CreateHostedCheckoutRequest, context *commun } // Get represents the resource /{merchantId}/hostedcheckouts/{hostedCheckoutId} - Get hosted checkout status +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/hostedcheckouts/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(hostedCheckoutID string, context *communicator.CallContext) (domain.GetHostedCheckoutResponse, error) { var resultObject domain.GetHostedCheckoutResponse @@ -118,18 +120,19 @@ func (c *Client) Get(hostedCheckoutID string, context *communicator.CallContext) } // Delete represents the resource /{merchantId}/hostedcheckouts/{hostedCheckoutId} - Delete hosted checkout +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/hostedcheckouts/delete.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Delete(hostedCheckoutID string, context *communicator.CallContext) error { pathContext := map[string]string{ "hostedCheckoutId": hostedCheckoutID, @@ -169,9 +172,9 @@ func (c *Client) Delete(hostedCheckoutID string, context *communicator.CallConte return nil } -// NewClient constructs a Hostedcheckouts Client +// NewClient constructs a new Hostedcheckouts client // -// parent is the *communicator.APIResource on top of which we want to build the new Hostedcheckouts Client +// parent is the communicator.APIResource on top of which we want to build the new Hostedcheckouts client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/hostedmandatemanagements/Client.go b/apiv1/merchant/hostedmandatemanagements/Client.go index a83f173..9fd3fe0 100644 --- a/apiv1/merchant/hostedmandatemanagements/Client.go +++ b/apiv1/merchant/hostedmandatemanagements/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Create represents the resource /{merchantId}/hostedmandatemanagements - Create hosted mandate management +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/hostedmandatemanagements/create.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Create(body domain.CreateHostedMandateManagementRequest, context *communicator.CallContext) (domain.CreateHostedMandateManagementResponse, error) { var resultObject domain.CreateHostedMandateManagementResponse @@ -65,18 +66,19 @@ func (c *Client) Create(body domain.CreateHostedMandateManagementRequest, contex } // Get represents the resource /{merchantId}/hostedmandatemanagements/{hostedMandateManagementId} - Get hosted mandate management status +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/hostedmandatemanagements/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(hostedMandateManagementID string, context *communicator.CallContext) (domain.GetHostedMandateManagementResponse, error) { var resultObject domain.GetHostedMandateManagementResponse @@ -117,9 +119,9 @@ func (c *Client) Get(hostedMandateManagementID string, context *communicator.Cal return resultObject, nil } -// NewClient constructs a Hostedmandatemanagements Client +// NewClient constructs a new Hostedmandatemanagements client // -// parent is the *communicator.APIResource on top of which we want to build the new Hostedmandatemanagements Client +// parent is the communicator.APIResource on top of which we want to build the new Hostedmandatemanagements client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/installments/Client.go b/apiv1/merchant/installments/Client.go index 81de5d9..508315b 100644 --- a/apiv1/merchant/installments/Client.go +++ b/apiv1/merchant/installments/Client.go @@ -16,18 +16,19 @@ type Client struct { } // GetInstallmentsInfo represents the resource /{merchantId}/installments/getInstallmentsInfo - Get installment information +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/installments/getInstallmentsInfo.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) GetInstallmentsInfo(body domain.GetInstallmentRequest, context *communicator.CallContext) (domain.InstallmentOptionsResponse, error) { var resultObject domain.InstallmentOptionsResponse @@ -64,9 +65,9 @@ func (c *Client) GetInstallmentsInfo(body domain.GetInstallmentRequest, context return resultObject, nil } -// NewClient constructs a Installments Client +// NewClient constructs a new Installments client // -// parent is the *communicator.APIResource on top of which we want to build the new Installments Client +// parent is the communicator.APIResource on top of which we want to build the new Installments client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/mandates/Client.go b/apiv1/merchant/mandates/Client.go index 5303883..3638bb3 100644 --- a/apiv1/merchant/mandates/Client.go +++ b/apiv1/merchant/mandates/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Create represents the resource /{merchantId}/mandates - Create mandate +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/mandates/create.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Create(body domain.CreateMandateRequest, context *communicator.CallContext) (domain.CreateMandateResponse, error) { var resultObject domain.CreateMandateResponse @@ -65,18 +66,19 @@ func (c *Client) Create(body domain.CreateMandateRequest, context *communicator. } // CreateWithMandateReference represents the resource /{merchantId}/mandates/{uniqueMandateReference} - Create mandate with mandatereference +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/mandates/createWithMandateReference.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) CreateWithMandateReference(uniqueMandateReference string, body domain.CreateMandateRequest, context *communicator.CallContext) (domain.CreateMandateResponse, error) { var resultObject domain.CreateMandateResponse @@ -118,18 +120,19 @@ func (c *Client) CreateWithMandateReference(uniqueMandateReference string, body } // Get represents the resource /{merchantId}/mandates/{uniqueMandateReference} - Get mandate +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/mandates/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(uniqueMandateReference string, context *communicator.CallContext) (domain.GetMandateResponse, error) { var resultObject domain.GetMandateResponse @@ -171,18 +174,19 @@ func (c *Client) Get(uniqueMandateReference string, context *communicator.CallCo } // Block represents the resource /{merchantId}/mandates/{uniqueMandateReference}/block - Block mandate +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/mandates/block.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Block(uniqueMandateReference string, context *communicator.CallContext) (domain.GetMandateResponse, error) { var resultObject domain.GetMandateResponse @@ -224,18 +228,19 @@ func (c *Client) Block(uniqueMandateReference string, context *communicator.Call } // Unblock represents the resource /{merchantId}/mandates/{uniqueMandateReference}/unblock - Unblock mandate +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/mandates/unblock.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Unblock(uniqueMandateReference string, context *communicator.CallContext) (domain.GetMandateResponse, error) { var resultObject domain.GetMandateResponse @@ -277,18 +282,19 @@ func (c *Client) Unblock(uniqueMandateReference string, context *communicator.Ca } // Revoke represents the resource /{merchantId}/mandates/{uniqueMandateReference}/revoke - Revoke mandate +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/mandates/revoke.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Revoke(uniqueMandateReference string, context *communicator.CallContext) (domain.GetMandateResponse, error) { var resultObject domain.GetMandateResponse @@ -329,9 +335,9 @@ func (c *Client) Revoke(uniqueMandateReference string, context *communicator.Cal return resultObject, nil } -// NewClient constructs a Mandates Client +// NewClient constructs a new Mandates client // -// parent is the *communicator.APIResource on top of which we want to build the new Mandates Client +// parent is the communicator.APIResource on top of which we want to build the new Mandates client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/payments/Client.go b/apiv1/merchant/payments/Client.go index 129a746..78696a6 100644 --- a/apiv1/merchant/payments/Client.go +++ b/apiv1/merchant/payments/Client.go @@ -16,19 +16,20 @@ type Client struct { } // Create represents the resource /{merchantId}/payments - Create payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/create.html // // Can return any of the following errors: -// * DeclinedPaymentError if the Worldline Global Collect platform declined / rejected the payment. The payment result will be available from the exception. -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * DeclinedPaymentError if the Worldline Global Collect platform declined / rejected the payment. The payment result will be available from the exception. +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Create(body domain.CreatePaymentRequest, context *communicator.CallContext) (domain.CreatePaymentResponse, error) { var resultObject domain.CreatePaymentResponse @@ -66,18 +67,19 @@ func (c *Client) Create(body domain.CreatePaymentRequest, context *communicator. } // Find represents the resource /{merchantId}/payments - Find payments +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/find.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Find(query FindParams, context *communicator.CallContext) (domain.FindPaymentsResponse, error) { var resultObject domain.FindPaymentsResponse @@ -115,18 +117,19 @@ func (c *Client) Find(query FindParams, context *communicator.CallContext) (doma } // Get represents the resource /{merchantId}/payments/{paymentId} - Get payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(paymentID string, context *communicator.CallContext) (domain.PaymentResponse, error) { var resultObject domain.PaymentResponse @@ -168,18 +171,19 @@ func (c *Client) Get(paymentID string, context *communicator.CallContext) (domai } // Complete represents the resource /{merchantId}/payments/{paymentId}/complete - Complete payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/complete.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Complete(paymentID string, body domain.CompletePaymentRequest, context *communicator.CallContext) (domain.CompletePaymentResponse, error) { var resultObject domain.CompletePaymentResponse @@ -221,18 +225,19 @@ func (c *Client) Complete(paymentID string, body domain.CompletePaymentRequest, } // ThirdPartyStatus represents the resource /{merchantId}/payments/{paymentId}/thirdpartystatus - Third party status poll +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/thirdPartyStatus.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) ThirdPartyStatus(paymentID string, context *communicator.CallContext) (domain.ThirdPartyStatusResponse, error) { var resultObject domain.ThirdPartyStatusResponse @@ -274,18 +279,19 @@ func (c *Client) ThirdPartyStatus(paymentID string, context *communicator.CallCo } // Tokenize represents the resource /{merchantId}/payments/{paymentId}/tokenize - Create a token from payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/tokenize.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Tokenize(paymentID string, body domain.TokenizePaymentRequest, context *communicator.CallContext) (domain.CreateTokenResponse, error) { var resultObject domain.CreateTokenResponse @@ -327,18 +333,19 @@ func (c *Client) Tokenize(paymentID string, body domain.TokenizePaymentRequest, } // Processchallenged represents the resource /{merchantId}/payments/{paymentId}/processchallenged - Approves challenged payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/processchallenged.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Processchallenged(paymentID string, context *communicator.CallContext) (domain.PaymentResponse, error) { var resultObject domain.PaymentResponse @@ -380,18 +387,19 @@ func (c *Client) Processchallenged(paymentID string, context *communicator.CallC } // Approve represents the resource /{merchantId}/payments/{paymentId}/approve - Approve payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/approve.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Approve(paymentID string, body domain.ApprovePaymentRequest, context *communicator.CallContext) (domain.PaymentApprovalResponse, error) { var resultObject domain.PaymentApprovalResponse @@ -433,18 +441,19 @@ func (c *Client) Approve(paymentID string, body domain.ApprovePaymentRequest, co } // Capture represents the resource /{merchantId}/payments/{paymentId}/capture - Capture payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/capture.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Capture(paymentID string, body domain.CapturePaymentRequest, context *communicator.CallContext) (domain.CaptureResponse, error) { var resultObject domain.CaptureResponse @@ -486,18 +495,19 @@ func (c *Client) Capture(paymentID string, body domain.CapturePaymentRequest, co } // Cancelapproval represents the resource /{merchantId}/payments/{paymentId}/cancelapproval - Undo capture payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/cancelapproval.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cancelapproval(paymentID string, context *communicator.CallContext) (domain.CancelApprovalPaymentResponse, error) { var resultObject domain.CancelApprovalPaymentResponse @@ -539,18 +549,19 @@ func (c *Client) Cancelapproval(paymentID string, context *communicator.CallCont } // Captures represents the resource /{merchantId}/payments/{paymentId}/captures - Get captures of payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/captures.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Captures(paymentID string, context *communicator.CallContext) (domain.CapturesResponse, error) { var resultObject domain.CapturesResponse @@ -592,19 +603,20 @@ func (c *Client) Captures(paymentID string, context *communicator.CallContext) ( } // Refund represents the resource /{merchantId}/payments/{paymentId}/refund - Create refund +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/refund.html // // Can return any of the following errors: -// * DeclinedRefundError if the Worldline Global Collect platform declined / rejected the refund. The refund result will be available from the exception. -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * DeclinedRefundError if the Worldline Global Collect platform declined / rejected the refund. The refund result will be available from the exception. +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Refund(paymentID string, body domain.RefundRequest, context *communicator.CallContext) (domain.RefundResponse, error) { var resultObject domain.RefundResponse @@ -646,18 +658,19 @@ func (c *Client) Refund(paymentID string, body domain.RefundRequest, context *co } // Refunds represents the resource /{merchantId}/payments/{paymentId}/refunds - Get refunds of payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/refunds.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Refunds(paymentID string, context *communicator.CallContext) (domain.RefundsResponse, error) { var resultObject domain.RefundsResponse @@ -699,18 +712,19 @@ func (c *Client) Refunds(paymentID string, context *communicator.CallContext) (d } // Cancel represents the resource /{merchantId}/payments/{paymentId}/cancel - Cancel payment +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/cancel.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cancel(paymentID string, context *communicator.CallContext) (domain.CancelPaymentResponse, error) { var resultObject domain.CancelPaymentResponse @@ -752,18 +766,19 @@ func (c *Client) Cancel(paymentID string, context *communicator.CallContext) (do } // Dispute represents the resource /{merchantId}/payments/{paymentId}/dispute - Create dispute +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/dispute.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Dispute(paymentID string, body domain.CreateDisputeRequest, context *communicator.CallContext) (domain.DisputeResponse, error) { var resultObject domain.DisputeResponse @@ -805,18 +820,19 @@ func (c *Client) Dispute(paymentID string, body domain.CreateDisputeRequest, con } // Disputes represents the resource /{merchantId}/payments/{paymentId}/disputes - Get disputes +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/disputes.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Disputes(paymentID string, context *communicator.CallContext) (domain.DisputesResponse, error) { var resultObject domain.DisputesResponse @@ -858,18 +874,19 @@ func (c *Client) Disputes(paymentID string, context *communicator.CallContext) ( } // Devicefingerprint represents the resource /{merchantId}/payments/{paymentId}/devicefingerprint - Get Device Fingerprint details +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/devicefingerprint.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Devicefingerprint(paymentID string, context *communicator.CallContext) (domain.DeviceFingerprintDetails, error) { var resultObject domain.DeviceFingerprintDetails @@ -910,9 +927,9 @@ func (c *Client) Devicefingerprint(paymentID string, context *communicator.CallC return resultObject, nil } -// NewClient constructs a Payments Client +// NewClient constructs a new Payments client // -// parent is the *communicator.APIResource on top of which we want to build the new Payments Client +// parent is the communicator.APIResource on top of which we want to build the new Payments client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/payments/FindParams.go b/apiv1/merchant/payments/FindParams.go index e210b62..2336dbd 100644 --- a/apiv1/merchant/payments/FindParams.go +++ b/apiv1/merchant/payments/FindParams.go @@ -10,6 +10,7 @@ import ( ) // FindParams represents query parameters for Find payments +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payments/find.html type FindParams struct { HostedCheckoutID *string @@ -47,7 +48,7 @@ func (params *FindParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewFindParams constructs an instance of FindParams +// NewFindParams constructs a new FindParams instance func NewFindParams() *FindParams { return &FindParams{} } diff --git a/apiv1/merchant/payouts/Client.go b/apiv1/merchant/payouts/Client.go index 1881c66..2717662 100644 --- a/apiv1/merchant/payouts/Client.go +++ b/apiv1/merchant/payouts/Client.go @@ -16,19 +16,20 @@ type Client struct { } // Create represents the resource /{merchantId}/payouts - Create payout +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payouts/create.html // // Can return any of the following errors: -// * DeclinedPayoutError if the Worldline Global Collect platform declined / rejected the payout. The payout result will be available from the exception. -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * DeclinedPayoutError if the Worldline Global Collect platform declined / rejected the payout. The payout result will be available from the exception. +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Create(body domain.CreatePayoutRequest, context *communicator.CallContext) (domain.PayoutResponse, error) { var resultObject domain.PayoutResponse @@ -66,18 +67,19 @@ func (c *Client) Create(body domain.CreatePayoutRequest, context *communicator.C } // Find represents the resource /{merchantId}/payouts - Find payouts +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payouts/find.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Find(query FindParams, context *communicator.CallContext) (domain.FindPayoutsResponse, error) { var resultObject domain.FindPayoutsResponse @@ -115,18 +117,19 @@ func (c *Client) Find(query FindParams, context *communicator.CallContext) (doma } // Get represents the resource /{merchantId}/payouts/{payoutId} - Get payout +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payouts/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(payoutID string, context *communicator.CallContext) (domain.PayoutResponse, error) { var resultObject domain.PayoutResponse @@ -168,18 +171,19 @@ func (c *Client) Get(payoutID string, context *communicator.CallContext) (domain } // Approve represents the resource /{merchantId}/payouts/{payoutId}/approve - Approve payout +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payouts/approve.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Approve(payoutID string, body domain.ApprovePayoutRequest, context *communicator.CallContext) (domain.PayoutResponse, error) { var resultObject domain.PayoutResponse @@ -221,18 +225,19 @@ func (c *Client) Approve(payoutID string, body domain.ApprovePayoutRequest, cont } // Cancel represents the resource /{merchantId}/payouts/{payoutId}/cancel - Cancel payout +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payouts/cancel.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cancel(payoutID string, context *communicator.CallContext) error { pathContext := map[string]string{ "payoutId": payoutID, @@ -273,18 +278,19 @@ func (c *Client) Cancel(payoutID string, context *communicator.CallContext) erro } // Cancelapproval represents the resource /{merchantId}/payouts/{payoutId}/cancelapproval - Undo approve payout +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payouts/cancelapproval.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cancelapproval(payoutID string, context *communicator.CallContext) error { pathContext := map[string]string{ "payoutId": payoutID, @@ -324,9 +330,9 @@ func (c *Client) Cancelapproval(payoutID string, context *communicator.CallConte return nil } -// NewClient constructs a Payouts Client +// NewClient constructs a new Payouts client // -// parent is the *communicator.APIResource on top of which we want to build the new Payouts Client +// parent is the communicator.APIResource on top of which we want to build the new Payouts client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/payouts/FindParams.go b/apiv1/merchant/payouts/FindParams.go index 4a5263b..4241dce 100644 --- a/apiv1/merchant/payouts/FindParams.go +++ b/apiv1/merchant/payouts/FindParams.go @@ -10,6 +10,7 @@ import ( ) // FindParams represents query parameters for Find payouts +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/payouts/find.html type FindParams struct { MerchantReference *string @@ -42,7 +43,7 @@ func (params *FindParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewFindParams constructs an instance of FindParams +// NewFindParams constructs a new FindParams instance func NewFindParams() *FindParams { return &FindParams{} } diff --git a/apiv1/merchant/productgroups/Client.go b/apiv1/merchant/productgroups/Client.go index 3ef628e..8668d87 100644 --- a/apiv1/merchant/productgroups/Client.go +++ b/apiv1/merchant/productgroups/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Find represents the resource /{merchantId}/productgroups - Get payment product groups +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/productgroups/find.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Find(query FindParams, context *communicator.CallContext) (domain.PaymentProductGroups, error) { var resultObject domain.PaymentProductGroups @@ -65,18 +66,19 @@ func (c *Client) Find(query FindParams, context *communicator.CallContext) (doma } // Get represents the resource /{merchantId}/productgroups/{paymentProductGroupId} - Get payment product group +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/productgroups/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(paymentProductGroupID string, query GetParams, context *communicator.CallContext) (domain.PaymentProductGroupResponse, error) { var resultObject domain.PaymentProductGroupResponse @@ -118,18 +120,19 @@ func (c *Client) Get(paymentProductGroupID string, query GetParams, context *com } // DeviceFingerprint represents the resource /{merchantId}/productgroups/{paymentProductGroupId}/deviceFingerprint - Get device fingerprint +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/productgroups/deviceFingerprint.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) DeviceFingerprint(paymentProductGroupID string, body domain.DeviceFingerprintRequest, context *communicator.CallContext) (domain.DeviceFingerprintResponse, error) { var resultObject domain.DeviceFingerprintResponse @@ -170,9 +173,9 @@ func (c *Client) DeviceFingerprint(paymentProductGroupID string, body domain.Dev return resultObject, nil } -// NewClient constructs a Productgroups Client +// NewClient constructs a new Productgroups client // -// parent is the *communicator.APIResource on top of which we want to build the new Productgroups Client +// parent is the communicator.APIResource on top of which we want to build the new Productgroups client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/productgroups/FindParams.go b/apiv1/merchant/productgroups/FindParams.go index 3c4e19c..81ae285 100644 --- a/apiv1/merchant/productgroups/FindParams.go +++ b/apiv1/merchant/productgroups/FindParams.go @@ -10,6 +10,7 @@ import ( ) // FindParams represents query parameters for Get payment product groups +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/productgroups/find.html type FindParams struct { CountryCode *string @@ -63,7 +64,7 @@ func (params *FindParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewFindParams constructs an instance of FindParams +// NewFindParams constructs a new FindParams instance func NewFindParams() *FindParams { return &FindParams{} } diff --git a/apiv1/merchant/productgroups/GetParams.go b/apiv1/merchant/productgroups/GetParams.go index 09f2eaa..9b0bc64 100644 --- a/apiv1/merchant/productgroups/GetParams.go +++ b/apiv1/merchant/productgroups/GetParams.go @@ -10,6 +10,7 @@ import ( ) // GetParams represents query parameters for Get payment product group +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/productgroups/get.html type GetParams struct { CountryCode *string @@ -63,7 +64,7 @@ func (params *GetParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewGetParams constructs an instance of GetParams +// NewGetParams constructs a new GetParams instance func NewGetParams() *GetParams { return &GetParams{} } diff --git a/apiv1/merchant/products/Client.go b/apiv1/merchant/products/Client.go index 8734448..e60a3ca 100644 --- a/apiv1/merchant/products/Client.go +++ b/apiv1/merchant/products/Client.go @@ -18,18 +18,19 @@ type Client struct { } // Find represents the resource /{merchantId}/products - Get payment products +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/find.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Find(query FindParams, context *communicator.CallContext) (domain.PaymentProducts, error) { var resultObject domain.PaymentProducts @@ -67,18 +68,19 @@ func (c *Client) Find(query FindParams, context *communicator.CallContext) (doma } // Get represents the resource /{merchantId}/products/{paymentProductId} - Get payment product +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(paymentProductID int32, query GetParams, context *communicator.CallContext) (domain.PaymentProductResponse, error) { var resultObject domain.PaymentProductResponse @@ -120,18 +122,19 @@ func (c *Client) Get(paymentProductID int32, query GetParams, context *communica } // Directory represents the resource /{merchantId}/products/{paymentProductId}/directory - Get payment product directory +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/directory.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Directory(paymentProductID int32, query DirectoryParams, context *communicator.CallContext) (domain.Directory, error) { var resultObject domain.Directory @@ -173,18 +176,19 @@ func (c *Client) Directory(paymentProductID int32, query DirectoryParams, contex } // CustomerDetails represents the resource /{merchantId}/products/{paymentProductId}/customerDetails - Get customer details +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/customerDetails.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) CustomerDetails(paymentProductID int32, body domain.GetCustomerDetailsRequest, context *communicator.CallContext) (domain.GetCustomerDetailsResponse, error) { var resultObject domain.GetCustomerDetailsResponse @@ -226,18 +230,19 @@ func (c *Client) CustomerDetails(paymentProductID int32, body domain.GetCustomer } // DeviceFingerprint represents the resource /{merchantId}/products/{paymentProductId}/deviceFingerprint - Get device fingerprint +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/deviceFingerprint.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) DeviceFingerprint(paymentProductID int32, body domain.DeviceFingerprintRequest, context *communicator.CallContext) (domain.DeviceFingerprintResponse, error) { var resultObject domain.DeviceFingerprintResponse @@ -279,18 +284,19 @@ func (c *Client) DeviceFingerprint(paymentProductID int32, body domain.DeviceFin } // Networks represents the resource /{merchantId}/products/{paymentProductId}/networks - Get payment product networks +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/networks.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Networks(paymentProductID int32, query NetworksParams, context *communicator.CallContext) (domain.PaymentProductNetworksResponse, error) { var resultObject domain.PaymentProductNetworksResponse @@ -332,18 +338,19 @@ func (c *Client) Networks(paymentProductID int32, query NetworksParams, context } // Sessions represents the resource /{merchantId}/products/{paymentProductId}/sessions - Create session for payment product +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/sessions.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Sessions(paymentProductID int32, body domain.CreatePaymentProductSessionRequest, context *communicator.CallContext) (domain.CreatePaymentProductSessionResponse, error) { var resultObject domain.CreatePaymentProductSessionResponse @@ -384,9 +391,9 @@ func (c *Client) Sessions(paymentProductID int32, body domain.CreatePaymentProdu return resultObject, nil } -// NewClient constructs a Products Client +// NewClient constructs a new Products client // -// parent is the *communicator.APIResource on top of which we want to build the new Products Client +// parent is the communicator.APIResource on top of which we want to build the new Products client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/products/DirectoryParams.go b/apiv1/merchant/products/DirectoryParams.go index bcaa742..f4cee0e 100644 --- a/apiv1/merchant/products/DirectoryParams.go +++ b/apiv1/merchant/products/DirectoryParams.go @@ -6,6 +6,7 @@ package products import "github.com/Worldline-Global-Collect/connect-sdk-go/communicator/communication" // DirectoryParams represents query parameters for Get payment product directory +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/directory.html type DirectoryParams struct { CountryCode *string @@ -28,7 +29,7 @@ func (params *DirectoryParams) ToRequestParameters() communication.RequestParams return reqParams } -// NewDirectoryParams constructs an instance of DirectoryParams +// NewDirectoryParams constructs a new DirectoryParams instance func NewDirectoryParams() *DirectoryParams { return &DirectoryParams{} } diff --git a/apiv1/merchant/products/FindParams.go b/apiv1/merchant/products/FindParams.go index f5d1b1a..c195a74 100644 --- a/apiv1/merchant/products/FindParams.go +++ b/apiv1/merchant/products/FindParams.go @@ -10,6 +10,7 @@ import ( ) // FindParams represents query parameters for Get payment products +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/find.html type FindParams struct { CountryCode *string @@ -63,7 +64,7 @@ func (params *FindParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewFindParams constructs an instance of FindParams +// NewFindParams constructs a new FindParams instance func NewFindParams() *FindParams { return &FindParams{} } diff --git a/apiv1/merchant/products/GetParams.go b/apiv1/merchant/products/GetParams.go index b5b6c73..77fd815 100644 --- a/apiv1/merchant/products/GetParams.go +++ b/apiv1/merchant/products/GetParams.go @@ -10,6 +10,7 @@ import ( ) // GetParams represents query parameters for Get payment product +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/get.html type GetParams struct { CountryCode *string @@ -68,7 +69,7 @@ func (params *GetParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewGetParams constructs an instance of GetParams +// NewGetParams constructs a new GetParams instance func NewGetParams() *GetParams { return &GetParams{} } diff --git a/apiv1/merchant/products/NetworksParams.go b/apiv1/merchant/products/NetworksParams.go index ffc0333..d4f99ca 100644 --- a/apiv1/merchant/products/NetworksParams.go +++ b/apiv1/merchant/products/NetworksParams.go @@ -10,6 +10,7 @@ import ( ) // NetworksParams represents query parameters for Get payment product networks +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/products/networks.html type NetworksParams struct { CountryCode *string @@ -42,7 +43,7 @@ func (params *NetworksParams) ToRequestParameters() communication.RequestParams return reqParams } -// NewNetworksParams constructs an instance of NetworksParams +// NewNetworksParams constructs a new NetworksParams instance func NewNetworksParams() *NetworksParams { return &NetworksParams{} } diff --git a/apiv1/merchant/refunds/Client.go b/apiv1/merchant/refunds/Client.go index 579684f..58b178d 100644 --- a/apiv1/merchant/refunds/Client.go +++ b/apiv1/merchant/refunds/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Find represents the resource /{merchantId}/refunds - Find refunds +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/refunds/find.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Find(query FindParams, context *communicator.CallContext) (domain.FindRefundsResponse, error) { var resultObject domain.FindRefundsResponse @@ -65,18 +66,19 @@ func (c *Client) Find(query FindParams, context *communicator.CallContext) (doma } // Get represents the resource /{merchantId}/refunds/{refundId} - Get refund +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/refunds/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(refundID string, context *communicator.CallContext) (domain.RefundResponse, error) { var resultObject domain.RefundResponse @@ -118,18 +120,19 @@ func (c *Client) Get(refundID string, context *communicator.CallContext) (domain } // Approve represents the resource /{merchantId}/refunds/{refundId}/approve - Approve refund +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/refunds/approve.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Approve(refundID string, body domain.ApproveRefundRequest, context *communicator.CallContext) error { pathContext := map[string]string{ "refundId": refundID, @@ -170,18 +173,19 @@ func (c *Client) Approve(refundID string, body domain.ApproveRefundRequest, cont } // Cancel represents the resource /{merchantId}/refunds/{refundId}/cancel - Cancel refund +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/refunds/cancel.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cancel(refundID string, context *communicator.CallContext) error { pathContext := map[string]string{ "refundId": refundID, @@ -222,18 +226,19 @@ func (c *Client) Cancel(refundID string, context *communicator.CallContext) erro } // Cancelapproval represents the resource /{merchantId}/refunds/{refundId}/cancelapproval - Undo approve refund +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/refunds/cancelapproval.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cancelapproval(refundID string, context *communicator.CallContext) error { pathContext := map[string]string{ "refundId": refundID, @@ -273,9 +278,9 @@ func (c *Client) Cancelapproval(refundID string, context *communicator.CallConte return nil } -// NewClient constructs a Refunds Client +// NewClient constructs a new Refunds client // -// parent is the *communicator.APIResource on top of which we want to build the new Refunds Client +// parent is the communicator.APIResource on top of which we want to build the new Refunds client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/refunds/FindParams.go b/apiv1/merchant/refunds/FindParams.go index 2587543..c1df0ee 100644 --- a/apiv1/merchant/refunds/FindParams.go +++ b/apiv1/merchant/refunds/FindParams.go @@ -10,6 +10,7 @@ import ( ) // FindParams represents query parameters for Find refunds +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/refunds/find.html type FindParams struct { HostedCheckoutID *string @@ -47,7 +48,7 @@ func (params *FindParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewFindParams constructs an instance of FindParams +// NewFindParams constructs a new FindParams instance func NewFindParams() *FindParams { return &FindParams{} } diff --git a/apiv1/merchant/riskassessments/Client.go b/apiv1/merchant/riskassessments/Client.go index cda8882..353b554 100644 --- a/apiv1/merchant/riskassessments/Client.go +++ b/apiv1/merchant/riskassessments/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Bankaccounts represents the resource /{merchantId}/riskassessments/bankaccounts - Risk-assess bankaccount +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/riskassessments/bankaccounts.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Bankaccounts(body domain.RiskAssessmentBankAccount, context *communicator.CallContext) (domain.RiskAssessmentResponse, error) { var resultObject domain.RiskAssessmentResponse @@ -65,18 +66,19 @@ func (c *Client) Bankaccounts(body domain.RiskAssessmentBankAccount, context *co } // Cards represents the resource /{merchantId}/riskassessments/cards - Risk-assess card +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/riskassessments/cards.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Cards(body domain.RiskAssessmentCard, context *communicator.CallContext) (domain.RiskAssessmentResponse, error) { var resultObject domain.RiskAssessmentResponse @@ -113,9 +115,9 @@ func (c *Client) Cards(body domain.RiskAssessmentCard, context *communicator.Cal return resultObject, nil } -// NewClient constructs a Riskassessments Client +// NewClient constructs a new Riskassessments client // -// parent is the *communicator.APIResource on top of which we want to build the new Riskassessments Client +// parent is the communicator.APIResource on top of which we want to build the new Riskassessments client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/services/Client.go b/apiv1/merchant/services/Client.go index b1d523d..341ea10 100644 --- a/apiv1/merchant/services/Client.go +++ b/apiv1/merchant/services/Client.go @@ -16,18 +16,19 @@ type Client struct { } // ConvertAmount represents the resource /{merchantId}/services/convert/amount - Convert amount +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/services/convertAmount.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) ConvertAmount(query ConvertAmountParams, context *communicator.CallContext) (domain.ConvertAmount, error) { var resultObject domain.ConvertAmount @@ -65,18 +66,19 @@ func (c *Client) ConvertAmount(query ConvertAmountParams, context *communicator. } // Bankaccount represents the resource /{merchantId}/services/convert/bankaccount - Convert bankaccount +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/services/bankaccount.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Bankaccount(body domain.BankDetailsRequest, context *communicator.CallContext) (domain.BankDetailsResponse, error) { var resultObject domain.BankDetailsResponse @@ -114,18 +116,19 @@ func (c *Client) Bankaccount(body domain.BankDetailsRequest, context *communicat } // GetIINdetails represents the resource /{merchantId}/services/getIINdetails - Get IIN details +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/services/getIINdetails.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) GetIINdetails(body domain.GetIINDetailsRequest, context *communicator.CallContext) (domain.GetIINDetailsResponse, error) { var resultObject domain.GetIINDetailsResponse @@ -163,18 +166,19 @@ func (c *Client) GetIINdetails(body domain.GetIINDetailsRequest, context *commun } // Privacypolicy represents the resource /{merchantId}/services/privacypolicy - Get privacy policy +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/services/privacypolicy.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Privacypolicy(query PrivacypolicyParams, context *communicator.CallContext) (domain.GetPrivacyPolicyResponse, error) { var resultObject domain.GetPrivacyPolicyResponse @@ -212,18 +216,19 @@ func (c *Client) Privacypolicy(query PrivacypolicyParams, context *communicator. } // Testconnection represents the resource /{merchantId}/services/testconnection - Test connection +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/services/testconnection.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Testconnection(context *communicator.CallContext) (domain.TestConnection, error) { var resultObject domain.TestConnection @@ -260,9 +265,9 @@ func (c *Client) Testconnection(context *communicator.CallContext) (domain.TestC return resultObject, nil } -// NewClient constructs a Services Client +// NewClient constructs a new Services client // -// parent is the *communicator.APIResource on top of which we want to build the new Services Client +// parent is the communicator.APIResource on top of which we want to build the new Services client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/services/ConvertAmountParams.go b/apiv1/merchant/services/ConvertAmountParams.go index 5a2ef8c..6370ffe 100644 --- a/apiv1/merchant/services/ConvertAmountParams.go +++ b/apiv1/merchant/services/ConvertAmountParams.go @@ -10,6 +10,7 @@ import ( ) // ConvertAmountParams represents query parameters for Convert amount +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/services/convertAmount.html type ConvertAmountParams struct { Source *string @@ -37,7 +38,7 @@ func (params *ConvertAmountParams) ToRequestParameters() communication.RequestPa return reqParams } -// NewConvertAmountParams constructs an instance of ConvertAmountParams +// NewConvertAmountParams constructs a new ConvertAmountParams instance func NewConvertAmountParams() *ConvertAmountParams { return &ConvertAmountParams{} } diff --git a/apiv1/merchant/services/PrivacypolicyParams.go b/apiv1/merchant/services/PrivacypolicyParams.go index 04636fc..7b4c937 100644 --- a/apiv1/merchant/services/PrivacypolicyParams.go +++ b/apiv1/merchant/services/PrivacypolicyParams.go @@ -10,6 +10,7 @@ import ( ) // PrivacypolicyParams represents query parameters for Get privacy policy +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/services/privacypolicy.html type PrivacypolicyParams struct { Locale *string @@ -32,7 +33,7 @@ func (params *PrivacypolicyParams) ToRequestParameters() communication.RequestPa return reqParams } -// NewPrivacypolicyParams constructs an instance of PrivacypolicyParams +// NewPrivacypolicyParams constructs a new PrivacypolicyParams instance func NewPrivacypolicyParams() *PrivacypolicyParams { return &PrivacypolicyParams{} } diff --git a/apiv1/merchant/sessions/Client.go b/apiv1/merchant/sessions/Client.go index d1a13b0..d6dbd51 100644 --- a/apiv1/merchant/sessions/Client.go +++ b/apiv1/merchant/sessions/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Create represents the resource /{merchantId}/sessions - Create session +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/sessions/create.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Create(body domain.SessionRequest, context *communicator.CallContext) (domain.SessionResponse, error) { var resultObject domain.SessionResponse @@ -64,9 +65,9 @@ func (c *Client) Create(body domain.SessionRequest, context *communicator.CallCo return resultObject, nil } -// NewClient constructs a Sessions Client +// NewClient constructs a new Sessions client // -// parent is the *communicator.APIResource on top of which we want to build the new Sessions Client +// parent is the communicator.APIResource on top of which we want to build the new Sessions client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/tokens/Client.go b/apiv1/merchant/tokens/Client.go index c0aaeeb..33697f7 100644 --- a/apiv1/merchant/tokens/Client.go +++ b/apiv1/merchant/tokens/Client.go @@ -16,18 +16,19 @@ type Client struct { } // Create represents the resource /{merchantId}/tokens - Create token +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/tokens/create.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Create(body domain.CreateTokenRequest, context *communicator.CallContext) (domain.CreateTokenResponse, error) { var resultObject domain.CreateTokenResponse @@ -65,18 +66,19 @@ func (c *Client) Create(body domain.CreateTokenRequest, context *communicator.Ca } // Get represents the resource /{merchantId}/tokens/{tokenId} - Get token +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/tokens/get.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Get(tokenID string, context *communicator.CallContext) (domain.TokenResponse, error) { var resultObject domain.TokenResponse @@ -118,18 +120,19 @@ func (c *Client) Get(tokenID string, context *communicator.CallContext) (domain. } // Update represents the resource /{merchantId}/tokens/{tokenId} - Update token +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/tokens/update.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Update(tokenID string, body domain.UpdateTokenRequest, context *communicator.CallContext) error { pathContext := map[string]string{ "tokenId": tokenID, @@ -170,18 +173,19 @@ func (c *Client) Update(tokenID string, body domain.UpdateTokenRequest, context } // Delete represents the resource /{merchantId}/tokens/{tokenId} - Delete token +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/tokens/delete.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Delete(tokenID string, query DeleteParams, context *communicator.CallContext) error { pathContext := map[string]string{ "tokenId": tokenID, @@ -222,18 +226,19 @@ func (c *Client) Delete(tokenID string, query DeleteParams, context *communicato } // Approvesepadirectdebit represents the resource /{merchantId}/tokens/{tokenId}/approvesepadirectdebit - Approve SEPA DD mandate +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/tokens/approvesepadirectdebit.html // // Can return any of the following errors: -// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) -// * AuthorizationError if the request was not allowed (HTTP status code 403) -// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) -// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, -// or there was a conflict (HTTP status code 404, 409 or 410) -// * PlatformError if something went wrong at the Worldline Global Collect platform, -// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, -// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) -// * APIError if the Worldline Global Collect platform returned any other error +// * IdempotenceError if an idempotent request caused a conflict (HTTP status code 409) +// * ValidationError if the request was not correct and couldn't be processed (HTTP status code 400) +// * AuthorizationError if the request was not allowed (HTTP status code 403) +// * ReferenceError if an object was attempted to be referenced that doesn't exist or has been removed, +// or there was a conflict (HTTP status code 404, 409 or 410) +// * PlatformError if something went wrong at the Worldline Global Collect platform, +// the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, +// or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503) +// * APIError if the Worldline Global Collect platform returned any other error func (c *Client) Approvesepadirectdebit(tokenID string, body domain.ApproveTokenRequest, context *communicator.CallContext) error { pathContext := map[string]string{ "tokenId": tokenID, @@ -273,9 +278,9 @@ func (c *Client) Approvesepadirectdebit(tokenID string, body domain.ApproveToken return nil } -// NewClient constructs a Tokens Client +// NewClient constructs a new Tokens client // -// parent is the *communicator.APIResource on top of which we want to build the new Tokens Client +// parent is the communicator.APIResource on top of which we want to build the new Tokens client func NewClient(parent *communicator.APIResource, pathContext map[string]string) (*Client, error) { apiResource, err := communicator.NewAPIResourceWithParent(parent, pathContext) if err != nil { diff --git a/apiv1/merchant/tokens/DeleteParams.go b/apiv1/merchant/tokens/DeleteParams.go index d899595..e437460 100644 --- a/apiv1/merchant/tokens/DeleteParams.go +++ b/apiv1/merchant/tokens/DeleteParams.go @@ -6,6 +6,7 @@ package tokens import "github.com/Worldline-Global-Collect/connect-sdk-go/communicator/communication" // DeleteParams represents query parameters for Delete token +// // Documentation can be found at https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/go/tokens/delete.html type DeleteParams struct { MandateCancelDate *string @@ -23,7 +24,7 @@ func (params *DeleteParams) ToRequestParameters() communication.RequestParams { return reqParams } -// NewDeleteParams constructs an instance of DeleteParams +// NewDeleteParams constructs a new DeleteParams instance func NewDeleteParams() *DeleteParams { return &DeleteParams{} } diff --git a/apiv1/webhooks/Factory.go b/apiv1/webhooks/Factory.go index d148c74..4a48474 100644 --- a/apiv1/webhooks/Factory.go +++ b/apiv1/webhooks/Factory.go @@ -12,14 +12,14 @@ import ( type Factory struct { } -// NewHelperBuilder creates a HelperBuilder that will use the given secretKeyStore +// NewHelperBuilder creates a new HelperBuilder that will use the given secretKeyStore func (f Factory) NewHelperBuilder(secretKeyStore validation.SecretKeyStore) *HelperBuilder { marshaller := json.DefaultMarshaller() return NewHelperBuilder().WithMarshaller(marshaller).WithSecretKeyStore(secretKeyStore) } -// NewHelper creates a Helper that will use the given secretKeyStore +// NewHelper creates a new Helper that will use the given secretKeyStore func (f Factory) NewHelper(secretKeyStore validation.SecretKeyStore) (*Helper, error) { helperBuilder := f.NewHelperBuilder(secretKeyStore) diff --git a/apiv1/webhooks/Helper.go b/apiv1/webhooks/Helper.go index 96031fc..48bcc98 100644 --- a/apiv1/webhooks/Helper.go +++ b/apiv1/webhooks/Helper.go @@ -21,8 +21,8 @@ type Helper struct { // Unmarshal unmarshalls the given body and validates it using the requestHeaders // // Can return any of the following errors: -// validation.SignatureValidationError if the body could not be validated successfully -// validation.APIVersionMismatchError if the resulting event has an API version that this version of the SDK does not support +// * validation.SignatureValidationError if the body could not be validated successfully +// * validation.APIVersionMismatchError if the resulting event has an API version that this version of the SDK does not support func (h Helper) Unmarshal(body string, requestHeaders []communication.Header) (*domain.WebhooksEvent, error) { err := h.signatureValidator.Validate(body, requestHeaders) if err != nil { @@ -54,7 +54,7 @@ func (h Helper) SecretKeyStore() validation.SecretKeyStore { return h.signatureValidator.SecretKeyStore() } -// NewHelper creates a Helper with the given marshaller and secretKeyStore +// NewHelper creates a new Helper with the given marshaller and secretKeyStore func NewHelper(marshaller json.Marshaller, secretKeyStore validation.SecretKeyStore) (*Helper, error) { if marshaller == nil { return nil, errors.New("nil marshaller") diff --git a/apiv1/webhooks/HelperBuilder.go b/apiv1/webhooks/HelperBuilder.go index 4db2b1e..38b1102 100644 --- a/apiv1/webhooks/HelperBuilder.go +++ b/apiv1/webhooks/HelperBuilder.go @@ -33,7 +33,7 @@ func (h *HelperBuilder) Build() (*Helper, error) { return NewHelper(h.Marshaller, h.SecretKeyStore) } -// NewHelperBuilder creates a HelperBuilder object +// NewHelperBuilder creates a new HelperBuilder object func NewHelperBuilder() *HelperBuilder { return &HelperBuilder{} } diff --git a/communicator/MetadataProvider.go b/communicator/MetadataProvider.go index b80ddc7..dd7555e 100644 --- a/communicator/MetadataProvider.go +++ b/communicator/MetadataProvider.go @@ -34,7 +34,7 @@ func getPlatformIdentifier() string { return runtime.GOOS + " " + runtime.Version() + "(" + runtime.GOARCH + ")" } -const sdkVersion = "3.0.0" +const sdkVersion = "3.0.1" const sdkIdentifier = "GoServerSDK/v" + sdkVersion const serverMetaInfoHeader = "X-GCS-ServerMetaInfo" diff --git a/examples/apiv1/merchant/captures/CreateRefundCaptureExample.go b/examples/apiv1/merchant/captures/CreateRefundCaptureExample.go index 8bdab9b..82cf80c 100644 --- a/examples/apiv1/merchant/captures/CreateRefundCaptureExample.go +++ b/examples/apiv1/merchant/captures/CreateRefundCaptureExample.go @@ -46,7 +46,7 @@ func createRefundCaptureExample() { } case v1Errors.APIError: { - handleAPIErrors(realError.Errors()) + handleErrorResponse(realError.ErrorID(), realError.Errors()) break } diff --git a/examples/apiv1/merchant/captures/Helper.go b/examples/apiv1/merchant/captures/Helper.go index 7b85d66..fb033b3 100644 --- a/examples/apiv1/merchant/captures/Helper.go +++ b/examples/apiv1/merchant/captures/Helper.go @@ -19,6 +19,6 @@ func handleDeclinedRefund(refundResult *domain.RefundResult) { // handle the result here } -func handleAPIErrors(errors []domain.APIError) { - // handle the errors here +func handleErrorResponse(errorID string, errors []domain.APIError) { + // handle the error response here } diff --git a/examples/apiv1/merchant/disputes/Helper.go b/examples/apiv1/merchant/disputes/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/disputes/Helper.go +++ b/examples/apiv1/merchant/disputes/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/files/Helper.go b/examples/apiv1/merchant/files/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/files/Helper.go +++ b/examples/apiv1/merchant/files/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/hostedcheckouts/Helper.go b/examples/apiv1/merchant/hostedcheckouts/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/hostedcheckouts/Helper.go +++ b/examples/apiv1/merchant/hostedcheckouts/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/hostedmandatemanagements/Helper.go b/examples/apiv1/merchant/hostedmandatemanagements/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/hostedmandatemanagements/Helper.go +++ b/examples/apiv1/merchant/hostedmandatemanagements/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/installments/Helper.go b/examples/apiv1/merchant/installments/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/installments/Helper.go +++ b/examples/apiv1/merchant/installments/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/mandates/Helper.go b/examples/apiv1/merchant/mandates/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/mandates/Helper.go +++ b/examples/apiv1/merchant/mandates/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/payments/CreatePaymentExample.go b/examples/apiv1/merchant/payments/CreatePaymentExample.go index 7dabaa8..d58b388 100644 --- a/examples/apiv1/merchant/payments/CreatePaymentExample.go +++ b/examples/apiv1/merchant/payments/CreatePaymentExample.go @@ -196,7 +196,7 @@ func createPaymentExample() { } case v1Errors.APIError: { - handleAPIErrors(realError.Errors()) + handleErrorResponse(realError.ErrorID(), realError.Errors()) break } diff --git a/examples/apiv1/merchant/payments/Helper.go b/examples/apiv1/merchant/payments/Helper.go index 5819359..81b4eab 100644 --- a/examples/apiv1/merchant/payments/Helper.go +++ b/examples/apiv1/merchant/payments/Helper.go @@ -23,6 +23,6 @@ func handleDeclinedRefund(refundResult *domain.RefundResult) { // handle the result here } -func handleAPIErrors(errors []domain.APIError) { - // handle the errors here +func handleErrorResponse(errorID string, errors []domain.APIError) { + // handle the error response here } diff --git a/examples/apiv1/merchant/payments/RefundPaymentExample.go b/examples/apiv1/merchant/payments/RefundPaymentExample.go index 66834ea..02188e0 100644 --- a/examples/apiv1/merchant/payments/RefundPaymentExample.go +++ b/examples/apiv1/merchant/payments/RefundPaymentExample.go @@ -70,7 +70,7 @@ func refundPaymentExample() { } case v1Errors.APIError: { - handleAPIErrors(realError.Errors()) + handleErrorResponse(realError.ErrorID(), realError.Errors()) break } diff --git a/examples/apiv1/merchant/payouts/CreatePayoutExample.go b/examples/apiv1/merchant/payouts/CreatePayoutExample.go index ca0fb15..407d31b 100644 --- a/examples/apiv1/merchant/payouts/CreatePayoutExample.go +++ b/examples/apiv1/merchant/payouts/CreatePayoutExample.go @@ -87,7 +87,7 @@ func createPayoutExample() { } case v1Errors.APIError: { - handleAPIErrors(realError.Errors()) + handleErrorResponse(realError.ErrorID(), realError.Errors()) break } diff --git a/examples/apiv1/merchant/payouts/Helper.go b/examples/apiv1/merchant/payouts/Helper.go index 2b19878..14759ed 100644 --- a/examples/apiv1/merchant/payouts/Helper.go +++ b/examples/apiv1/merchant/payouts/Helper.go @@ -19,6 +19,6 @@ func handleDeclinedPayout(payoutResult *domain.PayoutResult) { // handle the result here } -func handleAPIErrors(errors []domain.APIError) { - // handle the errors here +func handleErrorResponse(errorID string, errors []domain.APIError) { + // handle the error response here } diff --git a/examples/apiv1/merchant/productgroups/Helper.go b/examples/apiv1/merchant/productgroups/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/productgroups/Helper.go +++ b/examples/apiv1/merchant/productgroups/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/products/Helper.go b/examples/apiv1/merchant/products/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/products/Helper.go +++ b/examples/apiv1/merchant/products/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/refunds/Helper.go b/examples/apiv1/merchant/refunds/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/refunds/Helper.go +++ b/examples/apiv1/merchant/refunds/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/riskassessments/Helper.go b/examples/apiv1/merchant/riskassessments/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/riskassessments/Helper.go +++ b/examples/apiv1/merchant/riskassessments/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/services/Helper.go b/examples/apiv1/merchant/services/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/services/Helper.go +++ b/examples/apiv1/merchant/services/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/sessions/Helper.go b/examples/apiv1/merchant/sessions/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/sessions/Helper.go +++ b/examples/apiv1/merchant/sessions/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey" diff --git a/examples/apiv1/merchant/tokens/Helper.go b/examples/apiv1/merchant/tokens/Helper.go index 38c4e7e..745567e 100644 --- a/examples/apiv1/merchant/tokens/Helper.go +++ b/examples/apiv1/merchant/tokens/Helper.go @@ -3,9 +3,7 @@ package examples -import ( - "github.com/Worldline-Global-Collect/connect-sdk-go" -) +import "github.com/Worldline-Global-Collect/connect-sdk-go" func getClient() (*connectsdk.Client, error) { apiKeyID := "someKey"