Class DistributionCreateParams
-
- All Implemented Interfaces:
-
io.github.ctotheameron.core.Params
public final class DistributionCreateParams implements Params
Stages a new fund distribution with one or more payments. Each payment targets a single receiving entity (either referenced by id or created inline) and one or more people associated with that entity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDistributionCreateParams.BuilderA builder for DistributionCreateParams.
public final classDistributionCreateParams.Bodypublic final classDistributionCreateParams.Payment
-
Method Summary
Modifier and Type Method Description final OffsetDateTimedistributionDate()Distribution date final Stringname()final List<DistributionCreateParams.Payment>payments()List of payments final StringvehicleId()UUID of the vehicle this distribution pays from final JsonField<OffsetDateTime>_distributionDate()Returns the raw JSON value of distributionDate. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<DistributionCreateParams.Payment>>_payments()Returns the raw JSON value of payments. final JsonField<String>_vehicleId()Returns the raw JSON value of vehicleId. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final DistributionCreateParams.BuildertoBuilder()final DistributionCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static DistributionCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of DistributionCreateParams. -
-
Method Detail
-
distributionDate
final OffsetDateTime distributionDate()
Distribution date
-
payments
final List<DistributionCreateParams.Payment> payments()
List of payments
-
_distributionDate
final JsonField<OffsetDateTime> _distributionDate()
Returns the raw JSON value of distributionDate.
Unlike distributionDate, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_payments
final JsonField<List<DistributionCreateParams.Payment>> _payments()
Returns the raw JSON value of payments.
Unlike payments, this method doesn't throw if the JSON field has an unexpected type.
-
_vehicleId
final JsonField<String> _vehicleId()
Returns the raw JSON value of vehicleId.
Unlike vehicleId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final DistributionCreateParams.Builder toBuilder()
-
_body
final DistributionCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static DistributionCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of DistributionCreateParams.
The following fields are required:
.distributionDate() .name() .payments() .vehicleId()
-
-
-
-