aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/api_fsb/api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'jb-ui/src/api_fsb/api.ts')
-rw-r--r--jb-ui/src/api_fsb/api.ts1301
1 files changed, 870 insertions, 431 deletions
diff --git a/jb-ui/src/api_fsb/api.ts b/jb-ui/src/api_fsb/api.ts
index d819c9c..8b59dd7 100644
--- a/jb-ui/src/api_fsb/api.ts
+++ b/jb-ui/src/api_fsb/api.ts
@@ -24,6 +24,59 @@ import type { RequestArgs } from './base';
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
/**
+ *
+ * @export
+ * @interface AccessControlEvent
+ */
+export interface AccessControlEvent {
+ /**
+ *
+ * @type {string}
+ * @memberof AccessControlEvent
+ */
+ 'quality_event_type': AccessControlEventQualityEventTypeEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof AccessControlEvent
+ */
+ 'product_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof AccessControlEvent
+ */
+ 'bpuid'?: string | null;
+ /**
+ *
+ * @type {number}
+ * @memberof AccessControlEvent
+ */
+ 'user_id'?: number | null;
+}
+
+export const AccessControlEventQualityEventTypeEnum = {
+ AddToWhitelist: 'add_to_whitelist',
+ AddToBlacklist: 'add_to_blacklist',
+ ClearAccessControlList: 'clear_access_control_list'
+} as const;
+
+export type AccessControlEventQualityEventTypeEnum = typeof AccessControlEventQualityEventTypeEnum[keyof typeof AccessControlEventQualityEventTypeEnum];
+
+/**
+ *
+ * @export
+ * @interface AccessControlEventBody
+ */
+export interface AccessControlEventBody {
+ /**
+ *
+ * @type {Array<AccessControlEvent>}
+ * @memberof AccessControlEventBody
+ */
+ 'events': Array<AccessControlEvent>;
+}
+/**
* How the network is used
* @export
* @enum {string}
@@ -135,6 +188,13 @@ export interface AggregateBySource {
export interface Amount {
}
/**
+ * If negative, the status should adjusted to incomplete
+ * @export
+ * @interface Amount1
+ */
+export interface Amount1 {
+}
+/**
*
* @export
* @interface AmtCashoutMethodData
@@ -345,7 +405,7 @@ export interface BrokerageProductPayoutEvent {
*/
'ext_ref_id'?: string | null;
/**
- * - `PAYPAL` = PAYPAL - `TANGO` = TANGO - `DWOLLA` = DWOLLA - `ACH` = ACH - `WIRE` = WIRE - `CASH_IN_MAIL` = CASH_IN_MAIL - `PRIZE` = PRIZE - `AMT` = AMT - `AMT_BONUS` = AMT_BONUS - `AMT_ASSIGNMENT` = AMT_HIT
+ * - `PAYPAL` = PAYPAL - `TANGO` = TANGO - `TREMENDOUS` = TREMENDOUS - `DWOLLA` = DWOLLA - `ACH` = ACH - `WIRE` = WIRE - `CASH_IN_MAIL` = CASH_IN_MAIL - `PRIZE` = PRIZE - `AMT` = AMT - `AMT_BONUS` = AMT_BONUS - `AMT_ASSIGNMENT` = AMT_HIT
* @type {PayoutType}
* @memberof BrokerageProductPayoutEvent
*/
@@ -369,7 +429,7 @@ export interface BrokerageProductPayoutEvent {
*/
'product_id': string;
/**
- * - `PAYPAL` = PAYPAL - `TANGO` = TANGO - `DWOLLA` = DWOLLA - `ACH` = ACH - `WIRE` = WIRE - `CASH_IN_MAIL` = CASH_IN_MAIL - `PRIZE` = PRIZE - `AMT` = AMT - `AMT_BONUS` = AMT_BONUS - `AMT_ASSIGNMENT` = AMT_HIT
+ * - `PAYPAL` = PAYPAL - `TANGO` = TANGO - `TREMENDOUS` = TREMENDOUS - `DWOLLA` = DWOLLA - `ACH` = ACH - `WIRE` = WIRE - `CASH_IN_MAIL` = CASH_IN_MAIL - `PRIZE` = PRIZE - `AMT` = AMT - `AMT_BONUS` = AMT_BONUS - `AMT_ASSIGNMENT` = AMT_HIT
* @type {PayoutType}
* @memberof BrokerageProductPayoutEvent
*/
@@ -556,11 +616,11 @@ export interface CashoutMethodForeignValue {
*/
'value': number;
/**
- * Supported Currencies for Foreign Redemptions Allowed values: - __USD__ *(USD)*: US Dollars. Smallest Unit: Cents. - __CAD__ *(CAD)*: Canadian Dollars. Smallest Unit: Cents. - __GBP__ *(GBP)*: British Pounds. Smallest Unit: Pence. - __EUR__ *(EUR)*: Euros. Smallest Unit: Cents. - __INR__ *(INR)*: Indian Rupees. Smallest Unit: Paise. - __AUD__ *(AUD)*: Australian Dollars. Smallest Unit: Cents. - __PLN__ *(PLN)*: Polish Zloty. Smallest Unit: Grosz. - __SEK__ *(SEK)*: Swedish Krona. Smallest Unit: Öre. - __SGD__ *(SGD)*: Singapore Dollars. Smallest Unit: Cents. - __MXN__ *(MXN)*: Mexican Pesos. Smallest Unit: Centavos.
- * @type {RedemptionCurrency}
+ * Allowed values: - __USD__ *(USD)*: United States Dollar. Smallest Unit: Cents. - __CAD__ *(CAD)*: Canadian Dollar. Smallest Unit: Cents. - __GBP__ *(GBP)*: British Pound. Smallest Unit: Pence. - __EUR__ *(EUR)*: Euro. Smallest Unit: Cents. - __INR__ *(INR)*: Indian Rupee. Smallest Unit: Paise. - __AUD__ *(AUD)*: Australian Dollar. Smallest Unit: Cents. - __PLN__ *(PLN)*: Polish Zloty. Smallest Unit: Grosz. - __SEK__ *(SEK)*: Swedish Krona. Smallest Unit: Öre. - __SGD__ *(SGD)*: Singapore Dollar. Smallest Unit: Cents. - __MXN__ *(MXN)*: Mexican Peso. Smallest Unit: Centavos.
+ * @type {Currency}
* @memberof CashoutMethodForeignValue
*/
- 'currency': RedemptionCurrency;
+ 'currency': Currency;
/**
* A string representation of the value in the currency.
* @type {string}
@@ -581,7 +641,7 @@ export interface CashoutMethodForeignValueResponse {
* @type {string}
* @memberof CashoutMethodForeignValueResponse
*/
- 'status': CashoutMethodForeignValueResponseStatusEnum;
+ 'status'?: CashoutMethodForeignValueResponseStatusEnum;
/**
*
* @type {string}
@@ -664,7 +724,7 @@ export interface CashoutMethodOut {
*/
'name': string;
/**
- * The method in which the requested payout is delivered. Allowed values: - __PAYPAL__ *(PAYPAL)*: User is paid out to their personal PayPal email address - __TANGO__ *(TANGO)*: User is paid out via a Tango Gift Card - __DWOLLA__ *(DWOLLA)*: DWOLLA - __ACH__ *(ACH)*: A payment is made to a bank account using ACH - __WIRE__ *(WIRE)*: A payment is made to a bank account using ACH - __CASH_IN_MAIL__ *(CASH_IN_MAIL)*: A payment is made in cash and mailed to the user. - __PRIZE__ *(PRIZE)*: A payment is made as a prize with some monetary value - __AMT__ *(AMT)*: This is used to designate either AMT_BONUS or AMT_HIT - __AMT_BONUS__ *(AMT_BONUS)*: Amazon Mechanical Turk as a Bonus - __AMT_ASSIGNMENT__ *(AMT_HIT)*: Amazon Mechanical Turk for a HIT
+ * The method in which the requested payout is delivered. Allowed values: - __PAYPAL__ *(PAYPAL)*: User is paid out to their personal PayPal email address - __TANGO__ *(TANGO)*: User is paid out via a Tango Gift Card - __TREMENDOUS__ *(TREMENDOUS)*: Tremendous Gift Card - __DWOLLA__ *(DWOLLA)*: DWOLLA - __ACH__ *(ACH)*: A payment is made to a bank account using ACH - __WIRE__ *(WIRE)*: A payment is made to a bank account using ACH - __CASH_IN_MAIL__ *(CASH_IN_MAIL)*: A payment is made in cash and mailed to the user. - __PRIZE__ *(PRIZE)*: A payment is made as a prize with some monetary value - __AMT__ *(AMT)*: This is used to designate either AMT_BONUS or AMT_HIT - __AMT_BONUS__ *(AMT_BONUS)*: Amazon Mechanical Turk as a Bonus - __AMT_ASSIGNMENT__ *(AMT_HIT)*: Amazon Mechanical Turk for a HIT
* @type {PayoutType}
* @memberof CashoutMethodOut
*/
@@ -705,6 +765,12 @@ export interface CashoutMethodOut {
* @memberof CashoutMethodOut
*/
'product_user_id'?: string | null;
+ /**
+ *
+ * @type {PayoutCategory}
+ * @memberof CashoutMethodOut
+ */
+ 'category': PayoutCategory;
}
export const CashoutMethodOutCurrencyEnum = {
@@ -724,7 +790,7 @@ export interface CashoutMethodResponse {
* @type {string}
* @memberof CashoutMethodResponse
*/
- 'status': CashoutMethodResponseStatusEnum;
+ 'status'?: CashoutMethodResponseStatusEnum;
/**
*
* @type {string}
@@ -757,7 +823,7 @@ export interface CashoutMethodsResponse {
* @type {string}
* @memberof CashoutMethodsResponse
*/
- 'status': CashoutMethodsResponseStatusEnum;
+ 'status'?: CashoutMethodsResponseStatusEnum;
/**
*
* @type {string}
@@ -780,41 +846,71 @@ export const CashoutMethodsResponseStatusEnum = {
export type CashoutMethodsResponseStatusEnum = typeof CashoutMethodsResponseStatusEnum[keyof typeof CashoutMethodsResponseStatusEnum];
/**
- * See models.thl.payout: PayoutEvent. We\'ve confused a CashOut and a Payout. This is used only in the API response.
+ *
* @export
- * @interface CashoutRequestInfo
+ * @interface CashoutRequestDetail
*/
-export interface CashoutRequestInfo {
+export interface CashoutRequestDetail {
/**
- *
+ * Unique ID for this cashout
* @type {string}
- * @memberof CashoutRequestInfo
+ * @memberof CashoutRequestDetail
*/
- 'id': string | null;
+ 'id': string;
/**
* This is the name of the cashout method.
* @type {string}
- * @memberof CashoutRequestInfo
+ * @memberof CashoutRequestDetail
*/
'description': string;
/**
*
+ * @type {PayoutStatus}
+ * @memberof CashoutRequestDetail
+ */
+ 'status'?: PayoutStatus | null;
+ /**
+ *
* @type {string}
- * @memberof CashoutRequestInfo
+ * @memberof CashoutRequestDetail
*/
- 'message'?: string | null;
+ 'product_id': string;
/**
*
- * @type {PayoutStatus}
- * @memberof CashoutRequestInfo
+ * @type {string}
+ * @memberof CashoutRequestDetail
*/
- 'status'?: PayoutStatus | null;
+ 'product_user_id': string;
+ /**
+ * - `PAYPAL` = PAYPAL - `TANGO` = TANGO - `TREMENDOUS` = TREMENDOUS - `DWOLLA` = DWOLLA - `ACH` = ACH - `WIRE` = WIRE - `CASH_IN_MAIL` = CASH_IN_MAIL - `PRIZE` = PRIZE - `AMT` = AMT - `AMT_BONUS` = AMT_BONUS - `AMT_ASSIGNMENT` = AMT_HIT
+ * @type {PayoutType}
+ * @memberof CashoutRequestDetail
+ */
+ 'payout_type': PayoutType;
+ /**
+ * The amount in USD Cents
+ * @type {number}
+ * @memberof CashoutRequestDetail
+ */
+ 'amount': number;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestDetail
+ */
+ 'created': string;
/**
*
* @type {object}
- * @memberof CashoutRequestInfo
+ * @memberof CashoutRequestDetail
*/
'transaction_info'?: object | null;
+ /**
+ *
+ * @type {PayoutCategory}
+ * @memberof CashoutRequestDetail
+ */
+ 'category': PayoutCategory;
}
@@ -829,7 +925,7 @@ export interface CashoutRequestResponse {
* @type {string}
* @memberof CashoutRequestResponse
*/
- 'status': CashoutRequestResponseStatusEnum;
+ 'status'?: CashoutRequestResponseStatusEnum;
/**
*
* @type {string}
@@ -838,10 +934,10 @@ export interface CashoutRequestResponse {
'msg'?: string | null;
/**
*
- * @type {CashoutRequestInfo}
+ * @type {CashoutRequestDetail}
* @memberof CashoutRequestResponse
*/
- 'cashout': CashoutRequestInfo;
+ 'cashout': CashoutRequestDetail;
}
export const CashoutRequestResponseStatusEnum = {
@@ -852,6 +948,126 @@ export const CashoutRequestResponseStatusEnum = {
export type CashoutRequestResponseStatusEnum = typeof CashoutRequestResponseStatusEnum[keyof typeof CashoutRequestResponseStatusEnum];
/**
+ * See models.thl.payout: PayoutEvent. We\'ve confused a CashOut and a Payout. This is used only in the API response.
+ * @export
+ * @interface CashoutRequestSummary
+ */
+export interface CashoutRequestSummary {
+ /**
+ * Unique ID for this cashout
+ * @type {string}
+ * @memberof CashoutRequestSummary
+ */
+ 'id': string;
+ /**
+ * This is the name of the cashout method.
+ * @type {string}
+ * @memberof CashoutRequestSummary
+ */
+ 'description': string;
+ /**
+ *
+ * @type {PayoutStatus}
+ * @memberof CashoutRequestSummary
+ */
+ 'status'?: PayoutStatus | null;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestSummary
+ */
+ 'product_id': string;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestSummary
+ */
+ 'product_user_id': string;
+ /**
+ * - `PAYPAL` = PAYPAL - `TANGO` = TANGO - `TREMENDOUS` = TREMENDOUS - `DWOLLA` = DWOLLA - `ACH` = ACH - `WIRE` = WIRE - `CASH_IN_MAIL` = CASH_IN_MAIL - `PRIZE` = PRIZE - `AMT` = AMT - `AMT_BONUS` = AMT_BONUS - `AMT_ASSIGNMENT` = AMT_HIT
+ * @type {PayoutType}
+ * @memberof CashoutRequestSummary
+ */
+ 'payout_type': PayoutType;
+ /**
+ * The amount in USD Cents
+ * @type {number}
+ * @memberof CashoutRequestSummary
+ */
+ 'amount': number;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestSummary
+ */
+ 'created': string;
+ /**
+ *
+ * @type {PayoutCategory}
+ * @memberof CashoutRequestSummary
+ */
+ 'category': PayoutCategory;
+}
+
+
+/**
+ *
+ * @export
+ * @interface CashoutRequestsResponse
+ */
+export interface CashoutRequestsResponse {
+ /**
+ * Page number
+ * @type {number}
+ * @memberof CashoutRequestsResponse
+ */
+ 'page'?: number;
+ /**
+ * Page size
+ * @type {number}
+ * @memberof CashoutRequestsResponse
+ */
+ 'size'?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof CashoutRequestsResponse
+ */
+ 'total'?: number | null;
+ /**
+ * The status of the API response.
+ * @type {string}
+ * @memberof CashoutRequestsResponse
+ */
+ 'status'?: CashoutRequestsResponseStatusEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof CashoutRequestsResponse
+ */
+ 'msg'?: string | null;
+ /**
+ *
+ * @type {Array<CashoutRequestSummary>}
+ * @memberof CashoutRequestsResponse
+ */
+ 'cashouts': Array<CashoutRequestSummary>;
+ /**
+ *
+ * @type {number}
+ * @memberof CashoutRequestsResponse
+ */
+ 'pages': number | null;
+}
+
+export const CashoutRequestsResponseStatusEnum = {
+ Success: 'success',
+ Error: 'error'
+} as const;
+
+export type CashoutRequestsResponseStatusEnum = typeof CashoutRequestsResponseStatusEnum[keyof typeof CashoutRequestsResponseStatusEnum];
+
+/**
*
* @export
* @interface Category
@@ -1574,35 +1790,23 @@ export interface FacetValue {
export interface Finished {
}
/**
- *
+ * Fields we\'ll always pull from GRIP\'s mmdb files at minimum
* @export
* @interface GeoIPInformation
*/
export interface GeoIPInformation {
/**
*
- * @type {number}
- * @memberof GeoIPInformation
- */
- 'geoname_id'?: number | null;
- /**
- *
* @type {string}
* @memberof GeoIPInformation
*/
- 'continent_code'?: string | null;
+ 'ip': string;
/**
*
* @type {string}
* @memberof GeoIPInformation
*/
- 'continent_name'?: string | null;
- /**
- * The ISO code of the country associated with the IP address.
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'country_iso': string;
+ 'country_iso': string | null;
/**
*
* @type {string}
@@ -1623,96 +1827,12 @@ export interface GeoIPInformation {
'subdivision_1_name'?: string | null;
/**
*
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'subdivision_2_iso'?: string | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'subdivision_2_name'?: string | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'city_name'?: string | null;
- /**
- *
- * @type {number}
- * @memberof GeoIPInformation
- */
- 'metro_code'?: number | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'time_zone'?: string | null;
- /**
- *
- * @type {boolean}
- * @memberof GeoIPInformation
- */
- 'is_in_european_union'?: boolean | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'updated'?: string;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'ip': string;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'registered_country_iso'?: string | null;
- /**
- *
* @type {boolean}
* @memberof GeoIPInformation
*/
'is_anonymous'?: boolean | null;
/**
*
- * @type {boolean}
- * @memberof GeoIPInformation
- */
- 'is_anonymous_vpn'?: boolean | null;
- /**
- *
- * @type {boolean}
- * @memberof GeoIPInformation
- */
- 'is_hosting_provider'?: boolean | null;
- /**
- *
- * @type {boolean}
- * @memberof GeoIPInformation
- */
- 'is_public_proxy'?: boolean | null;
- /**
- *
- * @type {boolean}
- * @memberof GeoIPInformation
- */
- 'is_tor_exit_node'?: boolean | null;
- /**
- *
- * @type {boolean}
- * @memberof GeoIPInformation
- */
- 'is_residential_proxy'?: boolean | null;
- /**
- *
* @type {number}
* @memberof GeoIPInformation
*/
@@ -1725,76 +1845,10 @@ export interface GeoIPInformation {
'autonomous_system_organization'?: string | null;
/**
*
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'domain'?: string | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'isp'?: string | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'mobile_country_code'?: string | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'mobile_network_code'?: string | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'network'?: string | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'organization'?: string | null;
- /**
- *
- * @type {number}
- * @memberof GeoIPInformation
- */
- 'static_ip_score'?: number | null;
- /**
- *
* @type {AccessType}
* @memberof GeoIPInformation
*/
- 'user_type'?: AccessType | null;
- /**
- *
- * @type {string}
- * @memberof GeoIPInformation
- */
- 'postal_code'?: string | null;
- /**
- *
- * @type {number}
- * @memberof GeoIPInformation
- */
- 'latitude'?: number | null;
- /**
- *
- * @type {number}
- * @memberof GeoIPInformation
- */
- 'longitude'?: number | null;
- /**
- *
- * @type {number}
- * @memberof GeoIPInformation
- */
- 'accuracy_radius'?: number | null;
+ 'access_type'?: AccessType | null;
}
@@ -2134,7 +2188,7 @@ export interface LeaderboardResponse {
* @type {string}
* @memberof LeaderboardResponse
*/
- 'status': LeaderboardResponseStatusEnum;
+ 'status'?: LeaderboardResponseStatusEnum;
/**
*
* @type {string}
@@ -2273,7 +2327,7 @@ export interface LeaderboardWinnerResponse {
* @type {string}
* @memberof LeaderboardWinnerResponse
*/
- 'status': LeaderboardWinnerResponseStatusEnum;
+ 'status'?: LeaderboardWinnerResponseStatusEnum;
/**
*
* @type {string}
@@ -2668,27 +2722,6 @@ export const ListContestsUserEnteredProductIdContestUserProductUserIdEnteredGet2
export type ListContestsUserEnteredProductIdContestUserProductUserIdEnteredGet200ResponseInnerValidForEventEnum = typeof ListContestsUserEnteredProductIdContestUserProductUserIdEnteredGet200ResponseInnerValidForEventEnum[keyof typeof ListContestsUserEnteredProductIdContestUserProductUserIdEnteredGet200ResponseInnerValidForEventEnum];
/**
- *
- * @export
- * @interface ManageCashoutBody
- */
-export interface ManageCashoutBody {
- /**
- *
- * @type {string}
- * @memberof ManageCashoutBody
- */
- 'payout_id': string;
- /**
- *
- * @type {PayoutStatus}
- * @memberof ManageCashoutBody
- */
- 'new_status': PayoutStatus;
-}
-
-
-/**
* This is used solely in API responses, so it is simplified.
* @export
* @interface MarketProfileKnowledge
@@ -3402,74 +3435,6 @@ export const OrderDataTypeEnum = {
export type OrderDataTypeEnum = typeof OrderDataTypeEnum[keyof typeof OrderDataTypeEnum];
/**
- * Stores payout-type-specific order information that is returned from the external payout provider.
- * @export
- * @interface OrderData1
- */
-export interface OrderData1 {
- /**
- *
- * @type {string}
- * @memberof OrderData1
- */
- 'type'?: OrderData1TypeEnum;
- /**
- *
- * @type {number}
- * @memberof OrderData1
- */
- 'shipping_cost': number;
- /**
- *
- * @type {string}
- * @memberof OrderData1
- */
- 'tracking_number'?: string;
- /**
- *
- * @type {ShippingMethod}
- * @memberof OrderData1
- */
- 'shipping_method'?: ShippingMethod;
- /**
- *
- * @type {ShippingCarrier}
- * @memberof OrderData1
- */
- 'carrier'?: ShippingCarrier;
- /**
- *
- * @type {string}
- * @memberof OrderData1
- */
- 'ship_date'?: string;
- /**
- *
- * @type {string}
- * @memberof OrderData1
- */
- 'estimated_delivery_date'?: string;
- /**
- *
- * @type {DeliveryStatus}
- * @memberof OrderData1
- */
- 'delivery_status'?: DeliveryStatus;
- /**
- *
- * @type {string}
- * @memberof OrderData1
- */
- 'last_updated'?: string;
-}
-
-export const OrderData1TypeEnum = {
- CashInMail: 'CASH_IN_MAIL'
-} as const;
-
-export type OrderData1TypeEnum = typeof OrderData1TypeEnum[keyof typeof OrderData1TypeEnum];
-
-/**
* We can\'t use our USDCent class in here because aside from it not supporting negative values for our adjustments, FastAPI also complains because it doesn\'t know how to generate documentation for it. - Max 2024-06-25
* @export
* @interface POPFinancial
@@ -3550,6 +3515,23 @@ export interface PatternValidation {
export type Payload = { event_type: 'session.enter' } & SessionEnterPayload | { event_type: 'session.finish' } & SessionFinishPayload | { event_type: 'task.enter' } & TaskEnterPayload | { event_type: 'task.finish' } & TaskFinishPayload;
/**
+ *
+ * @export
+ * @enum {string}
+ */
+
+export const PayoutCategory = {
+ Cash: 'CASH',
+ GiftCard: 'GIFT_CARD',
+ Prize: 'PRIZE',
+ Crypto: 'CRYPTO',
+ PlatformCredit: 'PLATFORM_CREDIT'
+} as const;
+
+export type PayoutCategory = typeof PayoutCategory[keyof typeof PayoutCategory];
+
+
+/**
* Store configuration related to payouts, payout transformation, and user payout formatting.
* @export
* @interface PayoutConfig
@@ -3702,6 +3684,7 @@ export interface PayoutTransformationPercentArgs {
export const PayoutType = {
Paypal: 'PAYPAL',
Tango: 'TANGO',
+ Tremendous: 'TREMENDOUS',
Dwolla: 'DWOLLA',
Ach: 'ACH',
Wire: 'WIRE',
@@ -4186,7 +4169,7 @@ export interface ProfilingInfoResponse {
* @type {string}
* @memberof ProfilingInfoResponse
*/
- 'status': ProfilingInfoResponseStatusEnum;
+ 'status'?: ProfilingInfoResponseStatusEnum;
/**
*
* @type {string}
@@ -4393,28 +4376,6 @@ export const RaffleUserViewEntryTypeEnum = {
export type RaffleUserViewEntryTypeEnum = typeof RaffleUserViewEntryTypeEnum[keyof typeof RaffleUserViewEntryTypeEnum];
/**
- * Supported Currencies for Foreign Redemptions
- * @export
- * @enum {string}
- */
-
-export const RedemptionCurrency = {
- Usd: 'USD',
- Cad: 'CAD',
- Gbp: 'GBP',
- Eur: 'EUR',
- Inr: 'INR',
- Aud: 'AUD',
- Pln: 'PLN',
- Sek: 'SEK',
- Sgd: 'SGD',
- Mxn: 'MXN'
-} as const;
-
-export type RedemptionCurrency = typeof RedemptionCurrency[keyof typeof RedemptionCurrency];
-
-
-/**
*
* @export
* @interface ReportNotes
@@ -5692,7 +5653,7 @@ export interface StatusResponse {
* @type {string}
* @memberof StatusResponse
*/
- 'status': StatusResponseStatusEnum;
+ 'status'?: StatusResponseStatusEnum;
/**
*
* @type {string}
@@ -6069,6 +6030,99 @@ export type TangoCashoutMethodDataValueTypeEnum = typeof TangoCashoutMethodDataV
/**
*
* @export
+ * @interface TaskAdjustmentEvent
+ */
+export interface TaskAdjustmentEvent {
+ /**
+ *
+ * @type {string}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'mid': string;
+ /**
+ *
+ * @type {Source}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'source': Source;
+ /**
+ *
+ * @type {WallAdjustedStatus}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'status': WallAdjustedStatus;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'alert_time'?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'quality_event_type'?: TaskAdjustmentEventQualityEventTypeEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'survey_id'?: string | null;
+ /**
+ *
+ * @type {Amount1}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'amount'?: Amount1 | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'event_time'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'product_id'?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'bpuid'?: string | null;
+ /**
+ *
+ * @type {number}
+ * @memberof TaskAdjustmentEvent
+ */
+ 'user_id'?: number | null;
+}
+
+export const TaskAdjustmentEventQualityEventTypeEnum = {
+ TaskAdjustment: 'task_adjustment'
+} as const;
+
+export type TaskAdjustmentEventQualityEventTypeEnum = typeof TaskAdjustmentEventQualityEventTypeEnum[keyof typeof TaskAdjustmentEventQualityEventTypeEnum];
+
+/**
+ *
+ * @export
+ * @interface TaskAdjustmentEventBody
+ */
+export interface TaskAdjustmentEventBody {
+ /**
+ *
+ * @type {Array<TaskAdjustmentEvent>}
+ * @memberof TaskAdjustmentEventBody
+ */
+ 'events': Array<TaskAdjustmentEvent>;
+}
+/**
+ *
+ * @export
* @interface TaskEnterPayload
*/
export interface TaskEnterPayload {
@@ -7243,7 +7297,7 @@ export interface UpkQuestionResponse {
* @type {string}
* @memberof UpkQuestionResponse
*/
- 'status': UpkQuestionResponseStatusEnum;
+ 'status'?: UpkQuestionResponseStatusEnum;
/**
*
* @type {string}
@@ -7572,7 +7626,7 @@ export interface UserInfoResponse {
* @type {string}
* @memberof UserInfoResponse
*/
- 'status': UserInfoResponseStatusEnum;
+ 'status'?: UserInfoResponseStatusEnum;
/**
*
* @type {string}
@@ -7597,6 +7651,68 @@ export type UserInfoResponseStatusEnum = typeof UserInfoResponseStatusEnum[keyof
/**
*
* @export
+ * @interface UserLedgerTransactionAttemptCredit
+ */
+export interface UserLedgerTransactionAttemptCredit {
+ /**
+ * When the Transaction was created
+ * @type {string}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'created': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'description'?: string;
+ /**
+ * The net amount affecting the user\'s wallet, in USDCents. Positive means the user\'s balance increased; negative means it decreased.
+ * @type {number}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'amount': number;
+ /**
+ *
+ * @type {number}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'balance_after'?: number | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'tx_type'?: UserLedgerTransactionAttemptCreditTxTypeEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'tsid': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'url': string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionAttemptCredit
+ */
+ 'amount_string': string | null;
+}
+
+export const UserLedgerTransactionAttemptCreditTxTypeEnum = {
+ UserAttemptCredit: 'user_attempt_credit'
+} as const;
+
+export type UserLedgerTransactionAttemptCreditTxTypeEnum = typeof UserLedgerTransactionAttemptCreditTxTypeEnum[keyof typeof UserLedgerTransactionAttemptCreditTxTypeEnum];
+
+/**
+ *
+ * @export
* @interface UserLedgerTransactionTaskAdjustment
*/
export interface UserLedgerTransactionTaskAdjustment {
@@ -7778,6 +7894,12 @@ export interface UserLedgerTransactionTypesSummary {
* @type {UserLedgerTransactionTypeSummary}
* @memberof UserLedgerTransactionTypesSummary
*/
+ 'user_attempt_credit'?: UserLedgerTransactionTypeSummary;
+ /**
+ *
+ * @type {UserLedgerTransactionTypeSummary}
+ * @memberof UserLedgerTransactionTypesSummary
+ */
'user_payout_request'?: UserLedgerTransactionTypeSummary;
}
/**
@@ -7901,6 +8023,68 @@ export type UserLedgerTransactionUserPayoutTxTypeEnum = typeof UserLedgerTransac
/**
*
* @export
+ * @interface UserLedgerTransactionUserPayoutCancel
+ */
+export interface UserLedgerTransactionUserPayoutCancel {
+ /**
+ * When the Transaction was created
+ * @type {string}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'created': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'description'?: string;
+ /**
+ * The net amount affecting the user\'s wallet, in USDCents. Positive means the user\'s balance increased; negative means it decreased.
+ * @type {number}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'amount': number;
+ /**
+ *
+ * @type {number}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'balance_after'?: number | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'tx_type'?: UserLedgerTransactionUserPayoutCancelTxTypeEnum;
+ /**
+ * A unique identifier for the payout
+ * @type {string}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'payout_id': string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'url': string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserLedgerTransactionUserPayoutCancel
+ */
+ 'amount_string': string | null;
+}
+
+export const UserLedgerTransactionUserPayoutCancelTxTypeEnum = {
+ UserPayoutCancel: 'user_payout_cancel'
+} as const;
+
+export type UserLedgerTransactionUserPayoutCancelTxTypeEnum = typeof UserLedgerTransactionUserPayoutCancelTxTypeEnum[keyof typeof UserLedgerTransactionUserPayoutCancelTxTypeEnum];
+
+/**
+ *
+ * @export
* @interface UserLedgerTransactionsResponse
*/
export interface UserLedgerTransactionsResponse {
@@ -7939,7 +8123,7 @@ export interface UserLedgerTransactionsResponse {
* @type {string}
* @memberof UserLedgerTransactionsResponse
*/
- 'status': UserLedgerTransactionsResponseStatusEnum;
+ 'status'?: UserLedgerTransactionsResponseStatusEnum;
/**
*
* @type {string}
@@ -7965,7 +8149,7 @@ export type UserLedgerTransactionsResponseStatusEnum = typeof UserLedgerTransact
* @type UserLedgerTransactionsResponseTransactionsInner
* @export
*/
-export type UserLedgerTransactionsResponseTransactionsInner = { tx_type: 'bp_adjustment' } & UserLedgerTransactionTaskAdjustment | { tx_type: 'bp_payment' } & UserLedgerTransactionTaskComplete | { tx_type: 'user_bonus' } & UserLedgerTransactionUserBonus | { tx_type: 'user_payout_request' } & UserLedgerTransactionUserPayout;
+export type UserLedgerTransactionsResponseTransactionsInner = { tx_type: 'bp_adjustment' } & UserLedgerTransactionTaskAdjustment | { tx_type: 'bp_payment' } & UserLedgerTransactionTaskComplete | { tx_type: 'user_attempt_credit' } & UserLedgerTransactionAttemptCredit | { tx_type: 'user_bonus' } & UserLedgerTransactionUserBonus | { tx_type: 'user_payout_cancel' } & UserLedgerTransactionUserPayoutCancel | { tx_type: 'user_payout_request' } & UserLedgerTransactionUserPayout;
/**
* A user-owned ledger account exposed by the wallets endpoint.
@@ -8056,93 +8240,6 @@ export interface UserLedgerWallets {
'displayed_balances'?: Array<UserDisplayedWalletBalance>;
}
/**
- * A user has requested to be paid from their wallet balance.
- * @export
- * @interface UserPayoutEvent
- */
-export interface UserPayoutEvent {
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'uuid'?: string;
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'debit_account_uuid': string | null;
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'cashout_method_uuid': string | null;
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'created'?: string;
- /**
- * The USDCent amount int. This cannot be 0 or negative
- * @type {number}
- * @memberof UserPayoutEvent
- */
- 'amount': number;
- /**
- *
- * @type {PayoutStatus}
- * @memberof UserPayoutEvent
- */
- 'status'?: PayoutStatus | null;
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'ext_ref_id'?: string | null;
- /**
- * - `PAYPAL` = PAYPAL - `TANGO` = TANGO - `DWOLLA` = DWOLLA - `ACH` = ACH - `WIRE` = WIRE - `CASH_IN_MAIL` = CASH_IN_MAIL - `PRIZE` = PRIZE - `AMT` = AMT - `AMT_BONUS` = AMT_BONUS - `AMT_ASSIGNMENT` = AMT_HIT
- * @type {PayoutType}
- * @memberof UserPayoutEvent
- */
- 'payout_type': PayoutType;
- /**
- *
- * @type {object}
- * @memberof UserPayoutEvent
- */
- 'request_data'?: object | null;
- /**
- *
- * @type {OrderData1}
- * @memberof UserPayoutEvent
- */
- 'order_data'?: OrderData1 | null;
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'account_reference_type'?: string | null;
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'account_reference_uuid'?: string | null;
- /**
- *
- * @type {string}
- * @memberof UserPayoutEvent
- */
- 'description'?: string | null;
-}
-
-
-/**
*
* @export
* @interface UserProfile
@@ -8183,6 +8280,12 @@ export interface UserProfile {
* @type {string}
* @memberof UserProfile
*/
+ 'canonical_email': string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof UserProfile
+ */
'email_md5': string | null;
/**
*
@@ -8276,7 +8379,7 @@ export interface UserProfileResponse {
* @type {string}
* @memberof UserProfileResponse
*/
- 'status': UserProfileResponseStatusEnum;
+ 'status'?: UserProfileResponseStatusEnum;
/**
*
* @type {string}
@@ -8322,7 +8425,7 @@ export interface UserProfilesResponse {
* @type {string}
* @memberof UserProfilesResponse
*/
- 'status': UserProfilesResponseStatusEnum;
+ 'status'?: UserProfilesResponseStatusEnum;
/**
*
* @type {string}
@@ -8486,7 +8589,7 @@ export interface UserWalletBalanceResponse {
* @type {string}
* @memberof UserWalletBalanceResponse
*/
- 'status': UserWalletBalanceResponseStatusEnum;
+ 'status'?: UserWalletBalanceResponseStatusEnum;
/**
*
* @type {string}
@@ -12861,15 +12964,45 @@ export const THLApiAxiosParamCreator = function (configuration?: Configuration)
return {
/**
*
- * @summary Manage Cashout
- * @param {ManageCashoutBody} manageCashoutBody
+ * @summary Paypal Webhook
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- manageCashoutThlManageCashoutPost: async (manageCashoutBody: ManageCashoutBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'manageCashoutBody' is not null or undefined
- assertParamExists('manageCashoutThlManageCashoutPost', 'manageCashoutBody', manageCashoutBody)
- const localVarPath = `/thl/manage_cashout/`;
+ paypalWebhookThlPaypalWebhookPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ const localVarPath = `/thl/paypal_webhook/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Handle user access control adjustment requests. This is to add/remove users from white/black lists (for manual blocking/unblocking). Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Access Control Request
+ * @param {AccessControlEventBody} accessControlEventBody
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post: async (accessControlEventBody: AccessControlEventBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'accessControlEventBody' is not null or undefined
+ assertParamExists('submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post', 'accessControlEventBody', accessControlEventBody)
+ const localVarPath = `/thl/9bf111afe03e40719c5cd0de0dc43c31/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -12888,7 +13021,43 @@ export const THLApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(manageCashoutBody, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(accessControlEventBody, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Handle Wall status adjustment requests. Typically, this is a complete -> failure recon or the reverse. Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Task Adjustment
+ * @param {TaskAdjustmentEventBody} taskAdjustmentEventBody
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post: async (taskAdjustmentEventBody: TaskAdjustmentEventBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'taskAdjustmentEventBody' is not null or undefined
+ assertParamExists('submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post', 'taskAdjustmentEventBody', taskAdjustmentEventBody)
+ const localVarPath = `/thl/f4484dbdf144451ab60cda256ce14266/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(taskAdjustmentEventBody, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -12907,15 +13076,40 @@ export const THLApiFp = function(configuration?: Configuration) {
return {
/**
*
- * @summary Manage Cashout
- * @param {ManageCashoutBody} manageCashoutBody
+ * @summary Paypal Webhook
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async manageCashoutThlManageCashoutPost(manageCashoutBody: ManageCashoutBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayoutEvent>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.manageCashoutThlManageCashoutPost(manageCashoutBody, options);
+ async paypalWebhookThlPaypalWebhookPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paypalWebhookThlPaypalWebhookPost(options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
- const localVarOperationServerBasePath = operationServerMap['THLApi.manageCashoutThlManageCashoutPost']?.[localVarOperationServerIndex]?.url;
+ const localVarOperationServerBasePath = operationServerMap['THLApi.paypalWebhookThlPaypalWebhookPost']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Handle user access control adjustment requests. This is to add/remove users from white/black lists (for manual blocking/unblocking). Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Access Control Request
+ * @param {AccessControlEventBody} accessControlEventBody
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post(accessControlEventBody: AccessControlEventBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post(accessControlEventBody, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['THLApi.submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Handle Wall status adjustment requests. Typically, this is a complete -> failure recon or the reverse. Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Task Adjustment
+ * @param {TaskAdjustmentEventBody} taskAdjustmentEventBody
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post(taskAdjustmentEventBody: TaskAdjustmentEventBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post(taskAdjustmentEventBody, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['THLApi.submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
}
@@ -12930,13 +13124,32 @@ export const THLApiFactory = function (configuration?: Configuration, basePath?:
return {
/**
*
- * @summary Manage Cashout
- * @param {ManageCashoutBody} manageCashoutBody
+ * @summary Paypal Webhook
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- manageCashoutThlManageCashoutPost(manageCashoutBody: ManageCashoutBody, options?: RawAxiosRequestConfig): AxiosPromise<UserPayoutEvent> {
- return localVarFp.manageCashoutThlManageCashoutPost(manageCashoutBody, options).then((request) => request(axios, basePath));
+ paypalWebhookThlPaypalWebhookPost(options?: RawAxiosRequestConfig): AxiosPromise<any> {
+ return localVarFp.paypalWebhookThlPaypalWebhookPost(options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Handle user access control adjustment requests. This is to add/remove users from white/black lists (for manual blocking/unblocking). Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Access Control Request
+ * @param {AccessControlEventBody} accessControlEventBody
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post(accessControlEventBody: AccessControlEventBody, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
+ return localVarFp.submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post(accessControlEventBody, options).then((request) => request(axios, basePath));
+ },
+ /**
+ * Handle Wall status adjustment requests. Typically, this is a complete -> failure recon or the reverse. Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Task Adjustment
+ * @param {TaskAdjustmentEventBody} taskAdjustmentEventBody
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post(taskAdjustmentEventBody: TaskAdjustmentEventBody, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
+ return localVarFp.submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post(taskAdjustmentEventBody, options).then((request) => request(axios, basePath));
},
};
};
@@ -12950,14 +13163,37 @@ export const THLApiFactory = function (configuration?: Configuration, basePath?:
export class THLApi extends BaseAPI {
/**
*
- * @summary Manage Cashout
- * @param {ManageCashoutBody} manageCashoutBody
+ * @summary Paypal Webhook
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof THLApi
+ */
+ public paypalWebhookThlPaypalWebhookPost(options?: RawAxiosRequestConfig) {
+ return THLApiFp(this.configuration).paypalWebhookThlPaypalWebhookPost(options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Handle user access control adjustment requests. This is to add/remove users from white/black lists (for manual blocking/unblocking). Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Access Control Request
+ * @param {AccessControlEventBody} accessControlEventBody
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof THLApi
+ */
+ public submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post(accessControlEventBody: AccessControlEventBody, options?: RawAxiosRequestConfig) {
+ return THLApiFp(this.configuration).submitAccessControlRequestThl9bf111afe03e40719c5cd0de0dc43c31Post(accessControlEventBody, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Handle Wall status adjustment requests. Typically, this is a complete -> failure recon or the reverse. Internally, this hits the UserQualityHistory grpc call.
+ * @summary Submit Task Adjustment
+ * @param {TaskAdjustmentEventBody} taskAdjustmentEventBody
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof THLApi
*/
- public manageCashoutThlManageCashoutPost(manageCashoutBody: ManageCashoutBody, options?: RawAxiosRequestConfig) {
- return THLApiFp(this.configuration).manageCashoutThlManageCashoutPost(manageCashoutBody, options).then((request) => request(this.axios, this.basePath));
+ public submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post(taskAdjustmentEventBody: TaskAdjustmentEventBody, options?: RawAxiosRequestConfig) {
+ return THLApiFp(this.configuration).submitTaskAdjustmentThlF4484dbdf144451ab60cda256ce14266Post(taskAdjustmentEventBody, options).then((request) => request(this.axios, this.basePath));
}
}
@@ -13010,7 +13246,7 @@ export const WalletApiAxiosParamCreator = function (configuration?: Configuratio
};
},
/**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * A user can only have 1 unique Cashout Method of any type at a time (e.g. they can\'t create multiple PayPal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating PayPal or Cash in Mail cashout methods is supported
* @summary Create Cashout Method
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {Body} body
@@ -13095,6 +13331,72 @@ export const WalletApiAxiosParamCreator = function (configuration?: Configuratio
};
},
/**
+ *
+ * @summary Filter User Cashouts
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {Array<PayoutStatus> | null} [status] Filter by one or more payout statuses
+ * @param {Array<PayoutType> | null} [payoutType] Filter by one or more payout types
+ * @param {string} [orderBy] Comma-separated fields to order by
+ * @param {number} [page]
+ * @param {number} [size]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ filterUserCashoutsProductIdCashoutGet: async (productId: string, bpuid: string, status?: Array<PayoutStatus> | null, payoutType?: Array<PayoutType> | null, orderBy?: string, page?: number, size?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('filterUserCashoutsProductIdCashoutGet', 'productId', productId)
+ // verify required parameter 'bpuid' is not null or undefined
+ assertParamExists('filterUserCashoutsProductIdCashoutGet', 'bpuid', bpuid)
+ const localVarPath = `/{product_id}/cashout/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (bpuid !== undefined) {
+ localVarQueryParameter['bpuid'] = bpuid;
+ }
+
+ if (status) {
+ localVarQueryParameter['status'] = status;
+ }
+
+ if (payoutType) {
+ localVarQueryParameter['payout_type'] = payoutType;
+ }
+
+ if (orderBy !== undefined) {
+ localVarQueryParameter['order_by'] = orderBy;
+ }
+
+ if (page !== undefined) {
+ localVarQueryParameter['page'] = page;
+ }
+
+ if (size !== undefined) {
+ localVarQueryParameter['size'] = size;
+ }
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
* Get an Attempt Credit by a user\'s Session.
* @summary Get Attempt Credit
* @param {string} productId The Brokerage Product ID provided by GRL.
@@ -13171,14 +13473,53 @@ export const WalletApiAxiosParamCreator = function (configuration?: Configuratio
};
},
/**
+ * Retrieve a cashout method
+ * @summary Get Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet: async (productId: string, cashoutMethodId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ // verify required parameter 'productId' is not null or undefined
+ assertParamExists('getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet', 'productId', productId)
+ // verify required parameter 'cashoutMethodId' is not null or undefined
+ assertParamExists('getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet', 'cashoutMethodId', cashoutMethodId)
+ const localVarPath = `/{product_id}/cashout_methods/{cashout_method_id}/`
+ .replace(`{${"product_id"}}`, encodeURIComponent(String(productId)))
+ .replace(`{${"cashout_method_id"}}`, encodeURIComponent(String(cashoutMethodId)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
* Retrieve the current available mechanisms that a user can use to retrieve funds.
* @summary Get Cashout Methods
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string | null} [ip] The end user\&#39;s public IPv4 or IPv6 address.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getCashoutMethodsProductIdCashoutMethodsGet: async (productId: string, bpuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getCashoutMethodsProductIdCashoutMethodsGet: async (productId: string, bpuid: string, ip?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'productId' is not null or undefined
assertParamExists('getCashoutMethodsProductIdCashoutMethodsGet', 'productId', productId)
// verify required parameter 'bpuid' is not null or undefined
@@ -13200,6 +13541,10 @@ export const WalletApiAxiosParamCreator = function (configuration?: Configuratio
localVarQueryParameter['bpuid'] = bpuid;
}
+ if (ip !== undefined) {
+ localVarQueryParameter['ip'] = ip;
+ }
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13473,7 +13818,7 @@ export const WalletApiFp = function(configuration?: Configuration) {
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * A user can only have 1 unique Cashout Method of any type at a time (e.g. they can\'t create multiple PayPal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating PayPal or Cash in Mail cashout methods is supported
* @summary Create Cashout Method
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {Body} body
@@ -13502,6 +13847,25 @@ export const WalletApiFp = function(configuration?: Configuration) {
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
+ *
+ * @summary Filter User Cashouts
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {Array<PayoutStatus> | null} [status] Filter by one or more payout statuses
+ * @param {Array<PayoutType> | null} [payoutType] Filter by one or more payout types
+ * @param {string} [orderBy] Comma-separated fields to order by
+ * @param {number} [page]
+ * @param {number} [size]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async filterUserCashoutsProductIdCashoutGet(productId: string, bpuid: string, status?: Array<PayoutStatus> | null, payoutType?: Array<PayoutType> | null, orderBy?: string, page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutRequestsResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.filterUserCashoutsProductIdCashoutGet(productId, bpuid, status, payoutType, orderBy, page, size, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.filterUserCashoutsProductIdCashoutGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
* Get an Attempt Credit by a user\'s Session.
* @summary Get Attempt Credit
* @param {string} productId The Brokerage Product ID provided by GRL.
@@ -13530,15 +13894,30 @@ export const WalletApiFp = function(configuration?: Configuration) {
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
+ * Retrieve a cashout method
+ * @summary Get Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet(productId: string, cashoutMethodId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutMethodResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet(productId, cashoutMethodId, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['WalletApi.getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
* Retrieve the current available mechanisms that a user can use to retrieve funds.
* @summary Get Cashout Methods
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string | null} [ip] The end user\&#39;s public IPv4 or IPv6 address.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutMethodsResponse>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options);
+ async getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, ip?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashoutMethodsResponse>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, ip, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['WalletApi.getCashoutMethodsProductIdCashoutMethodsGet']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13641,7 +14020,7 @@ export const WalletApiFactory = function (configuration?: Configuration, basePat
return localVarFp.claimLatestAttemptCreditProductIdWalletAttemptCreditPost(productId, attemptCreditClaimBody, options).then((request) => request(axios, basePath));
},
/**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * A user can only have 1 unique Cashout Method of any type at a time (e.g. they can\'t create multiple PayPal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating PayPal or Cash in Mail cashout methods is supported
* @summary Create Cashout Method
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {Body} body
@@ -13664,6 +14043,22 @@ export const WalletApiFactory = function (configuration?: Configuration, basePat
return localVarFp.deleteCashoutMethodProductIdCashoutMethodsCashoutMethodIdDelete(productId, cashoutMethodId, bpuid, options).then((request) => request(axios, basePath));
},
/**
+ *
+ * @summary Filter User Cashouts
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {Array<PayoutStatus> | null} [status] Filter by one or more payout statuses
+ * @param {Array<PayoutType> | null} [payoutType] Filter by one or more payout types
+ * @param {string} [orderBy] Comma-separated fields to order by
+ * @param {number} [page]
+ * @param {number} [size]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ filterUserCashoutsProductIdCashoutGet(productId: string, bpuid: string, status?: Array<PayoutStatus> | null, payoutType?: Array<PayoutType> | null, orderBy?: string, page?: number, size?: number, options?: RawAxiosRequestConfig): AxiosPromise<CashoutRequestsResponse> {
+ return localVarFp.filterUserCashoutsProductIdCashoutGet(productId, bpuid, status, payoutType, orderBy, page, size, options).then((request) => request(axios, basePath));
+ },
+ /**
* Get an Attempt Credit by a user\'s Session.
* @summary Get Attempt Credit
* @param {string} productId The Brokerage Product ID provided by GRL.
@@ -13686,15 +14081,27 @@ export const WalletApiFactory = function (configuration?: Configuration, basePat
return localVarFp.getCashoutDetailProductIdCashoutCashoutIdGet(productId, cashoutId, options).then((request) => request(axios, basePath));
},
/**
+ * Retrieve a cashout method
+ * @summary Get Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet(productId: string, cashoutMethodId: string, options?: RawAxiosRequestConfig): AxiosPromise<CashoutMethodResponse> {
+ return localVarFp.getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet(productId, cashoutMethodId, options).then((request) => request(axios, basePath));
+ },
+ /**
* Retrieve the current available mechanisms that a user can use to retrieve funds.
* @summary Get Cashout Methods
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string | null} [ip] The end user\&#39;s public IPv4 or IPv6 address.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CashoutMethodsResponse> {
- return localVarFp.getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options).then((request) => request(axios, basePath));
+ getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, ip?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<CashoutMethodsResponse> {
+ return localVarFp.getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, ip, options).then((request) => request(axios, basePath));
},
/**
* Use this function to get the \"value\" (in local currency, e.g. CAD, BTC) for this cashout_method, for amount (in USD cents).
@@ -13781,7 +14188,7 @@ export class WalletApi extends BaseAPI {
}
/**
- * A user can only have 1 unique Cashout Method of any type at a time (eg. they can\'t create multiple paypal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating paypal or Cash in Mail cashout methods are supported
+ * A user can only have 1 unique Cashout Method of any type at a time (e.g. they can\'t create multiple PayPal payout methods). Cashout Methods cannot be edited, they can only be created or deleted. Creating different Cashout Methods will require type-dependent request data attributes in order to be successfully created. Currently only creating PayPal or Cash in Mail cashout methods is supported
* @summary Create Cashout Method
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {Body} body
@@ -13808,6 +14215,24 @@ export class WalletApi extends BaseAPI {
}
/**
+ *
+ * @summary Filter User Cashouts
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {Array<PayoutStatus> | null} [status] Filter by one or more payout statuses
+ * @param {Array<PayoutType> | null} [payoutType] Filter by one or more payout types
+ * @param {string} [orderBy] Comma-separated fields to order by
+ * @param {number} [page]
+ * @param {number} [size]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public filterUserCashoutsProductIdCashoutGet(productId: string, bpuid: string, status?: Array<PayoutStatus> | null, payoutType?: Array<PayoutType> | null, orderBy?: string, page?: number, size?: number, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).filterUserCashoutsProductIdCashoutGet(productId, bpuid, status, payoutType, orderBy, page, size, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
* Get an Attempt Credit by a user\'s Session.
* @summary Get Attempt Credit
* @param {string} productId The Brokerage Product ID provided by GRL.
@@ -13834,16 +14259,30 @@ export class WalletApi extends BaseAPI {
}
/**
+ * Retrieve a cashout method
+ * @summary Get Cashout Method
+ * @param {string} productId The Brokerage Product ID provided by GRL.
+ * @param {string} cashoutMethodId The ID of the cashout method
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof WalletApi
+ */
+ public getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet(productId: string, cashoutMethodId: string, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).getCashoutMethodProductIdCashoutMethodsCashoutMethodIdGet(productId, cashoutMethodId, options).then((request) => request(this.axios, this.basePath));
+ }
+
+ /**
* Retrieve the current available mechanisms that a user can use to retrieve funds.
* @summary Get Cashout Methods
* @param {string} productId The Brokerage Product ID provided by GRL.
* @param {string} bpuid A unique identifier for each user, which is set by the Supplier. Must be consistent across respondent entrances and unique to the platform. It should not contain any sensitive information like email or names, and should avoid using any incrementing values.
+ * @param {string | null} [ip] The end user\&#39;s public IPv4 or IPv6 address.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof WalletApi
*/
- public getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, options?: RawAxiosRequestConfig) {
- return WalletApiFp(this.configuration).getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, options).then((request) => request(this.axios, this.basePath));
+ public getCashoutMethodsProductIdCashoutMethodsGet(productId: string, bpuid: string, ip?: string | null, options?: RawAxiosRequestConfig) {
+ return WalletApiFp(this.configuration).getCashoutMethodsProductIdCashoutMethodsGet(productId, bpuid, ip, options).then((request) => request(this.axios, this.basePath));
}
/**