Skip to content
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

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

cdwieber
Copy link
Contributor

No description provided.

@cdwieber cdwieber linked an issue Dec 27, 2022 that may be closed by this pull request
7 tasks
@cdwieber cdwieber marked this pull request as draft December 27, 2022 22:50
Copy link
Contributor

@cgsmith cgsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great start @cdwieber

common/models/shipping/extension/wsdl/SpeeDeePlugin.php Outdated Show resolved Hide resolved
common/models/shipping/extension/wsdl/SpeeDeePlugin.php Outdated Show resolved Hide resolved
common/models/SpeedeeManifest.php Outdated Show resolved Hide resolved
common/models/SpeedeeManifest.php Outdated Show resolved Hide resolved
console/jobs/speedee/SpeeDeeShipJob.php Outdated Show resolved Hide resolved
'utf8' => false,
'passive' => true,
'transferMode' => FTP_BINARY,
'systemType' => null, // 'windows' or 'unix'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double check these params

console/jobs/speedee/SpeeDeeShipJob.php Show resolved Hide resolved
console/jobs/speedee/SpeeDeeShipJob.php Show resolved Hide resolved
common/models/shipping/extension/wsdl/SpeeDeePlugin.php Outdated Show resolved Hide resolved
console/jobs/speedee/SpeeDeeShipJob.php Outdated Show resolved Hide resolved

$adapter = new FtpAdapter(
FtpConnectionOptions::fromArray([
'host' => Yii::$app->params['speedeeFtpHost'],
Copy link
Contributor

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'],
Copy link
Collaborator

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;
Copy link
Collaborator

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')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
. Carbon::now()->format('Ymd')
. (new \DateTime())->format('Ymd')

Requiring whole carbon package just for that is an overkill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpeeDee Delivery Integration
3 participants