2021-07-22 06:05:07 +00:00
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <gui/view.h>
|
2021-08-20 19:56:43 +00:00
|
|
|
#include <gui/modules/widget.h>
|
2021-07-22 06:05:07 +00:00
|
|
|
|
|
|
|
typedef struct BankCard BankCard;
|
|
|
|
|
|
|
|
BankCard* bank_card_alloc();
|
|
|
|
|
|
|
|
void bank_card_free(BankCard* bank_card);
|
|
|
|
|
|
|
|
void bank_card_clear(BankCard* bank_card);
|
|
|
|
|
|
|
|
View* bank_card_get_view(BankCard* bank_card);
|
|
|
|
|
2021-08-20 19:56:43 +00:00
|
|
|
void bank_card_set_back_callback(BankCard* bank_card, ButtonCallback callback, void* context);
|
|
|
|
|
2021-07-22 06:05:07 +00:00
|
|
|
void bank_card_set_name(BankCard* bank_card, char* name);
|
|
|
|
|
2021-10-05 05:14:19 +00:00
|
|
|
void bank_card_set_number(BankCard* bank_card, uint8_t* number, uint8_t len);
|
2021-07-22 06:05:07 +00:00
|
|
|
|
2021-08-04 18:58:11 +00:00
|
|
|
void bank_card_set_exp_date(BankCard* bank_card, uint8_t mon, uint8_t year);
|
2021-07-22 06:05:07 +00:00
|
|
|
|
2021-11-08 21:55:06 +00:00
|
|
|
void bank_card_set_country_name(BankCard* bank_card, const char* country_name);
|
2021-08-20 19:56:43 +00:00
|
|
|
|
2021-11-08 21:55:06 +00:00
|
|
|
void bank_card_set_currency_name(BankCard* bank_card, const char* currency_name);
|