You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -20,19 +20,21 @@ Add this dependency to your project's POM:
20
20
21
21
```xml
22
22
<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>
26
26
</dependency>
27
27
```
28
28
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)
30
32
31
33
## Getting Started
32
34
33
35
```java
34
-
importca.paymentrails.paymentrails.*;
35
-
importca.paymentrails.Exceptions.*;
36
+
importcom.trolley.java-sdk.*;
37
+
importcom.trolley.Exceptions.*;
36
38
37
39
publicclassPaymentRailsExample {
38
40
publicstaticvoidmain(String[] args) {
@@ -51,7 +53,7 @@ public class PaymentRailsExample {
51
53
52
54
### Usage
53
55
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)
55
57
is the best source of information about the API.
56
58
57
59
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:
Copy file name to clipboardExpand all lines: docs/classes/batchgateway.md
+36-36Lines changed: 36 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -3,21 +3,21 @@
3
3
# Class: BatchGateway
4
4
5
5
Gateway class for batches
6
-
*__class__*: BatchGateway
6
+
_**class**_: BatchGateway
7
7
8
8
## Index
9
9
10
10
### Methods
11
11
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)
21
21
22
22
---
23
23
@@ -27,19 +27,19 @@ Gateway class for batches
27
27
28
28
### create
29
29
30
-
► **create**(batch: *`Batch`*): `Batch`
30
+
► **create**(batch: _`Batch`_): `Batch`
31
31
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)_
33
33
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
@@ -49,9 +49,9 @@ Creates a batch with optional payments. This is the interface that is provide by
49
49
50
50
### find
51
51
52
-
► **find**(batchId: *`string`*): `Batch`
52
+
► **find**(batchId: _`string`_): `Batch`
53
53
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)_
55
55
56
56
Retrieves a batch based on the batch id
57
57
@@ -71,9 +71,9 @@ Retrieves a batch based on the batch id
71
71
72
72
### generateQuote
73
73
74
-
► **generateQuote**(batchId: *`string`*): `Batch`
74
+
► **generateQuote**(batchId: _`string`_): `Batch`
75
75
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)_
77
77
78
78
Generate a FX quote for this batch
79
79
@@ -91,9 +91,9 @@ Generate a FX quote for this batch
*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)_
97
97
98
98
Return a paginated list of payments for this batch
99
99
@@ -113,9 +113,9 @@ Return a paginated list of payments for this batch
113
113
114
114
### delete
115
115
116
-
► **delete**(batchId: *`string`*): `Boolean`
116
+
► **delete**(batchId: _`string`_): `Boolean`
117
117
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)_
*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)_
141
141
142
142
Search for a batch matching the given term
143
143
144
144
**Parameters:**
145
145
146
-
| Param | Type | Default value | Description |
147
-
| ------ | ------ | ------ | ------ |
148
-
| page |`number`| 1 |-|
149
-
| pageSize |`number`| 10 |-|
150
-
| term |`string`|""| string search term |
| term |`string`|""| string search term |
151
151
152
152
**Returns:**`Batch`[]
153
153
@@ -157,9 +157,9 @@ Search for a batch matching the given term
157
157
158
158
### processBatch
159
159
160
-
► **processBatch**(batchId: *`string`*): `Batch`
160
+
► **processBatch**(batchId: _`string`_): `Batch`
161
161
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)_
163
163
164
164
Start processing this batch
165
165
@@ -177,9 +177,9 @@ Start processing this batch
177
177
178
178
### summary
179
179
180
-
► **summary**(batchId: *`string`*): `String`
180
+
► **summary**(batchId: _`string`_): `String`
181
181
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)_
183
183
184
184
Get a transaction totaled summary for this batch
185
185
@@ -193,4 +193,4 @@ Get a transaction totaled summary for this batch
Copy file name to clipboardExpand all lines: docs/classes/configuration.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
7
7
### Properties
8
8
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)
12
12
13
13
---
14
14
@@ -18,47 +18,47 @@
18
18
19
19
### environment
20
20
21
-
**● environment**: *`string`*
21
+
**● enviroment**: _`string`_
22
22
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)_
24
24
25
25
---
26
26
27
27
<aid="publicKey"></a>
28
28
29
29
### publicKey
30
30
31
-
**● publicKey**: *`string`*
31
+
**● publicKey**: _`string`_
32
32
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)_
34
34
35
35
---
36
36
37
37
<aid="privateKey"></a>
38
38
39
39
### privateKey
40
40
41
-
**● privateKey**: *`string`*
41
+
**● privateKey**: _`string`_
42
42
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)_
*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)_
54
54
55
55
Set the Trolley API environment that you're using
56
56
57
57
**Parameters:**
58
58
59
-
| Param | Type | Description |
60
-
| ------ | ------ | ------ |
61
-
| environment | "production"⎮"sandbox"⎮"integration" | one of "production" or "sandbox" |
0 commit comments