Skip to content

Commit

Permalink
Updated all namespace from bluefyn international to always open (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Schmick authored Aug 2, 2022
1 parent bd838f4 commit f502782
Show file tree
Hide file tree
Showing 103 changed files with 318 additions and 318 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/bluefyn-international/shipengine/discussions/new?category=q-a
url: https://github.com/always-open/shipengine/discussions/new?category=q-a
about: Ask the community for help
- name: Request a feature
url: https://github.com/bluefyn-international/shipengine/discussions/new?category=ideas
url: https://github.com/always-open/shipengine/discussions/new?category=ideas
about: Share ideas for new features
- name: Report a bug
url: https://github.com/bluefyn-international/shipengine/issues/new
url: https://github.com/always-open/shipengine/issues/new
about: Report a reproducable bug
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) Bluefyn International <quentin.schmick@nathanjames.com>
Copyright (c) Always Open <qschmick@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ShipEngine

[![Latest Version on Packagist](https://img.shields.io/packagist/v/bluefyn-international/shipengine.svg?style=flat-square)](https://packagist.org/packages/bluefyn-international/shipengine)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/bluefyn-international/shipengine/run-tests?label=tests)](https://github.com/bluefyn-international/shipengine/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/bluefyn-international/shipengine/Check%20&%20fix%20styling?label=code%20style)](https://github.com/bluefyn-international/shipengine/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/bluefyn-international/shipengine.svg?style=flat-square)](https://packagist.org/packages/bluefyn-international/shipengine)
<a href="https://codeclimate.com/github/bluefyn-international/ShipEngine/maintainability"><img src="https://api.codeclimate.com/v1/badges/6817ad06980c52a8343d/maintainability" /></a>
[![Latest Version on Packagist](https://img.shields.io/packagist/v/always-open/shipengine.svg?style=flat-square)](https://packagist.org/packages/always-open/shipengine)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/always-open/shipengine/run-tests?label=tests)](https://github.com/always-open/shipengine/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/always-open/shipengine/Check%20&%20fix%20styling?label=code%20style)](https://github.com/always-open/shipengine/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/always-open/shipengine.svg?style=flat-square)](https://packagist.org/packages/always-open/shipengine)
<a href="https://codeclimate.com/github/always-open/ShipEngine/maintainability"><img src="https://api.codeclimate.com/v1/badges/6817ad06980c52a8343d/maintainability" /></a>

Wrapper around ShipEngine API

Expand All @@ -13,7 +13,7 @@ Wrapper around ShipEngine API
You can install the package via composer:

```bash
composer require bluefyn-international/shipengine
composer require always-open/shipengine
```

You can publish the config file with:
Expand Down Expand Up @@ -69,10 +69,10 @@ By default, the config information is read out of the config file but can be ove
when instantiating a new instance, which will impact all subsequent calls, or when making the call.
```php
// Use default config settings from `config/shipengine.php`
$shipengine = new BluefynInternational\ShipEngine\ShipEngine();
$shipengine = new AlwaysOpen\ShipEngine\ShipEngine();
// Override config which will impact all calls made with this instance
$config = new \BluefynInternational\ShipEngine\ShipEngineConfig(['asObject' => true]);
$custom_shipengine = new BluefynInternational\ShipEngine\ShipEngine($config);
$config = new \AlwaysOpen\ShipEngine\ShipEngineConfig(['asObject' => true]);
$custom_shipengine = new AlwaysOpen\ShipEngine\ShipEngine($config);
// Override config on a single specific call
$shipengine->listShipments(config: ['asObject' => true]);
```
Expand All @@ -89,7 +89,7 @@ Method names should match documentation names of API endpoints from official [Sh
#### Example calls
Here is a sample of how to get a listing of shipments as well as the difference between `asObject => false` and `asObject => true`.
```php
$shipengine = new BluefynInternational\ShipEngine\ShipEngine();
$shipengine = new AlwaysOpen\ShipEngine\ShipEngine();
$shipengine->listShipments();
//[
// "shipments" => [
Expand Down Expand Up @@ -117,7 +117,7 @@ $shipengine->listShipments();
$shipengine->listShipments(config: ['asObject' => true]);
// [
// "shipments" => [
// BluefynInternational\ShipEngine\DTO\Shipment {#4070
// AlwaysOpen\ShipEngine\DTO\Shipment {#4070
// +shipment_id: "se-123456789",
// +carrier_id: "se-123456",
// ...
Expand Down Expand Up @@ -160,7 +160,7 @@ Please review [our security policy](../../security/policy) on how to report secu

## Credits

- [BluefynInternational](https://github.com/BluefynInternational)
- [AlwaysOpen](https://github.com/AlwaysOpen)
- [All Contributors](../../contributors)

## License
Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "bluefyn-international/shipengine",
"name": "always-open/shipengine",
"description": "Wrapper around ShipEngine API",
"keywords": [
"Bluefyn International",
"BluefynInternational",
"Bluefyn-International",
"Always Open",
"AlwaysOpen",
"Always-Open",
"laravel",
"shipengine"
],
"homepage": "https://github.com/bluefyn-international/shipengine",
"homepage": "https://github.com/always-open/shipengine",
"license": "MIT",
"authors": [
{
"name": "BluefynInternational",
"email": "quentin.schmick@nathanjames.com",
"name": "Always Open",
"email": "qschmick@gmail.com",
"role": "Developer"
}
],
Expand Down Expand Up @@ -43,13 +43,13 @@
},
"autoload": {
"psr-4": {
"BluefynInternational\\ShipEngine\\": "src",
"BluefynInternational\\ShipEngine\\Database\\Factories\\": "database/factories"
"AlwaysOpen\\ShipEngine\\": "src",
"AlwaysOpen\\ShipEngine\\Database\\Factories\\": "database/factories"
}
},
"autoload-dev": {
"psr-4": {
"BluefynInternational\\ShipEngine\\Tests\\": "tests"
"AlwaysOpen\\ShipEngine\\Tests\\": "tests"
}
},
"scripts": {
Expand All @@ -67,10 +67,10 @@
"extra": {
"laravel": {
"providers": [
"BluefynInternational\\ShipEngine\\ShipEngineServiceProvider"
"AlwaysOpen\\ShipEngine\\ShipEngineServiceProvider"
],
"aliases": {
"ShipEngine": "BluefynInternational\\ShipEngine\\Facades\\ShipEngine"
"ShipEngine": "AlwaysOpen\\ShipEngine\\Facades\\ShipEngine"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions src/DTO/Address.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use BluefynInternational\ShipEngine\DTO\Validators\MaxLength;
use BluefynInternational\ShipEngine\DTO\Validators\MinLength;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\MaxLength;
use AlwaysOpen\ShipEngine\DTO\Validators\MinLength;
use Spatie\DataTransferObject\DataTransferObject;

class Address extends DataTransferObject
Expand Down
6 changes: 3 additions & 3 deletions src/DTO/Batch.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use BluefynInternational\ShipEngine\DTO\Validators\Regex;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\Regex;
use Spatie\DataTransferObject\DataTransferObject;

class Batch extends DataTransferObject
Expand Down
4 changes: 2 additions & 2 deletions src/DTO/BatchError.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\Regex;
use AlwaysOpen\ShipEngine\DTO\Validators\Regex;
use Spatie\DataTransferObject\DataTransferObject;

class BatchError extends DataTransferObject
Expand Down
6 changes: 3 additions & 3 deletions src/DTO/BulkRateResponse.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use BluefynInternational\ShipEngine\DTO\Validators\Regex;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\Regex;
use Spatie\DataTransferObject\Attributes\CastWith;
use Spatie\DataTransferObject\Casters\ArrayCaster;
use Spatie\DataTransferObject\DataTransferObject;
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/Casters/NullableArrayCaster.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO\Casters;
namespace AlwaysOpen\ShipEngine\DTO\Casters;

use ArrayAccess;
use LogicException;
Expand Down
6 changes: 3 additions & 3 deletions src/DTO/CurrencyAmount.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use Spatie\DataTransferObject\DataTransferObject;

class CurrencyAmount extends DataTransferObject
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/DhlExpressSettings.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
6 changes: 3 additions & 3 deletions src/DTO/Dimensions.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use Spatie\DataTransferObject\DataTransferObject;

class Dimensions extends DataTransferObject
Expand Down
4 changes: 2 additions & 2 deletions src/DTO/Error.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use Spatie\DataTransferObject\DataTransferObject;

class Error extends DataTransferObject
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/FedexFreight.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
4 changes: 2 additions & 2 deletions src/DTO/FedexSettings.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use Spatie\DataTransferObject\DataTransferObject;

class FedexSettings extends DataTransferObject
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/FormDownload.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
10 changes: 5 additions & 5 deletions src/DTO/Label.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\InArray;
use BluefynInternational\ShipEngine\DTO\Validators\MinLength;
use BluefynInternational\ShipEngine\DTO\Validators\Regex;
use AlwaysOpen\ShipEngine\DTO\Validators\InArray;
use AlwaysOpen\ShipEngine\DTO\Validators\MinLength;
use AlwaysOpen\ShipEngine\DTO\Validators\Regex;
use Spatie\DataTransferObject\Attributes\CastWith;
use Spatie\DataTransferObject\Casters\ArrayCaster;
use Spatie\DataTransferObject\DataTransferObject;
Expand Down Expand Up @@ -34,7 +34,7 @@ class Label extends DataTransferObject
public string $package_code;
public bool $voided;
public string|null $voided_at;
#[InArray(\BluefynInternational\ShipEngine\Util\Constants\Label::ALL_FORMATS)]
#[InArray(\AlwaysOpen\ShipEngine\Util\Constants\Label::ALL_FORMATS)]
public string $label_format;
#[InArray(['label', 'qr_code'])]
public string $display_scheme;
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/LabelDownload.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
2 changes: 1 addition & 1 deletion src/DTO/LabelMessages.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
4 changes: 2 additions & 2 deletions src/DTO/Manifest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\Regex;
use AlwaysOpen\ShipEngine\DTO\Validators\Regex;
use Spatie\DataTransferObject\DataTransferObject;

class Manifest extends DataTransferObject
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/ManifestDownload.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
8 changes: 4 additions & 4 deletions src/DTO/Package.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use BluefynInternational\ShipEngine\DTO\Validators\MinLength;
use BluefynInternational\ShipEngine\DTO\Validators\Regex;
use AlwaysOpen\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use AlwaysOpen\ShipEngine\DTO\Validators\MinLength;
use AlwaysOpen\ShipEngine\DTO\Validators\Regex;
use Spatie\DataTransferObject\DataTransferObject;

class Package extends DataTransferObject
Expand Down
4 changes: 2 additions & 2 deletions src/DTO/PackageType.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\Regex;
use AlwaysOpen\ShipEngine\DTO\Validators\Regex;
use Spatie\DataTransferObject\DataTransferObject;

class PackageType extends DataTransferObject
Expand Down
4 changes: 2 additions & 2 deletions src/DTO/PackageTypeDimensions.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use BluefynInternational\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use AlwaysOpen\ShipEngine\DTO\Validators\GreaterThanOrEquals;
use Spatie\DataTransferObject\DataTransferObject;

class PackageTypeDimensions extends DataTransferObject
Expand Down
2 changes: 1 addition & 1 deletion src/DTO/PaginationLinks.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
2 changes: 1 addition & 1 deletion src/DTO/ParsedAddress.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace BluefynInternational\ShipEngine\DTO;
namespace AlwaysOpen\ShipEngine\DTO;

use Spatie\DataTransferObject\DataTransferObject;

Expand Down
Loading

0 comments on commit f502782

Please sign in to comment.