Skip to content

Commit 236e0e9

Browse files
committed
Add Stripe contact
1 parent 7c5268b commit 236e0e9

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.2
2+
3+
* Add the `getStripeContact` method
4+
15
# 1.0.1
26

37
* Remove not needed code

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ CONTACT RELATED METHODS:
4343

4444
* array getContacts(array $args = array())
4545
* array getContact(array $args = array())
46+
* array getStripeContact(array $args = array())
4647

4748
INVOICE RELATED METHODS:
4849

src/Client/QuadernoClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* @method array getContacts(array $args = array()) {@command Quaderno getContacts}
3333
* @method array getContact(array $args = array()) {@command Quaderno getContact}
34+
* @method array getStripeContact(array $args = array()) {@command Quaderno getStripeContact}
3435
*
3536
* INVOICE RELATED METHODS:
3637
*

src/Client/ServiceDescription/Quaderno-v1.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@
5959
]
6060
],
6161

62+
'getStripeContact' => [
63+
'httpMethod' => 'GET',
64+
'uri' => '/api/v1/stripe/customers/{id}.json',
65+
'summary' => 'Get details about a single contact from its Stripe ID',
66+
'responseModel' => 'getResponse',
67+
'parameters' => [
68+
'id' => [
69+
'description' => 'Stripe customer ID',
70+
'location' => 'uri',
71+
'type' => 'string',
72+
'required' => true
73+
]
74+
]
75+
],
76+
6277
/**
6378
* --------------------------------------------------------------------------------
6479
* INVOICE RELATED METHODS

0 commit comments

Comments
 (0)