Skip to content

Commit

Permalink
2/n - DEVREL-55: Rename to trolley (#18)
Browse files Browse the repository at this point in the history
# Improvements

Rename all instances of PaymentRails/Payment Rail/paymentrails etc to
Trolley accordingly and wherever required

### Checklist

- [x] I acknowledge that all my contributions will be made under the
project's license
- [x] I have made a material change to the repo (functionality, testing,
spelling, grammar)
- [x] I have titled the PR appropriately
- [x] I have updated my branch with the main branch
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added the necessary documentation about the functionality
in the appropriate .md file
- [ ] I have added inline documentation to the code I modified

If you have questions, create a GitHub Issue in this repository.
  • Loading branch information
Aman-Aalam authored Nov 15, 2023
1 parent 72cc95b commit 8eee5e5
Show file tree
Hide file tree
Showing 158 changed files with 3,873 additions and 1,542 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Publish to NuGet
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: paymentrails/paymentrails.csproj
PROJECT_FILE_PATH: trolley/trolley.csproj
# VERSION_REGEX: '^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$'
TAG_FORMAT: '*'
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
2 changes: 1 addition & 1 deletion .github/workflows/publish-netcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Publish to NuGet
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: paymentrails/paymentrails.csproj
PROJECT_FILE_PATH: trolley/trolley.csproj
VERSION_REGEX: '^\s*<Version>(.*)<\/Version>\s*$'
TAG_FORMAT: '*'
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
packages/**
paymentrails/bin/**
paymentrails/obj/**
paymentrailsTest/obj/**
paymentrailsTest/bin/**
trolley/bin/**
trolley/obj/**
trolleyTest/obj/**
trolleyTest/bin/**
TestResults
.vs/**
.vscode/**
tests/bin/**
tests/bin/
tests/obj/**
tests/obj/
tests/.vs/**
tests/.env
.DS_Store
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Trolley C# SDK (Previously Payment Rails[^1])
# Trolley C# SDK

A native C# SDK for Trolley.

For more information about the API as well as C# code samples check out the [full API documentation](https://docs.trolley.com)

[^1]: [Payment Rails is now Trolley](https://www.trolley.com/payment-rails-is-now-trolley-series-a). We're in the process of updating our SDKs to support the new domain. In this transition phase, you might still see "PaymentRails" at some places.

## Installation

#
Expand All @@ -19,30 +17,32 @@ In Solution Explorer, right-click the project node and click Add Reference. Sele

#### With NuGet
Open your package manager console and enter:
`PM> Install-Package PaymentRails.SDK`
`PM> Install-Package Trolley.SDK`


The library is hosted on github [here](https://github.com/PaymentRails/paymentrails_dotnet)
The library is hosted on github [here](https://github.com/Trolley/dotnet-sdk)

## Getting Started

### Namespaces
+ PaymentRails
+ PaymentRails.Types
+ PaymentRails.Exceptions
+ Trolley
+ Trolley.Types
+ Trolley.Exceptions

### Simple example

```csharp
// A simple c# application using the Trolley SDK
using PaymentRails;
using PaymentRails.Types;
using Trolley;
using Trolley.Types;


class Program
{
static void Main(string[] args)
{
// set your API key
var client = new PaymentRails.Gateway("YOUR-API-KEY", "YOUR-SECRET-KEY");
var client = new Trolley.Gateway("YOUR-API-KEY", "YOUR-SECRET-KEY");
Recipient response = client.recipient.find("R-4q7zxMa26hpZhx7ULApBGw");
Console.WriteLine(response.Id);

Expand All @@ -57,12 +57,12 @@ class Program
Methods should all have C# Doc comments to help you understand their usage. As mentioned the [full API documentation](https://docs.trolley.com)
is the best source of information about the API.

For more information please read the [C# API docs](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/docs/) is available. The best starting point is:
For more information please read the [C# API docs](https://github.com/Trolley/dotnet-sdk/tree/master/docs/) is available. The best starting point is:

| Data Type | SDK Documentation |
| ----- | ----- |
| Batch | [API Docs for Batch](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/docs/classes/batchgateway.md) |
| Payment | [API Docs for Payment](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/docs/classes/paymentgateway.md) |
| Recipient | [API Docs for Recipient](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/docs/classes/recipientgateway.md) |
| Recipient Account | [API Docs for Recipient Account](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/docs/classes/recipientaccountgateway.md) |
| Batch | [API Docs for Batch](https://github.com/Trolley/dotnet-sdk/tree/master/docs/classes/batchgateway.md) |
| Payment | [API Docs for Payment](https://github.com/Trolley/dotnet-sdk/tree/master/docs/classes/paymentgateway.md) |
| Recipient | [API Docs for Recipient](https://github.com/Trolley/dotnet-sdk/tree/master/docs/classes/recipientgateway.md) |
| Recipient Account | [API Docs for Recipient Account](https://github.com/Trolley/dotnet-sdk/tree/master/docs/classes/recipientaccountgateway.md) |

4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
Create a client for the Trolley C# SDK


var client = new PaymentRails_Gateway("MY_PUBLIC_KEY", "MY_PRIVATE_KEY", "production");
var client = new Trolley_Gateway("MY_PUBLIC_KEY", "MY_PRIVATE_KEY", "production");

**Parameters:**

| Param | Type | Description |
| ------ | ------ | ------ |
| publicKey | [String] | The public key |
| secretKey | [String] | The secret key |
| enviroment | [String] | The enviroment which should be used |
| environment | [String] | The environment which should be used |



Expand Down
8 changes: 4 additions & 4 deletions docs/classes/balancesgateway.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[Trolley C# SDK](../README.md) > [PaymentRails_Balances_Gateway](../classes/PaymentRails_Balances_Gateway.md)
[Trolley C# SDK](../README.md) > [Trolley_Balances_Gateway](../classes/Trolley_Balances_Gateway.md)



# Class: PaymentRails_Balances_Gateway
# Class: Trolley_Balances_Gateway

## Index

### Methods

* [find](PaymentRails_Balances_Gateway.md#find)
* [find](Trolley_Balances_Gateway.md#find)



Expand All @@ -27,7 +27,7 @@ ___



*Defined in [PaymentRails_Balances_Gateway.ts:49](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Balances_Gateway.cs#L49)*
*Defined in [Trolley_Balances_Gateway.ts:49](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Balances_Gateway.cs#L49)*



Expand Down
42 changes: 21 additions & 21 deletions docs/classes/batchgateway.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[Trolley C# SDK](../README.md) > [PaymentRails_Batch_Gateway](../classes/PaymentRails_Batch_Gateway.md)
[Trolley C# SDK](../README.md) > [Trolley_Batch_Gateway](../classes/Trolley_Batch_Gateway.md)



# Class: PaymentRails_Batch_Gateway
# Class: Trolley_Batch_Gateway


Gateway class for batches
*__class__*: PaymentRails_Batch_Gateway
*__class__*: Trolley_Batch_Gateway


## Index

### Methods

* [create](PaymentRails_Batch_Gateway.md#create)
* [find](PaymentRails_Batch_Gateway.md#find)
* [generateQuote](PaymentRails_Batch_Gateway.md#generatequote)
* [paymentList](PaymentRails_Batch_Gateway.md#paymentlist)
* [delete](PaymentRails_Batch_Gateway.md#delete)
* [search](PaymentRails_Batch_Gateway.md#search)
* [processBatch](PaymentRails_Batch_Gateway.md#processBatch)
* [summary](PaymentRails_Batch_Gateway.md#summary)
* [update](PaymentRails_Batch_Gateway.md#update)
* [create](Trolley_Batch_Gateway.md#create)
* [find](Trolley_Batch_Gateway.md#find)
* [generateQuote](Trolley_Batch_Gateway.md#generatequote)
* [paymentList](Trolley_Batch_Gateway.md#paymentlist)
* [delete](Trolley_Batch_Gateway.md#delete)
* [search](Trolley_Batch_Gateway.md#search)
* [processBatch](Trolley_Batch_Gateway.md#processBatch)
* [summary](Trolley_Batch_Gateway.md#summary)
* [update](Trolley_Batch_Gateway.md#update)



Expand All @@ -35,7 +35,7 @@ Gateway class for batches



*Defined in [PaymentRails_Batch_Gateway.cs:95](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L95)*
*Defined in [Trolley_Batch_Gateway.cs:95](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L95)*



Expand Down Expand Up @@ -79,7 +79,7 @@ ___



*Defined in [PaymentRails_Batch_Gateway.cs:67](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L67)*
*Defined in [Trolley_Batch_Gateway.cs:67](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L67)*



Expand Down Expand Up @@ -114,7 +114,7 @@ ___



*Defined in [PaymentRails_Batch_Gateway.cs:182](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L182)*
*Defined in [Trolley_Batch_Gateway.cs:182](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L182)*



Expand Down Expand Up @@ -147,7 +147,7 @@ ___



*Defined in [PaymentRails_Batch_Gateway.cs:166](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L166)*
*Defined in [Trolley_Batch_Gateway.cs:166](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L166)*



Expand Down Expand Up @@ -182,7 +182,7 @@ ___
**delete**(batch: *`Batch`*): `Boolean`


*Defined in [PaymentRails_Batch_Gateway.cs:132](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L132)*
*Defined in [Trolley_Batch_Gateway.cs:132](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L132)*



Expand Down Expand Up @@ -217,7 +217,7 @@ ___



*Defined in [PaymentRails_Batch_Gateway.cs:146](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L146)*
*Defined in [Trolley_Batch_Gateway.cs:146](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L146)*



Expand Down Expand Up @@ -252,7 +252,7 @@ ___



*Defined in [PaymentRails_Batch_Gateway.cs:194](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L194)*
*Defined in [Trolley_Batch_Gateway.cs:194](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L194)*



Expand Down Expand Up @@ -285,7 +285,7 @@ ___



*Defined in [PaymentRails_Batch_Gateway.cs:206](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L206)*
*Defined in [Trolley_Batch_Gateway.cs:206](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L206)*



Expand Down Expand Up @@ -318,7 +318,7 @@ ___



*Defined in [PaymentRails_Batch_Gateway.cs:117](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Batch_Gateway.cs#L117)*
*Defined in [Trolley_Batch_Gateway.cs:117](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Batch_Gateway.cs#L117)*



Expand Down
18 changes: 9 additions & 9 deletions docs/classes/configuration.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[Trolley C# SDK](../README.md) > [PaymentRails_Configuration](../classes/PaymentRails_Configuration.md)
[Trolley C# SDK](../README.md) > [Trolley_Configuration](../classes/Trolley_Configuration.md)



# Class: PaymentRails_Configuration
# Class: Trolley_Configuration

## Index

### Properties

* [apiBase](PaymentRails_Configuration.md#apibase)
* [apiKey](PaymentRails_Configuration.md#apikey)
* [apiSecret](PaymentRails_Configuration.md#apisecret)
* [apiBase](Trolley_Configuration.md#apibase)
* [apiKey](Trolley_Configuration.md#apikey)
* [apiSecret](Trolley_Configuration.md#apisecret)



Expand All @@ -23,7 +23,7 @@

**● apiBase**: *`string`*

*Defined in [PaymentRails_Configuration.cs:35](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Configuration.cs#L35)*
*Defined in [Trolley_Configuration.cs:35](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Configuration.cs#L35)*



Expand All @@ -37,7 +37,7 @@ ___

**● apiKey**: *`string`*

*Defined in [PaymentRails_Configuration.cs:33](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Configuration.cs#L33)*
*Defined in [Trolley_Configuration.cs:33](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Configuration.cs#L33)*



Expand All @@ -51,7 +51,7 @@ ___

**● apiSecret**: *`string`*

*Defined in [PaymentRails_Configuration.cs:34](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Configuration.cs#L34)*
*Defined in [Trolley_Configuration.cs:34](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Configuration.cs#L34)*



Expand All @@ -66,7 +66,7 @@ ___



*Defined in [PaymentRails_Configuration.cs:90](https://github.com/PaymentRails/paymentrails_dotnet/tree/master/paymentrails/PaymentRails_Configuration.cs#L90)*
*Defined in [Trolley_Configuration.cs:90](https://github.com/Trolley/dotnet-sdk/tree/master/trolley/Trolley_Configuration.cs#L90)*



Expand Down
6 changes: 3 additions & 3 deletions docs/classes/exceptions.authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
**● message**: *`string`*


*An unhandled exception of type 'PaymentRails.Exceptions.AuthenticationException' occurred in PaymentRails.exe*
*An unhandled exception of type 'Trolley.Exceptions.AuthenticationException' occurred in Trolley.exe*



Expand All @@ -52,7 +52,7 @@ ___

*Inherited from Error.name*

*Defined in /Users/koblas/repos/paymentrails/paymentrails_dotnet/node_modules/typedoc/node_modules/typescript/paymentrails/lib.es5.d.ts:873*
*Defined in /Users/koblas/repos/trolley/dotnet-sdk/node_modules/typedoc/node_modules/typescript/trolley/lib.es5.d.ts:873*



Expand All @@ -70,7 +70,7 @@ ___

*Overrides Error.stack*

*Defined in /Users/koblas/repos/paymentrails/paymentrails_dotnet/node_modules/typedoc/node_modules/typescript/paymentrails/lib.es5.d.ts:875*
*Defined in /Users/koblas/repos/trolley/dotnet-sdk/node_modules/typedoc/node_modules/typescript/trolley/lib.es5.d.ts:875*



Expand Down
6 changes: 3 additions & 3 deletions docs/classes/exceptions.authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

**● message**: *`string`*

*An unhandled exception of type 'PaymentRails.Exceptions.Authorization.Exception' occurred in PaymentRails.exe*
*An unhandled exception of type 'Trolley.Exceptions.Authorization.Exception' occurred in Trolley.exe*



Expand All @@ -51,7 +51,7 @@ ___

*AuthorizationException*

*Defined in /Users/koblas/repos/paymentrails/paymentrails_dotnet/node_modules/typedoc/node_modules/typescript/paymentrails/lib.es5.d.ts:873*
*Defined in /Users/koblas/repos/trolley/dotnet-sdk/node_modules/typedoc/node_modules/typescript/trolley/lib.es5.d.ts:873*



Expand All @@ -69,7 +69,7 @@ ___

*Overrides Error.stack*

*Defined in /Users/koblas/repos/paymentrails/paymentrails_dotnet/node_modules/typedoc/node_modules/typescript/paymentrails/lib.es5.d.ts:875*
*Defined in /Users/koblas/repos/trolley/dotnet-sdk/node_modules/typedoc/node_modules/typescript/trolley/lib.es5.d.ts:875*



Expand Down
Loading

0 comments on commit 8eee5e5

Please sign in to comment.