fix: remove use of Box

This commit is contained in:
Zomatree
2026-01-28 02:52:45 +00:00
parent e738db98b9
commit 85b363823e
383 changed files with 1045 additions and 1057 deletions
+2 -23
View File
@@ -1,23 +1,2 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
.travis.yml
git_push.sh
-2
View File
@@ -1,5 +1,4 @@
.gitignore
.travis.yml
Cargo.toml
README.md
docs/Address.md
@@ -378,7 +377,6 @@ docs/WebhookEventTypesResponse.md
docs/WebhookEventsApiApi.md
docs/WebhookStatus.md
docs/WebhooksApiApi.md
git_push.sh
src/apis/balance_transfers_api_api.rs
src/apis/balances_api_api.rs
src/apis/capabilities_api_api.rs
+1
View File
@@ -5,6 +5,7 @@ authors = ["Zomatree <me@zomatree.live>"]
description = "Mollie.com API wrapper for Rust"
license = "MIT"
edition = "2021"
repository = "https://github.com/stoatchat/rust-mollie-sdk"
[dependencies]
serde = { version = "^1.0", features = ["derive"] }
+2
View File
@@ -0,0 +1,2 @@
regenerate:
openapi-generator generate -i api.yml -g rust -o . -c config.yaml
+1 -1
View File
@@ -489,5 +489,5 @@ cargo doc --open
## Author
Zomatree <me@zomatree.live>
+8
View File
@@ -0,0 +1,8 @@
additionalProperties:
avoidBoxedModels: true
library: "reqwest"
appDescription: "Mollie.com API wrapper for Rust"
licenseInfo: "MIT"
repositoryUrl: "https://github.com/stoatchat/rust-mollie-sdk"
infoEmail: "Zomatree <me@zomatree.live>"
packageName: mollie
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+5 -5
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -25,14 +25,14 @@ pub struct CaptureResponse {
pub description: Option<String>,
/// The amount captured. If no amount is provided, the full authorized amount is captured.
#[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
pub amount: Option<Box<models::AmountNullable>>,
pub amount: Option<models::AmountNullable>,
/// This optional field will contain the approximate amount that will be settled to your account, converted to the currency your account is settled in. Since the field contains an estimated amount during capture processing, it may change over time. To retrieve accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions) instead.
#[serde(rename = "settlementAmount", skip_serializing_if = "Option::is_none")]
pub settlement_amount: Option<Box<models::AmountNullable>>,
pub settlement_amount: Option<models::AmountNullable>,
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<models::CaptureStatus>,
#[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub metadata: Option<Option<Box<models::Metadata>>>,
pub metadata: Option<Option<models::Metadata>>,
#[serde(rename = "paymentId", skip_serializing_if = "Option::is_none")]
pub payment_id: Option<String>,
#[serde(rename = "shipmentId", skip_serializing_if = "Option::is_none")]
@@ -43,7 +43,7 @@ pub struct CaptureResponse {
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
pub _links: Option<Box<models::EntityCaptureLinks>>,
pub _links: Option<models::EntityCaptureLinks>,
}
impl CaptureResponse {
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+7 -7
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -25,10 +25,10 @@ pub struct CreatePaymentLinkRequest {
pub description: String,
/// The amount of the payment link. If no amount is provided initially, the customer will be prompted to enter an amount.
#[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
pub amount: Option<Box<models::AmountNullable>>,
pub amount: Option<models::AmountNullable>,
/// The minimum amount of the payment link. This property is only allowed when there is no amount provided. The customer will be prompted to enter a value greater than or equal to the minimum amount.
#[serde(rename = "minimumAmount", skip_serializing_if = "Option::is_none")]
pub minimum_amount: Option<Box<models::AmountNullable>>,
pub minimum_amount: Option<models::AmountNullable>,
/// Whether the payment link is archived. Customers will not be able to complete payments on archived payment links.
#[serde(rename = "archived", skip_serializing_if = "Option::is_none")]
pub archived: Option<bool>,
@@ -43,10 +43,10 @@ pub struct CreatePaymentLinkRequest {
pub lines: Option<Option<Vec<models::PaymentLineItem>>>,
/// The customer's billing address details. We advise to provide these details to improve fraud protection and conversion. Should include `email` or a valid postal address consisting of `streetAndNumber`, `postalCode`, `city` and `country`. Required for payment method `in3`, `klarna`, `billie` and `riverty`.
#[serde(rename = "billingAddress", skip_serializing_if = "Option::is_none")]
pub billing_address: Option<Box<models::PaymentAddress>>,
pub billing_address: Option<models::PaymentAddress>,
/// The customer's shipping address details. We advise to provide these details to improve fraud protection and conversion. Should include `email` or a valid postal address consisting of `streetAndNumber`, `postalCode`, `city` and `country`.
#[serde(rename = "shippingAddress", skip_serializing_if = "Option::is_none")]
pub shipping_address: Option<Box<models::PaymentAddress>>,
pub shipping_address: Option<models::PaymentAddress>,
/// The identifier referring to the [profile](get-profile) this entity belongs to. Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted in the creation request. For organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
#[serde(rename = "profileId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub profile_id: Option<Option<String>>,
@@ -66,7 +66,7 @@ pub struct CreatePaymentLinkRequest {
#[serde(rename = "allowedMethods", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub allowed_methods: Option<Option<Vec<String>>>,
#[serde(rename = "applicationFee", skip_serializing_if = "Option::is_none")]
pub application_fee: Option<Box<models::CreatePaymentLinkRequestApplicationFee>>,
pub application_fee: Option<models::CreatePaymentLinkRequestApplicationFee>,
/// If set to `first`, a payment mandate is established right after a payment is made by the customer. Defaults to `oneoff`, which is a regular payment link and will not establish a mandate after payment. The mandate ID can be retrieved by making a call to the [Payment Link Payments Endpoint](get-payment-link-payments).
#[serde(rename = "sequenceType", skip_serializing_if = "Option::is_none")]
pub sequence_type: Option<models::PaymentLinkSequenceType>,
@@ -77,7 +77,7 @@ pub struct CreatePaymentLinkRequest {
#[serde(rename = "testmode", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub testmode: Option<Option<bool>>,
#[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
pub _links: Option<Box<models::CreatePaymentLinkRequestLinks>>,
pub _links: Option<models::CreatePaymentLinkRequestLinks>,
}
impl CreatePaymentLinkRequest {
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,18 +15,18 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreatePaymentLinkRequestLinks {
#[serde(rename = "self")]
pub param_self: Box<models::Url>,
pub param_self: models::Url,
/// The URL your customer should visit to make the payment. This is where you should redirect the customer to.
#[serde(rename = "paymentLink")]
pub payment_link: Box<models::Url>,
pub payment_link: models::Url,
}
impl CreatePaymentLinkRequestLinks {
/// An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
pub fn new(param_self: models::Url, payment_link: models::Url) -> CreatePaymentLinkRequestLinks {
CreatePaymentLinkRequestLinks {
param_self: Box::new(param_self),
payment_link: Box::new(payment_link),
param_self,
payment_link,
}
}
}
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize};
pub struct CreatePaymentLinkRequestApplicationFee {
/// The fee that you wish to charge. Be careful to leave enough space for Mollie's own fees to be deducted as well. For example, you cannot charge a €0.99 fee on a €1.00 payment.
#[serde(rename = "amount")]
pub amount: Box<models::Amount>,
pub amount: models::Amount,
/// The description of the application fee. This will appear on settlement reports towards both you and the connected merchant.
#[serde(rename = "description")]
pub description: String,
@@ -26,7 +26,7 @@ impl CreatePaymentLinkRequestApplicationFee {
/// With Mollie Connect you can charge fees on payment links that your app is processing on behalf of other Mollie merchants. If you use OAuth to create payment links on a connected merchant's account, you can charge a fee using this `applicationFee` parameter. If a payment on the payment link succeeds, the fee will be deducted from the merchant's balance and sent to your own account balance.
pub fn new(amount: models::Amount, description: String) -> CreatePaymentLinkRequestApplicationFee {
CreatePaymentLinkRequestApplicationFee {
amount: Box::new(amount),
amount,
description,
}
}
+3 -3
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -42,7 +42,7 @@ pub struct CreateWebhook {
#[serde(rename = "webhookSecret")]
pub webhook_secret: String,
#[serde(rename = "_links")]
pub _links: Box<models::EntityWebhookLinks>,
pub _links: models::EntityWebhookLinks,
}
impl CreateWebhook {
@@ -58,7 +58,7 @@ impl CreateWebhook {
status,
mode,
webhook_secret,
_links: Box::new(_links),
_links,
}
}
}
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+3 -3
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -30,7 +30,7 @@ pub struct CustomerResponse {
#[serde(rename = "locale", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub locale: Option<Option<models::LocaleResponse>>,
#[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub metadata: Option<Option<Box<models::Metadata>>>,
pub metadata: Option<Option<models::Metadata>>,
/// The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
@@ -38,7 +38,7 @@ pub struct CustomerResponse {
#[serde(rename = "testmode", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub testmode: Option<Option<bool>>,
#[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
pub _links: Option<Box<models::EntityCustomerLinks>>,
pub _links: Option<models::EntityCustomerLinks>,
}
impl CustomerResponse {
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -14,8 +14,8 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum EnableMethodIssuer200Response {
Giftcard(Box<models::Giftcard>),
Voucher(Box<models::Voucher>),
Giftcard(models::Giftcard),
Voucher(models::Voucher),
}
impl Default for EnableMethodIssuer200Response {
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+6 -6
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -35,20 +35,20 @@ pub struct EntityBalance {
pub transfer_frequency: Option<models::BalanceTransferFrequency>,
/// The minimum amount configured for scheduled automatic settlements. As soon as the amount on the balance exceeds this threshold, the complete balance will be paid out to the transfer destination according to the configured frequency.
#[serde(rename = "transferThreshold", skip_serializing_if = "Option::is_none")]
pub transfer_threshold: Option<Box<models::Amount>>,
pub transfer_threshold: Option<models::Amount>,
/// The transfer reference set to be included in all the transfers for this balance.
#[serde(rename = "transferReference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub transfer_reference: Option<Option<String>>,
#[serde(rename = "transferDestination", skip_serializing_if = "Option::is_none")]
pub transfer_destination: Option<Box<models::EntityBalanceTransferDestination>>,
pub transfer_destination: Option<models::EntityBalanceTransferDestination>,
/// The amount directly available on the balance, e.g. `{\"currency\":\"EUR\", \"value\":\"100.00\"}`.
#[serde(rename = "availableAmount", skip_serializing_if = "Option::is_none")]
pub available_amount: Option<Box<models::Amount>>,
pub available_amount: Option<models::Amount>,
/// The total amount that is queued to be transferred to your balance. For example, a credit card payment can take a few days to clear.
#[serde(rename = "pendingAmount", skip_serializing_if = "Option::is_none")]
pub pending_amount: Option<Box<models::Amount>>,
pub pending_amount: Option<models::Amount>,
#[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
pub _links: Option<Box<models::EntityBalanceLinks>>,
pub _links: Option<models::EntityBalanceLinks>,
}
impl EntityBalance {
+3 -3
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,9 +15,9 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityBalanceLinks {
#[serde(rename = "self", skip_serializing_if = "Option::is_none")]
pub param_self: Option<Box<models::Url>>,
pub param_self: Option<models::Url>,
#[serde(rename = "documentation", skip_serializing_if = "Option::is_none")]
pub documentation: Option<Box<models::Url>>,
pub documentation: Option<models::Url>,
}
impl EntityBalanceLinks {
+3 -3
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -30,9 +30,9 @@ pub struct EntityBalanceReport {
#[serde(rename = "grouping", skip_serializing_if = "Option::is_none")]
pub grouping: Option<models::BalanceReportGrouping>,
#[serde(rename = "totals", skip_serializing_if = "Option::is_none")]
pub totals: Option<Box<models::EntityBalanceReportTotals>>,
pub totals: Option<models::EntityBalanceReportTotals>,
#[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
pub _links: Option<Box<models::EntityBalanceLinks>>,
pub _links: Option<models::EntityBalanceLinks>,
}
impl EntityBalanceReport {
+13 -13
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,29 +15,29 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityBalanceReportTotals {
#[serde(rename = "pendingBalance", skip_serializing_if = "Option::is_none")]
pub pending_balance: Option<Box<models::EntityBalanceReportTotalsPendingBalance>>,
pub pending_balance: Option<models::EntityBalanceReportTotalsPendingBalance>,
#[serde(rename = "availableBalance", skip_serializing_if = "Option::is_none")]
pub available_balance: Option<Box<models::EntityBalanceReportTotalsAvailableBalance>>,
pub available_balance: Option<models::EntityBalanceReportTotalsAvailableBalance>,
#[serde(rename = "open", skip_serializing_if = "Option::is_none")]
pub open: Option<Box<models::EntityBalanceReportTotalsOpen>>,
pub open: Option<models::EntityBalanceReportTotalsOpen>,
#[serde(rename = "close", skip_serializing_if = "Option::is_none")]
pub close: Option<Box<models::EntityBalanceReportTotalsOpen>>,
pub close: Option<models::EntityBalanceReportTotalsOpen>,
#[serde(rename = "payments", skip_serializing_if = "Option::is_none")]
pub payments: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub payments: Option<models::EntityBalanceReportTotalsPayments>,
#[serde(rename = "refunds", skip_serializing_if = "Option::is_none")]
pub refunds: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub refunds: Option<models::EntityBalanceReportTotalsPayments>,
#[serde(rename = "chargebacks", skip_serializing_if = "Option::is_none")]
pub chargebacks: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub chargebacks: Option<models::EntityBalanceReportTotalsPayments>,
#[serde(rename = "capital", skip_serializing_if = "Option::is_none")]
pub capital: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub capital: Option<models::EntityBalanceReportTotalsPayments>,
#[serde(rename = "transfers", skip_serializing_if = "Option::is_none")]
pub transfers: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub transfers: Option<models::EntityBalanceReportTotalsPayments>,
#[serde(rename = "fee-prepayments", skip_serializing_if = "Option::is_none")]
pub fee_prepayments: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub fee_prepayments: Option<models::EntityBalanceReportTotalsPayments>,
#[serde(rename = "corrections", skip_serializing_if = "Option::is_none")]
pub corrections: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub corrections: Option<models::EntityBalanceReportTotalsPayments>,
#[serde(rename = "topups", skip_serializing_if = "Option::is_none")]
pub topups: Option<Box<models::EntityBalanceReportTotalsPayments>>,
pub topups: Option<models::EntityBalanceReportTotalsPayments>,
}
impl EntityBalanceReportTotals {
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,13 +15,13 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityBalanceReportTotalsAvailableBalance {
#[serde(rename = "open", skip_serializing_if = "Option::is_none")]
pub open: Option<Box<models::SubGroup>>,
pub open: Option<models::SubGroup>,
#[serde(rename = "movedFromPending", skip_serializing_if = "Option::is_none")]
pub moved_from_pending: Option<Box<models::SubGroup>>,
pub moved_from_pending: Option<models::SubGroup>,
#[serde(rename = "immediatelyAvailable", skip_serializing_if = "Option::is_none")]
pub immediately_available: Option<Box<models::SubGroup>>,
pub immediately_available: Option<models::SubGroup>,
#[serde(rename = "close", skip_serializing_if = "Option::is_none")]
pub close: Option<Box<models::SubGroup>>,
pub close: Option<models::SubGroup>,
}
impl EntityBalanceReportTotalsAvailableBalance {
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,9 +15,9 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityBalanceReportTotalsOpen {
#[serde(rename = "pending", skip_serializing_if = "Option::is_none")]
pub pending: Option<Box<models::SubGroup>>,
pub pending: Option<models::SubGroup>,
#[serde(rename = "available", skip_serializing_if = "Option::is_none")]
pub available: Option<Box<models::SubGroup>>,
pub available: Option<models::SubGroup>,
}
impl EntityBalanceReportTotalsOpen {
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,11 +15,11 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityBalanceReportTotalsPayments {
#[serde(rename = "pending", skip_serializing_if = "Option::is_none")]
pub pending: Option<Box<models::SubGroup>>,
pub pending: Option<models::SubGroup>,
#[serde(rename = "movedToAvailable", skip_serializing_if = "Option::is_none")]
pub moved_to_available: Option<Box<models::SubGroup>>,
pub moved_to_available: Option<models::SubGroup>,
#[serde(rename = "immediatelyAvailable", skip_serializing_if = "Option::is_none")]
pub immediately_available: Option<Box<models::SubGroup>>,
pub immediately_available: Option<models::SubGroup>,
}
impl EntityBalanceReportTotalsPayments {
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,13 +15,13 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityBalanceReportTotalsPendingBalance {
#[serde(rename = "open", skip_serializing_if = "Option::is_none")]
pub open: Option<Box<models::SubGroup>>,
pub open: Option<models::SubGroup>,
#[serde(rename = "close", skip_serializing_if = "Option::is_none")]
pub close: Option<Box<models::SubGroup>>,
pub close: Option<models::SubGroup>,
#[serde(rename = "pending", skip_serializing_if = "Option::is_none")]
pub pending: Option<Box<models::SubGroup>>,
pub pending: Option<models::SubGroup>,
#[serde(rename = "movedToAvailable", skip_serializing_if = "Option::is_none")]
pub moved_to_available: Option<Box<models::SubGroup>>,
pub moved_to_available: Option<models::SubGroup>,
}
impl EntityBalanceReportTotalsPendingBalance {
+5 -5
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -23,15 +23,15 @@ pub struct EntityBalanceTransaction {
pub r#type: Option<models::BalanceTransactionType>,
/// The final amount that was moved to or from the balance. If the transaction moves funds away from the balance, for example when it concerns a refund, the amount will be negative.
#[serde(rename = "resultAmount", skip_serializing_if = "Option::is_none")]
pub result_amount: Option<Box<models::Amount>>,
pub result_amount: Option<models::Amount>,
/// The amount that was to be moved to or from the balance, excluding deductions. If the transaction moves funds away from the balance, for example when it concerns a refund, the amount will be negative.
#[serde(rename = "initialAmount", skip_serializing_if = "Option::is_none")]
pub initial_amount: Option<Box<models::Amount>>,
pub initial_amount: Option<models::Amount>,
/// The total amount of deductions withheld from the movement. For example, if we charge a €0.29 fee on a €10 payment, the deductions amount will be `{\"currency\":\"EUR\", \"value\":\"-0.29\"}`. When moving funds to a balance, we always round the deduction to a 'real' amount. Any differences between these real-time rounded amounts and the final invoice will be compensated when the invoice is generated.
#[serde(rename = "deductions", skip_serializing_if = "Option::is_none")]
pub deductions: Option<Box<models::AmountNullable>>,
pub deductions: Option<models::AmountNullable>,
#[serde(rename = "context", skip_serializing_if = "Option::is_none")]
pub context: Option<Box<models::EntityBalanceTransactionContext>>,
pub context: Option<models::EntityBalanceTransactionContext>,
/// The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -15,67 +15,67 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityBalanceTransactionContext {
#[serde(rename = "payment", skip_serializing_if = "Option::is_none")]
pub payment: Option<Box<models::EntityBalanceTransactionContextPayment>>,
pub payment: Option<models::EntityBalanceTransactionContextPayment>,
#[serde(rename = "capture", skip_serializing_if = "Option::is_none")]
pub capture: Option<Box<models::EntityBalanceTransactionContextCapture>>,
pub capture: Option<models::EntityBalanceTransactionContextCapture>,
#[serde(rename = "capture-commision", skip_serializing_if = "Option::is_none")]
pub capture_commision: Option<Box<models::EntityBalanceTransactionContextCapture>>,
pub capture_commision: Option<models::EntityBalanceTransactionContextCapture>,
#[serde(rename = "capture-rolling-reserve-release", skip_serializing_if = "Option::is_none")]
pub capture_rolling_reserve_release: Option<Box<models::EntityBalanceTransactionContextCapture>>,
pub capture_rolling_reserve_release: Option<models::EntityBalanceTransactionContextCapture>,
#[serde(rename = "unauthorized-direct-debit", skip_serializing_if = "Option::is_none")]
pub unauthorized_direct_debit: Option<Box<models::EntityBalanceTransactionContextPayment>>,
pub unauthorized_direct_debit: Option<models::EntityBalanceTransactionContextPayment>,
#[serde(rename = "failed-payment", skip_serializing_if = "Option::is_none")]
pub failed_payment: Option<Box<models::EntityBalanceTransactionContextPayment>>,
pub failed_payment: Option<models::EntityBalanceTransactionContextPayment>,
#[serde(rename = "refund", skip_serializing_if = "Option::is_none")]
pub refund: Option<Box<models::EntityBalanceTransactionContextRefund>>,
pub refund: Option<models::EntityBalanceTransactionContextRefund>,
#[serde(rename = "refund-compensation", skip_serializing_if = "Option::is_none")]
pub refund_compensation: Option<Box<models::EntityBalanceTransactionContextRefund>>,
pub refund_compensation: Option<models::EntityBalanceTransactionContextRefund>,
#[serde(rename = "returned-refund", skip_serializing_if = "Option::is_none")]
pub returned_refund: Option<Box<models::EntityBalanceTransactionContextRefund>>,
pub returned_refund: Option<models::EntityBalanceTransactionContextRefund>,
#[serde(rename = "returned-refund-compensation", skip_serializing_if = "Option::is_none")]
pub returned_refund_compensation: Option<Box<models::EntityBalanceTransactionContextRefund>>,
pub returned_refund_compensation: Option<models::EntityBalanceTransactionContextRefund>,
#[serde(rename = "chargeback", skip_serializing_if = "Option::is_none")]
pub chargeback: Option<Box<models::EntityBalanceTransactionContextChargeback>>,
pub chargeback: Option<models::EntityBalanceTransactionContextChargeback>,
#[serde(rename = "chargeback-reversal", skip_serializing_if = "Option::is_none")]
pub chargeback_reversal: Option<Box<models::EntityBalanceTransactionContextChargeback>>,
pub chargeback_reversal: Option<models::EntityBalanceTransactionContextChargeback>,
#[serde(rename = "chargeback-compensation", skip_serializing_if = "Option::is_none")]
pub chargeback_compensation: Option<Box<models::EntityBalanceTransactionContextChargeback>>,
pub chargeback_compensation: Option<models::EntityBalanceTransactionContextChargeback>,
#[serde(rename = "reversed-chargeback-compensation", skip_serializing_if = "Option::is_none")]
pub reversed_chargeback_compensation: Option<Box<models::EntityBalanceTransactionContextChargeback>>,
pub reversed_chargeback_compensation: Option<models::EntityBalanceTransactionContextChargeback>,
#[serde(rename = "outgoing-transfer", skip_serializing_if = "Option::is_none")]
pub outgoing_transfer: Option<Box<models::EntityBalanceTransactionContextOutgoingTransfer>>,
pub outgoing_transfer: Option<models::EntityBalanceTransactionContextOutgoingTransfer>,
#[serde(rename = "canceled-outgoing-transfer", skip_serializing_if = "Option::is_none")]
pub canceled_outgoing_transfer: Option<Box<models::EntityBalanceTransactionContextOutgoingTransfer>>,
pub canceled_outgoing_transfer: Option<models::EntityBalanceTransactionContextOutgoingTransfer>,
#[serde(rename = "returned-transfer", skip_serializing_if = "Option::is_none")]
pub returned_transfer: Option<Box<models::EntityBalanceTransactionContextReturnedTransfer>>,
pub returned_transfer: Option<models::EntityBalanceTransactionContextReturnedTransfer>,
#[serde(rename = "invoice-compensation", skip_serializing_if = "Option::is_none")]
pub invoice_compensation: Option<Box<models::EntityBalanceTransactionContextInvoiceCompensation>>,
pub invoice_compensation: Option<models::EntityBalanceTransactionContextInvoiceCompensation>,
#[serde(rename = "application-fee", skip_serializing_if = "Option::is_none")]
pub application_fee: Option<Box<models::EntityBalanceTransactionContextApplicationFee>>,
pub application_fee: Option<models::EntityBalanceTransactionContextApplicationFee>,
#[serde(rename = "split-payment", skip_serializing_if = "Option::is_none")]
pub split_payment: Option<Box<models::EntityBalanceTransactionContextSplitPayment>>,
pub split_payment: Option<models::EntityBalanceTransactionContextSplitPayment>,
#[serde(rename = "platform-payment-refund", skip_serializing_if = "Option::is_none")]
pub platform_payment_refund: Option<Box<models::EntityBalanceTransactionContextRefund>>,
pub platform_payment_refund: Option<models::EntityBalanceTransactionContextRefund>,
#[serde(rename = "returned-platform-payment-refund", skip_serializing_if = "Option::is_none")]
pub returned_platform_payment_refund: Option<Box<models::EntityBalanceTransactionContextRefund>>,
pub returned_platform_payment_refund: Option<models::EntityBalanceTransactionContextRefund>,
#[serde(rename = "platform-payment-chargeback", skip_serializing_if = "Option::is_none")]
pub platform_payment_chargeback: Option<Box<models::EntityBalanceTransactionContextChargeback>>,
pub platform_payment_chargeback: Option<models::EntityBalanceTransactionContextChargeback>,
#[serde(rename = "reversed-platform-payment-chargeback", skip_serializing_if = "Option::is_none")]
pub reversed_platform_payment_chargeback: Option<Box<models::EntityBalanceTransactionContextChargeback>>,
pub reversed_platform_payment_chargeback: Option<models::EntityBalanceTransactionContextChargeback>,
#[serde(rename = "payment-commission", skip_serializing_if = "Option::is_none")]
pub payment_commission: Option<Box<models::EntityBalanceTransactionContextPaymentCommission>>,
pub payment_commission: Option<models::EntityBalanceTransactionContextPaymentCommission>,
#[serde(rename = "reimbursement-fee", skip_serializing_if = "Option::is_none")]
pub reimbursement_fee: Option<Box<models::EntityBalanceTransactionContextPayment>>,
pub reimbursement_fee: Option<models::EntityBalanceTransactionContextPayment>,
#[serde(rename = "failed-payment-fee", skip_serializing_if = "Option::is_none")]
pub failed_payment_fee: Option<Box<models::EntityBalanceTransactionContextPayment>>,
pub failed_payment_fee: Option<models::EntityBalanceTransactionContextPayment>,
#[serde(rename = "payment-fee", skip_serializing_if = "Option::is_none")]
pub payment_fee: Option<Box<models::EntityBalanceTransactionContextPayment>>,
pub payment_fee: Option<models::EntityBalanceTransactionContextPayment>,
#[serde(rename = "managed-fee", skip_serializing_if = "Option::is_none")]
pub managed_fee: Option<Box<models::EntityBalanceTransactionContextManagedFee>>,
pub managed_fee: Option<models::EntityBalanceTransactionContextManagedFee>,
#[serde(rename = "returned-managed-fee", skip_serializing_if = "Option::is_none")]
pub returned_managed_fee: Option<Box<models::EntityBalanceTransactionContextManagedFee>>,
pub returned_managed_fee: Option<models::EntityBalanceTransactionContextManagedFee>,
#[serde(rename = "post-payment-split-payment", skip_serializing_if = "Option::is_none")]
pub post_payment_split_payment: Option<Box<models::EntityBalanceTransactionContextPostPaymentSplitPayment>>,
pub post_payment_split_payment: Option<models::EntityBalanceTransactionContextPostPaymentSplitPayment>,
}
impl EntityBalanceTransactionContext {
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+9 -9
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -20,18 +20,18 @@ pub struct EntityBalanceTransfer {
pub id: String,
/// The amount to be transferred, e.g. `{\"currency\":\"EUR\", \"value\":\"1000.00\"}` if you would like to transfer €1000.00.
#[serde(rename = "amount")]
pub amount: Box<models::Amount>,
pub amount: models::Amount,
#[serde(rename = "source")]
pub source: Box<models::EntityBalanceTransferParty>,
pub source: models::EntityBalanceTransferParty,
#[serde(rename = "destination")]
pub destination: Box<models::EntityBalanceTransferParty>,
pub destination: models::EntityBalanceTransferParty,
/// The transfer description for initiating party.
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "status")]
pub status: models::BalanceTransferStatus,
#[serde(rename = "statusReason")]
pub status_reason: Box<models::EntityBalanceTransferStatusReason>,
pub status_reason: models::EntityBalanceTransferStatusReason,
#[serde(rename = "category", skip_serializing_if = "Option::is_none")]
pub category: Option<models::BalanceTransferCategory>,
/// The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
@@ -52,12 +52,12 @@ impl EntityBalanceTransfer {
EntityBalanceTransfer {
resource,
id,
amount: Box::new(amount),
source: Box::new(source),
destination: Box::new(destination),
amount,
source,
destination,
description,
status,
status_reason: Box::new(status_reason),
status_reason,
category: None,
created_at,
executed_at: None,
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -20,18 +20,18 @@ pub struct EntityBalanceTransferResponse {
pub id: String,
/// The amount to be transferred, e.g. `{\"currency\":\"EUR\", \"value\":\"1000.00\"}` if you would like to transfer €1000.00.
#[serde(rename = "amount")]
pub amount: Box<models::Amount>,
pub amount: models::Amount,
#[serde(rename = "source")]
pub source: Box<models::EntityBalanceTransferPartyResponse>,
pub source: models::EntityBalanceTransferPartyResponse,
#[serde(rename = "destination")]
pub destination: Box<models::EntityBalanceTransferPartyResponse>,
pub destination: models::EntityBalanceTransferPartyResponse,
/// The transfer description for initiating party.
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "status")]
pub status: models::BalanceTransferStatus,
#[serde(rename = "statusReason")]
pub status_reason: Box<models::EntityBalanceTransferResponseStatusReason>,
pub status_reason: models::EntityBalanceTransferResponseStatusReason,
#[serde(rename = "category", skip_serializing_if = "Option::is_none")]
pub category: Option<models::BalanceTransferCategoryResponse>,
/// The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
@@ -52,12 +52,12 @@ impl EntityBalanceTransferResponse {
EntityBalanceTransferResponse {
resource,
id,
amount: Box::new(amount),
source: Box::new(source),
destination: Box::new(destination),
amount,
source,
destination,
description,
status,
status_reason: Box::new(status_reason),
status_reason,
category: None,
created_at,
executed_at: None,
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/
+1 -1
View File
@@ -4,7 +4,7 @@
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Contact: Zomatree <me@zomatree.live>
* Generated by: https://openapi-generator.tech
*/

Some files were not shown because too many files have changed in this diff Show More