// Copyright © 2022 Olo Inc. All rights reserved.
// This software is made available under the Olo Pay SDK License (See LICENSE.md file)
//
//  PaymentCardDetailsFormManager.m
//  OlopaysdkReactNative
//
//  Created by Richard Dowdy on 4/13/23.
//

#import <Foundation/Foundation.h>
#import "React/RCTViewManager.h"
#import "React/RCTUIManager.h"
#import "React/RCTLog.h"

@interface RCT_EXTERN_MODULE(PaymentCardDetailsFormManager, RCTViewManager)
RCT_EXTERN_METHOD(focus:(nonnull NSNumber *)node
                  atField:(NSString)field
                  withResolver:(RCTPromiseResolveBlock)resolve
                  withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(blur:(nonnull NSNumber *)node
                  withResolver:(RCTPromiseResolveBlock)resolve
                  withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(createPaymentMethod:(nonnull NSNumber *)node
                  withResolver:(RCTPromiseResolveBlock)resolve
                  withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXPORT_VIEW_PROPERTY(onFormCompleteEvent, RCTDirectEventBlock)
RCT_EXPORT_VIEW_PROPERTY(cardStyles, NSDictionary)
RCT_EXPORT_VIEW_PROPERTY(isEnabled, BOOL)

@end

