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 e12e3e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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"
13 changes: 7 additions & 6 deletions test/payments_request_apm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,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 Expand Up @@ -293,7 +294,7 @@ func TestRequestPaymentsAPM(t *testing.T) {
assert.Nil(t, response)
ckoErr := err.(errors.CheckoutAPIError)
assert.Equal(t, http.StatusUnprocessableEntity, ckoErr.StatusCode)
assert.Equal(t, "cko_processing_channel_id_invalid", ckoErr.Data.ErrorCodes[0])
assert.Equal(t, "apm_service_unavailable", ckoErr.Data.ErrorCodes[0])
},
},
{
Expand Down

0 comments on commit e12e3e1

Please sign in to comment.