Skip to content

Commit

Permalink
Add support for customer website_url field (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
whobubble authored Feb 8, 2024
1 parent e0dd257 commit acf6fa4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class Customer extends AbstractResource
protected $zip;
protected $lead_created_at;
protected $free_trial_started_at;
protected $website_url;

private $subscriptions;
private $invoices;
Expand Down
9 changes: 6 additions & 3 deletions tests/Unit/CustomerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class CustomerTest extends TestCase
"chartmogul-url": "https://app.chartmogul.com/#customers/74596-Adam_Smith",
"billing-system-type": "Import API",
"currency": "USD",
"currency-sign": "$"
"currency-sign": "$",
"website_url": "http://www.adamsmith.com"
}';

const RETRIEVE_CUSTOMER_JSON = '{
Expand Down Expand Up @@ -125,7 +126,8 @@ class CustomerTest extends TestCase
"chartmogul-url": "https:\/\/app.chartmogul.com\/#customers\/25647-Example_Company",
"billing-system-type": "Stripe",
"currency": "USD",
"currency-sign": "$"
"currency-sign": "$",
"website_url": "http://www.adamsmith.com"
}';

const SEARCH_CUSTOMER_JSON = '{
Expand Down Expand Up @@ -262,7 +264,8 @@ public function testCreateCustomer()
"country" => "US",
"city" => "New York",
"lead_created_at" => "2016-10-01T00:00:00.000Z",
"free_trial_started_at" => "2016-11-02T00:00:00.000Z"
"free_trial_started_at" => "2016-11-02T00:00:00.000Z",
"website_url" => "http://www.adamsmith.com"
], $cmClient
);
$request = $mockClient->getRequests()[0];
Expand Down

0 comments on commit acf6fa4

Please sign in to comment.