feat: Added missing info to IAP transaction and product structures (#31739)
This commit is contained in:
parent
d26d337bb8
commit
2fe5d0e1e8
11 changed files with 323 additions and 6 deletions
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "base/callback.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
|
||||
#if defined(__OBJC__)
|
||||
@class InAppTransactionObserver;
|
||||
|
@ -21,9 +22,27 @@ namespace in_app_purchase {
|
|||
|
||||
// --------------------------- Structures ---------------------------
|
||||
|
||||
struct PaymentDiscount {
|
||||
std::string identifier;
|
||||
std::string keyIdentifier;
|
||||
std::string nonce;
|
||||
std::string signature;
|
||||
int timestamp;
|
||||
|
||||
PaymentDiscount();
|
||||
PaymentDiscount(const PaymentDiscount&);
|
||||
~PaymentDiscount();
|
||||
};
|
||||
|
||||
struct Payment {
|
||||
std::string productIdentifier = "";
|
||||
int quantity = 1;
|
||||
std::string applicationUsername;
|
||||
absl::optional<PaymentDiscount> paymentDiscount;
|
||||
|
||||
Payment();
|
||||
Payment(const Payment&);
|
||||
~Payment();
|
||||
};
|
||||
|
||||
struct Transaction {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue