RechargeSharp 0.2.24

There is a newer version of this package available.
See the version list below for details.
dotnet add package RechargeSharp --version 0.2.24                
NuGet\Install-Package RechargeSharp -Version 0.2.24                
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="0.2.24" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RechargeSharp --version 0.2.24                
#r "nuget: RechargeSharp, 0.2.24"                
#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=0.2.24

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

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.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.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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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.4 807 10/8/2024
12.2.3 2,273 10/30/2023
12.2.2 2,125 11/8/2022
12.2.1 683 9/13/2022
12.2.0 923 9/13/2022
12.1.1 512 9/5/2022
12.1.1-alpha.2 310 7/27/2022
12.1.1-alpha.1 142 7/27/2022
12.1.0-alpha.3 135 7/27/2022
12.0.0-alpha.3 672 6/2/2022
12.0.0-alpha.2 135 6/2/2022
12.0.0-alpha.1 135 6/2/2022
11.2.0-alpha.2 133 5/24/2022
11.2.0-alpha.1 148 4/26/2022
11.1.0-beta.5 2,751 3/23/2022
11.1.0-beta.4 142 3/2/2022
11.1.0-beta.3 966 2/24/2022
11.1.0-beta.1 137 2/17/2022
11.0.1 758 2/9/2022
11.0.1-alpha.1 144 2/9/2022
11.0.0 500 2/7/2022
11.0.0-alpha.7 415 2/1/2022
11.0.0-alpha.6 158 1/10/2022
11.0.0-alpha.4 1,881 12/14/2021
11.0.0-alpha.3 171 12/12/2021
11.0.0-alpha.2 171 12/10/2021
10.0.0 565 12/8/2021
10.0.0-alpha.3 641 11/30/2021
10.0.0-alpha.2 430 11/23/2021
9.0.0 1,235 11/9/2021
9.0.0-alpha.2 536 10/8/2021
9.0.0-alpha.1 291 10/7/2021
8.1.0-alpha.3 392 10/1/2021
8.1.0-alpha.2 235 9/28/2021
8.1.0-alpha.1 171 9/27/2021
8.0.1 452 9/23/2021
7.0.0 542 9/8/2021
7.0.0-alpha.4 489 8/4/2021
7.0.0-alpha.3 208 8/3/2021
7.0.0-alpha.2 172 8/2/2021
7.0.0-alpha.1 194 8/2/2021
6.0.1 553 7/13/2021
6.0.0 475 7/12/2021
5.1.0 481 7/5/2021
5.0.0 793 6/9/2021
5.0.0-alpha.1 186 6/9/2021
4.6.0 742 5/20/2021
4.6.0-beta.2 212 5/13/2021
4.6.0-beta.1 196 5/13/2021
4.5.0 440 5/11/2021
4.5.0-beta.8 179 5/11/2021
4.5.0-beta.7 204 4/27/2021
4.5.0-beta.5 165 4/27/2021
4.5.0-beta.4 180 4/27/2021
4.5.0-beta.3 214 4/23/2021
4.5.0-beta.2 193 4/22/2021
4.5.0-beta.1 189 4/21/2021
4.4.6 600 4/12/2021
4.4.6-beta.1 187 4/12/2021
4.4.4 446 4/9/2021
4.4.4-beta.1 185 4/8/2021
4.4.3 514 4/5/2021
4.4.2 543 3/26/2021
4.4.1 634 3/14/2021
4.4.0 828 2/9/2021
4.3.2 426 1/27/2021
4.3.1 392 1/27/2021
4.3.0 476 1/20/2021
4.2.0 428 1/13/2021
4.1.4 440 12/29/2020
4.1.3 429 12/29/2020
4.1.2 506 12/21/2020
4.1.1 1,063 5/29/2020
4.1.0 545 5/29/2020
4.1.0-beta.1 291 5/27/2020
4.0.3-beta.2 343 5/11/2020
4.0.3-beta.1 299 5/11/2020
4.0.2 621 4/9/2020
4.0.1 629 3/25/2020
4.0.0 524 3/25/2020
4.0.0-beta.2 279 3/24/2020
4.0.0-beta.1 285 3/24/2020
3.2.8 556 3/23/2020
3.2.7 562 3/19/2020
3.2.6 567 3/9/2020
3.2.5 569 3/5/2020
3.2.4 556 3/4/2020
3.2.3 592 3/4/2020
3.2.2 541 3/4/2020
3.2.1 548 3/4/2020
3.2.0 605 3/4/2020
3.1.0 557 3/4/2020
3.0.10 567 2/27/2020
3.0.9 505 2/24/2020
3.0.7 527 2/24/2020
3.0.6 623 2/3/2020
3.0.5 561 2/3/2020
3.0.3 630 1/31/2020
3.0.1 572 1/13/2020
3.0.0 670 12/28/2019
2.2.9 625 12/13/2019
2.2.8 563 12/13/2019
2.2.7 677 11/21/2019
2.2.6 586 11/12/2019
2.2.5 560 11/8/2019
2.2.4 551 11/6/2019
2.2.3 560 11/6/2019
2.2.2 559 11/6/2019
2.2.1 560 11/6/2019
2.2.0 560 11/6/2019
2.1.1 541 11/1/2019
2.1.0 548 10/31/2019
2.0.1 588 10/29/2019
2.0.0 575 10/29/2019
1.5.0 563 10/25/2019
1.4.0 541 10/23/2019
1.3.0 561 10/16/2019
1.2.0 566 10/16/2019
1.1.4 548 10/9/2019
1.1.0 588 10/9/2019
1.0.0 574 9/18/2019
0.2.58 557 9/17/2019
0.2.57 606 9/16/2019
0.2.56 602 9/16/2019
0.2.55 806 9/16/2019
0.2.54 584 9/16/2019
0.2.53 599 9/16/2019
0.2.52 595 9/16/2019
0.2.51 576 9/13/2019
0.2.50 611 9/12/2019
0.2.49 592 9/12/2019
0.2.48 614 9/10/2019
0.2.47 589 9/10/2019
0.2.46 633 9/9/2019
0.2.43 607 9/7/2019
0.2.42 609 9/7/2019
0.2.37 599 9/7/2019
0.2.36 582 9/7/2019
0.2.35 595 9/7/2019
0.2.34 603 9/6/2019
0.2.33 572 9/5/2019
0.2.32 561 9/5/2019
0.2.31 575 9/5/2019
0.2.30 580 9/4/2019
0.2.25 595 9/4/2019
0.2.24 600 9/4/2019
0.2.23 557 9/3/2019
0.2.14 561 9/3/2019
0.2.13 583 9/3/2019
0.2.9 582 9/3/2019
0.2.8 558 9/3/2019
0.2.7 551 9/3/2019
0.2.6 575 9/3/2019
0.1.9 586 8/30/2019
0.1.8 610 8/15/2019
0.1.4 594 8/15/2019
0.1.3 556 8/15/2019
0.1.2 573 8/15/2019
0.1.1 548 8/15/2019
0.1.0 589 7/30/2019
0.0.32 595 7/26/2019
0.0.31 598 7/26/2019
0.0.24 590 7/25/2019
0.0.23 615 7/25/2019
0.0.22 565 7/25/2019
0.0.21 589 7/25/2019
0.0.20 575 7/25/2019
0.0.19 577 7/25/2019
0.0.18 604 7/25/2019
0.0.17 587 7/25/2019
0.0.16 624 7/23/2019
0.0.15 594 7/22/2019
0.0.14 649 7/22/2019
0.0.13 641 7/22/2019
0.0.12 589 7/22/2019
0.0.11 654 7/11/2019
0.0.10 638 7/10/2019
0.0.9 646 7/10/2019
0.0.8 609 7/9/2019
0.0.7 592 7/9/2019
0.0.6 598 7/9/2019
0.0.5 615 7/8/2019
0.0.4 612 7/8/2019
0.0.3 609 7/7/2019
0.0.2 591 7/4/2019
0.0.1 609 6/25/2019

Fixed types in createsubscriptionrequest