Skip to content

Commit dfe37f4

Browse files
committed
feat: transaction improvements and test adjustments
1 parent 1d07875 commit dfe37f4

File tree

821 files changed

+1328
-994
lines changed

Some content is hidden

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

821 files changed

+1328
-994
lines changed

api/openapi.yaml

Lines changed: 39 additions & 20 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.1
5+
version: 0.2.2
66
servers:
77
- url: https://api.s.unit.sh
88
security:
@@ -5029,7 +5029,7 @@ components:
50295029
type: string
50305030
percentage:
50315031
maximum: 100
5032-
minimum: 0
5032+
minimum: 25
50335033
type: integer
50345034
evaluationFlags:
50355035
items:
@@ -7131,13 +7131,9 @@ components:
71317131
title: ATM
71327132
type: object
71337133
RelatedTransactionRelationship:
7134-
additionalProperties: false
71357134
properties:
7136-
data:
7137-
$ref: '#/components/schemas/Receive_Payment_Transaction_Relationship_data'
7138-
required:
7139-
- data
7140-
title: Related Transaction Relationship
7135+
relatedTransaction:
7136+
$ref: '#/components/schemas/Related_Transaction_Relationship'
71417137
type: object
71427138
FeeTransactionRelationships:
71437139
allOf:
@@ -7162,16 +7158,16 @@ components:
71627158
type: object
71637159
title: Fee
71647160
type: object
7165-
CardReversalTransactionRelationships:
7161+
CardTransactionRelationships:
71667162
allOf:
71677163
- required:
71687164
- account
7165+
- authorization
71697166
- card
7170-
- relatedTransaction
71717167
type: object
71727168
- $ref: '#/components/schemas/DefaultTransactionRelationships'
7169+
- $ref: '#/components/schemas/AuthorizationRelationship'
71737170
- $ref: '#/components/schemas/CardRelationship'
7174-
- $ref: '#/components/schemas/RelatedTransactionRelationship'
71757171
CardTransaction:
71767172
allOf:
71777173
- $ref: '#/components/schemas/Transaction'
@@ -7180,7 +7176,7 @@ components:
71807176
attributes:
71817177
$ref: '#/components/schemas/CardTransaction_allOf_attributes'
71827178
relationships:
7183-
$ref: '#/components/schemas/CardReversalTransactionRelationships'
7179+
$ref: '#/components/schemas/CardTransactionRelationships'
71847180
required:
71857181
- attributes
71867182
- relationships
@@ -7699,6 +7695,16 @@ components:
76997695
type: object
77007696
title: Returned Check Payment Transaction
77017697
type: object
7698+
CardReversalTransactionRelationships:
7699+
allOf:
7700+
- required:
7701+
- account
7702+
- card
7703+
- relatedTransaction
7704+
type: object
7705+
- $ref: '#/components/schemas/DefaultTransactionRelationships'
7706+
- $ref: '#/components/schemas/CardRelationship'
7707+
- $ref: '#/components/schemas/RelatedTransactionRelationship'
77027708
CardReversalTransaction:
77037709
allOf:
77047710
- $ref: '#/components/schemas/Transaction'
@@ -11195,6 +11201,10 @@ components:
1119511201
properties:
1119611202
accountId:
1119711203
type: string
11204+
accountIds:
11205+
items:
11206+
type: string
11207+
type: array
1119811208
customerId:
1119911209
type: string
1120011210
query:
@@ -14530,7 +14540,7 @@ components:
1453014540
- data
1453114541
title: Card Relationship
1453214542
type: object
14533-
Authorization_Relationship_data_inner:
14543+
Authorization_Relationship_data:
1453414544
additionalProperties: false
1453514545
properties:
1453614546
type:
@@ -14539,17 +14549,18 @@ components:
1453914549
id:
1454014550
pattern: "^[1-9]\\d*$"
1454114551
type: string
14552+
required:
14553+
- id
14554+
- type
1454214555
type: object
1454314556
Authorization_Relationship:
1454414557
additionalProperties: false
1454514558
properties:
1454614559
data:
14547-
items:
14548-
$ref: '#/components/schemas/Authorization_Relationship_data_inner'
14549-
type: array
14560+
$ref: '#/components/schemas/Authorization_Relationship_data'
1455014561
title: Authorization Relationship
1455114562
type: object
14552-
Authorization_Request_Relationship_data_inner:
14563+
Authorization_Request_Relationship_data:
1455314564
additionalProperties: false
1455414565
properties:
1455514566
type:
@@ -14558,14 +14569,15 @@ components:
1455814569
id:
1455914570
pattern: "^[1-9]\\d*$"
1456014571
type: string
14572+
required:
14573+
- id
14574+
- type
1456114575
type: object
1456214576
Authorization_Request_Relationship:
1456314577
additionalProperties: false
1456414578
properties:
1456514579
data:
14566-
items:
14567-
$ref: '#/components/schemas/Authorization_Request_Relationship_data_inner'
14568-
type: array
14580+
$ref: '#/components/schemas/Authorization_Request_Relationship_data'
1456914581
title: Authorization Request Relationship
1457014582
type: object
1457114583
PurchaseTransaction_allOf_attributes:
@@ -14723,6 +14735,13 @@ components:
1472314735
- summary
1472414736
- surcharge
1472514737
type: object
14738+
Related_Transaction_Relationship:
14739+
additionalProperties: false
14740+
properties:
14741+
data:
14742+
$ref: '#/components/schemas/Receive_Payment_Transaction_Relationship_data'
14743+
title: Related Transaction Relationship
14744+
type: object
1472614745
FeeTransaction_allOf_attributes:
1472714746
properties:
1472814747
createdAt:

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'co.unit.sdk'
7-
version = '0.2.2'
7+
version = '0.2.3'
88

99
buildscript {
1010
repositories {
@@ -91,7 +91,7 @@ if(hasProperty('target') && target == 'android') {
9191
maven(MavenPublication) {
9292
groupId = 'co.unit'
9393
artifactId = 'java-sdk'
94-
version = '0.2.2'
94+
version = '0.2.3'
9595
from components.java
9696

9797
pom {
@@ -175,7 +175,7 @@ test {
175175
testLogging {
176176
showStandardStreams = true
177177
}
178-
178+
179179
useJUnit()
180180
}
181181
// // Enable JUnit 5 (Gradle 4.6+).

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.2</version>
8+
<version>0.2.3</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: 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.1
5+
* The version of the OpenAPI document: 0.2.2
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

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.1
5+
* The version of the OpenAPI document: 0.2.2
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.1
5+
* The version of the OpenAPI document: 0.2.2
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.1
5+
* The version of the OpenAPI document: 0.2.2
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.1";
18+
public static final String VERSION = "0.2.2";
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.1
5+
* The version of the OpenAPI document: 0.2.2
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.1
5+
* The version of the OpenAPI document: 0.2.2
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.1
5+
* The version of the OpenAPI document: 0.2.2
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)