pub struct ExternalTransaction {Show 15 fields
pub create_time: Option<DateTime<Utc>>,
pub current_pre_tax_amount: Option<Price>,
pub current_tax_amount: Option<Price>,
pub external_offer_details: Option<ExternalOfferDetails>,
pub external_transaction_id: Option<String>,
pub one_time_transaction: Option<OneTimeExternalTransaction>,
pub original_pre_tax_amount: Option<Price>,
pub original_tax_amount: Option<Price>,
pub package_name: Option<String>,
pub recurring_transaction: Option<RecurringExternalTransaction>,
pub test_purchase: Option<ExternalTransactionTestPurchase>,
pub transaction_program_code: Option<i32>,
pub transaction_state: Option<String>,
pub transaction_time: Option<DateTime<Utc>>,
pub user_tax_address: Option<ExternalTransactionAddress>,
}Expand description
The details of an external transaction.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- createexternaltransaction externaltransactions (request|response)
- getexternaltransaction externaltransactions (response)
- refundexternaltransaction externaltransactions (response)
Fields§
§create_time: Option<DateTime<Utc>>Output only. The time when this transaction was created. This is the time when Google was notified of the transaction.
current_pre_tax_amount: Option<Price>Output only. The current transaction amount before tax. This represents the current pre-tax amount including any refunds that may have been applied to this transaction.
current_tax_amount: Option<Price>Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction.
external_offer_details: Option<ExternalOfferDetails>Optional. Details necessary to accurately report external offers transactions.
external_transaction_id: Option<String>Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.
one_time_transaction: Option<OneTimeExternalTransaction>This is a one-time transaction and not part of a subscription.
original_pre_tax_amount: Option<Price>Required. The original transaction amount before taxes. This represents the pre-tax amount originally notified to Google before any refunds were applied.
original_tax_amount: Option<Price>Required. The original tax amount. This represents the tax amount originally notified to Google before any refunds were applied.
package_name: Option<String>Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, ‘com.some.app’).
recurring_transaction: Option<RecurringExternalTransaction>This transaction is part of a recurring series of transactions.
test_purchase: Option<ExternalTransactionTestPurchase>Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction.
transaction_program_code: Option<i32>Optional. The transaction program code, used to help determine service fee for eligible apps participating in partner programs. Developers participating in the Play Media Experience Program (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting alternative billing transactions. If you are an eligible developer, please contact your BDM for more information on how to set this field. Note: this field can not be used for external offers transactions.
transaction_state: Option<String>Output only. The current state of the transaction.
transaction_time: Option<DateTime<Utc>>Required. The time when the transaction was completed.
user_tax_address: Option<ExternalTransactionAddress>Required. User address for tax computation.
Trait Implementations§
Source§impl Clone for ExternalTransaction
impl Clone for ExternalTransaction
Source§fn clone(&self) -> ExternalTransaction
fn clone(&self) -> ExternalTransaction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more