// File generated from our OpenAPI spec by Stainless.

package com.increase.api.services.blocking.simulations

import com.increase.api.TestServerExtension
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.simulations.inboundmailitems.InboundMailItemCreateParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith

@ExtendWith(TestServerExtension::class)
internal class InboundMailItemServiceTest {

    @Test
    fun create() {
        val client =
            IncreaseOkHttpClient.builder()
                .baseUrl(TestServerExtension.BASE_URL)
                .apiKey("My API Key")
                .build()
        val inboundMailItemService = client.simulations().inboundMailItems()

        val inboundMailItem =
            inboundMailItemService.create(
                InboundMailItemCreateParams.builder()
                    .amount(1000L)
                    .contentsFileId("contents_file_id")
                    .lockboxAddressId("lockbox_address_id")
                    .lockboxRecipientId("lockbox_3xt21ok13q19advds4t5")
                    .build()
            )

        inboundMailItem.validate()
    }
}
