Package com.alviere.android.cards.sdk.model.client.request

Types

Link copied to clipboard
data class ActivateCardRequest(    @Json(name = "last_4") val last4: String,     @Json(name = "expiration_date") val expirationDate: String,     @Json(name = "security_code") val securityCode: String? = null)

Card information which it will be use to activate card.

Link copied to clipboard
data class AuthRulesRequest(@Json(name = "allowed_merchants") val allowedMerchants: AllowedMerchantsModel? = null)

Card authorization rules request model.

Link copied to clipboard
data class CardActivationFeeRequest(    @Json(name = "type") val type: ServiceFeeTypeModel,     @Json(name = "calc_type") val calcType: CalculationTypeModel,     @Json(name = "description") val description: String = "",     @Json(name = "value") val value: Int? = null,     @Json(name = "cap") val cap: Int? = null)

Card activation service fee.

Link copied to clipboard
data class CardUpdateRequest(    @Json(name = "external_id") val externalId: String? = null,     @Json(name = "auth_rules") val authRules: AuthRulesRequest? = null,     @Json(name = "incentives") val incentives: IncentivesRequest? = null,     @Json(name = "metadata") val metadata: Map<String, Any>? = null,     @Json(name = "shipping_address") val shippingAddress: ShippingAddressModel? = null)

Model that holds the card data to be updated.

Link copied to clipboard
data class CustomFieldsRequest(@Json(name = "shipping_method") val shippingMethod: ShippingMethodTypeModel? = null, @Json(name = "name_on_card") val nameOnCard: String? = null)

Custom Fields.

Link copied to clipboard
data class IncentiveRuleRequest(    @Json(name = "external_id") val externalId: String,     @Json(name = "incentive_type") val incentiveType: IncentiveTypeModel,     @Json(name = "transaction_type") val transactionType: TransactionTypeModel? = null,     @Json(name = "description") val description: String,     @Json(name = "scope") val scope: IncentiveScopeModel,     @Json(name = "value") val value: IncentiveValueModel,     @Json(name = "merchants") val merchants: IncentiveMerchantsModel? = null,     @Json(name = "expiration_rules") val expirationRules: ExpirationRulesModel? = null)

Incentive rule.

Link copied to clipboard
data class IncentivesRequest(@Json(name = "rule_uuids") val ruleUuids: List<String>? = null, @Json(name = "incentive_rules") val incentiveRules: List<IncentiveRuleRequest>? = null)

Incentive rules to be applied on this card. This can be passed on as an array of existing incentive rule entities, or as an array of incentive rules that will be created ad-hoc as part of this card.

Link copied to clipboard
data class IssueCardRequest(    @Json(name = "external_id") val externalId: String,     @Json(name = "product_id") val productId: String,     @Json(name = "initial_balance") val initialBalance: Int? = null,     @Json(name = "shipping_address") val shippingAddress: ShippingAddressModel? = null,     @Json(name = "auth_rules") val authRules: AuthRulesRequest? = null,     @Json(name = "emboss_id") val embossId: String? = null,     @Json(name = "custom_fields") val customFields: CustomFieldsRequest? = null,     @Json(name = "service_fees") val serviceFees: List<ServiceFeeModel>? = null,     @Json(name = "metadata") val metadata: Map<String, Any>? = null,     @Json(name = "incentives") val incentives: IncentivesRequest? = null)

Issue Card.