Skip to content

Commit

Permalink
Release 1.0.16
Browse files Browse the repository at this point in the history
- Add WithCurrencyAccountId to QueryFilter struct
  • Loading branch information
armando-rodriguez-cko committed Nov 16, 2023
1 parent 040a29f commit 96c7a32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package client

const SDK_VERSION = "1.0.15"
const SDK_VERSION = "1.0.16"
25 changes: 14 additions & 11 deletions test/payments_request_apm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package test

import (
"net/http"
"os"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -121,12 +122,13 @@ func TestRequestPaymentsAPM(t *testing.T) {
{
name: "test PayPal source for request payment",
request: nas.PaymentRequest{
Source: apm.NewRequestPayPalSource(),
Amount: 1000,
Currency: common.EUR,
Reference: Reference,
Description: Description,
Customer: &customer,
Source: apm.NewRequestPayPalSource(),
Amount: 1000,
Currency: common.EUR,
Reference: Reference,
Description: Description,
Customer: &customer,
ProcessingChannelId: os.Getenv("CHECKOUT_PROCESSING_CHANNEL_ID"),
Items: []payments.Product{
{
Name: "test item",
Expand All @@ -138,11 +140,12 @@ func TestRequestPaymentsAPM(t *testing.T) {
FailureUrl: FailureUrl,
},
checkForPaymentRequest: func(response *nas.PaymentResponse, err error) {
assert.NotNil(t, err)
assert.Nil(t, response)
ckoErr := err.(errors.CheckoutAPIError)
assert.Equal(t, http.StatusUnprocessableEntity, ckoErr.StatusCode)
assert.Equal(t, "payee_not_onboarded", ckoErr.Data.ErrorCodes[0])
assert.Nil(t, err)
assert.NotNil(t, response)
},
checkForPaymentInfo: func(response *nas.GetPaymentResponse, err error) {
assert.Nil(t, err)
assert.NotNil(t, response)
},
},
{
Expand Down

0 comments on commit 96c7a32

Please sign in to comment.