Skip to content

Commit

Permalink
chore(internal): update example values (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 25, 2024
1 parent 24de3fd commit 8ef3c9f
Show file tree
Hide file tree
Showing 106 changed files with 718 additions and 724 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AccountHolderListParamsTest {
.firstName("first_name")
.lastName("last_name")
.legalBusinessName("legal_business_name")
.limit(123L)
.limit(0L)
.phoneNumber("phone_number")
.startingAfter("starting_after")
.build()
Expand All @@ -39,7 +39,7 @@ class AccountHolderListParamsTest {
.firstName("first_name")
.lastName("last_name")
.legalBusinessName("legal_business_name")
.limit(123L)
.limit(0L)
.phoneNumber("phone_number")
.startingAfter("starting_after")
.build()
Expand All @@ -52,7 +52,7 @@ class AccountHolderListParamsTest {
expected.put("first_name", "first_name")
expected.put("last_name", "last_name")
expected.put("legal_business_name", "legal_business_name")
expected.put("limit", "123")
expected.put("limit", "0")
expected.put("phone_number", "phone_number")
expected.put("starting_after", "starting_after")
assertThat(params.getQueryParams()).isEqualTo(expected.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AccountListParamsTest {
.begin(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.end(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.endingBefore("ending_before")
.pageSize(100L)
.pageSize(1L)
.startingAfter("starting_after")
.build()
}
Expand All @@ -28,14 +28,14 @@ class AccountListParamsTest {
.begin(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.end(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.endingBefore("ending_before")
.pageSize(100L)
.pageSize(1L)
.startingAfter("starting_after")
.build()
val expected = QueryParams.builder()
expected.put("begin", "2019-12-27T18:11:19.117Z")
expected.put("end", "2019-12-27T18:11:19.117Z")
expected.put("ending_before", "ending_before")
expected.put("page_size", "100")
expected.put("page_size", "1")
expected.put("starting_after", "starting_after")
assertThat(params.getQueryParams()).isEqualTo(expected.build())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,49 @@ class AccountSpendLimitsTest {
AccountSpendLimits.builder()
.availableSpendLimit(
AccountSpendLimits.AvailableSpendLimit.builder()
.daily(123L)
.lifetime(123L)
.monthly(123L)
.daily(100000L)
.lifetime(300000L)
.monthly(200000L)
.build()
)
.spendLimit(
AccountSpendLimits.SpendLimit.builder()
.daily(123L)
.lifetime(123L)
.monthly(123L)
.daily(500000L)
.lifetime(500000L)
.monthly(500000L)
.build()
)
.spendVelocity(
AccountSpendLimits.SpendVelocity.builder()
.daily(123L)
.lifetime(123L)
.monthly(123L)
.daily(40000L)
.lifetime(20000L)
.monthly(30000L)
.build()
)
.build()
assertThat(accountSpendLimits).isNotNull
assertThat(accountSpendLimits.availableSpendLimit())
.isEqualTo(
AccountSpendLimits.AvailableSpendLimit.builder()
.daily(123L)
.lifetime(123L)
.monthly(123L)
.daily(100000L)
.lifetime(300000L)
.monthly(200000L)
.build()
)
assertThat(accountSpendLimits.spendLimit())
.isEqualTo(
AccountSpendLimits.SpendLimit.builder()
.daily(123L)
.lifetime(123L)
.monthly(123L)
.daily(500000L)
.lifetime(500000L)
.monthly(500000L)
.build()
)
assertThat(accountSpendLimits.spendVelocity())
.isEqualTo(
AccountSpendLimits.SpendVelocity.builder()
.daily(123L)
.lifetime(123L)
.monthly(123L)
.daily(40000L)
.lifetime(20000L)
.monthly(30000L)
.build()
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ class AccountTest {
.token("b68b7424-aa69-4cbc-a946-30d90181b621")
.created(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.spendLimit(
Account.SpendLimit.builder().daily(123L).lifetime(123L).monthly(123L).build()
Account.SpendLimit.builder()
.daily(10000L)
.lifetime(100000L)
.monthly(40000L)
.build()
)
.state(Account.State.ACTIVE)
.accountHolder(
Expand Down Expand Up @@ -44,7 +48,7 @@ class AccountTest {
assertThat(account.created()).isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
assertThat(account.spendLimit())
.isEqualTo(
Account.SpendLimit.builder().daily(123L).lifetime(123L).monthly(123L).build()
Account.SpendLimit.builder().daily(10000L).lifetime(100000L).monthly(40000L).build()
)
assertThat(account.state()).isEqualTo(Account.State.ACTIVE)
assertThat(account.accountHolder())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class AccountUpdateParamsTest {
fun createAccountUpdateParams() {
AccountUpdateParams.builder()
.accountToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.dailySpendLimit(123L)
.lifetimeSpendLimit(123L)
.monthlySpendLimit(123L)
.dailySpendLimit(0L)
.lifetimeSpendLimit(0L)
.monthlySpendLimit(0L)
.state(AccountUpdateParams.State.ACTIVE)
.verificationAddress(
AccountUpdateParams.VerificationAddress.builder()
Expand All @@ -34,9 +34,9 @@ class AccountUpdateParamsTest {
val params =
AccountUpdateParams.builder()
.accountToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.dailySpendLimit(123L)
.lifetimeSpendLimit(123L)
.monthlySpendLimit(123L)
.dailySpendLimit(0L)
.lifetimeSpendLimit(0L)
.monthlySpendLimit(0L)
.state(AccountUpdateParams.State.ACTIVE)
.verificationAddress(
AccountUpdateParams.VerificationAddress.builder()
Expand All @@ -51,9 +51,9 @@ class AccountUpdateParamsTest {
.build()
val body = params.getBody()
assertThat(body).isNotNull
assertThat(body.dailySpendLimit()).isEqualTo(123L)
assertThat(body.lifetimeSpendLimit()).isEqualTo(123L)
assertThat(body.monthlySpendLimit()).isEqualTo(123L)
assertThat(body.dailySpendLimit()).isEqualTo(0L)
assertThat(body.lifetimeSpendLimit()).isEqualTo(0L)
assertThat(body.monthlySpendLimit()).isEqualTo(0L)
assertThat(body.state()).isEqualTo(AccountUpdateParams.State.ACTIVE)
assertThat(body.verificationAddress())
.isEqualTo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ class AggregateBalanceListResponseTest {
fun createAggregateBalanceListResponse() {
val aggregateBalanceListResponse =
AggregateBalanceListResponse.builder()
.availableAmount(123L)
.availableAmount(0L)
.created(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.currency("currency")
.lastCardToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.lastTransactionEventToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.lastTransactionToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.pendingAmount(123L)
.totalAmount(123L)
.pendingAmount(0L)
.totalAmount(0L)
.updated(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.build()
assertThat(aggregateBalanceListResponse).isNotNull
assertThat(aggregateBalanceListResponse.availableAmount()).isEqualTo(123L)
assertThat(aggregateBalanceListResponse.availableAmount()).isEqualTo(0L)
assertThat(aggregateBalanceListResponse.created())
.isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
assertThat(aggregateBalanceListResponse.currency()).isEqualTo("currency")
Expand All @@ -33,8 +33,8 @@ class AggregateBalanceListResponseTest {
.isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
assertThat(aggregateBalanceListResponse.lastTransactionToken())
.isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
assertThat(aggregateBalanceListResponse.pendingAmount()).isEqualTo(123L)
assertThat(aggregateBalanceListResponse.totalAmount()).isEqualTo(123L)
assertThat(aggregateBalanceListResponse.pendingAmount()).isEqualTo(0L)
assertThat(aggregateBalanceListResponse.totalAmount()).isEqualTo(0L)
assertThat(aggregateBalanceListResponse.updated())
.isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ class AggregateBalanceTest {
fun createAggregateBalance() {
val aggregateBalance =
AggregateBalance.builder()
.availableAmount(123L)
.availableAmount(0L)
.created(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.currency("currency")
.financialAccountType(AggregateBalance.FinancialAccountType.ISSUING)
.lastFinancialAccountToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.lastTransactionEventToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.lastTransactionToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.pendingAmount(123L)
.totalAmount(123L)
.pendingAmount(0L)
.totalAmount(0L)
.updated(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.build()
assertThat(aggregateBalance).isNotNull
assertThat(aggregateBalance.availableAmount()).isEqualTo(123L)
assertThat(aggregateBalance.availableAmount()).isEqualTo(0L)
assertThat(aggregateBalance.created())
.isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
assertThat(aggregateBalance.currency()).isEqualTo("currency")
Expand All @@ -36,8 +36,8 @@ class AggregateBalanceTest {
.isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
assertThat(aggregateBalance.lastTransactionToken())
.isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
assertThat(aggregateBalance.pendingAmount()).isEqualTo(123L)
assertThat(aggregateBalance.totalAmount()).isEqualTo(123L)
assertThat(aggregateBalance.pendingAmount()).isEqualTo(0L)
assertThat(aggregateBalance.totalAmount()).isEqualTo(0L)
assertThat(aggregateBalance.updated())
.isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AuthRuleTest {
.blockedCountries(listOf("string"))
.blockedMcc(listOf("string"))
.cardTokens(listOf("string"))
.programLevel(true)
.programLevel(false)
.build()
assertThat(authRule).isNotNull
assertThat(authRule.token()).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
Expand All @@ -30,6 +30,6 @@ class AuthRuleTest {
assertThat(authRule.blockedCountries()).containsExactly("string")
assertThat(authRule.blockedMcc()).containsExactly("string")
assertThat(authRule.cardTokens()).containsExactly("string")
assertThat(authRule.programLevel()).isEqualTo(true)
assertThat(authRule.programLevel()).isEqualTo(false)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AuthRuleV2ListParamsTest {
.accountToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.cardToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.endingBefore("ending_before")
.pageSize(100L)
.pageSize(1L)
.startingAfter("starting_after")
.build()
}
Expand All @@ -27,14 +27,14 @@ class AuthRuleV2ListParamsTest {
.accountToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.cardToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.endingBefore("ending_before")
.pageSize(100L)
.pageSize(1L)
.startingAfter("starting_after")
.build()
val expected = QueryParams.builder()
expected.put("account_token", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
expected.put("card_token", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
expected.put("ending_before", "ending_before")
expected.put("page_size", "100")
expected.put("page_size", "1")
expected.put("starting_after", "starting_after")
assertThat(params.getQueryParams()).isEqualTo(expected.build())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class AuthenticationRetrieveResponseTest {
.DeliveryTimeFrame
.ELECTRONIC_DELIVERY
)
.giftCardAmount(42.23)
.giftCardCount(42.23)
.giftCardAmount(0.0)
.giftCardCount(0.0)
.giftCardCurrency("xxx")
.orderAvailability(
AuthenticationRetrieveResponse.Merchant.RiskIndicator
Expand Down Expand Up @@ -97,7 +97,7 @@ class AuthenticationRetrieveResponseTest {
.networkDecision(
AuthenticationRetrieveResponse.AdditionalData.NetworkDecision.LOW_RISK
)
.networkRiskScore(42.23)
.networkRiskScore(0.0)
.build()
)
.app(
Expand All @@ -124,9 +124,9 @@ class AuthenticationRetrieveResponseTest {
)
.transaction(
AuthenticationRetrieveResponse.Transaction.builder()
.amount(42.23)
.amount(0.0)
.currency("xxx")
.currencyExponent(42.23)
.currencyExponent(0.0)
.dateTime(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.type(AuthenticationRetrieveResponse.Transaction.Type.ACCOUNT_FUNDING)
.build()
Expand Down Expand Up @@ -195,8 +195,8 @@ class AuthenticationRetrieveResponseTest {
.DeliveryTimeFrame
.ELECTRONIC_DELIVERY
)
.giftCardAmount(42.23)
.giftCardCount(42.23)
.giftCardAmount(0.0)
.giftCardCount(0.0)
.giftCardCurrency("xxx")
.orderAvailability(
AuthenticationRetrieveResponse.Merchant.RiskIndicator
Expand Down Expand Up @@ -224,7 +224,7 @@ class AuthenticationRetrieveResponseTest {
.networkDecision(
AuthenticationRetrieveResponse.AdditionalData.NetworkDecision.LOW_RISK
)
.networkRiskScore(42.23)
.networkRiskScore(0.0)
.build()
)
assertThat(authenticationRetrieveResponse.app())
Expand Down Expand Up @@ -252,9 +252,9 @@ class AuthenticationRetrieveResponseTest {
assertThat(authenticationRetrieveResponse.transaction())
.isEqualTo(
AuthenticationRetrieveResponse.Transaction.builder()
.amount(42.23)
.amount(0.0)
.currency("xxx")
.currencyExponent(42.23)
.currencyExponent(0.0)
.dateTime(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.type(AuthenticationRetrieveResponse.Transaction.Type.ACCOUNT_FUNDING)
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ class BalanceListResponseTest {
val balanceListResponse =
BalanceListResponse.builder()
.token("3fa85f64-5717-4562-b3fc-2c963f66afa6")
.availableAmount(123L)
.availableAmount(0L)
.created(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.currency("currency")
.lastTransactionEventToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.lastTransactionToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.pendingAmount(123L)
.totalAmount(123L)
.pendingAmount(0L)
.totalAmount(0L)
.type(BalanceListResponse.Type.ISSUING)
.updated(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.build()
assertThat(balanceListResponse).isNotNull
assertThat(balanceListResponse.token()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6")
assertThat(balanceListResponse.availableAmount()).isEqualTo(123L)
assertThat(balanceListResponse.availableAmount()).isEqualTo(0L)
assertThat(balanceListResponse.created())
.isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
assertThat(balanceListResponse.currency()).isEqualTo("currency")
assertThat(balanceListResponse.lastTransactionEventToken())
.isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
assertThat(balanceListResponse.lastTransactionToken())
.isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
assertThat(balanceListResponse.pendingAmount()).isEqualTo(123L)
assertThat(balanceListResponse.totalAmount()).isEqualTo(123L)
assertThat(balanceListResponse.pendingAmount()).isEqualTo(0L)
assertThat(balanceListResponse.totalAmount()).isEqualTo(0L)
assertThat(balanceListResponse.type()).isEqualTo(BalanceListResponse.Type.ISSUING)
assertThat(balanceListResponse.updated())
.isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
Expand Down
Loading

0 comments on commit 8ef3c9f

Please sign in to comment.