-
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
8 changed files
with
171 additions
and
7 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<package > | ||
<metadata> | ||
<id>ProcuretAPI</id> | ||
<version>0.0.4</version> | ||
<version>0.0.5</version> | ||
<title>Procuret API</title> | ||
<authors>[email protected]</authors> | ||
<owners>Procuret Operating Pty Ltd</owners> | ||
|
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,12 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace ProcuretAPI | ||
{ | ||
[DataContract(Name="procuret_data", Namespace="")] | ||
public struct LinkOpen | ||
{ | ||
public readonly Int32 Sequence; | ||
public readonly String Created; | ||
} | ||
} |
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,9 @@ | ||
using System; | ||
namespace ProcuretAPI | ||
{ | ||
public enum Order | ||
{ | ||
ASCENDING = 1, | ||
DESCENDING = 2 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
namespace ProcuretAPI_Tests | ||
{ | ||
public class CreateInstalmentLink: WithSession | ||
public class ExerciseInstalmentLink : WithSession | ||
{ | ||
[Fact] | ||
public async Task TestCreateInstalmentLink() | ||
|
@@ -25,5 +25,30 @@ public async Task TestCreateInstalmentLink() | |
return; | ||
|
||
} | ||
|
||
[Fact] | ||
public async Task TestListInstalmentLink() | ||
{ | ||
|
||
InstalmentLink link = await InstalmentLink.Create( | ||
supplierId: 4000, | ||
customerEmail: "[email protected]", | ||
invoiceIdentifier: "Test ID", | ||
invoiceValue: Convert.ToDecimal("422.22"), | ||
communication: CommunicationOption.NotifyCustomer, | ||
session: this.Session | ||
); | ||
|
||
InstalmentLink[] links = await InstalmentLink.RetrieveMany( | ||
supplierId: 4000, | ||
limit: 2, | ||
session: this.Session | ||
); | ||
|
||
Assert.True(links.Length > 0, "Actual length: " + links.Length.ToString()); | ||
|
||
return; | ||
|
||
} | ||
} | ||
} |
File renamed without changes.