mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Adding Payments Lite Dialog params
Hi! I am adding the dialog params for payments lite as it is different from normal payment ui params.
This commit is contained in:
Vendored
+24
@@ -66,6 +66,11 @@ declare namespace facebook {
|
||||
*/
|
||||
ui(params: PayDialogParams, callback: (response: PayDialogResponse) => void): void;
|
||||
|
||||
/**
|
||||
* @see https://developers.facebook.com/docs/games_payments/payments_lite
|
||||
*/
|
||||
ui(params: PaymentsLiteDialogParams, callback: (response: PaymentsLiteDialogResponse) => void): void;
|
||||
|
||||
/**
|
||||
* @see https://developers.facebook.com/docs/videos/live-video/exploring-live
|
||||
*/
|
||||
@@ -154,6 +159,14 @@ declare namespace facebook {
|
||||
request_id?: string;
|
||||
test_currency?: string;
|
||||
}
|
||||
|
||||
interface PaymentsLiteDialogParams extends DialogParams {
|
||||
method: 'pay';
|
||||
action: 'purchaseiap';
|
||||
product_id: string;
|
||||
developer_payload?: string;
|
||||
quantity?: number;
|
||||
}
|
||||
|
||||
interface LiveDialogParams extends DialogParams {
|
||||
method: 'live_broadcast';
|
||||
@@ -199,6 +212,17 @@ declare namespace facebook {
|
||||
signed_request: string;
|
||||
}
|
||||
|
||||
interface PaymentsLiteDialogResponse {
|
||||
developer_payload?: string;
|
||||
payment_id: number;
|
||||
product_id?: string;
|
||||
purchase_time?: number;
|
||||
purchase_token?: string;
|
||||
signed_request?: string;
|
||||
error_code?: number;
|
||||
error_message?: string;
|
||||
}
|
||||
|
||||
interface LiveDialogResponse {
|
||||
id: string;
|
||||
stream_url: string;
|
||||
|
||||
Reference in New Issue
Block a user