Skip to content

Commit 8fdd517

Browse files
feat(api): api update
1 parent 78ee0ad commit 8fdd517

File tree

14 files changed

+55819
-31455
lines changed

14 files changed

+55819
-31455
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 236
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-57310f0e57b0996b79f938ef778b40e54f5b62cefb78c3e6405cefacfa704c66.yml
3-
openapi_spec_hash: c6d65e9ebf76cb81a5395b8ab4251a95
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1537e933795625528b93b601e286a513458f9aad05160ee018383e6b29986956.yml
3+
openapi_spec_hash: f34d800917618bf012b466c1f88e8eca
44
config_hash: 4945e03affdf289484733306e4797f81

increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt

Lines changed: 32537 additions & 20099 deletions
Large diffs are not rendered by default.

increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransaction.kt

Lines changed: 1377 additions & 1 deletion
Large diffs are not rendered by default.

increase-java-core/src/main/kotlin/com/increase/api/models/pendingtransactions/PendingTransaction.kt

Lines changed: 1376 additions & 1 deletion
Large diffs are not rendered by default.

increase-java-core/src/main/kotlin/com/increase/api/models/transactions/Transaction.kt

Lines changed: 15401 additions & 11279 deletions
Large diffs are not rendered by default.

increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentListPageResponseTest.kt

Lines changed: 2523 additions & 37 deletions
Large diffs are not rendered by default.

increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentTest.kt

Lines changed: 1949 additions & 36 deletions
Large diffs are not rendered by default.

increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListPageResponseTest.kt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,27 @@ internal class DeclinedTransactionListPageResponseTest {
244244
DeclinedTransaction.Source.CardDecline.Reason
245245
.INSUFFICIENT_FUNDS
246246
)
247+
.addSchemeFee(
248+
DeclinedTransaction.Source.CardDecline.SchemeFee
249+
.builder()
250+
.amount("0.137465")
251+
.createdAt(
252+
OffsetDateTime.parse("2020-01-31T23:59:59Z")
253+
)
254+
.currency(
255+
DeclinedTransaction.Source.CardDecline.SchemeFee
256+
.Currency
257+
.USD
258+
)
259+
.feeType(
260+
DeclinedTransaction.Source.CardDecline.SchemeFee
261+
.FeeType
262+
.VISA_CORPORATE_ACCEPTANCE_FEE
263+
)
264+
.fixedComponent(null)
265+
.variableRate("0.0002")
266+
.build()
267+
)
247268
.terminalId("RCN5VNXS")
248269
.verification(
249270
DeclinedTransaction.Source.CardDecline.Verification
@@ -614,6 +635,24 @@ internal class DeclinedTransactionListPageResponseTest {
614635
DeclinedTransaction.Source.CardDecline.Reason
615636
.INSUFFICIENT_FUNDS
616637
)
638+
.addSchemeFee(
639+
DeclinedTransaction.Source.CardDecline.SchemeFee.builder()
640+
.amount("0.137465")
641+
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
642+
.currency(
643+
DeclinedTransaction.Source.CardDecline.SchemeFee
644+
.Currency
645+
.USD
646+
)
647+
.feeType(
648+
DeclinedTransaction.Source.CardDecline.SchemeFee
649+
.FeeType
650+
.VISA_CORPORATE_ACCEPTANCE_FEE
651+
)
652+
.fixedComponent(null)
653+
.variableRate("0.0002")
654+
.build()
655+
)
617656
.terminalId("RCN5VNXS")
618657
.verification(
619658
DeclinedTransaction.Source.CardDecline.Verification
@@ -989,6 +1028,27 @@ internal class DeclinedTransactionListPageResponseTest {
9891028
DeclinedTransaction.Source.CardDecline.Reason
9901029
.INSUFFICIENT_FUNDS
9911030
)
1031+
.addSchemeFee(
1032+
DeclinedTransaction.Source.CardDecline.SchemeFee
1033+
.builder()
1034+
.amount("0.137465")
1035+
.createdAt(
1036+
OffsetDateTime.parse("2020-01-31T23:59:59Z")
1037+
)
1038+
.currency(
1039+
DeclinedTransaction.Source.CardDecline.SchemeFee
1040+
.Currency
1041+
.USD
1042+
)
1043+
.feeType(
1044+
DeclinedTransaction.Source.CardDecline.SchemeFee
1045+
.FeeType
1046+
.VISA_CORPORATE_ACCEPTANCE_FEE
1047+
)
1048+
.fixedComponent(null)
1049+
.variableRate("0.0002")
1050+
.build()
1051+
)
9921052
.terminalId("RCN5VNXS")
9931053
.verification(
9941054
DeclinedTransaction.Source.CardDecline.Verification

increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionTest.kt

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,23 @@ internal class DeclinedTransactionTest {
213213
.reason(
214214
DeclinedTransaction.Source.CardDecline.Reason.INSUFFICIENT_FUNDS
215215
)
216+
.addSchemeFee(
217+
DeclinedTransaction.Source.CardDecline.SchemeFee.builder()
218+
.amount("0.137465")
219+
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
220+
.currency(
221+
DeclinedTransaction.Source.CardDecline.SchemeFee
222+
.Currency
223+
.USD
224+
)
225+
.feeType(
226+
DeclinedTransaction.Source.CardDecline.SchemeFee.FeeType
227+
.VISA_CORPORATE_ACCEPTANCE_FEE
228+
)
229+
.fixedComponent(null)
230+
.variableRate("0.0002")
231+
.build()
232+
)
216233
.terminalId("RCN5VNXS")
217234
.verification(
218235
DeclinedTransaction.Source.CardDecline.Verification.builder()
@@ -532,6 +549,22 @@ internal class DeclinedTransactionTest {
532549
.reason(
533550
DeclinedTransaction.Source.CardDecline.Reason.INSUFFICIENT_FUNDS
534551
)
552+
.addSchemeFee(
553+
DeclinedTransaction.Source.CardDecline.SchemeFee.builder()
554+
.amount("0.137465")
555+
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
556+
.currency(
557+
DeclinedTransaction.Source.CardDecline.SchemeFee.Currency
558+
.USD
559+
)
560+
.feeType(
561+
DeclinedTransaction.Source.CardDecline.SchemeFee.FeeType
562+
.VISA_CORPORATE_ACCEPTANCE_FEE
563+
)
564+
.fixedComponent(null)
565+
.variableRate("0.0002")
566+
.build()
567+
)
535568
.terminalId("RCN5VNXS")
536569
.verification(
537570
DeclinedTransaction.Source.CardDecline.Verification.builder()
@@ -853,6 +886,23 @@ internal class DeclinedTransactionTest {
853886
.reason(
854887
DeclinedTransaction.Source.CardDecline.Reason.INSUFFICIENT_FUNDS
855888
)
889+
.addSchemeFee(
890+
DeclinedTransaction.Source.CardDecline.SchemeFee.builder()
891+
.amount("0.137465")
892+
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
893+
.currency(
894+
DeclinedTransaction.Source.CardDecline.SchemeFee
895+
.Currency
896+
.USD
897+
)
898+
.feeType(
899+
DeclinedTransaction.Source.CardDecline.SchemeFee.FeeType
900+
.VISA_CORPORATE_ACCEPTANCE_FEE
901+
)
902+
.fixedComponent(null)
903+
.variableRate("0.0002")
904+
.build()
905+
)
856906
.terminalId("RCN5VNXS")
857907
.verification(
858908
DeclinedTransaction.Source.CardDecline.Verification.builder()

increase-java-core/src/test/kotlin/com/increase/api/models/pendingtransactions/PendingTransactionListPageResponseTest.kt

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,29 @@ internal class PendingTransactionListPageResponseTest {
265265
.PURCHASE
266266
)
267267
.realTimeDecisionId(null)
268+
.addSchemeFee(
269+
PendingTransaction.Source.CardAuthorization.SchemeFee
270+
.builder()
271+
.amount("0.137465")
272+
.createdAt(
273+
OffsetDateTime.parse("2020-01-31T23:59:59Z")
274+
)
275+
.currency(
276+
PendingTransaction.Source.CardAuthorization
277+
.SchemeFee
278+
.Currency
279+
.USD
280+
)
281+
.feeType(
282+
PendingTransaction.Source.CardAuthorization
283+
.SchemeFee
284+
.FeeType
285+
.VISA_CORPORATE_ACCEPTANCE_FEE
286+
)
287+
.fixedComponent(null)
288+
.variableRate("0.0002")
289+
.build()
290+
)
268291
.terminalId("RCN5VNXS")
269292
.type(
270293
PendingTransaction.Source.CardAuthorization.Type
@@ -668,6 +691,27 @@ internal class PendingTransactionListPageResponseTest {
668691
.PURCHASE
669692
)
670693
.realTimeDecisionId(null)
694+
.addSchemeFee(
695+
PendingTransaction.Source.CardAuthorization.SchemeFee
696+
.builder()
697+
.amount("0.137465")
698+
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
699+
.currency(
700+
PendingTransaction.Source.CardAuthorization
701+
.SchemeFee
702+
.Currency
703+
.USD
704+
)
705+
.feeType(
706+
PendingTransaction.Source.CardAuthorization
707+
.SchemeFee
708+
.FeeType
709+
.VISA_CORPORATE_ACCEPTANCE_FEE
710+
)
711+
.fixedComponent(null)
712+
.variableRate("0.0002")
713+
.build()
714+
)
671715
.terminalId("RCN5VNXS")
672716
.type(
673717
PendingTransaction.Source.CardAuthorization.Type
@@ -1075,6 +1119,29 @@ internal class PendingTransactionListPageResponseTest {
10751119
.PURCHASE
10761120
)
10771121
.realTimeDecisionId(null)
1122+
.addSchemeFee(
1123+
PendingTransaction.Source.CardAuthorization.SchemeFee
1124+
.builder()
1125+
.amount("0.137465")
1126+
.createdAt(
1127+
OffsetDateTime.parse("2020-01-31T23:59:59Z")
1128+
)
1129+
.currency(
1130+
PendingTransaction.Source.CardAuthorization
1131+
.SchemeFee
1132+
.Currency
1133+
.USD
1134+
)
1135+
.feeType(
1136+
PendingTransaction.Source.CardAuthorization
1137+
.SchemeFee
1138+
.FeeType
1139+
.VISA_CORPORATE_ACCEPTANCE_FEE
1140+
)
1141+
.fixedComponent(null)
1142+
.variableRate("0.0002")
1143+
.build()
1144+
)
10781145
.terminalId("RCN5VNXS")
10791146
.type(
10801147
PendingTransaction.Source.CardAuthorization.Type

0 commit comments

Comments
 (0)