-
Notifications
You must be signed in to change notification settings - Fork 858
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 #1588 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
19 changed files
with
404 additions
and
17 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
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 @@ | ||
v582 | ||
v597 |
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,41 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe; | ||
|
||
/** | ||
* A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself. | ||
* | ||
* See the <a href="https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices">guide to send notices</a> to your connected accounts. | ||
* | ||
* @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 $created Time at which the object was created. Measured in seconds since the Unix epoch. | ||
* @property null|int $deadline When present, the deadline for sending the notice to meet the relevant regulations. | ||
* @property null|\Stripe\StripeObject $email Information about the email when sent. | ||
* @property null|\Stripe\StripeObject $linked_objects Information about objects related to the notice. | ||
* @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 string $reason Reason the notice is being sent. The reason determines what copy the notice must contain. See the <a href="https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices">regulated customer notices</a> guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason. | ||
* @property null|int $sent_at Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent. | ||
*/ | ||
class AccountNotice extends ApiResource | ||
{ | ||
const OBJECT_NAME = 'account_notice'; | ||
|
||
use ApiOperations\All; | ||
use ApiOperations\Retrieve; | ||
use ApiOperations\Update; | ||
|
||
const REASON_ISSUING_ACCOUNT_CLOSED_FOR_INACTIVITY = 'issuing.account_closed_for_inactivity'; | ||
const REASON_ISSUING_ACCOUNT_CLOSED_FOR_TERMS_OF_SERVICE_VIOLATION = 'issuing.account_closed_for_terms_of_service_violation'; | ||
const REASON_ISSUING_APPLICATION_REJECTED_FOR_FAILURE_TO_VERIFY = 'issuing.application_rejected_for_failure_to_verify'; | ||
const REASON_ISSUING_CREDIT_APPLICATION_REJECTED = 'issuing.credit_application_rejected'; | ||
const REASON_ISSUING_CREDIT_INCREASE_APPLICATION_REJECTED = 'issuing.credit_increase_application_rejected'; | ||
const REASON_ISSUING_CREDIT_LIMIT_DECREASED = 'issuing.credit_limit_decreased'; | ||
const REASON_ISSUING_CREDIT_LINE_CLOSED = 'issuing.credit_line_closed'; | ||
const REASON_ISSUING_DISPUTE_LOST = 'issuing.dispute_lost'; | ||
const REASON_ISSUING_DISPUTE_SUBMITTED = 'issuing.dispute_submitted'; | ||
const REASON_ISSUING_DISPUTE_WON = 'issuing.dispute_won'; | ||
} |
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,104 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Issuing; | ||
|
||
/** | ||
* Every time an applicant submits an application for a Charge Card product your Platform offers, or every time your Platform takes a proactive credit decision on an existing account, you must record the decision by creating a new CreditUnderwritingRecord object on a Connected account. | ||
* | ||
* <a href="https://stripe.com/docs/issuing/coming_soon">Follow the guide</a> to learn about your requirements as a Platform. | ||
* | ||
* @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 $application For decisions triggered by an application, details about the submission. | ||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. | ||
* @property string $created_from The event that triggered the underwriting. | ||
* @property \Stripe\StripeObject $credit_user | ||
* @property null|int $decided_at Date when a decision was made. | ||
* @property null|\Stripe\StripeObject $decision Details about the decision. | ||
* @property null|int $decision_deadline For underwriting initiated by an application, a decision must be taken 30 days after the submission. | ||
* @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 $underwriting_exception If an exception to the usual underwriting criteria was made for this application, details about the exception must be provided. Exceptions should only be granted in rare circumstances, in consultation with Stripe Compliance. | ||
*/ | ||
class CreditUnderwritingRecord extends \Stripe\ApiResource | ||
{ | ||
const OBJECT_NAME = 'issuing.credit_underwriting_record'; | ||
|
||
use \Stripe\ApiOperations\All; | ||
use \Stripe\ApiOperations\Retrieve; | ||
|
||
const CREATED_FROM_APPLICATION = 'application'; | ||
const CREATED_FROM_PROACTIVE_REVIEW = 'proactive_review'; | ||
|
||
/** | ||
* @param null|array $params | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Issuing\CreditUnderwritingRecord the corrected credit underwriting record | ||
*/ | ||
public function correct($params = null, $opts = null) | ||
{ | ||
$url = $this->instanceUrl() . '/correct'; | ||
list($response, $opts) = $this->_request('post', $url, $params, $opts); | ||
$this->refreshFrom($response, $opts); | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @param null|array $params | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Issuing\CreditUnderwritingRecord the created credit underwriting record | ||
*/ | ||
public static function createFromApplication($params = null, $opts = null) | ||
{ | ||
$url = static::classUrl() . '/create_from_application'; | ||
list($response, $opts) = static::_staticRequest('post', $url, $params, $opts); | ||
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); | ||
$obj->setLastResponse($response); | ||
|
||
return $obj; | ||
} | ||
|
||
/** | ||
* @param null|array $params | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Issuing\CreditUnderwritingRecord the created credit underwriting record | ||
*/ | ||
public static function createFromProactiveReview($params = null, $opts = null) | ||
{ | ||
$url = static::classUrl() . '/create_from_proactive_review'; | ||
list($response, $opts) = static::_staticRequest('post', $url, $params, $opts); | ||
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); | ||
$obj->setLastResponse($response); | ||
|
||
return $obj; | ||
} | ||
|
||
/** | ||
* @param null|array $params | ||
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Issuing\CreditUnderwritingRecord the reported credit underwriting record | ||
*/ | ||
public function reportDecision($params = null, $opts = null) | ||
{ | ||
$url = $this->instanceUrl() . '/report_decision'; | ||
list($response, $opts) = $this->_request('post', $url, $params, $opts); | ||
$this->refreshFrom($response, $opts); | ||
|
||
return $this; | ||
} | ||
} |
Oops, something went wrong.