Skip to content

Commit

Permalink
docs: fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kuen committed Nov 22, 2024
1 parent 5b86587 commit d6fb021
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ Invoice::new(
dec!(10.20),
TaxItem::new(dec!(20), TaxCategory::S),
)
.with_description("Schraubenzieher")
.with_description("Schraubenzieher"),
)
.with_document_title("An invoice")
.with_language("de")
.with_payment_method(
PaymentMethod::payment_card(
PaymentMethodPaymentCard::new("123456*4321").with_card_holder_name("Name"),
PaymentMethodPaymentCard::new("123456*4321")
.unwrap()
.with_card_holder_name("Name"),
)
.with_comment("Comment"),
)
.to_xml_string()
.unwrap(); // returns "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice>...</Invoice>"
.to_xml(); // returns "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice>...</Invoice>"
```

## Development
Expand Down

0 comments on commit d6fb021

Please sign in to comment.