Skip to content

Commit

Permalink
Merge pull request #9 from MiSArch/optional-vat-number
Browse files Browse the repository at this point in the history
Optional VAT number
  • Loading branch information
legendofa authored May 17, 2024
2 parents 8192194 + 75a6ba4 commit 90f6bff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/event/model/order_dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ pub struct OrderDTO {
pub payment_information_id: Uuid,
/// Optional payment authorization information.
pub payment_authorization: Option<PaymentAuthorization>,
/// VAT number.
pub vat_number: String,
/// Optional VAT number.
pub vat_number: Option<String>,
}

impl TryFrom<(Order, Option<PaymentAuthorization>)> for OrderDTO {
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/model/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ pub struct Order {
pub compensatable_order_amount: u64,
/// UUID of payment information that the order should be processed with.
pub payment_information_id: Uuid,
/// VAT number.
/// Optional VAT number.
#[graphql(skip)]
pub vat_number: String,
pub vat_number: Option<String>,
}

#[ComplexObject]
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/mutation_input_structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub struct CreateOrderInput {
pub invoice_address_id: Uuid,
/// UUID of payment information that the order should be processed with.
pub payment_information_id: Uuid,
/// VAT number.
pub vat_number: String,
/// Optional VAT number.
pub vat_number: Option<String>,
}

#[derive(Debug, InputObject, PartialEq, Eq, Clone)]
Expand Down

0 comments on commit 90f6bff

Please sign in to comment.