From 3483586e369fed63dd9bc3cd5d91001ee92964ff Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 9 Sep 2024 18:28:10 +0000
Subject: [PATCH 1/5] Update generated code for v1252
---
OPENAPI_VERSION | 2 +-
lib/InvoiceLineItem.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index b7ea530db..068fe5345 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1247
\ No newline at end of file
+v1252
\ No newline at end of file
diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php
index bf872d66a..cfcea5055 100644
--- a/lib/InvoiceLineItem.php
+++ b/lib/InvoiceLineItem.php
@@ -32,8 +32,8 @@
* @property null|int $quantity The quantity of the subscription, if the line item is a subscription or a proration.
* @property null|string|\Stripe\Subscription $subscription The subscription that the invoice item pertains to, if any.
* @property null|string|\Stripe\SubscriptionItem $subscription_item The subscription item that generated this line item. Left empty if the line item is not an explicit result of a subscription.
- * @property null|\Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item
- * @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item.
+ * @property \Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item
+ * @property \Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item.
* @property string $type A string identifying the type of the source of this line item, either an invoiceitem
or a subscription
.
* @property null|string $unit_amount_excluding_tax The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts.
*/
From 5bf454d9066d409d653a0f4b40dcd8e0853b9145 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 9 Sep 2024 19:08:59 +0000
Subject: [PATCH 2/5] Update generated code for v1253
---
OPENAPI_VERSION | 2 +-
lib/QuotePhase.php | 17 -----------------
lib/Service/QuotePhaseService.php | 15 ---------------
3 files changed, 1 insertion(+), 33 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 068fe5345..b2164f87a 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1252
\ No newline at end of file
+v1253
\ No newline at end of file
diff --git a/lib/QuotePhase.php b/lib/QuotePhase.php
index 18e925181..79db514da 100644
--- a/lib/QuotePhase.php
+++ b/lib/QuotePhase.php
@@ -36,23 +36,6 @@ class QuotePhase extends ApiResource
const PRORATION_BEHAVIOR_CREATE_PRORATIONS = 'create_prorations';
const PRORATION_BEHAVIOR_NONE = 'none';
- /**
- * Returns a list of quote phases.
- *
- * @param null|array $params
- * @param null|array|string $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection<\Stripe\QuotePhase> of ApiResources
- */
- public static function all($params = null, $opts = null)
- {
- $url = static::classUrl();
-
- return static::_requestPage($url, \Stripe\Collection::class, $params, $opts);
- }
-
/**
* Retrieves the quote phase with the given ID.
*
diff --git a/lib/Service/QuotePhaseService.php b/lib/Service/QuotePhaseService.php
index c2a6c5c05..c88f35110 100644
--- a/lib/Service/QuotePhaseService.php
+++ b/lib/Service/QuotePhaseService.php
@@ -10,21 +10,6 @@
*/
class QuotePhaseService extends \Stripe\Service\AbstractService
{
- /**
- * Returns a list of quote phases.
- *
- * @param null|array $params
- * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection<\Stripe\QuotePhase>
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/quote_phases', $params, $opts);
- }
-
/**
* When retrieving a quote phase, there is an includable
* line_items property containing the first handful of those
From 010b8c0d94760501a5cbc36c6ea03acef53ee49a Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 9 Sep 2024 23:58:19 +0000
Subject: [PATCH 3/5] Update generated code for v1255
---
OPENAPI_VERSION | 2 +-
init.php | 2 +
lib/InvoiceRenderingTemplate.php | 96 +++++++++++++++++++
lib/Service/CoreServiceFactory.php | 2 +
.../InvoiceRenderingTemplateService.php | 82 ++++++++++++++++
lib/StripeClient.php | 1 +
lib/Util/ObjectTypes.php | 1 +
7 files changed, 185 insertions(+), 1 deletion(-)
create mode 100644 lib/InvoiceRenderingTemplate.php
create mode 100644 lib/Service/InvoiceRenderingTemplateService.php
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index b2164f87a..6dbaaddab 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1253
\ No newline at end of file
+v1255
\ No newline at end of file
diff --git a/init.php b/init.php
index 214a3ae25..22a21eba3 100644
--- a/init.php
+++ b/init.php
@@ -151,6 +151,7 @@
require __DIR__ . '/lib/InvoiceItem.php';
require __DIR__ . '/lib/InvoiceLineItem.php';
require __DIR__ . '/lib/InvoicePayment.php';
+require __DIR__ . '/lib/InvoiceRenderingTemplate.php';
require __DIR__ . '/lib/Issuing/Authorization.php';
require __DIR__ . '/lib/Issuing/Card.php';
require __DIR__ . '/lib/Issuing/Cardholder.php';
@@ -249,6 +250,7 @@
require __DIR__ . '/lib/Service/Identity/VerificationReportService.php';
require __DIR__ . '/lib/Service/Identity/VerificationSessionService.php';
require __DIR__ . '/lib/Service/InvoiceItemService.php';
+require __DIR__ . '/lib/Service/InvoiceRenderingTemplateService.php';
require __DIR__ . '/lib/Service/InvoiceService.php';
require __DIR__ . '/lib/Service/Issuing/AuthorizationService.php';
require __DIR__ . '/lib/Service/Issuing/CardService.php';
diff --git a/lib/InvoiceRenderingTemplate.php b/lib/InvoiceRenderingTemplate.php
new file mode 100644
index 000000000..576fd5945
--- /dev/null
+++ b/lib/InvoiceRenderingTemplate.php
@@ -0,0 +1,96 @@
+true if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $nickname A brief description of the template, hidden from customers
+ * @property string $status The status of the template, one of active
or archived
.
+ * @property int $version Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering
+ */
+class InvoiceRenderingTemplate extends ApiResource
+{
+ const OBJECT_NAME = 'invoice_rendering_template';
+
+ const STATUS_ACTIVE = 'active';
+ const STATUS_ARCHIVED = 'archived';
+
+ /**
+ * List all templates, ordered by creation date, with the most recently created
+ * template appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\InvoiceRenderingTemplate> of ApiResources
+ */
+ public static function all($params = null, $opts = null)
+ {
+ $url = static::classUrl();
+
+ return static::_requestPage($url, \Stripe\Collection::class, $params, $opts);
+ }
+
+ /**
+ * Retrieves an invoice rendering template with the given ID. It by default returns
+ * the latest version of the template. Optionally, specify a version to see
+ * previous versions.
+ *
+ * @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\InvoiceRenderingTemplate
+ */
+ public static function retrieve($id, $opts = null)
+ {
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
+ $instance = new static($id, $opts);
+ $instance->refresh();
+
+ return $instance;
+ }
+
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceRenderingTemplate the archived invoice rendering template
+ */
+ public function archive($params = null, $opts = null)
+ {
+ $url = $this->instanceUrl() . '/archive';
+ 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\InvoiceRenderingTemplate the unarchived invoice rendering template
+ */
+ public function unarchive($params = null, $opts = null)
+ {
+ $url = $this->instanceUrl() . '/unarchive';
+ list($response, $opts) = $this->_request('post', $url, $params, $opts);
+ $this->refreshFrom($response, $opts);
+
+ return $this;
+ }
+}
diff --git a/lib/Service/CoreServiceFactory.php b/lib/Service/CoreServiceFactory.php
index b8edf4eb4..0b568dea7 100644
--- a/lib/Service/CoreServiceFactory.php
+++ b/lib/Service/CoreServiceFactory.php
@@ -40,6 +40,7 @@
* @property GiftCards\GiftCardsServiceFactory $giftCards
* @property Identity\IdentityServiceFactory $identity
* @property InvoiceItemService $invoiceItems
+ * @property InvoiceRenderingTemplateService $invoiceRenderingTemplates
* @property InvoiceService $invoices
* @property Issuing\IssuingServiceFactory $issuing
* @property MandateService $mandates
@@ -123,6 +124,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'giftCards' => GiftCards\GiftCardsServiceFactory::class,
'identity' => Identity\IdentityServiceFactory::class,
'invoiceItems' => InvoiceItemService::class,
+ 'invoiceRenderingTemplates' => InvoiceRenderingTemplateService::class,
'invoices' => InvoiceService::class,
'issuing' => Issuing\IssuingServiceFactory::class,
'mandates' => MandateService::class,
diff --git a/lib/Service/InvoiceRenderingTemplateService.php b/lib/Service/InvoiceRenderingTemplateService.php
new file mode 100644
index 000000000..90d8f23a5
--- /dev/null
+++ b/lib/Service/InvoiceRenderingTemplateService.php
@@ -0,0 +1,82 @@
+
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/invoice_rendering_templates', $params, $opts);
+ }
+
+ /**
+ * Updates the status of an invoice rendering template to ‘archived’ so no new
+ * Stripe objects (customers, invoices, etc.) can reference it. The template can
+ * also no longer be updated. However, if the template is already set on a Stripe
+ * object, it will continue to be applied on invoices generated by it.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceRenderingTemplate
+ */
+ public function archive($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoice_rendering_templates/%s/archive', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves an invoice rendering template with the given ID. It by default returns
+ * the latest version of the template. Optionally, specify a version to see
+ * previous versions.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceRenderingTemplate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/invoice_rendering_templates/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Unarchive an invoice rendering template so it can be used on new Stripe objects
+ * again.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceRenderingTemplate
+ */
+ public function unarchive($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoice_rendering_templates/%s/unarchive', $id), $params, $opts);
+ }
+}
diff --git a/lib/StripeClient.php b/lib/StripeClient.php
index a09301554..1fc775624 100644
--- a/lib/StripeClient.php
+++ b/lib/StripeClient.php
@@ -40,6 +40,7 @@
* @property \Stripe\Service\GiftCards\GiftCardsServiceFactory $giftCards
* @property \Stripe\Service\Identity\IdentityServiceFactory $identity
* @property \Stripe\Service\InvoiceItemService $invoiceItems
+ * @property \Stripe\Service\InvoiceRenderingTemplateService $invoiceRenderingTemplates
* @property \Stripe\Service\InvoiceService $invoices
* @property \Stripe\Service\Issuing\IssuingServiceFactory $issuing
* @property \Stripe\Service\MandateService $mandates
diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php
index 3a70e2cde..722e7d2fa 100644
--- a/lib/Util/ObjectTypes.php
+++ b/lib/Util/ObjectTypes.php
@@ -83,6 +83,7 @@ class ObjectTypes
\Stripe\InvoiceItem::OBJECT_NAME => \Stripe\InvoiceItem::class,
\Stripe\InvoiceLineItem::OBJECT_NAME => \Stripe\InvoiceLineItem::class,
\Stripe\InvoicePayment::OBJECT_NAME => \Stripe\InvoicePayment::class,
+ \Stripe\InvoiceRenderingTemplate::OBJECT_NAME => \Stripe\InvoiceRenderingTemplate::class,
\Stripe\Issuing\Authorization::OBJECT_NAME => \Stripe\Issuing\Authorization::class,
\Stripe\Issuing\Card::OBJECT_NAME => \Stripe\Issuing\Card::class,
\Stripe\Issuing\Cardholder::OBJECT_NAME => \Stripe\Issuing\Cardholder::class,
From eec484ecd5519f1bf1ffbf356a41d4b28d34c14b Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 10 Sep 2024 18:26:53 +0000
Subject: [PATCH 4/5] Update generated code for v1258
---
OPENAPI_VERSION | 2 +-
init.php | 3 +
lib/Event.php | 8 +++
lib/Issuing/DisputeSettlementDetail.php | 72 +++++++++++++++++++
lib/Issuing/Settlement.php | 37 ++++++++++
lib/Issuing/Transaction.php | 1 +
.../DisputeSettlementDetailService.php | 45 ++++++++++++
lib/Service/Issuing/IssuingServiceFactory.php | 2 +
lib/Util/ObjectTypes.php | 2 +
9 files changed, 171 insertions(+), 1 deletion(-)
create mode 100644 lib/Issuing/DisputeSettlementDetail.php
create mode 100644 lib/Issuing/Settlement.php
create mode 100644 lib/Service/Issuing/DisputeSettlementDetailService.php
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 6dbaaddab..5f789190c 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1255
\ No newline at end of file
+v1258
\ No newline at end of file
diff --git a/init.php b/init.php
index 22a21eba3..9f4ae1dbb 100644
--- a/init.php
+++ b/init.php
@@ -157,8 +157,10 @@
require __DIR__ . '/lib/Issuing/Cardholder.php';
require __DIR__ . '/lib/Issuing/CreditUnderwritingRecord.php';
require __DIR__ . '/lib/Issuing/Dispute.php';
+require __DIR__ . '/lib/Issuing/DisputeSettlementDetail.php';
require __DIR__ . '/lib/Issuing/PersonalizationDesign.php';
require __DIR__ . '/lib/Issuing/PhysicalBundle.php';
+require __DIR__ . '/lib/Issuing/Settlement.php';
require __DIR__ . '/lib/Issuing/Token.php';
require __DIR__ . '/lib/Issuing/Transaction.php';
require __DIR__ . '/lib/LineItem.php';
@@ -257,6 +259,7 @@
require __DIR__ . '/lib/Service/Issuing/CardholderService.php';
require __DIR__ . '/lib/Service/Issuing/CreditUnderwritingRecordService.php';
require __DIR__ . '/lib/Service/Issuing/DisputeService.php';
+require __DIR__ . '/lib/Service/Issuing/DisputeSettlementDetailService.php';
require __DIR__ . '/lib/Service/Issuing/IssuingServiceFactory.php';
require __DIR__ . '/lib/Service/Issuing/PersonalizationDesignService.php';
require __DIR__ . '/lib/Service/Issuing/PhysicalBundleService.php';
diff --git a/lib/Event.php b/lib/Event.php
index 2dcb7a3f6..02d538636 100644
--- a/lib/Event.php
+++ b/lib/Event.php
@@ -185,12 +185,16 @@ class Event extends ApiResource
const ISSUING_DISPUTE_CREATED = 'issuing_dispute.created';
const ISSUING_DISPUTE_FUNDS_REINSTATED = 'issuing_dispute.funds_reinstated';
const ISSUING_DISPUTE_FUNDS_RESCINDED = 'issuing_dispute.funds_rescinded';
+ const ISSUING_DISPUTE_SETTLEMENT_DETAIL_CREATED = 'issuing_dispute_settlement_detail.created';
+ const ISSUING_DISPUTE_SETTLEMENT_DETAIL_UPDATED = 'issuing_dispute_settlement_detail.updated';
const ISSUING_DISPUTE_SUBMITTED = 'issuing_dispute.submitted';
const ISSUING_DISPUTE_UPDATED = 'issuing_dispute.updated';
const ISSUING_PERSONALIZATION_DESIGN_ACTIVATED = 'issuing_personalization_design.activated';
const ISSUING_PERSONALIZATION_DESIGN_DEACTIVATED = 'issuing_personalization_design.deactivated';
const ISSUING_PERSONALIZATION_DESIGN_REJECTED = 'issuing_personalization_design.rejected';
const ISSUING_PERSONALIZATION_DESIGN_UPDATED = 'issuing_personalization_design.updated';
+ const ISSUING_SETTLEMENT_CREATED = 'issuing_settlement.created';
+ const ISSUING_SETTLEMENT_UPDATED = 'issuing_settlement.updated';
const ISSUING_TOKEN_CREATED = 'issuing_token.created';
const ISSUING_TOKEN_UPDATED = 'issuing_token.updated';
const ISSUING_TRANSACTION_CREATED = 'issuing_transaction.created';
@@ -451,12 +455,16 @@ class Event extends ApiResource
const TYPE_ISSUING_DISPUTE_CREATED = 'issuing_dispute.created';
const TYPE_ISSUING_DISPUTE_FUNDS_REINSTATED = 'issuing_dispute.funds_reinstated';
const TYPE_ISSUING_DISPUTE_FUNDS_RESCINDED = 'issuing_dispute.funds_rescinded';
+ const TYPE_ISSUING_DISPUTE_SETTLEMENT_DETAIL_CREATED = 'issuing_dispute_settlement_detail.created';
+ const TYPE_ISSUING_DISPUTE_SETTLEMENT_DETAIL_UPDATED = 'issuing_dispute_settlement_detail.updated';
const TYPE_ISSUING_DISPUTE_SUBMITTED = 'issuing_dispute.submitted';
const TYPE_ISSUING_DISPUTE_UPDATED = 'issuing_dispute.updated';
const TYPE_ISSUING_PERSONALIZATION_DESIGN_ACTIVATED = 'issuing_personalization_design.activated';
const TYPE_ISSUING_PERSONALIZATION_DESIGN_DEACTIVATED = 'issuing_personalization_design.deactivated';
const TYPE_ISSUING_PERSONALIZATION_DESIGN_REJECTED = 'issuing_personalization_design.rejected';
const TYPE_ISSUING_PERSONALIZATION_DESIGN_UPDATED = 'issuing_personalization_design.updated';
+ const TYPE_ISSUING_SETTLEMENT_CREATED = 'issuing_settlement.created';
+ const TYPE_ISSUING_SETTLEMENT_UPDATED = 'issuing_settlement.updated';
const TYPE_ISSUING_TOKEN_CREATED = 'issuing_token.created';
const TYPE_ISSUING_TOKEN_UPDATED = 'issuing_token.updated';
const TYPE_ISSUING_TRANSACTION_CREATED = 'issuing_transaction.created';
diff --git a/lib/Issuing/DisputeSettlementDetail.php b/lib/Issuing/DisputeSettlementDetail.php
new file mode 100644
index 000000000..2fe17c823
--- /dev/null
+++ b/lib/Issuing/DisputeSettlementDetail.php
@@ -0,0 +1,72 @@
+ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $dispute The ID of the linked dispute.
+ * @property string $event_type The type of event corresponding to this dispute settlement detail, representing the stage in the dispute network lifecycle.
+ * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property string $network The card network for this dispute settlement detail. One of ["visa", "mastercard", "maestro"]
+ * @property null|string $settlement The ID of the linked card network settlement.
+ */
+class DisputeSettlementDetail extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.dispute_settlement_detail';
+
+ const EVENT_TYPE_FILING = 'filing';
+ const EVENT_TYPE_LOSS = 'loss';
+ const EVENT_TYPE_REPRESENTMENT = 'representment';
+ const EVENT_TYPE_WIN = 'win';
+
+ const NETWORK_MAESTRO = 'maestro';
+ const NETWORK_MASTERCARD = 'mastercard';
+ const NETWORK_VISA = 'visa';
+
+ /**
+ * Returns a list of Issuing DisputeSettlementDetail
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\DisputeSettlementDetail> 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 DisputeSettlementDetail
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\DisputeSettlementDetail
+ */
+ public static function retrieve($id, $opts = null)
+ {
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
+ $instance = new static($id, $opts);
+ $instance->refresh();
+
+ return $instance;
+ }
+}
diff --git a/lib/Issuing/Settlement.php b/lib/Issuing/Settlement.php
new file mode 100644
index 000000000..0fae406bf
--- /dev/null
+++ b/lib/Issuing/Settlement.php
@@ -0,0 +1,37 @@
+issued card must be settled directly with the card network. The net amount owed is represented by an Issuing Settlement
object.
+ *
+ * @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 string $bin The Bank Identification Number reflecting this settlement record.
+ * @property int $clearing_date The date that the transactions are cleared and posted to user's accounts.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property int $interchange_fees The total interchange received as reimbursement for the transactions.
+ * @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property int $net_total The total net amount required to settle with the network.
+ * @property string $network The card network for this settlement report. One of ["visa", "maestro"]
+ * @property int $network_fees The total amount of fees owed to the network.
+ * @property string $network_settlement_identifier The Settlement Identification Number assigned by the network.
+ * @property string $settlement_service One of international
or uk_national_net
.
+ * @property string $status The current processing status of this settlement.
+ * @property int $transaction_count The total number of transactions reflected in this settlement.
+ * @property int $transaction_volume The total transaction amount reflected in this settlement.
+ */
+class Settlement extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.settlement';
+
+ const NETWORK_MAESTRO = 'maestro';
+ const NETWORK_VISA = 'visa';
+
+ const STATUS_COMPLETE = 'complete';
+ const STATUS_PENDING = 'pending';
+}
diff --git a/lib/Issuing/Transaction.php b/lib/Issuing/Transaction.php
index 45585a010..f80779f66 100644
--- a/lib/Issuing/Transaction.php
+++ b/lib/Issuing/Transaction.php
@@ -29,6 +29,7 @@
* @property \Stripe\StripeObject $metadata Set of key-value pairs 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 $network_data Details about the transaction, such as processing dates, set by the card network.
* @property null|\Stripe\StripeObject $purchase_details Additional purchase information that is optionally provided by the merchant.
+ * @property null|string|\Stripe\Issuing\Settlement $settlement
* @property null|string|\Stripe\Issuing\Token $token Token object used for this transaction. If a network token was not used for this transaction, this field will be null.
* @property null|\Stripe\StripeObject $treasury Treasury details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
* @property string $type The nature of the transaction.
diff --git a/lib/Service/Issuing/DisputeSettlementDetailService.php b/lib/Service/Issuing/DisputeSettlementDetailService.php
new file mode 100644
index 000000000..95f1b5bc2
--- /dev/null
+++ b/lib/Service/Issuing/DisputeSettlementDetailService.php
@@ -0,0 +1,45 @@
+DisputeSettlementDetail 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|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\DisputeSettlementDetail>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/dispute_settlement_details', $params, $opts);
+ }
+
+ /**
+ * Retrieves an Issuing DisputeSettlementDetail
object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\DisputeSettlementDetail
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/dispute_settlement_details/%s', $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/Issuing/IssuingServiceFactory.php b/lib/Service/Issuing/IssuingServiceFactory.php
index 5ed8e7f0c..881c0d21f 100644
--- a/lib/Service/Issuing/IssuingServiceFactory.php
+++ b/lib/Service/Issuing/IssuingServiceFactory.php
@@ -12,6 +12,7 @@
* @property CardService $cards
* @property CreditUnderwritingRecordService $creditUnderwritingRecords
* @property DisputeService $disputes
+ * @property DisputeSettlementDetailService $disputeSettlementDetails
* @property PersonalizationDesignService $personalizationDesigns
* @property PhysicalBundleService $physicalBundles
* @property TokenService $tokens
@@ -28,6 +29,7 @@ class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
'cards' => CardService::class,
'creditUnderwritingRecords' => CreditUnderwritingRecordService::class,
'disputes' => DisputeService::class,
+ 'disputeSettlementDetails' => DisputeSettlementDetailService::class,
'personalizationDesigns' => PersonalizationDesignService::class,
'physicalBundles' => PhysicalBundleService::class,
'tokens' => TokenService::class,
diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php
index 722e7d2fa..0e3eef3ce 100644
--- a/lib/Util/ObjectTypes.php
+++ b/lib/Util/ObjectTypes.php
@@ -89,8 +89,10 @@ class ObjectTypes
\Stripe\Issuing\Cardholder::OBJECT_NAME => \Stripe\Issuing\Cardholder::class,
\Stripe\Issuing\CreditUnderwritingRecord::OBJECT_NAME => \Stripe\Issuing\CreditUnderwritingRecord::class,
\Stripe\Issuing\Dispute::OBJECT_NAME => \Stripe\Issuing\Dispute::class,
+ \Stripe\Issuing\DisputeSettlementDetail::OBJECT_NAME => \Stripe\Issuing\DisputeSettlementDetail::class,
\Stripe\Issuing\PersonalizationDesign::OBJECT_NAME => \Stripe\Issuing\PersonalizationDesign::class,
\Stripe\Issuing\PhysicalBundle::OBJECT_NAME => \Stripe\Issuing\PhysicalBundle::class,
+ \Stripe\Issuing\Settlement::OBJECT_NAME => \Stripe\Issuing\Settlement::class,
\Stripe\Issuing\Token::OBJECT_NAME => \Stripe\Issuing\Token::class,
\Stripe\Issuing\Transaction::OBJECT_NAME => \Stripe\Issuing\Transaction::class,
\Stripe\LineItem::OBJECT_NAME => \Stripe\LineItem::class,
From efe588e756944ab56cb0a881a3a2c148883029c2 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 10 Sep 2024 20:49:09 +0000
Subject: [PATCH 5/5] Update generated code for v1260
---
OPENAPI_VERSION | 2 +-
lib/TestHelpers/TestClock.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 5f789190c..ad548b855 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1258
\ No newline at end of file
+v1260
\ No newline at end of file
diff --git a/lib/TestHelpers/TestClock.php b/lib/TestHelpers/TestClock.php
index cd9fc4456..361b2692f 100644
--- a/lib/TestHelpers/TestClock.php
+++ b/lib/TestHelpers/TestClock.php
@@ -17,7 +17,7 @@
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property null|string $name The custom name supplied at creation.
* @property string $status The status of the Test Clock.
- * @property null|\Stripe\StripeObject $status_details
+ * @property \Stripe\StripeObject $status_details
*/
class TestClock extends \Stripe\ApiResource
{