Skip to content
Open
Show file tree
Hide file tree
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
21 changes: 7 additions & 14 deletions api-reference/v2/openapi_spec_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -14270,8 +14270,7 @@
],
"nullable": true
}
},
"additionalProperties": false
}
},
"CustomerResponse": {
"type": "object",
Expand Down Expand Up @@ -14468,8 +14467,7 @@
],
"nullable": true
}
},
"additionalProperties": false
}
},
"DDCData": {
"type": "object",
Expand Down Expand Up @@ -23437,8 +23435,7 @@
"storage_type": {
"$ref": "#/components/schemas/StorageType"
}
},
"additionalProperties": false
}
},
"PaymentMethodCreateData": {
"oneOf": [
Expand Down Expand Up @@ -24112,8 +24109,7 @@
"payment_method_subtype": {
"$ref": "#/components/schemas/PaymentMethodType"
}
},
"additionalProperties": false
}
},
"PaymentMethodIntentCreate": {
"type": "object",
Expand Down Expand Up @@ -24141,8 +24137,7 @@
"maxLength": 64,
"minLength": 32
}
},
"additionalProperties": false
}
},
"PaymentMethodIssuerCode": {
"type": "string",
Expand Down Expand Up @@ -24517,8 +24512,7 @@
"type": "boolean",
"description": "Trigger an Account Updater check for the stored payment method."
}
},
"additionalProperties": false
}
},
"PaymentMethodSessionConfirmRequest": {
"type": "object",
Expand Down Expand Up @@ -24989,8 +24983,7 @@
],
"nullable": true
}
},
"additionalProperties": false
}
},
"PaymentMethodUpdateData": {
"oneOf": [
Expand Down
2 changes: 0 additions & 2 deletions crates/api_models/src/customers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ impl CustomerRequest {
/// The customer details
#[cfg(feature = "v2")]
#[derive(Debug, Default, Clone, Deserialize, Serialize, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct CustomerRequest {
/// The merchant identifier for the customer object.
#[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
Expand Down Expand Up @@ -418,7 +417,6 @@ impl CustomerUpdateRequest {

#[cfg(feature = "v2")]
#[derive(Debug, Default, Clone, Deserialize, Serialize, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct CustomerUpdateRequest {
/// The customer's name
#[schema(max_length = 255, value_type = String, example = "Jon Test")]
Expand Down
7 changes: 0 additions & 7 deletions crates/api_models/src/payment_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ pub struct PaymentMethodCreate {

#[cfg(feature = "v2")]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct PaymentMethodRetrieveRequest {
#[serde(default)]
pub fetch_raw_detail: bool,
Expand All @@ -130,7 +129,6 @@ pub struct PaymentMethodRetrieveRequest {

#[cfg(feature = "v2")]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct PaymentMethodCreate {
/// The type of payment method use for the payment.
#[schema(value_type = PaymentMethod,example = "card")]
Expand Down Expand Up @@ -171,7 +169,6 @@ pub struct PaymentMethodCreate {

#[cfg(feature = "v2")]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct PaymentMethodIntentCreate {
/// You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
#[schema(value_type = Option<Object>,example = json!({ "city": "NY", "unit": "245" }))]
Expand All @@ -193,7 +190,6 @@ pub struct PaymentMethodIntentCreate {

#[cfg(feature = "v2")]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct PaymentMethodIntentConfirm {
/// The unique identifier of the customer.
#[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
Expand Down Expand Up @@ -573,7 +569,6 @@ pub struct PaymentMethodUpdate {

#[cfg(feature = "v2")]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct PaymentMethodUpdate {
/// Payment method details to be updated for the payment_method
pub payment_method_data: Option<PaymentMethodUpdateData>,
Expand All @@ -593,7 +588,6 @@ pub struct PaymentMethodUpdate {

#[cfg(feature = "v2")]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, PartialEq, Eq, ToSchema)]
#[serde(deny_unknown_fields)]
#[serde(rename_all = "snake_case")]
#[serde(rename = "payment_method_data")]
pub enum PaymentMethodUpdateData {
Expand Down Expand Up @@ -631,7 +625,6 @@ pub enum BankRedirectDetail {

#[cfg(feature = "v2")]
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
#[serde(deny_unknown_fields)]
#[serde(rename_all = "snake_case")]
#[serde(rename = "payment_method_data")]
pub enum PaymentMethodCreateData {
Expand Down
Loading