splid-js-googlesheet-updater/node_modules/splid-js/dist/cjs/methods/createPayment.d.ts
2025-05-27 21:06:02 +02:00

66 lines
1.8 KiB
TypeScript

import { RequestConfig } from '../requestConfig';
import { IsoTime } from '../types/primitives';
export interface CreatePaymentResponse {
success: {
createdAt: IsoTime;
objectId: string;
};
}
type Options = {
groupId: string;
payer: string;
amount: number;
profiteer: string;
date?: Date;
currencyCode?: string;
};
export declare function createPayment(config: RequestConfig, options: Options): {
readonly id: "createPayment";
readonly path: "/parse/classes/Entry";
readonly method: "POST";
readonly body: {
readonly category: {
readonly __op: "Delete";
};
readonly UpdateInstallationID: string;
readonly GlobalId: string;
readonly title: {
readonly __op: "Delete";
};
readonly secondaryPayers: {
readonly __op: "Delete";
};
readonly notes: {
readonly __op: "Delete";
};
readonly primaryPayer: string;
readonly date: {
__type: string;
iso: string;
};
readonly createdGlobally: {
readonly __type: "Date";
readonly iso: string;
};
readonly isDeleted: false;
readonly group: {
readonly __type: "Pointer";
readonly className: "_User";
readonly objectId: string;
};
readonly items: readonly [{
readonly T: "";
readonly AM: number;
readonly P: {
readonly PT: 0;
readonly P: {
readonly [x: string]: 1;
};
};
}];
readonly isPayment: true;
readonly UpdateID: string;
readonly currencyCode: string;
};
};
export {};