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

Added new fields from Collmex API for types Member and query MemberGet #302

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Type/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
/**
* Collmex Member Type.
*
* @author Sebastian Gunreben
* @author Sebastian Gunreben
* @author Marcus Jaschen <[email protected]>
* @author Matthieu-P. Schapranow
*
* @property $type_identifier
* @property $customer_id
Expand Down Expand Up @@ -47,6 +48,7 @@
* @property $payment_via
* @property $printout_language
* @property $cost_center
* @property $no_mailings
*/
class Member extends AbstractType implements TypeInterface
{
Expand Down Expand Up @@ -154,6 +156,7 @@ class Member extends AbstractType implements TypeInterface
'payment_via' => null,
'printout_language' => null,
'cost_center' => null,
'no_mailings' => null,
];

/**
Expand Down
25 changes: 22 additions & 3 deletions src/Type/MemberGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
namespace MarcusJaschen\Collmex\Type;

/**
* Collmex Customer Get Type.
* Collmex Member Get Type.
*
* @author Sebastian Gunreben
* @author Marcus Jaschen <[email protected]>
* @author Sebastian Gunreben
* @author Marcus Jaschen <[email protected]>
* @author Matthieu-P. Schapranow
*
* @property $type_identifier
* @property $customer_id
Expand All @@ -19,22 +20,40 @@
* @property $exited_too
* @property $changed_only
* @property $system_name
* @property $reporting_date
* @property $entrance_date_from
* @property $entrance_date_to
* @property $exit_date_from
* @property $exit_date_to
* @property $birthday_from
* @property $birthday_to
*/
class MemberGet extends AbstractType implements TypeInterface
{
/**
* @var array
*/
protected $template = [
// 1
'type_identifier' => 'MEMBER_GET',
'customer_id' => null,
'client_id' => null,
'query' => null,
// 5
'zipcode' => null,
'address_group_id' => null,
'exited_too' => null,
'changed_only' => null,
'system_name' => null,
// 10
'reporting_date' => null,
'entrance_date_from' => null,
'entrance_date_to' => null,
'exit_date_from' => null,
'exit_date_to' => null,
// 15
'birthday_from' => null,
'birthday_to' => null,
];

/**
Expand Down