Skip to content

Procuret .NET `0.0.6`

Latest

Choose a tag to compare

@hwjeremy hwjeremy released this 10 Apr 23:25

Procuret .NET 0.0.6 makes the following changes:

  • Replaces String supplier IDs with long to better align with Procuret API expectations
  • Adds the Currency type, supplied to InstalmentLink.Create to define the default currency for the payment link
  • Updates to .NET 8
  • [No public interface effect] Replaces XML serialisation with JSON

0.0.6 is not backward compatible with earlier Procuret .NET versions. To update to 0.0.6, you will need to...

  • Replace any String supplier ID values with long equivalents
  • Add the denomination parameter to any invocations of InstalmentLink.Create

Here is an example invocation of InstalmentLink.Create, demonstrating passing a long supplierId and denomination:

var link = await InstalmentLink.Create(
    supplierId: 589121125121,
    customerEmail: "someone@somewhere.com",
    invoiceIdentifier: "INV-001",
    invoiceValue: Convert.ToDecimal("422.22"),
    communciation: CommunicationOption.NotifyCustomer,
    session: session,
    denomination: Currency.Aud
)

Installation

You can install Procuret .NET 0.0.6 via Nuget.

Support

For help, please write to us at support@procuret.com