Skip to main content

CustomerResponseMapped

SolvaPay SDK


SolvaPay SDK / server/src / CustomerResponseMapped

Type Alias: CustomerResponseMapped

CustomerResponseMapped = object

Defined in: packages/server/src/types/client.ts:21

Extended CustomerResponse with proper field mapping

Note: The backend API may return subscriptions with additional fields beyond SubscriptionInfo (e.g., amount, endDate, cancelledAt, cancellationReason) as defined in SubscriptionResponse. These additional fields are preserved in the subscriptions array.

Properties

customerRef

customerRef: string

Defined in: packages/server/src/types/client.ts:22


email?

optional email: string

Defined in: packages/server/src/types/client.ts:23


externalRef?

optional externalRef: string

Defined in: packages/server/src/types/client.ts:25


name?

optional name: string

Defined in: packages/server/src/types/client.ts:24


plan?

optional plan: string

Defined in: packages/server/src/types/client.ts:26


subscriptions?

optional subscriptions: components["schemas"]["SubscriptionInfo"] & Partial<Pick<components["schemas"]["SubscriptionResponse"], "amount" | "currency" | "endDate" | "cancelledAt" | "cancellationReason" | "paidAt" | "nextBillingDate">>[]

Defined in: packages/server/src/types/client.ts:27