Click or drag to resize

ShoppingCartService Methods

The ShoppingCartService type exposes the following members.

Methods
 NameDescription
Public methodAddCourseRegistration Adds an course registration to the shopping cart.
Public methodAddDonation(DonationOption) Adds a donor application to the shopping cart from a DonationOption, taking all defaults. If you would like to customize your DonorApplication before adding it to the cart, use IDonationShoppingService to directly generate a DonorApplication instead.
Public methodAddDonation(DonorApplication) Adds a donor application to the shopping cart
Public methodAddEventRegistration Adds an event registration to the shopping cart.
Public methodAddEventRegistrationAddendum Adds an event registration addendum to the shopping cart.
Public methodAddEventRegistrationGroup Adds a group event registration to the shopping cart.
Public methodAddEventSponsorship Adds an event sponsorship to the shopping cart.
Public methodAddExhibitorApplication Adds an exhibitor application to the shopping cart
Public methodAddHlo Adds a single new HLO (High Level Object) to the NetFORUM server-side shopping cart. This method should only be used if no other methods in IShoppingCartService can accomplish the desired result.
Public methodAddMembershipNew(IProduct, Object) Adds a new membership to the shopping cart This overload is intended to be used with membership packages retrieved via the InventoryProductRepository
Public methodAddMembershipNew(MembershipPackage, Object) Adds a new membership to the shopping cart
Public methodAddMembershipNew(MembershipPurchaseOption, Object) Adds a new membership to the shopping cart
Public methodAddMembershipRenewal(Membership, MembershipPackage, Object) Adds a renewal membership to the shopping cart.
Public methodAddMembershipRenewal(Membership, MembershipPurchaseOption, Object) Adds a renewal membership to the shopping cart.
Public methodAddOpenInvoice Adds an open invoice to the shopping cart.
Public methodAddProduct(IProduct, Decimal) Adds a product to the shopping cart, allowing NetForum to select the appropriate price
Public methodAddProduct(IProduct, IPrice, Decimal) Adds a product to the shopping cart with a specific price, bypassing NetForum's price selection mechanism
Public methodAddShippingMethod Adds a shipping method to be used for shippable items within the shopping cart. Does not replace previously set shipping methods. To replace existing shipping methods, use SetShippingMethod(ShippingMethod).
Public methodAddSubscription(SubscriptionPurchaseOption) Adds a subscription to the shopping cart
Public methodAddSubscription(IProduct, IPrice) Adds a subscription to the shopping cart
Public methodApplyCreditsTowardsBalance Applies the provided credit balance towards the pending purchase, applying credits in as close to the order provided as possible. Any previously applied credits will be removed.
Public methodApplyDiscount(Discount) Applies discount to the shopping cart.
Public methodApplyDiscount(String) Applies discountCode to the shopping cart.
Public methodApplyDiscountProgramVouchers Applies as many of the cart's Bill-To customer's discount program vouchers to the cart as possible.
Public methodApplyDiscountProgramVouchers(InvoiceDetailCartItem, IEnumerableString) Applies discount program vouchers matching the supplied codes, to the specified item. Vouchers specified must meet a number of criteria, see remarks for more information.
Public methodApplySourceCode(InvoiceSourceCode) Applies a source code to the shopping cart
Public methodApplySourceCode(String) Applies promotionalCode to the shopping cart
Protected methodAttemptToIdentify Attempts to associate NetFORUM server-side copy of the cart with the id returned by this service's current identity provider.
Protected methodCacheCart Replaces the currently cached Cart object with a new instance of IShoppingCartState, presumably because an underlying call to Flashpoint returned to us a more up-to-date representation of the cart
Public methodCalculateAmountDueTodayObsolete.
Calculates the minimum payment amount required to check out, given the provided billing settings.
Public methodCalculateTotalsForInstallmentCheckout Calculates payment amounts related to checking out with installment-billing settings.
Public methodChangeItemQuantity Changes the quantity of an item in the shopping cart.
Public methodCheckout(CheckoutOptions) Places an order on a cart whose amount due today is $0, without providing payment information
Public methodCheckout(AchPayment, CheckoutOptions) Places an order
Public methodCheckout(CashPayment, CheckoutOptions) Places an order where "cash" was used for payment
Public methodCheckout(CheckPayment, CheckoutOptions) Places an order where a check was used for payment
Public methodCheckout(CreditCardPayment, CheckoutOptions) Places an order
Public methodCheckout(SavedCreditCard, CheckoutOptions) Places an order
Public methodCheckout(AchPayment, Decimal, CheckoutOptions) Places an order
Public methodCheckout(CreditCardPayment, Decimal, CheckoutOptions) Places an order, specifying a fixed payment amount
Public methodCheckout(SavedCreditCard, Decimal, CheckoutOptions) Places an order, specifying a fixed payment amount
Public methodClearCredits Removes all credits that have been applied towards the pending purchase.
Public methodClearDiscountProgramVouchers Clear discount program vouchers applied to all items in the shopping cart.
Public methodClearDiscountProgramVouchers(InvoiceDetailCartItem) Clear discount program vouchers applied to a single item in the shopping cart.
Public methodClearDiscounts Removes all discounts from the shopping cart
Public methodClearItems Removes all cart items from the cart.
Public methodGetAvailableCredits Returns information about the available credit that might be applicable to purchases made through this shopping cart. Credits are limited to those held by the current cart owner, which have an available balance, and are not "coupons".
Public methodGetPaymentMethods Uses NetFORUM's baseline auto-detection mechanism to determine which payment methods are valid to be used when checking out with the current shopping cart.
Public methodGetShippingMethods Returns the available shipping methods based on the current state of the cart.
Public methodIdentify Forces a re-evaluation of the owner of the shopping cart. The contents of the cart may change as a result of this operation depending on internal NetFORUM business rules.
Public methodNew Creates a new NetForum shopping cart, replacing any existing shopping cart.
Public methodRemoveDiscount(AdditionalInvoiceDetailCartItem) Removes a discount from the shopping cart
Public methodRemoveDiscount(IDiscountCartItem)Obsolete.
Removes a discount from the shopping cart
Public methodRemoveItem(InvoiceDetailCartItem) Removes an invoice detail from the shopping cart.
Public methodRemoveItem(IStandardCartItem) Removes all of the an cart item and (all of its sub-items) from the shopping cart.
Public methodSetBillingAddress Sets the billing address of the shopping cart.
Public methodSetBillingContact Sets the billing contact of the shopping cart, which maps to the inv_ind_cst_billing_key field in NetFORUM.
Public methodSetBillToCustomer(ICustomerIdentity) Sets the bill-to customer of the shopping cart. This will persist even if the cart main customer is changed.
Public methodSetBillToCustomer(NetForumId) Sets the bill-to customer of the shopping cart. This will persist even if the cart main customer is changed.
Public methodSetShippingAddress Sets the shipping address of the entire shopping cart.
Public methodSetShippingMethod Sets the shipping method to be used for shippable items within the shopping cart. Replaces any and all previously set shipping methods. To add an additional shipping method, without replacing existing ones, use AddShippingMethod(ShippingMethod).
Public methodStatic memberSetSystemWideDefaultCartCustomer(FuncNetForumId) Sets a customer used as the default identity of the Shopping Cart Customer for all instances of ShoppingCartService both current and future.
Public methodStatic memberSetSystemWideDefaultCartCustomer(NetForumId) Sets a customer used as the default identity of the Shopping Cart Customer for all instances of ShoppingCartService both current and future.
Public methodTryApplyDiscount Attempts to apply a discountCode to the shopping cart.
Public methodTryGetLastReceipt Get the receipt from the last successful checkout performed with this cart
Public methodUpdateCartItemValues(ICartItem, Object)Obsolete.
Public methodUpdateCartItemValues(InvoiceDetailCartItem, Object) Updates a single cart item (InvoiceDetail object) in the NetFORUM server-side shopping cart with new values. This method should only be used if no other methods in IShoppingCartService can accomplish the desired result.
Public methodUpdateCartValues Updates the NetFORUM server-side shopping cart (CentralizedOrderEntry object) with new values. This method should only be used if no other methods in IShoppingCartService can accomplish the desired result.
Public methodUpdateHloValues Updates a single HLO (High Level Object) in the NetFORUM server-side shopping cart with new values. This method should only be used if no other methods in IShoppingCartService can accomplish the desired result.
Public methodUpdateItemQuantityObsolete.
Updates the quantity of an invoice detail in the shopping cart.
Public methodUpdatePendingDonation Updates a single donation in the NetFORUM server-side shopping cart with new values.
Public methodUpdatePendingEventRegistration Updates a single pending event registration in the NetFORUM server-side shopping cart with new values.
Public methodUpdatePendingGroupRegistration Updates a single pending group registration in the NetFORUM server-side shopping cart with new values.
Public methodUpdatePendingMembership Updates a single pending membership in the NetFORUM server-side shopping cart with new values.
Top
See Also