Class PrescriptionDetail
- java.lang.Object
-
- software.amazon.spapi.models.orders.v0.PrescriptionDetail
-
public class PrescriptionDetail extends java.lang.Object
Information about the prescription that is used to verify a regulated product. This must be provided once per order and reflect the seller’s own records. Only approved orders can have prescriptions.
-
-
Constructor Summary
Constructors Constructor Description PrescriptionDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrescriptionDetail
clinicId(java.lang.String clinicId)
boolean
equals(java.lang.Object o)
PrescriptionDetail
expirationDate(org.threeten.bp.OffsetDateTime expirationDate)
java.lang.String
getClinicId()
The identifier for the clinic which provided the prescription used to verify the regulated product.org.threeten.bp.OffsetDateTime
getExpirationDate()
The expiration date of the prescription used to verify the regulated product, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.java.lang.String
getPrescriptionId()
The identifier for the prescription used to verify the regulated product.java.lang.Integer
getRefillsRemaining()
The number of refills remaining for the prescription used to verify the regulated product.java.lang.Integer
getTotalRefillsAuthorized()
The total number of refills written in the original prescription used to verify the regulated product.java.lang.String
getUsageInstructions()
The instructions for the prescription as provided by the approver of the regulated product.java.lang.Integer
getWrittenQuantity()
The number of units in each fill as provided in the prescription.int
hashCode()
PrescriptionDetail
prescriptionId(java.lang.String prescriptionId)
PrescriptionDetail
refillsRemaining(java.lang.Integer refillsRemaining)
void
setClinicId(java.lang.String clinicId)
void
setExpirationDate(org.threeten.bp.OffsetDateTime expirationDate)
void
setPrescriptionId(java.lang.String prescriptionId)
void
setRefillsRemaining(java.lang.Integer refillsRemaining)
void
setTotalRefillsAuthorized(java.lang.Integer totalRefillsAuthorized)
void
setUsageInstructions(java.lang.String usageInstructions)
void
setWrittenQuantity(java.lang.Integer writtenQuantity)
java.lang.String
toString()
PrescriptionDetail
totalRefillsAuthorized(java.lang.Integer totalRefillsAuthorized)
PrescriptionDetail
usageInstructions(java.lang.String usageInstructions)
PrescriptionDetail
writtenQuantity(java.lang.Integer writtenQuantity)
-
-
-
Method Detail
-
prescriptionId
public PrescriptionDetail prescriptionId(java.lang.String prescriptionId)
-
getPrescriptionId
public java.lang.String getPrescriptionId()
The identifier for the prescription used to verify the regulated product.- Returns:
- prescriptionId
-
setPrescriptionId
public void setPrescriptionId(java.lang.String prescriptionId)
-
expirationDate
public PrescriptionDetail expirationDate(org.threeten.bp.OffsetDateTime expirationDate)
-
getExpirationDate
public org.threeten.bp.OffsetDateTime getExpirationDate()
The expiration date of the prescription used to verify the regulated product, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.- Returns:
- expirationDate
-
setExpirationDate
public void setExpirationDate(org.threeten.bp.OffsetDateTime expirationDate)
-
writtenQuantity
public PrescriptionDetail writtenQuantity(java.lang.Integer writtenQuantity)
-
getWrittenQuantity
public java.lang.Integer getWrittenQuantity()
The number of units in each fill as provided in the prescription. minimum: 1- Returns:
- writtenQuantity
-
setWrittenQuantity
public void setWrittenQuantity(java.lang.Integer writtenQuantity)
-
totalRefillsAuthorized
public PrescriptionDetail totalRefillsAuthorized(java.lang.Integer totalRefillsAuthorized)
-
getTotalRefillsAuthorized
public java.lang.Integer getTotalRefillsAuthorized()
The total number of refills written in the original prescription used to verify the regulated product. If a prescription originally had no refills, this value must be 0. minimum: 0- Returns:
- totalRefillsAuthorized
-
setTotalRefillsAuthorized
public void setTotalRefillsAuthorized(java.lang.Integer totalRefillsAuthorized)
-
refillsRemaining
public PrescriptionDetail refillsRemaining(java.lang.Integer refillsRemaining)
-
getRefillsRemaining
public java.lang.Integer getRefillsRemaining()
The number of refills remaining for the prescription used to verify the regulated product. If a prescription originally had 10 total refills, this value must be `10` for the first order, `9` for the second order, and `0` for the eleventh order. If a prescription originally had no refills, this value must be 0. minimum: 0- Returns:
- refillsRemaining
-
setRefillsRemaining
public void setRefillsRemaining(java.lang.Integer refillsRemaining)
-
clinicId
public PrescriptionDetail clinicId(java.lang.String clinicId)
-
getClinicId
public java.lang.String getClinicId()
The identifier for the clinic which provided the prescription used to verify the regulated product.- Returns:
- clinicId
-
setClinicId
public void setClinicId(java.lang.String clinicId)
-
usageInstructions
public PrescriptionDetail usageInstructions(java.lang.String usageInstructions)
-
getUsageInstructions
public java.lang.String getUsageInstructions()
The instructions for the prescription as provided by the approver of the regulated product.- Returns:
- usageInstructions
-
setUsageInstructions
public void setUsageInstructions(java.lang.String usageInstructions)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-