-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: SpeeDee Delivery Integration #97
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start @cdwieber
console/migrations/m221227_200815_create_speedee_manifests_table.php
Outdated
Show resolved
Hide resolved
'utf8' => false, | ||
'passive' => true, | ||
'transferMode' => FTP_BINARY, | ||
'systemType' => null, // 'windows' or 'unix' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double check these params
|
||
$adapter = new FtpAdapter( | ||
FtpConnectionOptions::fromArray([ | ||
'host' => Yii::$app->params['speedeeFtpHost'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine. But we may need to store customers user and pass in meta data and pull from there.
{ | ||
return [ | ||
[['order_id', 'customer_id', 'ship_from_zip', 'weight', 'length', 'width', 'height', 'oversized', 'pickup_tag', 'aod', 'aod_option', 'cod', 'cod_value', 'declared_value', 'package_handling', 'apply_package_handling', 'unboxed'], 'integer'], | ||
[['ship_date'], 'safe'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we ensure a data format?
|
||
namespace common\models\shipping\extension; | ||
|
||
use Cassandra\Date; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used?
|
||
$filename = $this->customer_number | ||
. '.' | ||
. Carbon::now()->format('Ymd') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. Carbon::now()->format('Ymd') | |
. (new \DateTime())->format('Ymd') |
Requiring whole carbon package just for that is an overkill.
No description provided.