PPCart constructor

const PPCart({
  1. String? cartId,
  2. String? intent,
  3. PPBillingType? billingType,
  4. String? paymentId,
  5. String? billingToken,
  6. List<PPItem>? items,
  7. CartAmounts? amounts,
  8. String? description,
  9. @JsonKey(name: 'cancelUrl', readValue: _PPCartHelper.readUrl) String? cancelUrl,
  10. @JsonKey(name: 'returnUrl', readValue: _PPCartHelper.readUrl) String? returnUrl,
  11. PPAmount? total,
  12. List<PPShippingMethods>? shippingMethods,
  13. PPCartAddress? shippingAddress,
  14. PPCartAddress? billingAddress,
  15. 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;