Package | Description |
---|---|
com.scvngr.levelup.core.model | |
com.scvngr.levelup.core.model.factory.json | |
com.scvngr.levelup.core.model.paymentmethod | |
com.scvngr.levelup.core.model.util |
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MonetaryValue> |
MonetaryValue.CREATOR
Implements the
Parcelable interface. |
Modifier and Type | Method and Description |
---|---|
MonetaryValue |
Order.getBalanceAmount()
The total spent after credit was applied (i.e.: how much was charged to the user's card).
|
MonetaryValue |
Order.getContributionAmount()
The amount contributed to the user's chosen contribution target.
|
MonetaryValue |
Order.getCreditAppliedAmount()
The sum of all credit used to fund the order.
|
MonetaryValue |
Order.getCreditEarnedAmount()
Credit earned by this purchase (e.g.
|
MonetaryValue |
User.getGlobalCredit()
The amount of global credit the user has.
|
MonetaryValue |
PaymentOptionsSummary.getMaxCreditLimitAmount()
The maximum amount that will be charged at an end of month bundle.
|
MonetaryValue |
LocationCredit.getMerchantFundedCreditValue()
The amount of credit the merchant has credited.
|
MonetaryValue |
Loyalty.getPotentialCredit()
The potential credit the user can spend at the merchant.
|
MonetaryValue |
PaymentOptionsSummary.getPreloadReloadThresholdAmount()
Amount of money in account until a pre-load reload occurs.
|
MonetaryValue |
PaymentOptionsSummary.getPreloadValueAmount()
How much is loaded during a pre-load.
|
MonetaryValue |
PaymentPreference.getPreloadValueAmount()
The amount to be pre-loaded if the user wants pre-loading.
|
MonetaryValue |
Loyalty.getSavings()
The total savings the user has had at the merchant.
|
MonetaryValue |
Loyalty.getShouldSpend()
The amount any user must spend to unlock loyalty at the merchant.
|
MonetaryValue |
Order.getSpendAmount()
The amount of the transaction before tip.
|
MonetaryValue |
Loyalty.getSpendRemaining()
The amount the user still has to spend before unlocking loyalty.
|
MonetaryValue |
Order.getTipAmount()
The amount the user tipped.
|
MonetaryValue |
Order.getTotalAmount()
Total amount (spend+tip) before any credit was applied.
|
MonetaryValue |
LocationCredit.getTotalAmountValue()
The total amount of credit.
|
MonetaryValue |
User.getTotalSavings()
The total amount the user has saved by using LevelUp.
|
MonetaryValue |
Loyalty.getTotalVolume()
The total amount the user has spent at the merchant.
|
MonetaryValue |
Campaign.getValue()
The amount of credit the user would get for claiming this campaign.
|
MonetaryValue |
Claim.getValue()
The amount that this
Claim is worth. |
MonetaryValue |
GiftCardValueOrder.getValueAmount()
The gift card amount.
|
MonetaryValue |
Claim.getValueRemaining()
The amount that this
Claim still has remaining after
all redemptions. |
MonetaryValue |
Loyalty.getWillEarn()
The amount the user will earn once they unlock the loyalty reward.
|
Modifier and Type | Method and Description |
---|---|
Order.OrderBuilder |
Order.OrderBuilder.balanceAmount(MonetaryValue balanceAmount) |
Order.OrderBuilder |
Order.OrderBuilder.contributionAmount(MonetaryValue contributionAmount) |
Order.OrderBuilder |
Order.OrderBuilder.creditAppliedAmount(MonetaryValue creditAppliedAmount) |
Order.OrderBuilder |
Order.OrderBuilder.creditEarnedAmount(MonetaryValue creditEarnedAmount) |
User.UserBuilder |
User.UserBuilder.globalCredit(MonetaryValue globalCredit) |
Order.OrderBuilder |
Order.OrderBuilder.spendAmount(MonetaryValue spendAmount) |
Order.OrderBuilder |
Order.OrderBuilder.tipAmount(MonetaryValue tipAmount) |
Order.OrderBuilder |
Order.OrderBuilder.totalAmount(MonetaryValue totalAmount) |
User.UserBuilder |
User.UserBuilder.totalSavings(MonetaryValue totalSavings) |
Campaign.CampaignBuilder |
Campaign.CampaignBuilder.value(MonetaryValue value) |
Constructor and Description |
---|
Campaign(boolean appliesToAllMerchants,
String confirmationHtml,
long id,
String messageForEmailBody,
String messageForEmailSubject,
String messageForTwitter,
String messageForFacebook,
String name,
String offerHtml,
String type,
boolean shareable,
String shareUrlEmail,
String shareUrlFacebook,
String shareUrlTwitter,
String sponsor,
MonetaryValue value) |
Claim(long campaignId,
String code,
long id,
MonetaryValue value,
MonetaryValue valueRemaining) |
GiftCardValueOrder(long merchantId,
String recipientEmail,
String recipientMessage,
String recipientName,
MonetaryValue valueAmount) |
LocationCredit(MonetaryValue merchantFundedCreditValue,
MonetaryValue totalAmountValue) |
Loyalty(boolean isLoyaltyEnabled,
Long merchantWebServiceId,
int ordersCount,
MonetaryValue potentialCredit,
int progressPercentage,
MonetaryValue savings,
MonetaryValue shouldSpend,
MonetaryValue spendRemaining,
MonetaryValue totalVolume,
MonetaryValue willEarn) |
Order(MonetaryValue balanceAmount,
String bundleClosedAt,
String bundleDescriptor,
MonetaryValue contributionAmount,
String contributionTargetName,
String createdAt,
MonetaryValue creditAppliedAmount,
MonetaryValue creditEarnedAmount,
String locationExtendedAddress,
String locationLocality,
String locationName,
String locationPostalCode,
String locationRegion,
String locationStreetAddress,
Long locationWebServiceId,
String merchantName,
Long merchantWebServiceId,
String refundedAt,
MonetaryValue spendAmount,
MonetaryValue tipAmount,
MonetaryValue totalAmount,
String transactedAt,
String uuid) |
PaymentOptionsSummary(MonetaryValue maxCreditLimitAmount,
String monthlyBillingDay,
List<String> options,
MonetaryValue preloadReloadThresholdAmount,
MonetaryValue preloadValueAmount) |
PaymentPreference(boolean preload,
MonetaryValue preloadValueAmount) |
User(String bornAt,
boolean isConnectedToFacebook,
Map<String,String> customAttributes,
boolean isDebitCardOnly,
String email,
String firstName,
User.Gender gender,
MonetaryValue globalCredit,
Long id,
String lastName,
int merchantsVisitedCount,
int ordersCount,
String termsAcceptedAt,
MonetaryValue totalSavings) |
Modifier and Type | Method and Description |
---|---|
MonetaryValue |
JsonModelHelper.getMonetaryValue(String name) |
MonetaryValue |
JsonModelHelper.optMonetaryValue(String name) |
Modifier and Type | Method and Description |
---|---|
MonetaryValue |
AbstractPaymentMethod.getMonthlyTransactionLimitAmount()
The user's transaction limit.
|
Constructor and Description |
---|
AbstractPaymentMethod(String description,
Integer monthlyBillingDay,
MonetaryValue monthlyTransactionLimitAmount,
String type) |
ApplePayCardPaymentMethod(String description,
Integer monthlyBillingDay,
MonetaryValue monthlyTransactionLimitAmount,
ApplePayCardPaymentMethod.Metadata metadata) |
CarrierAccountPaymentMethod(String description,
Integer monthlyBillingDay,
MonetaryValue monthlyTransactionLimitAmount,
CarrierAccountPaymentMethod.Metadata metadata) |
CreditCardPaymentMethod(String description,
Integer monthlyBillingDay,
MonetaryValue monthlyTransactionLimitAmount,
CreditCardPaymentMethod.Metadata metadata) |
DebitCardPaymentMethod(String description,
Integer monthlyBillingDay,
MonetaryValue monthlyTransactionLimitAmount,
DebitCardPaymentMethod.Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
static MonetaryValue |
JsonUtils.getMonetaryValue(JSONObject json,
String key)
Gets a required
MonetaryValue object from the JSON at the key passed or throws a
JSONException if it's missing. |
static MonetaryValue |
JsonUtils.optMonetaryValue(JSONObject json,
String key)
Gets an optional
MonetaryValue object from the JSON at the key passed. |