-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed VerificationSession * SDK to version 0.20.0 * added Statement API endpoints * Update BaseClient.cs * Update StatementsClient.cs * Changed responses on statement file streams * Added Github Action workflows * updated property description
- Loading branch information
1 parent
11350c6
commit 87835d7
Showing
14 changed files
with
272 additions
and
58 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,25 @@ | ||
name: PR_Build_Check | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: "" # Prevent node build warnings emitting as run errors. | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup dotnet | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '6.0.x' | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build -c Release --no-restore |
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,30 @@ | ||
name: Upload dotnet package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '6.0.x' # SDK Version to use. | ||
source-url: https://nuget.pkg.github.com/PinchPayments/index.json | ||
env: | ||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Build | ||
run: dotnet build --configuration Release | ||
|
||
- name: Create the package | ||
run: dotnet pack --configuration Release | ||
|
||
- name: Publish the package to GPR | ||
working-directory: ./src/Pinch.SDK | ||
run: dotnet nuget push ./bin/Release/*.nupkg |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Net.Http; | ||
using System.Net.Mime; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
|
||
namespace Pinch.SDK.Helpers | ||
{ | ||
public class FileDto | ||
{ | ||
public Stream Stream { get; set; } | ||
public string Filename { get; set; } | ||
public string ContentType { get; set; } | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
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,23 @@ | ||
using System; | ||
using Pinch.SDK.Payers; | ||
|
||
namespace Pinch.SDK.Statements | ||
{ | ||
public class DailyStatement | ||
{ | ||
/// <summary> | ||
/// The Daily Statement ID | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Status of the PDF generation. | ||
/// </summary> | ||
public string PdfGenerationStatus { get; set; } | ||
|
||
/// <summary> | ||
/// Date of the statement | ||
/// </summary> | ||
public string StatementDateLocal { get; set; } | ||
} | ||
} |
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,29 @@ | ||
using System; | ||
using Pinch.SDK.Payers; | ||
|
||
namespace Pinch.SDK.Statements | ||
{ | ||
public class MerchantInvoice | ||
{ | ||
/// <summary> | ||
/// The Merchant Invoice Id | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Invoice generation date. | ||
/// </summary> | ||
public string StatementDateLocal { get; set; } | ||
|
||
/// <summary> | ||
/// Start Date of the merchant invoice | ||
/// </summary> | ||
public string PeriodStartDateLocal { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// End Date of the merchant invoice | ||
/// </summary> | ||
public string PeriodEndDateLocal { get; set; } | ||
} | ||
} |
Oops, something went wrong.