Skip to content

Commit

Permalink
reverted url strategy for framework support, bumped version to 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymedavis committed Jan 25, 2016
1 parent e7434c4 commit 7846ffa
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Stripe.net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>Stripe.net</id>
<version>5.1.3</version>
<version>5.2.0</version>
<authors>Jayme Davis</authors>
<owners>Jayme Davis</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
4 changes: 2 additions & 2 deletions src/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
[assembly: AssemblyDescription("A .net client api for http://stripe.com")]
[assembly: AssemblyCompany("Jayme Davis")]
[assembly: AssemblyProduct("Stripe.net")]
[assembly: AssemblyCopyright("Copyright (C) Jayme Davis 2015")]
[assembly: AssemblyVersion("5.1.3")]
[assembly: AssemblyCopyright("Copyright (C) Jayme Davis 2016")]
[assembly: AssemblyVersion("5.2.0")]
147 changes: 105 additions & 42 deletions src/Stripe/Infrastructure/Urls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,109 @@
{
internal static class Urls
{
public static string Account => BaseUrl + "/account";

public static string ApplicationFees => BaseUrl + "/application_fees";

public static string Balance => BaseUrl + "/balance";

public static string BalanceTransactions => BaseUrl + "/balance/history";

public static string Charges => BaseUrl + "/charges";

public static string Coupons => BaseUrl + "/coupons";

public static string Customers => BaseUrl + "/customers";

public static string CustomerCards => BaseUrl + "/customers/{0}/sources";

public static string Events => BaseUrl + "/events";

public static string Invoices => BaseUrl + "/invoices";

public static string InvoiceItems => BaseUrl + "/invoiceitems";

public static string OAuthToken => BaseConnectUrl + "/oauth/token";

public static string Plans => BaseUrl + "/plans";

public static string Recipients => BaseUrl + "/recipients";

public static string RecipientCards => BaseUrl + "/recipients/{0}/cards";

public static string SpecificBalanceTransaction => BalanceTransactions + "/{0}";

public static string Subscriptions => BaseUrl + "/customers/{0}/subscriptions";

public static string Transfers => BaseUrl + "/transfers";

public static string Tokens => BaseUrl + "/tokens";

private static string BaseUrl => "https://api.stripe.com/v1";

private static string BaseConnectUrl => "https://connect.stripe.com";
public static string Invoices
{
get { return BaseUrl + "/invoices"; }
}

public static string InvoiceItems
{
get { return BaseUrl + "/invoiceitems"; }
}

public static string Tokens
{
get { return BaseUrl + "/tokens"; }
}

public static string Charges
{
get { return BaseUrl + "/charges"; }
}

public static string Coupons
{
get { return BaseUrl + "/coupons"; }
}

public static string Plans
{
get { return BaseUrl + "/plans"; }
}

public static string Balance
{
get { return BaseUrl + "/balance"; }
}

public static string BalanceTransactions
{
get { return BaseUrl + "/balance/history"; }
}

public static string SpecificBalanceTransaction
{
get { return BalanceTransactions + "/{0}"; }
}

public static string Customers
{
get { return BaseUrl + "/customers"; }
}

public static string CustomerCards
{
get { return BaseUrl + "/customers/{0}/sources"; }
}

public static string RecipientCards
{
get { return BaseUrl + "/recipients/{0}/cards"; }
}

public static string Events
{
get { return BaseUrl + "/events"; }
}

public static string Account
{
get { return BaseUrl + "/account"; }
}

public static string Recipients
{
get { return BaseUrl + "/recipients"; }
}

public static string Subscriptions
{
get { return BaseUrl + "/customers/{0}/subscriptions"; }
}

public static string Transfers
{
get { return BaseUrl + "/transfers"; }
}

public static string ApplicationFees
{
get { return BaseUrl + "/application_fees"; }
}

private static string BaseUrl
{
get { return "https://api.stripe.com/v1"; }
}

public static string OAuthToken
{
get { return BaseConnectUrl + "/oauth/token"; }
}

private static string BaseConnectUrl
{
get { return "https://connect.stripe.com"; }
}
}
}
}

0 comments on commit 7846ffa

Please sign in to comment.