@aptly-as/types
Advanced tools
Comparing version 2.5.5 to 2.5.6
@@ -34,2 +34,3 @@ import { AptlyAppSchema } from './app.js'; | ||
}; | ||
splits: AptlyPaymentSplitSchema<ID>[]; | ||
captures: AptlyPaymentCaptureSchema<ID, DATE>[]; | ||
@@ -41,2 +42,8 @@ captured: { | ||
} | ||
export type AptlyPaymentSplit = AptlyPaymentSplitSchema<string>; | ||
export interface AptlyPaymentSplitSchema<ID> { | ||
_id: ID; | ||
destination: 'platform' | string; | ||
amount: number; | ||
} | ||
export type AptlyPaymentCapture = AptlyPaymentCaptureSchema<string, string>; | ||
@@ -96,2 +103,3 @@ export interface AptlyPaymentCaptureSchema<ID, DATE> { | ||
billing?: AptlyAddress; | ||
splits: Omit<AptlyPaymentSplit, '_id'>[]; | ||
} |
{ | ||
"name": "@aptly-as/types", | ||
"version": "2.5.5", | ||
"version": "2.5.6", | ||
"description": "Aptly types and enums", | ||
@@ -5,0 +5,0 @@ "type": "module", |
107540
2958