def create_receipt_card() -> Attachment: card = ReceiptCard( title='John Doe', facts=[ Fact(key="Order Number", value="1234"), Fact(key="Payment Method", value="VISA 5555-****") ], items=[ ReceiptItem( title="Data Transfer", price="$38.45", quantity="368", image=CardImage( url="https://github.com/amido/azure-vector-icons/raw/master/" "renders/traffic-manager.png")), ReceiptItem( title="App Service", price="$45.00", quantity="720", image=CardImage( url="https://github.com/amido/azure-vector-icons/raw/master/" "renders/cloud-service.png")) ], tax="$7.50", total="90.95", buttons=[ CardAction( type=ActionTypes.open_url, title="More Information", value= "https://azure.microsoft.com/en-us/pricing/details/bot-service/" ) ]) return CardFactory.receipt_card(card)
def create_receipt_card(self) -> Attachment: card = ReceiptCard() card.title = "Receipt Card - Sample" card.facts = [ Fact(key="Bill NO", value="2001"), Fact(key="Payment Mode", value="Cash") ] card.items = [ ReceiptItem( title="Bot Framework book", price="20Euro", quantity=1, image=CardImage( url="https://pypi.org/static/images/logo-small.6eef541e.svg" )), ReceiptItem( title="Python Book", price="100 Euro", quantity=5, image=CardImage( url="https://pypi.org/static/images/logo-small.6eef541e.svg" )) ] card.vat = "0.2" card.tax = "12%" card.total = "180" return CardFactory.receipt_card(card)
def create_receipt_card() -> Attachment: card = ReceiptCard( title="John Doe", facts=[ Fact( key="Order Number", value="1234", ), Fact( key="Payment Method", value="VISA 5555-****", ), ], items=[ ReceiptItem( title="Data Transfer", image=CardImage( url= "https://github.com/amido/azure-vector-icons/raw/master/renders/traffic-manager.png", ), price="$ 38.45", quantity="368", ), ReceiptItem( title="App Service", image=CardImage( url= "https://github.com/amido/azure-vector-icons/raw/master/renders/cloud-service.png", ), price="$ 45.00", quantity="720", ), ], total="$ 90.95", tax="$ 7.50", buttons=[ CardAction( type=ActionTypes.open_url, title="More information", image= "https://account.windowsazure.com/content/6.10.1.38-.8225.160809-1618/aux-pre/" "images/offer-icon-freetrial.png", value="https://azure.microsoft.com/en-us/pricing/", ) ], ) return CardFactory.receipt_card(card)