Skip to content

Commit

Permalink
Adds PosApm endpoints and refactors model names (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
reywyn committed Oct 6, 2023
1 parent 6a522c7 commit 85fe5db
Show file tree
Hide file tree
Showing 17 changed files with 799 additions and 586 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ client, _ := craftgate.New("<YOUR API KEY>", "<YOUR SECRET KEY>", "https://api.c
request := craftgate.SearchInstallmentsRequest{
BinNumber: "487074",
Price: 100,
Currency: craftgate.TRY,
Currency: craftgate.Currency_TRY,
}

res, err := client.Installment.SearchInstallments(context.Background(), request)
Expand Down Expand Up @@ -61,7 +61,7 @@ client, _ := craftgate.New("<YOUR API KEY>", "<YOUR SECRET KEY>", "https://sandb
request := craftgate.CreatePaymentRequest{
Price: 100,
PaidPrice: 100,
Currency: craftgate.TRY,
Currency: craftgate.Currency_TRY,
...
}

Expand Down
2 changes: 1 addition & 1 deletion adapter/craftgate.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func newClient(apiKey, secretKey string) *Client {

client.Installment = &Installment{Client: client}
client.Payment = &Payment{Client: client}
client.Onboarding = &Onboarding{Client: client}
client.PaymentReporting = &PaymentReporting{Client: client}
client.Onboarding = &Onboarding{Client: client}
client.PayByLink = &PayByLink{Client: client}
client.Wallet = &Wallet{Client: client}
client.Settlement = &Settlement{Client: client}
Expand Down
Loading

0 comments on commit 85fe5db

Please sign in to comment.