Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI Update #670

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions embedded/openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -33140,6 +33140,29 @@
"type": "object",
"x-expandableFields": []
},
"payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_decremental_authorization_decremental_authorization": {
"description": "",
"properties": {
"status": {
"description": "Indicates whether or not the decremental authorization feature is supported.",
"enum": [
"available",
"unavailable"
],
"type": "string"
}
},
"required": [
"status"
],
"title": "PaymentFlowsPrivatePaymentMethodsCardDetailsAPIResourceEnterpriseFeaturesDecrementalAuthorizationDecrementalAuthorization",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "DecrementalAuthorizationRequest",
"in_package": ""
}
},
"payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization": {
"description": "",
"properties": {
Expand Down Expand Up @@ -33868,6 +33891,13 @@
"operation": "post",
"path": "/v1/payment_intents/{intent}/confirm"
},
{
"method_name": "decrement_authorization",
"method_on": "service",
"method_type": "custom",
"operation": "post",
"path": "/v1/payment_intents/{intent}/decrement_authorization"
},
{
"method_name": "increment_authorization",
"method_on": "service",
Expand Down Expand Up @@ -35195,6 +35225,14 @@
"nullable": true,
"type": "string"
},
"request_decremental_authorization": {
"description": "Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.",
"enum": [
"if_available",
"never"
],
"type": "string"
},
"request_extended_authorization": {
"description": "Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.",
"enum": [
Expand Down Expand Up @@ -39084,6 +39122,9 @@
"nullable": true,
"type": "string"
},
"decremental_authorization": {
"$ref": "#/components/schemas/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_decremental_authorization_decremental_authorization"
},
"description": {
"description": "A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)",
"maxLength": 5000,
Expand Down Expand Up @@ -39213,6 +39254,7 @@
"type": "object",
"x-expandableFields": [
"checks",
"decremental_authorization",
"extended_authorization",
"incremental_authorization",
"installments",
Expand Down Expand Up @@ -131678,6 +131720,14 @@
"type": "string",
"x-stripeBypassValidation": true
},
"request_decremental_authorization": {
"description": "Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.",
"enum": [
"if_available",
"never"
],
"type": "string"
},
"request_extended_authorization": {
"description": "Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.",
"enum": [
Expand Down Expand Up @@ -135664,6 +135714,14 @@
"type": "string",
"x-stripeBypassValidation": true
},
"request_decremental_authorization": {
"description": "Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.",
"enum": [
"if_available",
"never"
],
"type": "string"
},
"request_extended_authorization": {
"description": "Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.",
"enum": [
Expand Down Expand Up @@ -140586,6 +140644,14 @@
"type": "string",
"x-stripeBypassValidation": true
},
"request_decremental_authorization": {
"description": "Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.",
"enum": [
"if_available",
"never"
],
"type": "string"
},
"request_extended_authorization": {
"description": "Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.",
"enum": [
Expand Down Expand Up @@ -142146,6 +142212,80 @@
}
}
},
"/v1/payment_intents/{intent}/decrement_authorization": {
"post": {
"description": "<p>Perform an decremental authorization on an eligible\n<a href=\"/docs/api/payment_intents/object\">PaymentIntent</a>. To be eligible, the\nPaymentIntent’s status must be <code>requires_capture</code> and\n<a href=\"/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization\">decremental_authorization.status</a>\nmust be <code>available</code>.</p>\n\n<p>Decremental authorizations decrease the authorized amount on your customer’s card\nto the new, lower <code>amount</code> provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.</p>\n\n<p>After decrement, the PaymentIntent object\nreturns with the updated\n<a href=\"/docs/api/payment_intents/object#payment_intent_object-amount\">amount</a>.\nThe PaymentIntent will now be capturable up to the new authorized amount.</p>\n\n<p>Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.\nAfter it’s captured, a PaymentIntent can no longer be decremented.</p>",
"operationId": "PostPaymentIntentsIntentDecrementAuthorization",
"parameters": [
{
"in": "path",
"name": "intent",
"required": true,
"schema": {
"maxLength": 5000,
"type": "string"
},
"style": "simple"
}
],
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"encoding": {
"expand": {
"explode": true,
"style": "deepObject"
}
},
"schema": {
"additionalProperties": false,
"properties": {
"amount": {
"description": "The updated total amount that you intend to collect from the cardholder. This amount must be smaller than the currently authorized amount.",
"type": "integer"
},
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
}
},
"required": [
"amount"
],
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/payment_intent"
}
}
},
"description": "Successful response."
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
},
"description": "Error response."
}
}
}
},
"/v1/payment_intents/{intent}/increment_authorization": {
"post": {
"description": "<p>Perform an incremental authorization on an eligible\n<a href=\"/docs/api/payment_intents/object\">PaymentIntent</a>. To be eligible, the\nPaymentIntent’s status must be <code>requires_capture</code> and\n<a href=\"/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported\">incremental_authorization_supported</a>\nmust be <code>true</code>.</p>\n\n<p>Incremental authorizations attempt to increase the authorized amount on\nyour customer’s card to the new, higher <code>amount</code> provided. Similar to the\ninitial authorization, incremental authorizations can be declined. A\nsingle PaymentIntent can call this endpoint multiple times to further\nincrease the authorized amount.</p>\n\n<p>If the incremental authorization succeeds, the PaymentIntent object\nreturns with the updated\n<a href=\"/docs/api/payment_intents/object#payment_intent_object-amount\">amount</a>.\nIf the incremental authorization fails, a\n<a href=\"/docs/error-codes#card-declined\">card_declined</a> error returns, and no other\nfields on the PaymentIntent or Charge update. The PaymentIntent\nobject remains capturable for the previously authorized amount.</p>\n\n<p>Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.\nAfter it’s captured, a PaymentIntent can no longer be incremented.</p>\n\n<p>Learn more about <a href=\"/docs/terminal/features/incremental-authorizations\">incremental authorizations</a>.</p>",
Expand Down
Loading