Skip to content

Commit

Permalink
uupdate PaymentMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhall17 committed Feb 1, 2020
1 parent d4c0cc4 commit 9b062f8
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,26 @@ class PaymentMethod extends StripeModel

protected $allowedMethods = ['get', 'find', 'insert', 'update'];

public $insertAttributes = [
'type',
'card',
'billing_details',
'metadata'
];

public $updateAttributes = [
'card',
'billing_details',
'metadata'
];

public $requiredAttributes = [
'type',
'card'
];

public $oneRelationships = [
'billing_detail' => BillingDetail::class,
'billing_details' => BillingDetail::class,
'card' => Card::class,
'card_present' => CardPresent::class
];
Expand All @@ -25,10 +43,6 @@ class PaymentMethod extends StripeModel
'type' => ['='],
];

public $requiredAttributes = [
'type'
];

public $requiredQueryAttributes = [
'type',
'customer'
Expand Down

0 comments on commit 9b062f8

Please sign in to comment.