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

Improve customization of RefundType #323

Merged
merged 6 commits into from
Jul 7, 2021

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Jul 2, 2021

Fixes #279
Replaces #311

@GSadee GSadee added the DX Issues and PRs aimed at improving Developer eXperience. label Jul 2, 2021
@GSadee GSadee requested a review from a team as a code owner July 2, 2021 13:35
@GSadee GSadee force-pushed the refactor-refund-type-enum branch from 0861bb8 to e5e9b15 Compare July 6, 2021 09:40
@GSadee GSadee changed the title [WIP] Improve customization of RefundType Improve customization of RefundType Jul 6, 2021
@@ -30,31 +32,36 @@ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $pla
return 'VARCHAR(256)';
}

public function convertToPHPValue($value, AbstractPlatform $platform): RefundType
public function convertToPHPValue($value, AbstractPlatform $platform): RefundTypeInterface
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public function convertToPHPValue($value, AbstractPlatform $platform): RefundTypeInterface
public function convertToPhpValue($value, AbstractPlatform $platform): RefundTypeInterface

this way is more camelCase :)
like getId instead getID

Copy link
Member Author

Choose a reason for hiding this comment

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

I cannot change the name of this method, it is defined in class below

@AdamKasp AdamKasp merged commit 9db3e27 into Sylius:master Jul 7, 2021
@AdamKasp
Copy link
Contributor

AdamKasp commented Jul 7, 2021

Thank you, Grzegorz! 🥇

AdamKasp added a commit to Sylius/Sylius that referenced this pull request Jul 7, 2021
…efund? (GSadee)

This PR was merged into the 1.9 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.9
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes Sylius/RefundPlugin#279 and waits for Sylius/RefundPlugin#323
| License         | MIT

![screencapture-localhost-63342-Sylius-docs-build-cookbook-payments-custom-type-of-refund-html-2021-07-06-11_37_48](https://user-images.githubusercontent.com/6140884/124579173-2b968700-de4f-11eb-83f0-b6332b6ae760.png)



Commits
-------

85b43d3 [Documentation][Cookbook] How to add another type of refund?
@GSadee GSadee deleted the refactor-refund-type-enum branch July 7, 2021 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there a way to override the RefundType without override every service using it ?
5 participants