RechargeSharp 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RechargeSharp --version 2.2.0
NuGet\Install-Package RechargeSharp -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RechargeSharp" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RechargeSharp --version 2.2.0
#r "nuget: RechargeSharp, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RechargeSharp as a Cake Addin
#addin nuget:?package=RechargeSharp&version=2.2.0

// Install RechargeSharp as a Cake Tool
#tool nuget:?package=RechargeSharp&version=2.2.0

RechargeSharp, a C# library for RechargePayments

built to work with the api documented at https://developer.rechargepayments.com/

Please feel free to submit pull requests on github

Quickstart

Subscriptions

// initialize a SubscriptionService to start working with subscriptions.
var subscriptionService = new SubscriptionService("APIKEY");

// get all subscriptions with status ACTIVE and created after two months ago.
var subscriptions = await subscriptionService.GetAllSubscriptionsWithParamsAsync(status: "ACTIVE", createdAtMin: DateTime.Today.AddMonths(-2));

// iterate results and print subscription Id.
foreach (var subscription in subscriptions)
{
    Console.WriteLine(subscription.Id);
}

Customers

// initialize a CustomerService to start working with customers.
var customerService = new CustomerService("APIKEY");

// get all customers created in the last two days.
var customers = await customerService.GetAllCustomersWithParamsAsync(createdAtMin: DateTime.Now.AddDays(-2));

