-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add shipping option for insurance #43
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
Open
avido
wants to merge
27
commits into
mvdnbrk:main
Choose a base branch
from
avido:avido/feature-shipping-option-insurance
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
bea87fd
Added insurance
avido 76124d6
Set currency for insurance
avido 0823fd2
Added unit test for insurance
avido 29bed45
Updated readme
avido 0854014
Merge branch 'main' into avido/feature-shipping-option-insurance
mvdnbrk 83db9f0
Formatting
mvdnbrk aa460b3
Merge branch 'main' into avido/feature-shipping-option-insurance
mvdnbrk 75434e3
Review changes
avido b013f05
Updated readme
avido 12229b3
Merge branch 'main' into avido/feature-shipping-option-insurance
avido 3b6a1c9
Merge branch 'avido/feature-shipping-option-insurance' of github.com:…
avido 072cef8
Update insurance attribute argument to array, updated default options
avido b41f41a
Set insurance empty array, refactored toArray to remove empty arrays
avido acef318
Cast response to array
avido 20702a4
Added test for retrieval of shipment with insurance
avido 0aa3251
Updated readme
avido 573e7ab
Formatting
mvdnbrk 0d2740d
Change `reject` method
mvdnbrk a5f2b5c
Formatting
mvdnbrk 477c12a
Formatting
mvdnbrk 82513d3
Added money resource
avido fa3eeca
Updated insurance related tests
avido ef72358
Restred Shipments endpoint
avido 1aac64e
Updated insurance for shippingOptions
avido fc56301
Updated method 'insurance' for parcel resource
avido 563433c
Updated insurance attribute
avido 06ed09c
Fix wrong type for insurance in defaultOptions
avido File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <?php | ||
|
|
||
| namespace Mvdnbrk\MyParcel\Resources; | ||
|
|
||
| class Money extends BaseResource | ||
| { | ||
| /** @var int */ | ||
| protected $amount; | ||
|
|
||
| /** @var string */ | ||
| protected $currency; | ||
|
|
||
| public function __construct($attributes) | ||
| { | ||
| parent::__construct($attributes); | ||
| } | ||
|
|
||
| public function setAmountAttribute(int $value): void | ||
| { | ||
| $this->amount = $value; | ||
| } | ||
|
|
||
| public function setCurrencyAttribute(string $value): void | ||
| { | ||
| $this->currency = $value; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.