Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install Yardarm
run: dotnet tool install --global --version 0.3.0-beta0001 Yardarm.CommandLine
run: dotnet tool install --global --version 0.3.4 Yardarm.CommandLine
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.11
uses: gittools/actions/gitversion/setup@v0.9.15
with:
versionSpec: "5.8.1"

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.11
uses: gittools/actions/gitversion/execute@v0.9.15
with:
useConfigFile: true
configFilePath: "GitVersion.yml"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cleanup-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
packages: write

steps:
- uses: actions/delete-package-versions@v2
- uses: actions/delete-package-versions@v4
with:
package-name: CenterEdge.TextPay.Api
package-type: nuget
min-versions-to-keep: 30
ignore-versions: ^(?!.*ci-pr).*$
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# CenterEdge.TextPay

Openapi 3.0 spec based on [TextPay documentation](https://new.textpay.app/docs/introduction).
Note: TextPay (a.k.a. DashNow) is now known as Hyfin.

OpenAPI 3.0 spec based on [Hyfin documentation](https://centeredge.hyfin.app/docs/2.0c/introduction).
37 changes: 34 additions & 3 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,13 +578,18 @@
},
"required": ["external_id", "name"]
},
"TippingOptions": {
"InvoiceOptions": {
"type": "object",
"properties": {
"tipping_enabled": {
"type": "boolean",
"default": false,
"description": "Enable or disables the popup window that requests gratuity"
},
"cash_discount_disabled": {
"type": "boolean",
"default": false,
"description": "If set to true, cash discount will be disabled for the invoice."
}
},
"required": ["tipping_enabled"]
Expand Down Expand Up @@ -877,6 +882,7 @@
},
"amount": {
"type": "number",
"format": "decimal",
"description": "#####.## The amount that was paid."
},
"paid_on": {
Expand All @@ -886,6 +892,7 @@
},
"tip": {
"type": "number",
"format": "decimal",
"description": "#####.## The tip amount that was added."
},
"invoice": {
Expand Down Expand Up @@ -941,12 +948,20 @@
"properties": {
"tax": {
"type": "number",
"format": "decimal",
"description": "The tax amount on the invoice",
"default": 0
},
"total": {
"type": "number",
"format": "decimal",
"description": "The total amount of the invoice (including tax)."
},
"cash_total": {
"type": "number",
"format": "decimal",
"description": "The cash price of the invoice (including tax).",
"nullable": true
}
},
"required": ["total"]
Expand All @@ -956,14 +971,17 @@
"properties": {
"unit_price": {
"type": "number",
"format": "decimal",
"description": "#####.## The price per unit of the line item."
},
"qty": {
"type": "number",
"format": "int32",
"description": "The qty of units for the line item."
},
"total": {
"type": "number",
"format": "decimal",
"description": "#####.## The total price of the line item. Should equal unit_price * qty."
},
"description": {
Expand All @@ -973,6 +991,18 @@
"product": {
"description": "A reference to the product record. This field is only required if the description for this line is not passed in.",
"allOf": [{ "$ref": "#/components/schemas/Product" }]
},
"cash_unit_price": {
"type": "number",
"format": "decimal",
"description": "The cash price per unit of the line item.",
"nullable": true
},
"cash_total": {
"type": "number",
"format": "decimal",
"description": "The cash price of the line item. Should equal cash_unit_price * qty.",
"nullable": true
}
},
"required": ["unit_price", "qty", "total"]
Expand Down Expand Up @@ -1000,8 +1030,8 @@
]
},
"options": {
"description": "A set of options for tipping on invoices",
"allOf": [{ "$ref": "#/components/schemas/TippingOptions" }]
"description": "A set of options for an invoice",
"allOf": [{ "$ref": "#/components/schemas/InvoiceOptions" }]
},
"lines": {
"description": "A list of line items on the invoice. This field is only required if description is not passed in.",
Expand Down Expand Up @@ -1061,6 +1091,7 @@
},
"unit_price": {
"type": "number",
"format": "decimal",
"description": "#####.## The price per unit of the product."
},
"active": {
Expand Down