Skip to content

Commit

Permalink
Update OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Aug 18, 2023
1 parent d4e3603 commit ca4254f
Show file tree
Hide file tree
Showing 6 changed files with 342 additions and 3 deletions.
67 changes: 66 additions & 1 deletion openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -11189,6 +11189,9 @@
]
}
},
"payment_method_details": {
"$ref": "#/components/schemas/dispute_payment_method_details"
},
"reason": {
"description": "Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Read more about [dispute reasons](https://stripe.com/docs/disputes/categories).",
"maxLength": 5000,
Expand Down Expand Up @@ -11232,7 +11235,8 @@
"charge",
"evidence",
"evidence_details",
"payment_intent"
"payment_intent",
"payment_method_details"
],
"x-resourceId": "dispute",
"x-stripeOperations": [
Expand Down Expand Up @@ -11649,6 +11653,67 @@
"in_package": ""
}
},
"dispute_payment_method_details": {
"description": "",
"properties": {
"card": {
"anyOf": [
{
"$ref": "#/components/schemas/dispute_payment_method_details_card"
}
],
"description": "Card specific dispute details.",
"nullable": true
},
"type": {
"description": "Payment method type.",
"enum": [
"card"
],
"type": "string"
}
},
"required": [
"card",
"type"
],
"title": "DisputePaymentMethodDetails",
"type": "object",
"x-expandableFields": [
"card"
],
"x-stripeResource": {
"class_name": "DisputePaymentMethodDetails",
"in_package": ""
}
},
"dispute_payment_method_details_card": {
"description": "",
"properties": {
"brand": {
"description": "Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.",
"maxLength": 5000,
"type": "string"
},
"network_reason_code": {
"description": "The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.",
"maxLength": 5000,
"nullable": true,
"type": "string"
}
},
"required": [
"brand",
"network_reason_code"
],
"title": "DisputePaymentMethodDetailsCard",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "DisputePaymentMethodDetailsCard",
"in_package": ""
}
},
"email_sent": {
"description": "",
"properties": {
Expand Down
54 changes: 54 additions & 0 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10545,6 +10545,8 @@ components:
x-expansionResources:
oneOf:
- $ref: '#/components/schemas/payment_intent'
payment_method_details:
$ref: '#/components/schemas/dispute_payment_method_details'
reason:
description: >-
Reason given by cardholder for dispute. Possible values are
Expand Down Expand Up @@ -10595,6 +10597,7 @@ components:
- evidence
- evidence_details
- payment_intent
- payment_method_details
x-resourceId: dispute
x-stripeOperations:
- method_name: list
Expand Down Expand Up @@ -10941,6 +10944,57 @@ components:
x-stripeResource:
class_name: EvidenceDetails
in_package: ''
dispute_payment_method_details:
description: ''
properties:
card:
anyOf:
- $ref: '#/components/schemas/dispute_payment_method_details_card'
description: Card specific dispute details.
nullable: true
type:
description: Payment method type.
enum:
- card
type: string
required:
- card
- type
title: DisputePaymentMethodDetails
type: object
x-expandableFields:
- card
x-stripeResource:
class_name: DisputePaymentMethodDetails
in_package: ''
dispute_payment_method_details_card:
description: ''
properties:
brand:
description: >-
Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`,
`mastercard`, `unionpay`, `visa`, or `unknown`.
maxLength: 5000
type: string
network_reason_code:
description: >-
The card network's specific dispute reason code, which maps to one
of Stripe's primary dispute categories to simplify response
guidance. The [Network code
map](https://stripe.com/docs/disputes/categories#network-code-map)
lists all available dispute reason codes by network.
maxLength: 5000
nullable: true
type: string
required:
- brand
- network_reason_code
title: DisputePaymentMethodDetailsCard
type: object
x-expandableFields: []
x-stripeResource:
class_name: DisputePaymentMethodDetailsCard
in_package: ''
email_sent:
description: ''
properties:
Expand Down
57 changes: 56 additions & 1 deletion openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8380,6 +8380,9 @@
]
}
},
"payment_method_details": {
"$ref": "#/components/schemas/dispute_payment_method_details"
},
"reason": {
"description": "Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Read more about [dispute reasons](https://stripe.com/docs/disputes/categories).",
"maxLength": 5000,
Expand Down Expand Up @@ -8422,7 +8425,8 @@
"charge",
"evidence",
"evidence_details",
"payment_intent"
"payment_intent",
"payment_method_details"
],
"x-resourceId": "dispute"
},
Expand Down Expand Up @@ -8763,6 +8767,57 @@
"type": "object",
"x-expandableFields": []
},
"dispute_payment_method_details": {
"description": "",
"properties": {
"card": {
"anyOf": [
{
"$ref": "#/components/schemas/dispute_payment_method_details_card"
}
],
"description": "Card specific dispute details.",
"nullable": true
},
"type": {
"description": "Payment method type.",
"enum": [
"card"
],
"type": "string"
}
},
"required": [
"type"
],
"title": "DisputePaymentMethodDetails",
"type": "object",
"x-expandableFields": [
"card"
]
},
"dispute_payment_method_details_card": {
"description": "",
"properties": {
"brand": {
"description": "Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.",
"maxLength": 5000,
"type": "string"
},
"network_reason_code": {
"description": "The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.",
"maxLength": 5000,
"nullable": true,
"type": "string"
}
},
"required": [
"brand"
],
"title": "DisputePaymentMethodDetailsCard",
"type": "object",
"x-expandableFields": []
},
"email_sent": {
"description": "",
"properties": {
Expand Down
67 changes: 66 additions & 1 deletion openapi/spec3.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -10099,6 +10099,9 @@
]
}
},
"payment_method_details": {
"$ref": "#/components/schemas/dispute_payment_method_details"
},
"reason": {
"description": "Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Read more about [dispute reasons](https://stripe.com/docs/disputes/categories).",
"maxLength": 5000,
Expand Down Expand Up @@ -10142,7 +10145,8 @@
"charge",
"evidence",
"evidence_details",
"payment_intent"
"payment_intent",
"payment_method_details"
],
"x-resourceId": "dispute",
"x-stripeOperations": [
Expand Down Expand Up @@ -10559,6 +10563,67 @@
"in_package": ""
}
},
"dispute_payment_method_details": {
"description": "",
"properties": {
"card": {
"anyOf": [
{
"$ref": "#/components/schemas/dispute_payment_method_details_card"
}
],
"description": "Card specific dispute details.",
"nullable": true
},
"type": {
"description": "Payment method type.",
"enum": [
"card"
],
"type": "string"
}
},
"required": [
"card",
"type"
],
"title": "DisputePaymentMethodDetails",
"type": "object",
"x-expandableFields": [
"card"
],
"x-stripeResource": {
"class_name": "DisputePaymentMethodDetails",
"in_package": ""
}
},
"dispute_payment_method_details_card": {
"description": "",
"properties": {
"brand": {
"description": "Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.",
"maxLength": 5000,
"type": "string"
},
"network_reason_code": {
"description": "The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.",
"maxLength": 5000,
"nullable": true,
"type": "string"
}
},
"required": [
"brand",
"network_reason_code"
],
"title": "DisputePaymentMethodDetailsCard",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "DisputePaymentMethodDetailsCard",
"in_package": ""
}
},
"email_sent": {
"description": "",
"properties": {
Expand Down
Loading

0 comments on commit ca4254f

Please sign in to comment.