blob: bcf0ad62a2456dfb6b0b1a35d41f5672a111f9eb [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
import '../../in_app_purchase_android.dart';
/// Google Play specific parameter object for generating a purchase.
class GooglePlayPurchaseParam extends PurchaseParam {
/// Creates a new [GooglePlayPurchaseParam] object with the given data.
GooglePlayPurchaseParam({
required ProductDetails productDetails,
String? applicationUserName,
this.changeSubscriptionParam,
}) : super(
productDetails: productDetails,
applicationUserName: applicationUserName,
);
/// The 'changeSubscriptionParam' containing information for upgrading or
/// downgrading an existing subscription.
final ChangeSubscriptionParam? changeSubscriptionParam;
}