-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v412 * Update generated code for v413 * Update generated code for v417 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1f5d7a9
commit e9aa43d
Showing
10 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v406 | ||
v417 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Service\Tax; | ||
|
||
class SettingsService extends \Stripe\Service\AbstractService | ||
{ | ||
/** | ||
* Retrieves Tax <code>Settings</code> for a merchant. | ||
* | ||
* @param null|array $params | ||
* @param null|array|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Tax\Settings | ||
*/ | ||
public function retrieve($params = null, $opts = null) | ||
{ | ||
return $this->request('get', '/v1/tax/settings', $params, $opts); | ||
} | ||
|
||
/** | ||
* Updates Tax <code>Settings</code> parameters used in tax calculations. All | ||
* parameters are editable but none can be removed once set. | ||
* | ||
* @param null|array $params | ||
* @param null|array|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Tax\Settings | ||
*/ | ||
public function update($params = null, $opts = null) | ||
{ | ||
return $this->request('post', '/v1/tax/settings', $params, $opts); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Tax; | ||
|
||
/** | ||
* You can use Tax <code>Settings</code> to manage configurations used by Stripe Tax calculations. | ||
* | ||
* Related guide: <a href="https://stripe.com/docs/tax/settings-api">Using the Settings API</a> | ||
* | ||
* @property string $object String representing the object's type. Objects of the same type share the same value. | ||
* @property \Stripe\StripeObject $defaults | ||
* @property null|\Stripe\StripeObject $head_office The place where your business is located. | ||
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. | ||
* @property string $status The <code>active</code> status indicates you have all required settings to calculate tax. A status can transition out of <code>active</code> when new required settings are introduced. | ||
* @property \Stripe\StripeObject $status_details | ||
*/ | ||
class Settings extends \Stripe\SingletonApiResource | ||
{ | ||
const OBJECT_NAME = 'tax.settings'; | ||
|
||
use \Stripe\ApiOperations\SingletonRetrieve; | ||
use \Stripe\ApiOperations\Update; | ||
|
||
const STATUS_ACTIVE = 'active'; | ||
const STATUS_PENDING = 'pending'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters