-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
387 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
|
||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
|
||
*.exe | ||
*.test | ||
*.prof | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
module github.com/vudu-people/mp-sdk-go | ||
|
||
go 1.20 | ||
|
||
require github.com/joho/godotenv v1.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package model | ||
|
||
type QR struct { | ||
Image string `json:"image"` | ||
TemplateDocument string `json:"template_document"` | ||
TemplateImage string `json:"template_image"` | ||
} | ||
|
||
type Pos struct { | ||
ID int `json:"id"` | ||
QR QR `json:"qr"` | ||
Status string `json:"status"` | ||
DateCreated string `json:"date_created"` | ||
DateLastUpdated string `json:"date_last_updated"` | ||
UUID string `json:"uuid"` | ||
UserID int `json:"user_id"` | ||
Name string `json:"name"` | ||
FixedAmount bool `json:"fixed_amount"` | ||
Category int `json:"category"` | ||
StoreID string `json:"store_id"` | ||
ExternalID string `json:"external_id"` | ||
Site string `json:"site"` | ||
QrCode string `json:"qr_code"` | ||
} | ||
|
||
type CreatePosRequest struct { | ||
StoreID int `json:"store_id"` | ||
Name string `json:"name"` | ||
FixedAmount bool `json:"fixed_amount"` | ||
Category int `json:"category"` | ||
ExternalStoreID string `json:"external_store_id,omitempty"` | ||
ExternalID string `json:"external_id,omitempty"` | ||
} | ||
|
||
type GetAllPosResponse struct { | ||
Paging struct { | ||
Total int `json:"total"` | ||
Offset int `json:"offset"` | ||
Limit int `json:"limit"` | ||
} `json:"paging"` | ||
Results []Pos `json:"results"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.