Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: 49d468466a752f8ea72af00d00683f50
openapi_spec_hash: c38bfb2bde7e282c1ee8a2ecf2e6ed1a
config_hash: 1ca082e374ef7000e2a5971e8da740e0
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,9 @@ private constructor(
checkVoucherImageFileId.getOptional("check_voucher_image_file_id")

/**
* The descriptor that will be printed on the letter included with the check.
* A few paragraphs of text printed on the letter included with the check. It can contain at
* most 22 lines. Paragraphs will wrap at about 120 characters, but depending on your exact
* message, it might be slightly more or slightly less.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
Expand Down Expand Up @@ -1964,7 +1966,11 @@ private constructor(
this.checkVoucherImageFileId = checkVoucherImageFileId
}

/** The descriptor that will be printed on the letter included with the check. */
/**
* A few paragraphs of text printed on the letter included with the check. It can
* contain at most 22 lines. Paragraphs will wrap at about 120 characters, but depending
* on your exact message, it might be slightly more or slightly less.
*/
fun note(note: String) = note(JsonField.of(note))

/**
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,53 @@ internal class EntityCreateParamsTest {
.rating(EntityCreateParams.RiskRating.Rating.LOW)
.build()
)
.soleProprietorship(
EntityCreateParams.SoleProprietorship.builder()
.address(
EntityCreateParams.SoleProprietorship.Address.builder()
.city("x")
.line1("x")
.state("xx")
.zip("x")
.line2("x")
.build()
)
.soleProprietor(
EntityCreateParams.SoleProprietorship.SoleProprietor.builder()
.address(
EntityCreateParams.SoleProprietorship.SoleProprietor.Address
.builder()
.city("x")
.country("x")
.line1("x")
.line2("x")
.state("x")
.zip("x")
.build()
)
.dateOfBirth(LocalDate.parse("2019-12-27"))
.identification(
EntityCreateParams.SoleProprietorship.SoleProprietor.Identification
.builder()
.method(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.Method
.SOCIAL_SECURITY_NUMBER
)
.number("xxxx")
.build()
)
.name("x")
.build()
)
.doingBusinessAsName("x")
.email("[email protected]")
.industryCode("x")
.taxIdentifier("x")
.website("website")
.build()
)
.addSupplementalDocument(
EntityCreateParams.SupplementalDocument.builder().fileId("file_id").build()
)
Expand Down Expand Up @@ -682,6 +729,54 @@ internal class EntityCreateParamsTest {
.rating(EntityCreateParams.RiskRating.Rating.LOW)
.build()
)
.soleProprietorship(
EntityCreateParams.SoleProprietorship.builder()
.address(
EntityCreateParams.SoleProprietorship.Address.builder()
.city("x")
.line1("x")
.state("xx")
.zip("x")
.line2("x")
.build()
)
.soleProprietor(
EntityCreateParams.SoleProprietorship.SoleProprietor.builder()
.address(
EntityCreateParams.SoleProprietorship.SoleProprietor.Address
.builder()
.city("x")
.country("x")
.line1("x")
.line2("x")
.state("x")
.zip("x")
.build()
)
.dateOfBirth(LocalDate.parse("2019-12-27"))
.identification(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.builder()
.method(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.Method
.SOCIAL_SECURITY_NUMBER
)
.number("xxxx")
.build()
)
.name("x")
.build()
)
.doingBusinessAsName("x")
.email("[email protected]")
.industryCode("x")
.taxIdentifier("x")
.website("website")
.build()
)
.addSupplementalDocument(
EntityCreateParams.SupplementalDocument.builder().fileId("file_id").build()
)
Expand Down Expand Up @@ -1100,6 +1195,54 @@ internal class EntityCreateParamsTest {
.rating(EntityCreateParams.RiskRating.Rating.LOW)
.build()
)
assertThat(body.soleProprietorship())
.contains(
EntityCreateParams.SoleProprietorship.builder()
.address(
EntityCreateParams.SoleProprietorship.Address.builder()
.city("x")
.line1("x")
.state("xx")
.zip("x")
.line2("x")
.build()
)
.soleProprietor(
EntityCreateParams.SoleProprietorship.SoleProprietor.builder()
.address(
EntityCreateParams.SoleProprietorship.SoleProprietor.Address
.builder()
.city("x")
.country("x")
.line1("x")
.line2("x")
.state("x")
.zip("x")
.build()
)
.dateOfBirth(LocalDate.parse("2019-12-27"))
.identification(
EntityCreateParams.SoleProprietorship.SoleProprietor.Identification
.builder()
.method(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.Method
.SOCIAL_SECURITY_NUMBER
)
.number("xxxx")
.build()
)
.name("x")
.build()
)
.doingBusinessAsName("x")
.email("[email protected]")
.industryCode("x")
.taxIdentifier("x")
.website("website")
.build()
)
assertThat(body.supplementalDocuments().getOrNull())
.containsExactly(
EntityCreateParams.SupplementalDocument.builder().fileId("file_id").build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,54 @@ internal class EntityServiceAsyncTest {
.rating(EntityCreateParams.RiskRating.Rating.LOW)
.build()
)
.soleProprietorship(
EntityCreateParams.SoleProprietorship.builder()
.address(
EntityCreateParams.SoleProprietorship.Address.builder()
.city("x")
.line1("x")
.state("xx")
.zip("x")
.line2("x")
.build()
)
.soleProprietor(
EntityCreateParams.SoleProprietorship.SoleProprietor.builder()
.address(
EntityCreateParams.SoleProprietorship.SoleProprietor.Address
.builder()
.city("x")
.country("x")
.line1("x")
.line2("x")
.state("x")
.zip("x")
.build()
)
.dateOfBirth(LocalDate.parse("2019-12-27"))
.identification(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.builder()
.method(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.Method
.SOCIAL_SECURITY_NUMBER
)
.number("xxxx")
.build()
)
.name("x")
.build()
)
.doingBusinessAsName("x")
.email("[email protected]")
.industryCode("x")
.taxIdentifier("x")
.website("website")
.build()
)
.addSupplementalDocument(
EntityCreateParams.SupplementalDocument.builder().fileId("file_id").build()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,54 @@ internal class EntityServiceTest {
.rating(EntityCreateParams.RiskRating.Rating.LOW)
.build()
)
.soleProprietorship(
EntityCreateParams.SoleProprietorship.builder()
.address(
EntityCreateParams.SoleProprietorship.Address.builder()
.city("x")
.line1("x")
.state("xx")
.zip("x")
.line2("x")
.build()
)
.soleProprietor(
EntityCreateParams.SoleProprietorship.SoleProprietor.builder()
.address(
EntityCreateParams.SoleProprietorship.SoleProprietor.Address
.builder()
.city("x")
.country("x")
.line1("x")
.line2("x")
.state("x")
.zip("x")
.build()
)
.dateOfBirth(LocalDate.parse("2019-12-27"))
.identification(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.builder()
.method(
EntityCreateParams.SoleProprietorship.SoleProprietor
.Identification
.Method
.SOCIAL_SECURITY_NUMBER
)
.number("xxxx")
.build()
)
.name("x")
.build()
)
.doingBusinessAsName("x")
.email("[email protected]")
.industryCode("x")
.taxIdentifier("x")
.website("website")
.build()
)
.addSupplementalDocument(
EntityCreateParams.SupplementalDocument.builder().fileId("file_id").build()
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

Loading