PPCart constructor
const
PPCart({
- String? cartId,
- String? intent,
- PPBillingType? billingType,
- String? paymentId,
- String? billingToken,
- List<
PPItem> ? items, - CartAmounts? amounts,
- String? description,
- @JsonKey(name: 'cancelUrl', readValue: _PPCartHelper.readUrl) String? cancelUrl,
- @JsonKey(name: 'returnUrl', readValue: _PPCartHelper.readUrl) String? returnUrl,
- PPAmount? total,
- List<
PPShippingMethods> ? shippingMethods, - PPCartAddress? shippingAddress,
- PPCartAddress? billingAddress,
- PPAmount? totalAllowedOverCaptureAmount,
Implementation
const factory PPCart({
String? cartId,
String? intent,
PPBillingType? billingType,
String? paymentId,
String? billingToken,
List<PPItem>? items,
CartAmounts? amounts,
String? description,
@JsonKey(name: 'cancelUrl', readValue: _PPCartHelper.readUrl)
String? cancelUrl,
@JsonKey(name: 'returnUrl', readValue: _PPCartHelper.readUrl)
String? returnUrl,
PPAmount? total,
List<PPShippingMethods>? shippingMethods,
PPCartAddress? shippingAddress,
PPCartAddress? billingAddress,
PPAmount? totalAllowedOverCaptureAmount,
}) = _PPCart;