Skip to content

Commit 72566dc

Browse files
author
Aman Aalam
authored
Merge pull request #23 from trolley/dev
RC v1.1.0
2 parents a4b3671 + be1a63e commit 72566dc

File tree

94 files changed

+5029
-3141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+5029
-3141
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ACCESS_KEY=
2+
SECRET_KEY=

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ nbproject
88
.project
99
.vscode
1010
.vscode/*
11-
src/main/java/ca/paymentrails/paymentrails/index.java
11+
src/main/java/com/trolley/trolley/index.java
12+
/.metadata/
13+
.env

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ Add this dependency to your project's POM:
2020

2121
```xml
2222
<dependency>
23-
<groupId>ca.paymentrails</groupId>
24-
<artifactId>paymentrails</artifactId>
25-
<version>1.0.2</version>
23+
<groupId>com.trolley</groupId>
24+
<artifactId>java-sdk</artifactId>
25+
<version>1.0.1</version>
2626
</dependency>
2727
```
2828

29-
The library is hosted at [https://github.com/paymentRails/java-sdk](https://github.com/paymentRails/java-sdk)
29+
The library's source is hosted at [https://github.com/paymentRails/java-sdk](https://github.com/paymentRails/java-sdk)
30+
31+
The library can be found at: [https://central.sonatype.com/artifact/com.trolley/java-sdk/1.0](https://central.sonatype.com/artifact/com.trolley/java-sdk/1.0)
3032

3133
## Getting Started
3234

3335
```java
34-
import ca.paymentrails.paymentrails.*;
35-
import ca.paymentrails.Exceptions.*;
36+
import com.trolley.java-sdk.*;
37+
import com.trolley.Exceptions.*;
3638

3739
public class PaymentRailsExample {
3840
public static void main(String[] args) {
@@ -51,7 +53,7 @@ public class PaymentRailsExample {
5153

5254
### Usage
5355

54-
Methods should all have Java Doc comments to help you understand their usage. As mentioned the [full API documentation](https://docs.trolley.com)
56+
Methods should all have Java Doc comments to help you understand their usage. As mentioned the [full API documentation](http://docs.trolley.com)
5557
is the best source of information about the API.
5658

5759
For more information please read the [Java API docs](https://github.com/PaymentRails/java-sdk/tree/master/docs) is available. The best starting point is:

docs/classes/batchgateway.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
# Class: BatchGateway
44

55
Gateway class for batches
6-
*__class__*: BatchGateway
6+
_**class**_: BatchGateway
77

88
## Index
99

1010
### Methods
1111

12-
* [create](BatchGateway.md#create)
13-
* [find](BatchGateway.md#find)
14-
* [generateQuote](BatchGateway.md#generatequote)
15-
* [paymentList](BatchGateway.md#paymentlist)
16-
* [delete](BatchGateway.md#delete)
17-
* [search](BatchGateway.md#search)
18-
* [processBatch](BatchGateway.md#processBatch)
19-
* [summary](BatchGateway.md#summary)
20-
* [update](BatchGateway.md#update)
12+
- [create](BatchGateway.md#create)
13+
- [find](BatchGateway.md#find)
14+
- [generateQuote](BatchGateway.md#generatequote)
15+
- [paymentList](BatchGateway.md#paymentlist)
16+
- [delete](BatchGateway.md#delete)
17+
- [search](BatchGateway.md#search)
18+
- [processBatch](BatchGateway.md#processBatch)
19+
- [summary](BatchGateway.md#summary)
20+
- [update](BatchGateway.md#update)
2121

2222
---
2323

@@ -27,19 +27,19 @@ Gateway class for batches
2727

2828
### create
2929

30-
**create**(batch: *`Batch`*): `Batch`
30+
**create**(batch: _`Batch`_): `Batch`
3131

32-
*Defined in [BatchGateway.java:95](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L95)*
32+
_Defined in [BatchGateway.java:95](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L95)_
3333

34-
Creates a batch with optional payments. This is the interface that is provide by the [Create Batch](https://docs.trolley.com/api/#create-a-batch) API
34+
Creates a batch with optional payments. This is the interface that is provide by the [Create Batch](http://docs.trolley.com/api/#create-a-batch) API
3535

3636
Batch batch = client.batch.create("{\"sourceCurrency\": \"USD\", \"description\":\"Docs Create\"}");
3737

3838
**Parameters:**
3939

40-
| Param | Type | Description |
41-
| ------ | ------ | ------ |
42-
| batch | `Batch` | - |
40+
| Param | Type | Description |
41+
| ----- | ------- | ----------- |
42+
| batch | `Batch` | - |
4343

4444
**Returns:** `Batch`
4545

@@ -49,9 +49,9 @@ Creates a batch with optional payments. This is the interface that is provide by
4949

5050
### find
5151

52-
**find**(batchId: *`string`*): `Batch`
52+
**find**(batchId: _`string`_): `Batch`
5353

54-
*Defined in [BatchGateway.java:67](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L67)*
54+
_Defined in [BatchGateway.java:67](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L67)_
5555

5656
Retrieves a batch based on the batch id
5757

@@ -71,9 +71,9 @@ Retrieves a batch based on the batch id
7171

7272
### generateQuote
7373

74-
**generateQuote**(batchId: *`string`*): `Batch`
74+
**generateQuote**(batchId: _`string`_): `Batch`
7575

76-
*Defined in [BatchGateway.java:182](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L182)*
76+
_Defined in [BatchGateway.java:182](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L182)_
7777

7878
Generate a FX quote for this batch
7979

@@ -91,9 +91,9 @@ Generate a FX quote for this batch
9191

9292
### paymentList
9393

94-
**paymentList**(batchId: *`string`*, page?: *`number`*, pageSize?: *`number`*): `Payment`[]
94+
**paymentList**(batchId: _`string`_, page?: _`number`_, pageSize?: _`number`_): `Payment`[]
9595

96-
*Defined in [BatchGateway.java:166](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L166)*
96+
_Defined in [BatchGateway.java:166](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L166)_
9797

9898
Return a paginated list of payments for this batch
9999

@@ -113,9 +113,9 @@ Return a paginated list of payments for this batch
113113

114114
### delete
115115

116-
**delete**(batchId: *`string`*): `Boolean`
116+
**delete**(batchId: _`string`_): `Boolean`
117117

118-
*Defined in [BatchGateway.java:132](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L132)*
118+
_Defined in [BatchGateway.java:132](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L132)_
119119

120120
Delete the given batch
121121

@@ -135,19 +135,19 @@ Delete the given batch
135135

136136
### search
137137

138-
**search**(page?: *`number`*, pageSize?: *`number`*, term?: *`string`*): `Batch`[]
138+
**search**(page?: _`number`_, pageSize?: _`number`_, term?: _`string`_): `Batch`[]
139139

140-
*Defined in [BatchGateway.java:146](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L146)*
140+
_Defined in [BatchGateway.java:146](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L146)_
141141

142142
Search for a batch matching the given term
143143

144144
**Parameters:**
145145

146-
| Param | Type | Default value | Description |
147-
| ------ | ------ | ------ | ------ |
148-
| page | `number` | 1 | - |
149-
| pageSize | `number` | 10 | - |
150-
| term | `string` | &quot;&quot; | string search term |
146+
| Param | Type | Default value | Description |
147+
| -------- | -------- | ------------- | ------------------ |
148+
| page | `number` | 1 | - |
149+
| pageSize | `number` | 10 | - |
150+
| term | `string` | &quot;&quot; | string search term |
151151

152152
**Returns:** `Batch`[]
153153

@@ -157,9 +157,9 @@ Search for a batch matching the given term
157157

158158
### processBatch
159159

160-
**processBatch**(batchId: *`string`*): `Batch`
160+
**processBatch**(batchId: _`string`_): `Batch`
161161

162-
*Defined in [BatchGateway.java:194](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L194)*
162+
_Defined in [BatchGateway.java:194](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L194)_
163163

164164
Start processing this batch
165165

@@ -177,9 +177,9 @@ Start processing this batch
177177

178178
### summary
179179

180-
**summary**(batchId: *`string`*): `String`
180+
**summary**(batchId: _`string`_): `String`
181181

182-
*Defined in [BatchGateway.java:206](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/BatchGateway.java#L206)*
182+
_Defined in [BatchGateway.java:206](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/BatchGateway.java#L206)_
183183

184184
Get a transaction totaled summary for this batch
185185

@@ -193,4 +193,4 @@ Get a transaction totaled summary for this batch
193193

194194
**Returns:** `String`
195195

196-
---
196+
---

docs/classes/configuration.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
### Properties
88

9-
* [apiBase](Configuration.md#apibase)
10-
* [apiKey](Configuration.md#apikey)
11-
* [apiSecret](Configuration.md#apisecret)
9+
- [apiBase](Configuration.md#apibase)
10+
- [apiKey](Configuration.md#apikey)
11+
- [apiSecret](Configuration.md#apisecret)
1212

1313
---
1414

@@ -18,47 +18,47 @@
1818

1919
### environment
2020

21-
** environment**: *`string`*
21+
**enviroment**: _`string`_
2222

23-
*Defined in [Configuration.java:35](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Configuration.java#L35)*
23+
_Defined in [Configuration.java:35](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Configuration.java#L35)_
2424

2525
---
2626

2727
<a id="publicKey"></a>
2828

2929
### publicKey
3030

31-
** publicKey**: *`string`*
31+
**● publicKey**: _`string`_
3232

33-
*Defined in [Configuration.java:33](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Configuration.java#L33)*
33+
_Defined in [Configuration.java:33](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Configuration.java#L33)_
3434

3535
---
3636

3737
<a id="privateKey"></a>
3838

3939
### privateKey
4040

41-
** privateKey**: *`string`*
41+
**● privateKey**: _`string`_
4242

43-
*Defined in [Configuration.java:34](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Configuration.java#L34)*
43+
_Defined in [Configuration.java:34](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Configuration.java#L34)_
4444

4545
---
4646

4747
<a id="environment"></a>
4848

4949
### «Static» environment
5050

51-
**environment**(environment: *"production"⎮"sandbox"⎮"integration"*): `void`
51+
**environment**(environment: _"production"⎮"sandbox"⎮"integration"_): `void`
5252

53-
*Defined in [Configuration.java:90](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Configuration.java#L90)*
53+
_Defined in [Configuration.java:90](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Configuration.java#L90)_
5454

5555
Set the Trolley API environment that you're using
5656

5757
**Parameters:**
5858

59-
| Param | Type | Description |
60-
| ------ | ------ | ------ |
61-
| environment | "production"⎮"sandbox"⎮"integration" | one of "production" or "sandbox" |
59+
| Param | Type | Description |
60+
| ----------- | ------------------------------------ | -------------------------------- |
61+
| environment | "production"⎮"sandbox"⎮"integration" | one of "production" or "sandbox" |
6262

6363
**Returns:** `void`
6464

docs/classes/gateway.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
### Properties
88

9-
* [balances](gateway.md#balances)
10-
* [batch](gateway.md#batch)
11-
* [config](gateway.md#config)
12-
* [payment](gateway.md#payment)
13-
* [recipient](gateway.md#recipient)
14-
* [recipientAccount](gateway.md#recipientaccount)
9+
- [balances](gateway.md#balances)
10+
- [batch](gateway.md#batch)
11+
- [config](gateway.md#config)
12+
- [payment](gateway.md#payment)
13+
- [recipient](gateway.md#recipient)
14+
- [recipientAccount](gateway.md#recipientaccount)
1515

1616
---
1717

@@ -21,58 +21,58 @@
2121

2222
### balances
2323

24-
** balances**: *[BalancesGateway](balancesgateway.md)*
24+
**● balances**: _[BalancesGateway](balancesgateway.md)_
2525

26-
*Defined in [Gateway.md:15]*
26+
_Defined in [Gateway.md:15]_
2727

2828
---
2929

3030
<a id="batch"></a>
3131

3232
### batch
3333

34-
** batch**: *[BatchGateway](batchgateway.md)*
34+
**● batch**: _[BatchGateway](batchgateway.md)_
3535

36-
*Defined in [Gateway.java:13](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Gateway.java#L13)*
36+
_Defined in [Gateway.java:13](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Gateway.java#L13)_
3737

3838
---
3939

4040
<a id="config"></a>
4141

4242
### config
4343

44-
** config**: *[Configuration](configuration.md)*
44+
**● config**: _[Configuration](configuration.md)_
4545

46-
*Defined in [Gateway.java:10](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Gateway.java#L10)*
46+
_Defined in [Gateway.java:10](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Gateway.java#L10)_
4747

4848
---
4949

5050
<a id="payment"></a>
5151

5252
### payment
5353

54-
** payment**: *[PaymentGateway](paymentgateway.md)*
54+
**● payment**: _[PaymentGateway](paymentgateway.md)_
5555

56-
*Defined in [Gateway.java:16](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Gateway.java#L16)*
56+
_Defined in [Gateway.java:16](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Gateway.java#L16)_
5757

5858
---
5959

6060
<a id="recipient"></a>
6161

6262
### recipient
6363

64-
** recipient**: *[RecipientGateway](recipientgateway.md)*
64+
**● recipient**: _[RecipientGateway](recipientgateway.md)_
6565

66-
*Defined in [Gateway.java:12](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Gateway.java#L12)*
66+
_Defined in [Gateway.java:12](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Gateway.java#L12)_
6767

6868
---
6969

7070
<a id="recipientaccount"></a>
7171

7272
### recipientAccount
7373

74-
** recipientAccount**: *[RecipientAccountGateway](recipientaccountgateway.md)*
74+
**● recipientAccount**: _[RecipientAccountGateway](recipientaccountgateway.md)_
7575

76-
*Defined in [Gateway.java:14](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/ca/paymentrails/paymentrails/Gateway.java#L14)*
76+
_Defined in [Gateway.java:14](https://github.com/PaymentRails/java-sdk/tree/master/src/main/java/com/trolley/trolley/Gateway.java#L14)_
7777

78-
---
78+
---

0 commit comments

Comments
 (0)