declare namespace com.hbc.api.fraud.v0.enums { type Banner = 'lat' | 's5a' | 'o5a' | 'bay'; type CustomerType = 'guest' | 'registered' | 'employee'; type RecommendationCode = 'reject' | 'review' | 'accept'; } declare namespace com.hbc.api.fraud.v0.models { interface AdditionalData { readonly 'inAuthId': string; } interface Address { readonly 'name': string; readonly 'streetLineOne': string; readonly 'streetLineTwo'?: string; readonly 'city': string; readonly 'state': string; readonly 'zip': string; readonly 'country': string; } interface CreditCard { readonly 'nameOnCard': string; readonly 'billingAddress': com.hbc.api.fraud.v0.models.Address; readonly 'cardType': string; readonly 'cardNumber': string; readonly 'authorizedAmount': number; readonly 'fullAmount': number; readonly 'expiryDate': string; readonly 'authCode': string; readonly 'responseCode': number; readonly 'merchantId'?: number; readonly 'registerNumber'?: string; readonly 'transactionNumber': string; readonly 'avsResponse': string; } interface Customer { readonly 'customerType': com.hbc.api.fraud.v0.enums.CustomerType; readonly 'accountId': string; readonly 'creationDate': string; readonly 'firstName': string; readonly 'lastName': string; readonly 'emailAddress': string; } interface DbRecord { readonly 'transactionId': string; readonly 'lastModifiedDate'?: string; readonly 'createdDate'?: string; readonly 'transaction': com.hbc.api.fraud.v0.models.Transaction; readonly 'decision': com.hbc.api.fraud.v0.models.Decision; } interface Decision { readonly 'transactionId': string; readonly 'recommendationCode': com.hbc.api.fraud.v0.enums.RecommendationCode; readonly 'crossReference'?: string; readonly 'rulesTripped'?: string; readonly 'totalScore': number; readonly 'remarks'?: string; } interface Error { readonly 'message': string; readonly 'error': string; } interface Item { readonly 'svsNumber': number; readonly 'skuNumber': number; readonly 'upcNumber'?: number; readonly 'classNumber'?: number; readonly 'color'?: string; readonly 'size'?: string; readonly 'currentStatus': string; readonly 'department': number; readonly 'signOnDelivery'?: string; readonly 'giftWrapped'?: boolean; readonly 'costAmount'?: number; readonly 'marginAmount'?: number; readonly 'description': string; readonly 'price': number; readonly 'extendedPrice': number; readonly 'quantity': number; readonly 'groupNumber': number; readonly 'shippingAddress': com.hbc.api.fraud.v0.models.Address; readonly 'shippingMethod': string; readonly 'shippingCountry': string; } interface Promo { readonly 'promotionCode': string; readonly 'promotionAmount': number; } interface Transaction { readonly 'orderId': string; readonly 'groupId': string; readonly 'orderTotal': number; readonly 'shippingCost': number; readonly 'currencyCode': string; readonly 'storeNumber': number; readonly 'salesRep'?: string; readonly 'lastModifiedDate'?: string; readonly 'banner': com.hbc.api.fraud.v0.enums.Banner; readonly 'creditCard': com.hbc.api.fraud.v0.models.CreditCard; readonly 'promos'?: com.hbc.api.fraud.v0.models.Promo[]; readonly 'items': com.hbc.api.fraud.v0.models.Item[]; readonly 'ipAddress'?: string; readonly 'source': string; readonly 'customer': com.hbc.api.fraud.v0.models.Customer; readonly 'additionalData'?: com.hbc.api.fraud.v0.models.AdditionalData; } }