Commit 97f351f7 authored by Anne Lim's avatar Anne Lim Committed by Commit Bot

[AF] Add CloudTokenData to WalletMaskedCreditCard

Add CloudTokenData to WalletMaskedCreditCard.
This is a part of b/133228158.

Change-Id: I18a8d58d0ef42921fa47158c0fc519de8e88c60b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1647377
Commit-Queue: Anne Lim <annelim@google.com>
Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#667241}
parent 61a2363b
......@@ -83,6 +83,20 @@ message AutofillSpecifics {
// optional AutofillCreditCardSpecifics deprecated_credit_card = 6;
}
message CloudTokenData {
// Last 4-5 digits of the Cloud Primary Account Number (CPAN).
optional string suffix = 1;
// CPAN Month number 1-12.
optional int32 exp_month = 2;
// CPAN Four-digit year (e.g. 2017).
optional int32 exp_year = 3;
// URL of the card art to be displayed for CPAN.
optional string art_file_url = 4;
}
message WalletMaskedCreditCard {
enum WalletCardStatus {
VALID = 0;
......@@ -136,6 +150,9 @@ message WalletMaskedCreditCard {
// Issuing Bank name which is internationalized (e.g. "Chase", "工商银行")
optional string bank_name = 10;
// This field will be set if a cloud token is available for the instrument.
optional CloudTokenData cloud_token_data = 11;
}
// Different than an AutofillProfile because this represents some known address
......
......@@ -1034,6 +1034,13 @@ VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) {
VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics::Test& proto) {}
VISIT_PROTO_FIELDS(const sync_pb::CloudTokenData& proto) {
VISIT(suffix);
VISIT(exp_month);
VISIT(exp_year);
VISIT(art_file_url);
}
VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) {
VISIT(id);
VISIT_ENUM(status);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment