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

[Feat] WIP: Custom field implementation #53

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

flavio-schoute
Copy link
Contributor

No description provided.

@reindert-vetter
Copy link
Collaborator

Lekker bezig! Wat mis je nog? (waarom het nog een draf is)

@flavio-schoute
Copy link
Contributor Author

flavio-schoute commented Aug 12, 2024

Lekker bezig! Wat mis je nog? (waarom het nog een draf is)

Testen schrijven en wat code verplaatsen en bouwen. De code stond op de verkeerde plekken gezet 🤦‍♂️

@flavio-schoute
Copy link
Contributor Author

flavio-schoute commented Aug 13, 2024

CleanShot 2024-08-13 at 17 32 22

FYI, ik hou voorlopig even bij volgende dingen om het simpel te houden: id, label & input. Want in de custom_fields zit ook weer een custom_field.

Ik bouw hem later wel uit in een andere PR.

@flavio-schoute flavio-schoute marked this pull request as ready for review August 15, 2024 11:40
@flavio-schoute
Copy link
Contributor Author

Missen toch nog wat testen...

@flavio-schoute flavio-schoute marked this pull request as draft August 15, 2024 15:40
Comment on lines +309 to +328
// /** @test */
// public function show_order_custom_fields(): void
// {
// $client = (new OrderShowMockClient())->customFields();
// $service = new OrderService($client);

// $order = $service->find(1);

// static::assertSame(10., $order->customFields()[0]->amount());
// static::assertSame(CountryCode::NL, $order->taxes()[0]->rate()->country());
// static::assertSame(57, $order->taxes()[0]->rate()->id());
// static::assertSame(21., $order->taxes()[0]->rate()->percentage());

// $tax = $order->items()[0]->tax();

// static::assertSame(10., $tax->amount());
// static::assertSame(CountryCode::NL, $tax->rate()->country());
// static::assertSame(57, $tax->rate()->id());
// static::assertSame(21., $tax->rate()->percentage());
// }
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • todo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Klopt :)

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

Successfully merging this pull request may close these issues.

2 participants