Skip to content

Commit 6bbeb24

Browse files
authored
feat: new transaction types (#52)
1 parent d3a57ec commit 6bbeb24

File tree

828 files changed

+2898
-832
lines changed

Some content is hidden

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

828 files changed

+2898
-832
lines changed

api/openapi.yaml

Lines changed: 115 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.2
22
info:
33
description: An OpenAPI specifications for unit-sdk clients
44
title: Unit OpenAPI specifications
5-
version: 0.2.3
5+
version: 0.2.4
66
servers:
77
- url: https://api.s.unit.sh
88
security:
@@ -6832,6 +6832,7 @@ components:
68326832
cardTransaction: '#/components/schemas/CardTransaction'
68336833
releaseTransaction: '#/components/schemas/ReleaseTransaction'
68346834
wireTransaction: '#/components/schemas/WireTransaction'
6835+
returnedWireTransaction: '#/components/schemas/ReturnedWireTransaction'
68356836
interestShareTransaction: '#/components/schemas/InterestShareTransaction'
68366837
interestTransaction: '#/components/schemas/InterestTransaction'
68376838
adjustmentTransaction: '#/components/schemas/AdjustmentTransaction'
@@ -6853,8 +6854,10 @@ components:
68536854
returnedCheckPaymentTransaction: '#/components/schemas/ReturnedCheckPaymentTransaction'
68546855
cardReversalTransaction: '#/components/schemas/CardReversalTransaction'
68556856
feeReversalTransaction: '#/components/schemas/FeeReversalTransaction'
6857+
pushToCardTransaction: '#/components/schemas/PushToCardTransaction'
68566858
pushToCardReversalTransaction: '#/components/schemas/PushToCardReversalTransaction'
68576859
paymentCanceledTransaction: '#/components/schemas/PaymentCanceledTransaction'
6860+
writeOffTransaction: '#/components/schemas/WriteOffTransaction'
68586861
propertyName: type
68596862
properties:
68606863
id:
@@ -6874,6 +6877,7 @@ components:
68746877
- cardTransaction
68756878
- releaseTransaction
68766879
- wireTransaction
6880+
- returnedWireTransaction
68776881
- interestShareTransaction
68786882
- interestTransaction
68796883
- adjustmentTransaction
@@ -6895,8 +6899,10 @@ components:
68956899
- returnedCheckPaymentTransaction
68966900
- cardReversalTransaction
68976901
- feeReversalTransaction
6902+
- pushToCardTransaction
68986903
- pushToCardReversalTransaction
68996904
- paymentCanceledTransaction
6905+
- writeOffTransaction
69006906
type: string
69016907
title: Transaction Resource
69026908
type: object
@@ -7225,6 +7231,29 @@ components:
72257231
type: object
72267232
title: Wire Transaction
72277233
type: object
7234+
ReturnedWireTransactionRelationships:
7235+
allOf:
7236+
- required:
7237+
- account
7238+
- payment
7239+
type: object
7240+
- $ref: '#/components/schemas/DefaultTransactionRelationships'
7241+
- $ref: '#/components/schemas/PaymentRelationship'
7242+
ReturnedWireTransaction:
7243+
allOf:
7244+
- $ref: '#/components/schemas/Transaction'
7245+
- additionalProperties: false
7246+
properties:
7247+
attributes:
7248+
$ref: '#/components/schemas/ReturnedWireTransaction_allOf_attributes'
7249+
relationships:
7250+
$ref: '#/components/schemas/ReturnedWireTransactionRelationships'
7251+
required:
7252+
- attributes
7253+
- relationships
7254+
type: object
7255+
title: Returned Wire Transaction
7256+
type: object
72287257
InterestShareTransactionRelationships:
72297258
allOf:
72307259
- required:
@@ -7745,6 +7774,30 @@ components:
77457774
type: object
77467775
title: FeeReversal
77477776
type: object
7777+
PushToCardTransactionRelationships:
7778+
allOf:
7779+
- required:
7780+
- account
7781+
- org
7782+
type: object
7783+
- $ref: '#/components/schemas/DefaultTransactionRelationships'
7784+
- $ref: '#/components/schemas/PaymentRelationship'
7785+
- $ref: '#/components/schemas/OrgRelationship'
7786+
PushToCardTransaction:
7787+
allOf:
7788+
- $ref: '#/components/schemas/Transaction'
7789+
- additionalProperties: false
7790+
properties:
7791+
attributes:
7792+
$ref: '#/components/schemas/FeeTransaction_allOf_attributes'
7793+
relationships:
7794+
$ref: '#/components/schemas/PushToCardTransactionRelationships'
7795+
required:
7796+
- attributes
7797+
- relationships
7798+
type: object
7799+
title: Push To Card Transaction
7800+
type: object
77487801
OriginalTransactionRelationship:
77497802
properties:
77507803
originalTransaction:
@@ -7792,7 +7845,7 @@ components:
77927845
- additionalProperties: false
77937846
properties:
77947847
attributes:
7795-
$ref: '#/components/schemas/ReturnedCheckDepositTransaction_allOf_attributes'
7848+
$ref: '#/components/schemas/CheckDepositTransaction_allOf_attributes'
77967849
relationships:
77977850
$ref: '#/components/schemas/PaymentCanceledTransactionRelationships'
77987851
required:
@@ -7801,6 +7854,25 @@ components:
78017854
type: object
78027855
title: Payment Canceled Transaction
78037856
type: object
7857+
WriteOffTransactionRelationships:
7858+
allOf:
7859+
- title: Write Off Transaction Relationships
7860+
- $ref: '#/components/schemas/DefaultTransactionRelationships'
7861+
WriteOffTransaction:
7862+
allOf:
7863+
- $ref: '#/components/schemas/Transaction'
7864+
- additionalProperties: false
7865+
properties:
7866+
attributes:
7867+
$ref: '#/components/schemas/FeeTransaction_allOf_attributes'
7868+
relationships:
7869+
$ref: '#/components/schemas/WriteOffTransactionRelationships'
7870+
required:
7871+
- attributes
7872+
- relationships
7873+
type: object
7874+
title: Write Off Transaction
7875+
type: object
78047876
ReturnedRelationship:
78057877
properties:
78067878
returned:
@@ -14954,6 +15026,47 @@ components:
1495415026
- direction
1495515027
- summary
1495615028
type: object
15029+
ReturnedWireTransaction_allOf_attributes:
15030+
properties:
15031+
createdAt:
15032+
format: date-time
15033+
type: string
15034+
direction:
15035+
enum:
15036+
- Credit
15037+
- Debit
15038+
type: string
15039+
amount:
15040+
format: int64
15041+
type: integer
15042+
balance:
15043+
format: int64
15044+
type: integer
15045+
summary:
15046+
type: string
15047+
reason:
15048+
type: string
15049+
imad:
15050+
type: string
15051+
omad:
15052+
type: string
15053+
tags:
15054+
additionalProperties:
15055+
maxLength: 255
15056+
minLength: 1
15057+
type: string
15058+
maxProperties: 15
15059+
type: object
15060+
required:
15061+
- amount
15062+
- balance
15063+
- counterparty
15064+
- createdAt
15065+
- direction
15066+
- imad
15067+
- reason
15068+
- summary
15069+
type: object
1495715070
AdjustmentTransaction_allOf_attributes:
1495815071
properties:
1495915072
createdAt:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply plugin: 'java'
1919
apply plugin: 'com.diffplug.spotless'
2020

2121
group = 'co.unit'
22-
version = '0.2.4'
22+
version = '0.2.5'
2323

2424
repositories {
2525
mavenCentral()

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>openapi-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>openapi-java-client</name>
8-
<version>0.2.4</version>
8+
<version>0.2.5</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

src/main/java/unit/java/sdk/ApiClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Unit OpenAPI specifications
33
* An OpenAPI specifications for unit-sdk clients
44
*
5-
* The version of the OpenAPI document: 0.2.3
5+
* The version of the OpenAPI document: 0.2.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -168,7 +168,7 @@ public ApiClient() {
168168
this.mapper = createDefaultObjectMapper();
169169
updateBaseUri(getDefaultBaseUri());
170170
interceptor = (req) -> {
171-
req.setHeader("X-UNIT-SDK", "[email protected].1");
171+
req.setHeader("X-UNIT-SDK", "[email protected].3");
172172
};
173173
readTimeout = null;
174174
connectTimeout = null;
@@ -188,7 +188,7 @@ public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri
188188
this.mapper = mapper;
189189
updateBaseUri(baseUri != null ? baseUri : getDefaultBaseUri());
190190
interceptor = (req) -> {
191-
req.setHeader("X-UNIT-SDK", "[email protected].1");
191+
req.setHeader("X-UNIT-SDK", "[email protected].3");
192192
};
193193
readTimeout = null;
194194
connectTimeout = null;
@@ -343,7 +343,7 @@ public ApiClient setScheme(String scheme){
343343
*/
344344
public ApiClient setRequestInterceptor(Consumer<HttpRequest.Builder> interceptor) {
345345
this.interceptor = (req) -> {
346-
req.setHeader("X-UNIT-SDK", "[email protected].1");
346+
req.setHeader("X-UNIT-SDK", "[email protected].3");
347347
interceptor.accept(req);
348348
};
349349
return this;

src/main/java/unit/java/sdk/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Unit OpenAPI specifications
33
* An OpenAPI specifications for unit-sdk clients
44
*
5-
* The version of the OpenAPI document: 0.2.3
5+
* The version of the OpenAPI document: 0.2.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/unit/java/sdk/ApiResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Unit OpenAPI specifications
33
* An OpenAPI specifications for unit-sdk clients
44
*
5-
* The version of the OpenAPI document: 0.2.3
5+
* The version of the OpenAPI document: 0.2.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/unit/java/sdk/Configuration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Unit OpenAPI specifications
33
* An OpenAPI specifications for unit-sdk clients
44
*
5-
* The version of the OpenAPI document: 0.2.3
5+
* The version of the OpenAPI document: 0.2.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@
1515

1616
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
1717
public class Configuration {
18-
public static final String VERSION = "0.2.3";
18+
public static final String VERSION = "0.2.4";
1919

2020
private static ApiClient defaultApiClient = new ApiClient();
2121

src/main/java/unit/java/sdk/JSON.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Unit OpenAPI specifications
33
* An OpenAPI specifications for unit-sdk clients
44
*
5-
* The version of the OpenAPI document: 0.2.3
5+
* The version of the OpenAPI document: 0.2.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/unit/java/sdk/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Unit OpenAPI specifications
33
* An OpenAPI specifications for unit-sdk clients
44
*
5-
* The version of the OpenAPI document: 0.2.3
5+
* The version of the OpenAPI document: 0.2.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/unit/java/sdk/RFC3339DateFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Unit OpenAPI specifications
33
* An OpenAPI specifications for unit-sdk clients
44
*
5-
* The version of the OpenAPI document: 0.2.3
5+
* The version of the OpenAPI document: 0.2.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)