-
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.
Merge upstream and update generated code for v411
- Loading branch information
Showing
7 changed files
with
140 additions
and
1 deletion.
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 | ||
v411 |
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,63 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe; | ||
|
||
/** | ||
* An object detailing payment method configurations. | ||
* | ||
* @property string $id Unique identifier for the object. | ||
* @property string $object String representing the object's type. Objects of the same type share the same value. | ||
* @property null|\Stripe\StripeObject $acss_debit | ||
* @property bool $active Whether the configuration can be used for new payments. | ||
* @property null|\Stripe\StripeObject $affirm | ||
* @property null|\Stripe\StripeObject $afterpay_clearpay | ||
* @property null|\Stripe\StripeObject $alipay | ||
* @property null|\Stripe\StripeObject $apple_pay | ||
* @property null|string $application The Connect application associated with this configuration. | ||
* @property null|\Stripe\StripeObject $au_becs_debit | ||
* @property null|\Stripe\StripeObject $bacs_debit | ||
* @property null|\Stripe\StripeObject $bancontact | ||
* @property null|\Stripe\StripeObject $blik | ||
* @property null|\Stripe\StripeObject $boleto | ||
* @property null|\Stripe\StripeObject $card | ||
* @property null|\Stripe\StripeObject $cartes_bancaires | ||
* @property null|\Stripe\StripeObject $cashapp | ||
* @property null|\Stripe\StripeObject $eps | ||
* @property null|\Stripe\StripeObject $fpx | ||
* @property null|\Stripe\StripeObject $giropay | ||
* @property null|\Stripe\StripeObject $google_pay | ||
* @property null|\Stripe\StripeObject $grabpay | ||
* @property null|\Stripe\StripeObject $id_bank_transfer | ||
* @property null|\Stripe\StripeObject $ideal | ||
* @property bool $is_default The default configuration is used whenever no payment method configuration is specified. | ||
* @property null|\Stripe\StripeObject $jcb | ||
* @property null|\Stripe\StripeObject $klarna | ||
* @property null|\Stripe\StripeObject $konbini | ||
* @property null|\Stripe\StripeObject $link | ||
* @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 null|\Stripe\StripeObject $multibanco | ||
* @property string $name Configuration name. | ||
* @property null|\Stripe\StripeObject $netbanking | ||
* @property null|\Stripe\StripeObject $oxxo | ||
* @property null|\Stripe\StripeObject $p24 | ||
* @property null|string $parent The configuration's parent configuration. | ||
* @property null|\Stripe\StripeObject $pay_by_bank | ||
* @property null|\Stripe\StripeObject $paynow | ||
* @property null|\Stripe\StripeObject $promptpay | ||
* @property null|\Stripe\StripeObject $sepa_debit | ||
* @property null|\Stripe\StripeObject $sofort | ||
* @property null|\Stripe\StripeObject $upi | ||
* @property null|\Stripe\StripeObject $us_bank_account | ||
* @property null|\Stripe\StripeObject $wechat_pay | ||
*/ | ||
class PaymentMethodConfiguration extends ApiResource | ||
{ | ||
const OBJECT_NAME = 'payment_method_configuration'; | ||
|
||
use ApiOperations\All; | ||
use ApiOperations\Create; | ||
use ApiOperations\Retrieve; | ||
use ApiOperations\Update; | ||
} |
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,70 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Service; | ||
|
||
class PaymentMethodConfigurationService extends \Stripe\Service\AbstractService | ||
{ | ||
/** | ||
* List payment method configurations. | ||
* | ||
* @param null|array $params | ||
* @param null|array|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Collection<\Stripe\PaymentMethodConfiguration> | ||
*/ | ||
public function all($params = null, $opts = null) | ||
{ | ||
return $this->requestCollection('get', '/v1/payment_method_configurations', $params, $opts); | ||
} | ||
|
||
/** | ||
* Creates a payment method configuration. | ||
* | ||
* @param null|array $params | ||
* @param null|array|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\PaymentMethodConfiguration | ||
*/ | ||
public function create($params = null, $opts = null) | ||
{ | ||
return $this->request('post', '/v1/payment_method_configurations', $params, $opts); | ||
} | ||
|
||
/** | ||
* Retrieve payment method configuration. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|array|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\PaymentMethodConfiguration | ||
*/ | ||
public function retrieve($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('get', $this->buildPath('/v1/payment_method_configurations/%s', $id), $params, $opts); | ||
} | ||
|
||
/** | ||
* Update payment method configuration. | ||
* | ||
* @param string $id | ||
* @param null|array $params | ||
* @param null|array|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\PaymentMethodConfiguration | ||
*/ | ||
public function update($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('post', $this->buildPath('/v1/payment_method_configurations/%s', $id), $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