blob: 55f4c38014b9facecf17dcd80f4891cb254515a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PAYMENTS_CORE_BASIC_CARD_RESPONSE_H_
#define COMPONENTS_PAYMENTS_CORE_BASIC_CARD_RESPONSE_H_
#include <memory>
#include "base/strings/string16.h"
#include "components/payments/core/payment_address.h"
namespace base {
class DictionaryValue;
}
namespace payments {
// Contains the response from the PaymentRequest API when a user accepts
// payment with a Basic Payment Card payment method.
struct BasicCardResponse {
public:
BasicCardResponse();
BasicCardResponse(const BasicCardResponse& other);
~BasicCardResponse();
bool operator==(const BasicCardResponse& other) const;
bool operator!=(const BasicCardResponse& other) const;
// Populates |value| with the properties of this BasicCardResponse.
std::unique_ptr<base::DictionaryValue> ToDictionaryValue() const;
// The cardholder's name as it appears on the card.
base::string16 cardholder_name;
// The primary account number (PAN) for the payment card.
base::string16 card_number;
// A two-digit string for the expiry month of the card in the range 01 to 12.
base::string16 expiry_month;
// A two-digit string for the expiry year of the card in the range 00 to 99.
base::string16 expiry_year;
// A three or four digit string for the security code of the card (sometimes
// known as the CVV, CVC, CVN, CVE or CID).
base::string16 card_security_code;
// The billing address information associated with the payment card.
PaymentAddress billing_address;
};
} // namespace payments
#endif // COMPONENTS_PAYMENTS_CORE_BASIC_CARD_RESPONSE_H_
|