FulfilledShipments
extends Model
in package
Uses
Validation
FulfilledShipments Model
Tags
Table of Contents
- $amazon-order-id : string
- $amazon-order-item-id : string
- $attachMany : mixed
- $attachOne : mixed
- $belongsTo : mixed
- $belongsToMany : mixed
- $bill-address-1 : string
- $bill-address-2 : string
- $bill-address-3 : string
- $bill-city : string
- $bill-country : string
- $bill-postal-code : string
- $bill-state : string
- $buyer-email : string
- $buyer-name : string
- $buyer-phone-number : string
- $carrier : string
- $created_at : Carbon|null
- $currency : string
- $estimated-arrival-date : string
- $fulfillment-center-id : string
- $fulfillment-channel : string
- $gift-wrap-price : string
- $gift-wrap-tax : string
- $hasMany : mixed
- $hasOne : array<string|int, mixed>
- $id : int
- $item-price : string
- $item-promotion-discount : string
- $item-tax : string
- $merchant-order-id : string
- $merchant-order-item-id : string
- $morphMany : mixed
- $morphOne : mixed
- $morphTo : mixed
- $payments-date : string
- $product-name : string
- $purchase-date : string
- $quantity-shipped : string
- $recipient-name : string
- $reporting-date : string
- $rules : array<string|int, mixed>
- $sales-channel : string
- $ship-address-1 : string
- $ship-address-2 : string
- $ship-address-3 : string
- $ship-city : string
- $ship-country : string
- $ship-phone-number : string
- $ship-postal-code : string
- $ship-promotion-discount : string
- $ship-service-level : string
- $ship-state : string
- $shipment-date : string
- $shipment-id : string
- $shipment-item-id : string
- $shipping-price : string
- $shipping-tax : string
- $sku : string
- $sync : int
- $table : string
- $tracking-number : string
- $updated_at : Carbon|null
- $appends : array<string|int, mixed>
- $casts : array<string|int, mixed>
- $dates : array<string|int, mixed>
- $fillable : array<string|int, mixed>
- $guarded : array<string|int, mixed>
- $hidden : array<string|int, mixed>
- $jsonable : array<string|int, mixed>
- $validationDefaultAttrNames : array<string|int, mixed>
- $validationErrors : MessageBag
- all() :
- bootValidation() : void
- Boot the validation trait for this model.
- errors() : MessageBag
- Get validation error message collection for the Model
- forceSave() : bool
- Force save the model even if validation fails.
- get() :
- isAttributeRequired() : bool
- Determines if an attribute is required based on the validation rules.
- newModelQuery() :
- newQuery() :
- query() :
- setValidationAttributeName() : void
- Programatically sets the validation attribute names, will take lower priority to model defined attribute names found in `$attributeNames`.
- setValidationAttributeNames() : void
- Programatically sets multiple validation attribute names.
- validate() : bool
- Validate the model instance
- validated() : void
- Create a new native event for handling afterValidate().
- validating() : void
- Create a new native event for handling beforeValidate().
- whereAmazonOrderId() :
- whereAmazonOrderItemId() :
- whereBillAddress1() :
- whereBillAddress2() :
- whereBillAddress3() :
- whereBillCity() :
- whereBillCountry() :
- whereBillPostalCode() :
- whereBillState() :
- whereBuyerEmail() :
- whereBuyerName() :
- whereBuyerPhoneNumber() :
- whereCarrier() :
- whereCreatedAt() :
- whereCurrency() :
- whereEstimatedArrivalDate() :
- whereFulfillmentCenterId() :
- whereFulfillmentChannel() :
- whereGiftWrapPrice() :
- whereGiftWrapTax() :
- whereId() :
- whereItemPrice() :
- whereItemPromotionDiscount() :
- whereItemTax() :
- whereMerchantOrderId() :
- whereMerchantOrderItemId() :
- wherePaymentsDate() :
- whereProductName() :
- wherePurchaseDate() :
- whereQuantityShipped() :
- whereRecipientName() :
- whereReportingDate() :
- whereSalesChannel() :
- whereShipAddress1() :
- whereShipAddress2() :
- whereShipAddress3() :
- whereShipCity() :
- whereShipCountry() :
- whereShipmentDate() :
- whereShipmentId() :
- whereShipmentItemId() :
- whereShipPhoneNumber() :
- whereShippingPrice() :
- whereShippingTax() :
- whereShipPostalCode() :
- whereShipPromotionDiscount() :
- whereShipServiceLevel() :
- whereShipState() :
- whereSku() :
- whereSync() :
- whereTrackingNumber() :
- whereUpdatedAt() :
- getRelationValidationValue() : mixed
- Attachments validate differently to their simple values.
- getValidationAttributes() : array<string|int, mixed>
- Returns the model data used for validation.
- makeValidator() : Validator
- Instantiates the validator used by the validation process, depending if the class is being used inside or outside of Laravel. Optional connection string to make the validator use a different database connection than the default connection.
- processRuleFieldNames() : array<string|int, mixed>
- Processes field names in a rule array.
- processValidationRules() : mixed
- Process rules
- processValidationUniqueRule() : string
- Rebuilds the unique validation rule to force for the existing ID
Properties
$amazon-order-id
public
string
$amazon-order-id
$amazon-order-item-id
public
string
$amazon-order-item-id
$attachMany
public
mixed
$attachMany
= []
$attachOne
public
mixed
$attachOne
= []
$belongsTo
public
mixed
$belongsTo
= []
$belongsToMany
public
mixed
$belongsToMany
= []
$bill-address-1
public
string
$bill-address-1
$bill-address-2
public
string
$bill-address-2
$bill-address-3
public
string
$bill-address-3
$bill-city
public
string
$bill-city
$bill-country
public
string
$bill-country
$bill-postal-code
public
string
$bill-postal-code
$bill-state
public
string
$bill-state
$buyer-email
public
string
$buyer-email
$buyer-name
public
string
$buyer-name
$buyer-phone-number
public
string
$buyer-phone-number
$carrier
public
string
$carrier
$created_at
public
Carbon|null
$created_at
$currency
public
string
$currency
$estimated-arrival-date
public
string
$estimated-arrival-date
$fulfillment-center-id
public
string
$fulfillment-center-id
$fulfillment-channel
public
string
$fulfillment-channel
$gift-wrap-price
public
string
$gift-wrap-price
$gift-wrap-tax
public
string
$gift-wrap-tax
$hasMany
public
mixed
$hasMany
= []
$hasOne
public
array<string|int, mixed>
$hasOne
= []
Relations
$id
public
int
$id
$item-price
public
string
$item-price
$item-promotion-discount
public
string
$item-promotion-discount
$item-tax
public
string
$item-tax
$merchant-order-id
public
string
$merchant-order-id
$merchant-order-item-id
public
string
$merchant-order-item-id
$morphMany
public
mixed
$morphMany
= []
$morphOne
public
mixed
$morphOne
= []
$morphTo
public
mixed
$morphTo
= []
$payments-date
public
string
$payments-date
$product-name
public
string
$product-name
$purchase-date
public
string
$purchase-date
$quantity-shipped
public
string
$quantity-shipped
$recipient-name
public
string
$recipient-name
$reporting-date
public
string
$reporting-date
$rules
public
array<string|int, mixed>
$rules
= []
Validation rules for attributes
$sales-channel
public
string
$sales-channel
$ship-address-1
public
string
$ship-address-1
$ship-address-2
public
string
$ship-address-2
$ship-address-3
public
string
$ship-address-3
$ship-city
public
string
$ship-city
$ship-country
public
string
$ship-country
$ship-phone-number
public
string
$ship-phone-number
$ship-postal-code
public
string
$ship-postal-code
$ship-promotion-discount
public
string
$ship-promotion-discount
$ship-service-level
public
string
$ship-service-level
$ship-state
public
string
$ship-state
$shipment-date
public
string
$shipment-date
$shipment-id
public
string
$shipment-id
$shipment-item-id
public
string
$shipment-item-id
$shipping-price
public
string
$shipping-price
$shipping-tax
public
string
$shipping-tax
$sku
public
string
$sku
$sync
public
int
$sync
$table
public
string
$table
= 'thiocyn_amazonmws_fulfilled_shipments'
The database table used by the model.
$tracking-number
public
string
$tracking-number
$updated_at
public
Carbon|null
$updated_at
$appends
protected
array<string|int, mixed>
$appends
= []
Attributes to be appended to the API representation of the model (ex. toArray())
$casts
protected
array<string|int, mixed>
$casts
= []
Attributes to be cast to native types
$dates
protected
array<string|int, mixed>
$dates
= ['created_at', 'updated_at']
Attributes to be cast to Argon (Carbon) instances
$fillable
protected
array<string|int, mixed>
$fillable
= []
Fillable fields
$guarded
protected
array<string|int, mixed>
$guarded
= ['*']
Guarded fields
$hidden
protected
array<string|int, mixed>
$hidden
= []
Attributes to be removed from the API representation of the model (ex. toArray())
$jsonable
protected
array<string|int, mixed>
$jsonable
= []
Attributes to be cast to JSON
$validationDefaultAttrNames
protected
array<string|int, mixed>
$validationDefaultAttrNames
= []
Default custom attribute names.
$validationErrors
protected
MessageBag
$validationErrors
The message bag instance containing validation error messages
Methods
all()
public
static all(mixed $columns) :
Parameters
- $columns : mixed
Return values
—bootValidation()
Boot the validation trait for this model.
public
static bootValidation() : void
Return values
void —errors()
Get validation error message collection for the Model
public
errors() : MessageBag
Return values
MessageBag —forceSave()
Force save the model even if validation fails.
public
forceSave([mixed $options = null ][, mixed $sessionKey = null ]) : bool
Parameters
- $options : mixed = null
- $sessionKey : mixed = null
Return values
bool —get()
public
static get(mixed $columns) :
Parameters
- $columns : mixed
Return values
—isAttributeRequired()
Determines if an attribute is required based on the validation rules.
public
isAttributeRequired(string $attribute[, bool $checkDependencies = true ]) : bool
Parameters
- $attribute : string
- $checkDependencies : bool = true
-
Checks the attribute dependencies (for required_if & required_with rules). Note that it will only be checked up to the next level, if another dependent rule is found then it will just assume the field is required
Return values
bool —newModelQuery()
public
static newModelQuery() :
Return values
—newQuery()
public
static newQuery() :
Return values
—query()
public
static query() :
Return values
—setValidationAttributeName()
Programatically sets the validation attribute names, will take lower priority to model defined attribute names found in `$attributeNames`.
public
setValidationAttributeName(string $attr, string $name) : void
Parameters
- $attr : string
- $name : string
Return values
void —setValidationAttributeNames()
Programatically sets multiple validation attribute names.
public
setValidationAttributeNames(array<string|int, mixed> $attributeNames) : void
Parameters
- $attributeNames : array<string|int, mixed>
Return values
void —validate()
Validate the model instance
public
validate([mixed $rules = null ][, mixed $customMessages = null ][, mixed $attributeNames = null ]) : bool
Parameters
- $rules : mixed = null
- $customMessages : mixed = null
- $attributeNames : mixed = null
Return values
bool —validated()
Create a new native event for handling afterValidate().
public
static validated(Closure|string $callback) : void
Parameters
- $callback : Closure|string
Return values
void —validating()
Create a new native event for handling beforeValidate().
public
static validating(Closure|string $callback) : void
Parameters
- $callback : Closure|string
Return values
void —whereAmazonOrderId()
public
static whereAmazonOrderId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereAmazonOrderItemId()
public
static whereAmazonOrderItemId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBillAddress1()
public
static whereBillAddress1(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBillAddress2()
public
static whereBillAddress2(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBillAddress3()
public
static whereBillAddress3(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBillCity()
public
static whereBillCity(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBillCountry()
public
static whereBillCountry(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBillPostalCode()
public
static whereBillPostalCode(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBillState()
public
static whereBillState(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBuyerEmail()
public
static whereBuyerEmail(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBuyerName()
public
static whereBuyerName(mixed $value) :
Parameters
- $value : mixed
Return values
—whereBuyerPhoneNumber()
public
static whereBuyerPhoneNumber(mixed $value) :
Parameters
- $value : mixed
Return values
—whereCarrier()
public
static whereCarrier(mixed $value) :
Parameters
- $value : mixed
Return values
—whereCreatedAt()
public
static whereCreatedAt(mixed $value) :
Parameters
- $value : mixed
Return values
—whereCurrency()
public
static whereCurrency(mixed $value) :
Parameters
- $value : mixed
Return values
—whereEstimatedArrivalDate()
public
static whereEstimatedArrivalDate(mixed $value) :
Parameters
- $value : mixed
Return values
—whereFulfillmentCenterId()
public
static whereFulfillmentCenterId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereFulfillmentChannel()
public
static whereFulfillmentChannel(mixed $value) :
Parameters
- $value : mixed
Return values
—whereGiftWrapPrice()
public
static whereGiftWrapPrice(mixed $value) :
Parameters
- $value : mixed
Return values
—whereGiftWrapTax()
public
static whereGiftWrapTax(mixed $value) :
Parameters
- $value : mixed
Return values
—whereId()
public
static whereId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereItemPrice()
public
static whereItemPrice(mixed $value) :
Parameters
- $value : mixed
Return values
—whereItemPromotionDiscount()
public
static whereItemPromotionDiscount(mixed $value) :
Parameters
- $value : mixed
Return values
—whereItemTax()
public
static whereItemTax(mixed $value) :
Parameters
- $value : mixed
Return values
—whereMerchantOrderId()
public
static whereMerchantOrderId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereMerchantOrderItemId()
public
static whereMerchantOrderItemId(mixed $value) :
Parameters
- $value : mixed
Return values
—wherePaymentsDate()
public
static wherePaymentsDate(mixed $value) :
Parameters
- $value : mixed
Return values
—whereProductName()
public
static whereProductName(mixed $value) :
Parameters
- $value : mixed
Return values
—wherePurchaseDate()
public
static wherePurchaseDate(mixed $value) :
Parameters
- $value : mixed
Return values
—whereQuantityShipped()
public
static whereQuantityShipped(mixed $value) :
Parameters
- $value : mixed
Return values
—whereRecipientName()
public
static whereRecipientName(mixed $value) :
Parameters
- $value : mixed
Return values
—whereReportingDate()
public
static whereReportingDate(mixed $value) :
Parameters
- $value : mixed
Return values
—whereSalesChannel()
public
static whereSalesChannel(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipAddress1()
public
static whereShipAddress1(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipAddress2()
public
static whereShipAddress2(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipAddress3()
public
static whereShipAddress3(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipCity()
public
static whereShipCity(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipCountry()
public
static whereShipCountry(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipmentDate()
public
static whereShipmentDate(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipmentId()
public
static whereShipmentId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipmentItemId()
public
static whereShipmentItemId(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipPhoneNumber()
public
static whereShipPhoneNumber(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShippingPrice()
public
static whereShippingPrice(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShippingTax()
public
static whereShippingTax(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipPostalCode()
public
static whereShipPostalCode(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipPromotionDiscount()
public
static whereShipPromotionDiscount(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipServiceLevel()
public
static whereShipServiceLevel(mixed $value) :
Parameters
- $value : mixed
Return values
—whereShipState()
public
static whereShipState(mixed $value) :
Parameters
- $value : mixed
Return values
—whereSku()
public
static whereSku(mixed $value) :
Parameters
- $value : mixed
Return values
—whereSync()
public
static whereSync(mixed $value) :
Parameters
- $value : mixed
Return values
—whereTrackingNumber()
public
static whereTrackingNumber(mixed $value) :
Parameters
- $value : mixed
Return values
—whereUpdatedAt()
public
static whereUpdatedAt(mixed $value) :
Parameters
- $value : mixed
Return values
—getRelationValidationValue()
Attachments validate differently to their simple values.
protected
getRelationValidationValue(mixed $relationName) : mixed
Parameters
- $relationName : mixed
Return values
mixed —getValidationAttributes()
Returns the model data used for validation.
protected
getValidationAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed> —makeValidator()
Instantiates the validator used by the validation process, depending if the class is being used inside or outside of Laravel. Optional connection string to make the validator use a different database connection than the default connection.
protected
static makeValidator(mixed $data, mixed $rules, mixed $customMessages, mixed $attributeNames[, mixed $connection = null ]) : Validator
Parameters
- $data : mixed
- $rules : mixed
- $customMessages : mixed
- $attributeNames : mixed
- $connection : mixed = null
Return values
Validator —processRuleFieldNames()
Processes field names in a rule array.
protected
processRuleFieldNames(array<string|int, mixed> $rules) : array<string|int, mixed>
Converts any field names using array notation (ie. field[child]) into dot notation (ie. field.child)
Parameters
- $rules : array<string|int, mixed>
-
Rules array
Return values
array<string|int, mixed> —processValidationRules()
Process rules
protected
processValidationRules(mixed $rules) : mixed
Parameters
- $rules : mixed
Return values
mixed —processValidationUniqueRule()
Rebuilds the unique validation rule to force for the existing ID
protected
processValidationUniqueRule(string $definition, string $fieldName) : string
Parameters
- $definition : string
- $fieldName : string