feat: Added missing info to IAP transaction and product structures (#31739)

This commit is contained in:
Kevin 2022-01-25 03:55:18 +11:00 committed by GitHub
parent d26d337bb8
commit 2fe5d0e1e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 323 additions and 6 deletions

View file

@ -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 {