Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
117 changes: 115 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.2
info:
description: An OpenAPI specifications for unit-sdk clients
title: Unit OpenAPI specifications
version: 0.2.3
version: 0.2.4
servers:
- url: https://api.s.unit.sh
security:
Expand Down Expand Up @@ -6832,6 +6832,7 @@ components:
cardTransaction: '#/components/schemas/CardTransaction'
releaseTransaction: '#/components/schemas/ReleaseTransaction'
wireTransaction: '#/components/schemas/WireTransaction'
returnedWireTransaction: '#/components/schemas/ReturnedWireTransaction'
interestShareTransaction: '#/components/schemas/InterestShareTransaction'
interestTransaction: '#/components/schemas/InterestTransaction'
adjustmentTransaction: '#/components/schemas/AdjustmentTransaction'
Expand All @@ -6853,8 +6854,10 @@ components:
returnedCheckPaymentTransaction: '#/components/schemas/ReturnedCheckPaymentTransaction'
cardReversalTransaction: '#/components/schemas/CardReversalTransaction'
feeReversalTransaction: '#/components/schemas/FeeReversalTransaction'
pushToCardTransaction: '#/components/schemas/PushToCardTransaction'
pushToCardReversalTransaction: '#/components/schemas/PushToCardReversalTransaction'
paymentCanceledTransaction: '#/components/schemas/PaymentCanceledTransaction'
writeOffTransaction: '#/components/schemas/WriteOffTransaction'
propertyName: type
properties:
id:
Expand All @@ -6874,6 +6877,7 @@ components:
- cardTransaction
- releaseTransaction
- wireTransaction
- returnedWireTransaction
- interestShareTransaction
- interestTransaction
- adjustmentTransaction
Expand All @@ -6895,8 +6899,10 @@ components:
- returnedCheckPaymentTransaction
- cardReversalTransaction
- feeReversalTransaction
- pushToCardTransaction
- pushToCardReversalTransaction
- paymentCanceledTransaction
- writeOffTransaction
type: string
title: Transaction Resource
type: object
Expand Down Expand Up @@ -7225,6 +7231,29 @@ components:
type: object
title: Wire Transaction
type: object
ReturnedWireTransactionRelationships:
allOf:
- required:
- account
- payment
type: object
- $ref: '#/components/schemas/DefaultTransactionRelationships'
- $ref: '#/components/schemas/PaymentRelationship'
ReturnedWireTransaction:
allOf:
- $ref: '#/components/schemas/Transaction'
- additionalProperties: false
properties:
attributes:
$ref: '#/components/schemas/ReturnedWireTransaction_allOf_attributes'
relationships:
$ref: '#/components/schemas/ReturnedWireTransactionRelationships'
required:
- attributes
- relationships
type: object
title: Returned Wire Transaction
type: object
InterestShareTransactionRelationships:
allOf:
- required:
Expand Down Expand Up @@ -7745,6 +7774,30 @@ components:
type: object
title: FeeReversal
type: object
PushToCardTransactionRelationships:
allOf:
- required:
- account
- org
type: object
- $ref: '#/components/schemas/DefaultTransactionRelationships'
- $ref: '#/components/schemas/PaymentRelationship'
- $ref: '#/components/schemas/OrgRelationship'
PushToCardTransaction:
allOf:
- $ref: '#/components/schemas/Transaction'
- additionalProperties: false
properties:
attributes:
$ref: '#/components/schemas/FeeTransaction_allOf_attributes'
relationships:
$ref: '#/components/schemas/PushToCardTransactionRelationships'
required:
- attributes
- relationships
type: object
title: Push To Card Transaction
type: object
OriginalTransactionRelationship:
properties:
originalTransaction:
Expand Down Expand Up @@ -7792,7 +7845,7 @@ components:
- additionalProperties: false
properties:
attributes:
$ref: '#/components/schemas/ReturnedCheckDepositTransaction_allOf_attributes'
$ref: '#/components/schemas/CheckDepositTransaction_allOf_attributes'
relationships:
$ref: '#/components/schemas/PaymentCanceledTransactionRelationships'
required:
Expand All @@ -7801,6 +7854,25 @@ components:
type: object
title: Payment Canceled Transaction
type: object
WriteOffTransactionRelationships:
allOf:
- title: Write Off Transaction Relationships
- $ref: '#/components/schemas/DefaultTransactionRelationships'
WriteOffTransaction:
allOf:
- $ref: '#/components/schemas/Transaction'
- additionalProperties: false
properties:
attributes:
$ref: '#/components/schemas/FeeTransaction_allOf_attributes'
relationships:
$ref: '#/components/schemas/WriteOffTransactionRelationships'
required:
- attributes
- relationships
type: object
title: Write Off Transaction
type: object
ReturnedRelationship:
properties:
returned:
Expand Down Expand Up @@ -14954,6 +15026,47 @@ components:
- direction
- summary
type: object
ReturnedWireTransaction_allOf_attributes:
properties:
createdAt:
format: date-time
type: string
direction:
enum:
- Credit
- Debit
type: string
amount:
format: int64
type: integer
balance:
format: int64
type: integer
summary:
type: string
reason:
type: string
imad:
type: string
omad:
type: string
tags:
additionalProperties:
maxLength: 255
minLength: 1
type: string
maxProperties: 15
type: object
required:
- amount
- balance
- counterparty
- createdAt
- direction
- imad
- reason
- summary
type: object
AdjustmentTransaction_allOf_attributes:
properties:
createdAt:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'co.unit'
version = '0.2.4'
version = '0.2.5'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>openapi-java-client</artifactId>
<packaging>jar</packaging>
<name>openapi-java-client</name>
<version>0.2.4</version>
<version>0.2.5</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/unit/java/sdk/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -168,7 +168,7 @@ public ApiClient() {
this.mapper = createDefaultObjectMapper();
updateBaseUri(getDefaultBaseUri());
interceptor = (req) -> {
req.setHeader("X-UNIT-SDK", "[email protected].1");
req.setHeader("X-UNIT-SDK", "[email protected].3");
};
readTimeout = null;
connectTimeout = null;
Expand All @@ -188,7 +188,7 @@ public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri
this.mapper = mapper;
updateBaseUri(baseUri != null ? baseUri : getDefaultBaseUri());
interceptor = (req) -> {
req.setHeader("X-UNIT-SDK", "[email protected].1");
req.setHeader("X-UNIT-SDK", "[email protected].3");
};
readTimeout = null;
connectTimeout = null;
Expand Down Expand Up @@ -343,7 +343,7 @@ public ApiClient setScheme(String scheme){
*/
public ApiClient setRequestInterceptor(Consumer<HttpRequest.Builder> interceptor) {
this.interceptor = (req) -> {
req.setHeader("X-UNIT-SDK", "[email protected].1");
req.setHeader("X-UNIT-SDK", "[email protected].3");
interceptor.accept(req);
};
return this;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/ApiResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/unit/java/sdk/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -15,7 +15,7 @@

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

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/RFC3339DateFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/ServerConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/ServerVariable.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/api/UnitApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/unit/java/sdk/model/AccountEndOfDay.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
* The version of the OpenAPI document: 0.2.4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading
Loading