blocked_period.php
3 months ago
booked_period.php
3 months ago
booking_request.php
3 months ago
booking_resource.php
3 months ago
booking_slot.php
3 months ago
filter.php
3 months ago
process_action.php
1 month ago
process_event.php
3 months ago
role.php
3 months ago
router.php
3 months ago
step.php
3 months ago
stripe_connect_customer.php
3 months ago
time_period.php
3 months ago
user.php
3 months ago
work_period.php
3 months ago
stripe_connect_customer.php
25 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (c) 2024 LatePoint LLC. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | namespace LatePoint\Misc; |
| 7 | |
| 8 | class StripeConnectCustomer { |
| 9 | public string $id; |
| 10 | |
| 11 | function __construct( $args = [] ) { |
| 12 | $allowed_props = self::allowed_props(); |
| 13 | foreach ( $args as $key => $arg ) { |
| 14 | if ( in_array( $key, $allowed_props ) ) { |
| 15 | $this->$key = $arg; |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | |
| 21 | public static function allowed_props(): array { |
| 22 | return [ 'id', 'type', 'settings', 'status' ]; |
| 23 | } |
| 24 | } |
| 25 |