Skip to content

Commit

Permalink
Merge branch 'master' into paycell-type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlicanAkkus authored Mar 20, 2024
2 parents f29b28a + bfd8397 commit e6d3f10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Go 1.19
uses: actions/setup-go@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: '1.21.0'
cache: true
cache-dependency-path: go.sum

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Go Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4

- name: Get dependencies
run: |
Expand Down
4 changes: 3 additions & 1 deletion adapter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ const (

// BankAccountTrackingSource declaration
const (
BankAccountTrackingSource_YKB BankAccountTrackingSource = "YKB"
BankAccountTrackingSource_YKB BankAccountTrackingSource = "YKB"
BankAccountTrackingSource_GARANTI BankAccountTrackingSource = "GARANTI"
)

const (
Expand Down Expand Up @@ -1302,6 +1303,7 @@ type SearchInstallmentsRequest struct {
Price float64 `schema:"price"`
Currency Currency `schema:"currency"`
DistinctCardBrandsWithLowestCommissions bool `schema:"distinctCardBrandsWithLowestCommissions"`
LoyaltyExists bool `schema:"loyaltyExists"`
}

type InstallmentListResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Test_main(t *testing.T) {
binNumber, err := client.Installment.RetrieveBinNumber(context.Background(), "487074")
require.NotNil(t, err)
require.Nil(t, binNumber)
assert.Equal(t, true, strings.Contains(err.Error(), "API credential not found!"))
assert.Equal(t, true, strings.Contains(err.Error(), "API credential not found"))
})
})
}

0 comments on commit e6d3f10

Please sign in to comment.