Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/payments/checkout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ export class Checkout {

/**
* @description Creates a customer or gets the existing one if it already exists
* @param customerName - The name of the customer
* @param lineAddress1 - The address of the user
* @param lineAddress2 - The address of the user
* @param postalCode - The postal code of the city where the user lives
* @param city - The city of the user
* @param country - The country of the customer
* @param postalCode - The postal code of the customer
* @param captchaToken - The captcha token to verify the call
* @param customerName - The name of the customer (optional)
* @param lineAddress1 - The address of the user (optional)
* @param lineAddress2 - The second address line of the user (optional)
* @param city - The city of the user (optional)
* @param postalCode - The postal code of the customer (optional)
* @param companyVatId - The VAT ID of the company (optional)
* @param metadata - Additional metadata to attach to the customer (optional)
* @returns The customer ID and the user token used to create a subscription or payment intent
Expand Down
8 changes: 4 additions & 4 deletions src/payments/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { UserType } from '../../drive/payments/types/types';

export interface CreateCustomerPayload {
customerName: string;
lineAddress1: string;
customerName?: string;
lineAddress1?: string;
lineAddress2?: string;
city: string;
city?: string;
country: string;
postalCode: string;
postalCode?: string;
captchaToken: string;
companyVatId?: string;
metadata?: Record<string, string>;
Expand Down
Loading