// iterate results and print whether the customer has a valid payment method.
foreach (var customer in customers)
{
    Console.WriteLine(customer.HasValidPaymentMethod);
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
12.2.3 1,221 10/30/2023
12.2.2 1,308 11/8/2022
12.2.1 636 9/13/2022
12.2.0 819 9/13/2022
12.1.1 461 9/5/2022
12.1.1-alpha.2 288 7/27/2022
12.1.1-alpha.1 120 7/27/2022
12.1.0-alpha.3 113 7/27/2022
12.0.0-alpha.3 650 6/2/2022
12.0.0-alpha.2 112 6/2/2022
12.0.0-alpha.1 112 6/2/2022
11.2.0-alpha.2 110 5/24/2022
11.2.0-alpha.1 124 4/26/2022
11.1.0-beta.5 2,724 3/23/2022
11.1.0-beta.4 118 3/2/2022
11.1.0-beta.3 942 2/24/2022
11.1.0-beta.1 113 2/17/2022
11.0.1 715 2/9/2022
11.0.1-alpha.1 121 2/9/2022
11.0.0 452 2/7/2022
11.0.0-alpha.7 385 2/1/2022
11.0.0-alpha.6 135 1/10/2022
11.0.0-alpha.4 1,858 12/14/2021
11.0.0-alpha.3 146 12/12/2021
11.0.0-alpha.2 149 12/10/2021
10.0.0 515 12/8/2021
10.0.0-alpha.3 620 11/30/2021
10.0.0-alpha.2 401 11/23/2021
9.0.0 1,191 11/9/2021
9.0.0-alpha.2 513 10/8/2021
9.0.0-alpha.1 267 10/7/2021
8.1.0-alpha.3 371 10/1/2021
8.1.0-alpha.2 213 9/28/2021
8.1.0-alpha.1 148 9/27/2021
8.0.1 409 9/23/2021
7.0.0 489 9/8/2021
7.0.0-alpha.4 466 8/4/2021
7.0.0-alpha.3 185 8/3/2021
7.0.0-alpha.2 148 8/2/2021
7.0.0-alpha.1 170 8/2/2021
6.0.1 503 7/13/2021
6.0.0 430 7/12/2021
5.1.0 433 7/5/2021
5.0.0 748 6/9/2021
5.0.0-alpha.1 160 6/9/2021
4.6.0 693 5/20/2021
4.6.0-beta.2 189 5/13/2021
4.6.0-beta.1 173 5/13/2021
4.5.0 397 5/11/2021
4.5.0-beta.8 156 5/11/2021
4.5.0-beta.7 179 4/27/2021
4.5.0-beta.5 140 4/27/2021
4.5.0-beta.4 155 4/27/2021
4.5.0-beta.3 189 4/23/2021
4.5.0-beta.2 166 4/22/2021
4.5.0-beta.1 166 4/21/2021
4.4.6 551 4/12/2021
4.4.6-beta.1 162 4/12/2021
4.4.4 399 4/9/2021
4.4.4-beta.1 160 4/8/2021
4.4.3 430 4/5/2021
4.4.2 496 3/26/2021
4.4.1 587 3/14/2021
4.4.0 775 2/9/2021
4.3.2 381 1/27/2021
4.3.1 345 1/27/2021
4.3.0 432 1/20/2021
4.2.0 386 1/13/2021
4.1.4 395 12/29/2020
4.1.3 382 12/29/2020
4.1.2 455 12/21/2020
4.1.1 1,015 5/29/2020
4.1.0 516 5/29/2020
4.1.0-beta.1 265 5/27/2020
4.0.3-beta.2 316 5/11/2020
4.0.3-beta.1 271 5/11/2020
4.0.2 575 4/9/2020
4.0.1 582 3/25/2020
4.0.0 476 3/25/2020
4.0.0-beta.2 254 3/24/2020
4.0.0-beta.1 259 3/24/2020
3.2.8 509 3/23/2020
3.2.7 514 3/19/2020
3.2.6 520 3/9/2020
3.2.5 523 3/5/2020
3.2.4 511 3/4/2020
3.2.3 547 3/4/2020
3.2.2 493 3/4/2020
3.2.1 502 3/4/2020
3.2.0 554 3/4/2020
3.1.0 514 3/4/2020
3.0.10 522 2/27/2020
3.0.9 463 2/24/2020
3.0.7 482 2/24/2020
3.0.6 577 2/3/2020
3.0.5 516 2/3/2020
3.0.3 589 1/31/2020
3.0.1 525 1/13/2020
3.0.0 622 12/28/2019
2.2.9 579 12/13/2019
2.2.8 517 12/13/2019
2.2.7 629 11/21/2019
2.2.6 538 11/12/2019
2.2.5 509 11/8/2019
2.2.4 506 11/6/2019
2.2.3 516 11/6/2019
2.2.2 514 11/6/2019
2.2.1 516 11/6/2019
2.2.0 513 11/6/2019
2.1.1 492 11/1/2019
2.1.0 498 10/31/2019
2.0.1 537 10/29/2019
2.0.0 526 10/29/2019
1.5.0 516 10/25/2019
1.4.0 497 10/23/2019
1.3.0 517 10/16/2019
1.2.0 517 10/16/2019
1.1.4 502 10/9/2019
1.1.0 539 10/9/2019
1.0.0 527 9/18/2019
0.2.58 509 9/17/2019
0.2.57 555 9/16/2019
0.2.56 551 9/16/2019
0.2.55 732 9/16/2019
0.2.54 552 9/16/2019
0.2.53 552 9/16/2019
0.2.52 546 9/16/2019
0.2.51 544 9/13/2019
0.2.50 567 9/12/2019
0.2.49 543 9/12/2019
0.2.48 565 9/10/2019
0.2.47 544 9/10/2019
0.2.46 584 9/9/2019
0.2.43 553 9/7/2019
0.2.42 562 9/7/2019
0.2.37 548 9/7/2019
0.2.36 549 9/7/2019
0.2.35 550 9/7/2019
0.2.34 558 9/6/2019
0.2.33 540 9/5/2019
0.2.32 515 9/5/2019
0.2.31 531 9/5/2019
0.2.30 532 9/4/2019
0.2.25 543 9/4/2019
0.2.24 549 9/4/2019
0.2.23 510 9/3/2019
0.2.14 515 9/3/2019
0.2.13 537 9/3/2019
0.2.9 534 9/3/2019
0.2.8 512 9/3/2019
0.2.7 517 9/3/2019
0.2.6 525 9/3/2019
0.1.9 554 8/30/2019
0.1.8 565 8/15/2019
0.1.4 544 8/15/2019
0.1.3 510 8/15/2019
0.1.2 527 8/15/2019
0.1.1 510 8/15/2019
0.1.0 558 7/30/2019
0.0.32 563 7/26/2019
0.0.31 551 7/26/2019
0.0.24 557 7/25/2019
0.0.23 566 7/25/2019
0.0.22 534 7/25/2019
0.0.21 540 7/25/2019
0.0.20 527 7/25/2019
0.0.19 532 7/25/2019
0.0.18 558 7/25/2019
0.0.17 542 7/25/2019
0.0.16 571 7/23/2019
0.0.15 549 7/22/2019
0.0.14 596 7/22/2019
0.0.13 593 7/22/2019
0.0.12 558 7/22/2019
0.0.11 605 7/11/2019
0.0.10 593 7/10/2019
0.0.9 599 7/10/2019
0.0.8 562 7/9/2019
0.0.7 544 7/9/2019
0.0.6 547 7/9/2019
0.0.5 567 7/8/2019
0.0.4 569 7/8/2019
0.0.3 565 7/7/2019
0.0.2 546 7/4/2019
0.0.1 560 6/25/2019

Updated createcustomerrequest and updatecustomerrequest to correspond to latest api specifications.