Comparing version
@@ -87,11 +87,2 @@ import { z } from "zod"; | ||
}>; | ||
saleByVaultId(saleData?: { | ||
customer_vault_id: string | number; | ||
amount: number; | ||
billing_id?: string; | ||
}, additionalOptions?: Partial<SaleByVaultIdRequest>): Promise<{ | ||
status: number; | ||
data?: CustomerVaultResponse; | ||
message: string; | ||
}>; | ||
creditTransactionByVaultId(creditData?: { | ||
@@ -98,0 +89,0 @@ customer_vault_id: string | number; |
@@ -20,2 +20,3 @@ import { CreateInvoiceRequestSchema, UpdateInvoiceRequestSchema, CloseInvoiceRequestSchema, SendInvoiceRequestSchema } from "@/types/invoiceRequestSchemas"; | ||
payment_terms?: "upon_receipt" | number; | ||
payment_terms_allowed?: ("cc" | "ck" | "cs")[]; | ||
shipping?: number; | ||
@@ -22,0 +23,0 @@ customer_id?: string; |
@@ -17,8 +17,8 @@ import { z } from "zod"; | ||
addRecurringPlan(planDetails?: { | ||
plan_name?: string; | ||
plan_amount?: number; | ||
plan_id?: string; | ||
day_frequency?: number; | ||
month_frequency?: number; | ||
day_of_month?: number; | ||
plan_name: string; | ||
plan_amount: number; | ||
plan_id: string; | ||
day_frequency: number; | ||
month_frequency: number; | ||
day_of_month: number; | ||
}, planData?: Partial<AddRecurringPlan>): Promise<{ | ||
@@ -30,10 +30,34 @@ status: number; | ||
editRecurringPlan(planDetails?: { | ||
current_plan_id?: string; | ||
plan_name?: string; | ||
plan_amount?: number; | ||
plan_payments?: number; | ||
current_plan_id: string; | ||
plan_name: string; | ||
plan_amount: number; | ||
plan_payments: number; | ||
day_frequency: number; | ||
month_frequency: number; | ||
day_of_month: number; | ||
}, planData?: Partial<EditRecurringPlan>): Promise<{ | ||
status: number; | ||
data?: RecurringResponse; | ||
message: string; | ||
}>; | ||
addCustomSubscriptionByCc(subscriptionData?: { | ||
plan_id: string; | ||
start_date: string; | ||
amount: number; | ||
first_name: string; | ||
last_name: string; | ||
address1: string; | ||
city: string; | ||
state: string; | ||
zip: string; | ||
country: string; | ||
phone: string; | ||
email: string; | ||
ccnumber: string; | ||
ccexp: string; | ||
cvv?: string; | ||
day_frequency?: number; | ||
month_frequency?: number; | ||
day_of_month?: number; | ||
}, planData?: Partial<EditRecurringPlan>): Promise<{ | ||
}, additionalData?: Partial<AddSubscriptionToExistingPlan>): Promise<{ | ||
status: number; | ||
@@ -40,0 +64,0 @@ data?: RecurringResponse; |
@@ -16,8 +16,8 @@ import { z } from "zod"; | ||
createTransaction(transactionData?: { | ||
amount?: number; | ||
ccnumber?: string; | ||
ccexp?: string; | ||
cvv?: string; | ||
transactionType?: "sale" | "auth" | "credit" | "validate" | "offline"; | ||
payment?: "creditcard" | "check"; | ||
amount: number; | ||
ccnumber: string; | ||
ccexp: string; | ||
cvv: string; | ||
transactionType: "sale" | "auth" | "credit" | "validate" | "offline"; | ||
payment: "creditcard" | "check"; | ||
}, additionalOptions?: Partial<TransactionRequest>): Promise<{ | ||
@@ -29,6 +29,6 @@ status: number; | ||
authorizeTransaction(transactionData?: { | ||
amount?: number; | ||
ccnumber?: string; | ||
ccexp?: string; | ||
cvv?: string; | ||
amount: number; | ||
ccnumber: string; | ||
ccexp: string; | ||
cvv: string; | ||
}, additionalOptions?: Partial<TransactionRequest>): Promise<{ | ||
@@ -40,6 +40,6 @@ status: number; | ||
validateTransaction(transactionData?: { | ||
ccnumber?: string; | ||
ccexp?: string; | ||
cvv?: string; | ||
}): Promise<{ | ||
ccnumber: string; | ||
ccexp: string; | ||
cvv: string; | ||
}, additionalOptions?: Partial<TransactionRequest>): Promise<{ | ||
status: number; | ||
@@ -50,4 +50,4 @@ data?: TransactionResponse; | ||
captureTransaction(transactionData?: { | ||
transactionid?: string; | ||
amount?: number; | ||
transactionid: string; | ||
amount: number; | ||
}, additionalOptions?: Partial<CaptureTransactionRequest>): Promise<{ | ||
@@ -59,4 +59,4 @@ status: number; | ||
refundTransaction(transactionData?: { | ||
transactionid?: string; | ||
amount?: number; | ||
transactionid: string; | ||
amount: number; | ||
}, additionalOptions?: Partial<RefundTransaction>): Promise<{ | ||
@@ -68,3 +68,3 @@ status: number; | ||
voidTransaction(transactionData?: { | ||
transactionid?: string; | ||
transactionid: string; | ||
}, additionalOptions?: Partial<VoidTransactionRequest>): Promise<{ | ||
@@ -76,3 +76,3 @@ status: number; | ||
updateTransaction(transactionData?: { | ||
transactionid?: string; | ||
transactionid: string; | ||
}, additionalOptions?: Partial<UpdateTransactionRequest>): Promise<{ | ||
@@ -79,0 +79,0 @@ status: number; |
{ | ||
"name": "znmi", | ||
"type": "module", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A simple and easy TypeScript wrapper around NMI's API", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -116,2 +116,4 @@ # ZNMI TypeScript Wrapper | ||
0.1.8 - Added missing function to recurring for adding a custom subscription by credit card, rather than only ACH, also updated ZOD parses to use safeParse rather than parse | ||
0.1.7 - Exported types for requests and such from the functions, in theory that'll fix the typehints not showing up | ||
0.1.6 - Fixed publish script order oops | ||
@@ -118,0 +120,0 @@ 0.1.5 - Added tsc as a prepublish step to hopefully get return types fixed |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
402782
2.48%8018
2.7%124
1.64%