// Copyright © 2022 Olo Inc. All rights reserved. // This software is made available under the Olo Pay SDK License (See LICENSE.md file) package com.olopaysdkreactnative.extensions import com.facebook.react.bridge.Arguments import com.facebook.react.bridge.WritableMap import com.olo.olopay.data.ICvvUpdateToken import com.olo.olopay.data.OloPayEnvironment import com.olopaysdkreactnative.data.DataKeys fun ICvvUpdateToken.toMap(): WritableMap { val data = Arguments.createMap() data.putBoolean(DataKeys.ProductionEnvironmentKey, this.environment === OloPayEnvironment.Production) data.putString(DataKeys.IDKey, this.id ?: "") return data }