-
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 pull request #1783 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
27 changed files
with
516 additions
and
15 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
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 @@ | ||
v1319 | ||
v1333 |
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
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
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,60 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Issuing; | ||
|
||
/** | ||
* A fraud liability debit occurs when Stripe debits a platform's account for fraud losses on Issuing transactions. | ||
* | ||
* @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 int $amount Debited amount. This is equal to the disputed amount and is given in the card’s currency and in the smallest currency unit. | ||
* @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the <a href="https://stripe.com/docs/api/balance_transactions">balance transaction</a> associated with this debit. | ||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. | ||
* @property string $currency The currency of the debit. Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>. | ||
* @property string $dispute The ID of the linked dispute. | ||
* @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. | ||
*/ | ||
class FraudLiabilityDebit extends \Stripe\ApiResource | ||
{ | ||
const OBJECT_NAME = 'issuing.fraud_liability_debit'; | ||
|
||
/** | ||
* Returns a list of Issuing <code>FraudLiabilityDebit</code> objects. The objects | ||
* are sorted in descending order by creation date, with the most recently created | ||
* object appearing first. | ||
* | ||
* @param null|array $params | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Collection<\Stripe\Issuing\FraudLiabilityDebit> of ApiResources | ||
*/ | ||
public static function all($params = null, $opts = null) | ||
{ | ||
$url = static::classUrl(); | ||
|
||
return static::_requestPage($url, \Stripe\Collection::class, $params, $opts); | ||
} | ||
|
||
/** | ||
* Retrieves an Issuing <code>FraudLiabilityDebit</code> object. | ||
* | ||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Issuing\FraudLiabilityDebit | ||
*/ | ||
public static function retrieve($id, $opts = null) | ||
{ | ||
$opts = \Stripe\Util\RequestOptions::parse($opts); | ||
$instance = new static($id, $opts); | ||
$instance->refresh(); | ||
|
||
return $instance; | ||
} | ||
} |
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,72 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe; | ||
|
||
/** | ||
* A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe. | ||
* Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment | ||
* method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record | ||
* can have guaranteed funds. | ||
* | ||
* @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 \Stripe\StripeObject $amount_canceled A representation of an amount of money, consisting of an amount and a currency. | ||
* @property \Stripe\StripeObject $amount_failed A representation of an amount of money, consisting of an amount and a currency. | ||
* @property \Stripe\StripeObject $amount_guaranteed A representation of an amount of money, consisting of an amount and a currency. | ||
* @property \Stripe\StripeObject $amount_requested A representation of an amount of money, consisting of an amount and a currency. | ||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. | ||
* @property null|\Stripe\StripeObject $customer_details Customer information for this payment. | ||
* @property null|string $customer_presence Indicates whether the customer was present in your checkout flow during this payment. | ||
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. | ||
* @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 $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | ||
* @property null|\Stripe\StripeObject $payment_method_details Information about the Payment Method debited for this payment. | ||
* @property string $payment_record ID of the Payment Record this Payment Attempt Record belongs to. | ||
* @property null|string $payment_reference An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. | ||
* @property null|\Stripe\StripeObject $shipping_details Shipping information for this payment. | ||
*/ | ||
class PaymentAttemptRecord extends ApiResource | ||
{ | ||
const OBJECT_NAME = 'payment_attempt_record'; | ||
|
||
const CUSTOMER_PRESENCE_OFF_SESSION = 'off_session'; | ||
const CUSTOMER_PRESENCE_ON_SESSION = 'on_session'; | ||
|
||
/** | ||
* List all the Payment Attempt Records attached to the specified Payment Record. | ||
* | ||
* @param null|array $params | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Collection<\Stripe\PaymentAttemptRecord> of ApiResources | ||
*/ | ||
public static function all($params = null, $opts = null) | ||
{ | ||
$url = static::classUrl(); | ||
|
||
return static::_requestPage($url, \Stripe\Collection::class, $params, $opts); | ||
} | ||
|
||
/** | ||
* Retrieves a Payment Attempt Record with the given ID. | ||
* | ||
* @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\PaymentAttemptRecord | ||
*/ | ||
public static function retrieve($id, $opts = null) | ||
{ | ||
$opts = \Stripe\Util\RequestOptions::parse($opts); | ||
$instance = new static($id, $opts); | ||
$instance->refresh(); | ||
|
||
return $instance; | ||
} | ||
} |
Oops, something went wrong.