@paynow-gg/typescript-sdk 2.1.17 → 2.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/management/client.d.ts +19 -1
- package/dist/cjs/generated/management/client.d.ts.map +1 -1
- package/dist/cjs/generated/management/client.js +30 -1
- package/dist/cjs/generated/management/client.js.map +1 -1
- package/dist/cjs/generated/management/types.d.ts +211 -49
- package/dist/cjs/generated/management/types.d.ts.map +1 -1
- package/dist/esm/generated/management/client.d.ts +19 -1
- package/dist/esm/generated/management/client.d.ts.map +1 -1
- package/dist/esm/generated/management/client.js +28 -0
- package/dist/esm/generated/management/client.js.map +1 -1
- package/dist/esm/generated/management/types.d.ts +211 -49
- package/dist/esm/generated/management/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -544,6 +544,50 @@ export interface ChangeSubscriptionPlanDto {
|
|
|
544
544
|
* - `all`: Coverage for all chargebacks including disputes.
|
|
545
545
|
*/
|
|
546
546
|
export type ChargebackCoverageTypeDto = "unspecified" | "none" | "fraudulent" | "all";
|
|
547
|
+
/**
|
|
548
|
+
* Query parameters
|
|
549
|
+
*/
|
|
550
|
+
export type ChargebacksGetChargebacksQuery = {
|
|
551
|
+
/**
|
|
552
|
+
* The maximum number of items to return in a single request.
|
|
553
|
+
* @format int32
|
|
554
|
+
* @minimum 1
|
|
555
|
+
* @maximum 100
|
|
556
|
+
*/
|
|
557
|
+
limit?: number;
|
|
558
|
+
/**
|
|
559
|
+
* Returns items after the specified ID.
|
|
560
|
+
* Used for forward pagination through results.
|
|
561
|
+
*/
|
|
562
|
+
after?: FlakeId;
|
|
563
|
+
/**
|
|
564
|
+
* Returns items before the specified ID.
|
|
565
|
+
* Used for backward pagination through results.
|
|
566
|
+
*/
|
|
567
|
+
before?: FlakeId;
|
|
568
|
+
/**
|
|
569
|
+
* Determines the sort order of returned items.
|
|
570
|
+
* When true, items are returned in ascending order.
|
|
571
|
+
* When false, items are returned in descending order.
|
|
572
|
+
*/
|
|
573
|
+
asc?: boolean;
|
|
574
|
+
/**
|
|
575
|
+
* Filter by order ID.
|
|
576
|
+
*/
|
|
577
|
+
order_id?: FlakeId;
|
|
578
|
+
/**
|
|
579
|
+
* Filter by customer ID.
|
|
580
|
+
*/
|
|
581
|
+
customer_id?: FlakeId;
|
|
582
|
+
/**
|
|
583
|
+
* Filter by chargeback statuses.
|
|
584
|
+
*/
|
|
585
|
+
status?: Array<TrustChargebackStatus>;
|
|
586
|
+
/**
|
|
587
|
+
* Filter by chargeback stage.
|
|
588
|
+
*/
|
|
589
|
+
stage?: TrustChargebackStage;
|
|
590
|
+
};
|
|
547
591
|
export interface CheckForBanIDByIdentitiesRequestDto {
|
|
548
592
|
identities: Array<BanIdentityDto>;
|
|
549
593
|
}
|
|
@@ -2864,6 +2908,13 @@ export interface GetDistributionResponseDto_V2 {
|
|
|
2864
2908
|
revenue_basis: RevenueBasisDto_V2;
|
|
2865
2909
|
entries: Array<DistributionEntryDto_V2>;
|
|
2866
2910
|
}
|
|
2911
|
+
export interface GetMatrixResponseDto_V2 {
|
|
2912
|
+
matrix_type: MatrixTypeDto_V2;
|
|
2913
|
+
revenue_basis: RevenueBasisDto_V2;
|
|
2914
|
+
unit?: TimeSeriesUnitDto_V2;
|
|
2915
|
+
columns: Array<MatrixHeaderDto_V2>;
|
|
2916
|
+
rows: Array<MatrixRowDto_V2>;
|
|
2917
|
+
}
|
|
2867
2918
|
/**
|
|
2868
2919
|
* Represents a link to download a template's files as an archive.
|
|
2869
2920
|
*/
|
|
@@ -3419,6 +3470,41 @@ export interface LastPaymentErrorDto {
|
|
|
3419
3470
|
*/
|
|
3420
3471
|
message: string;
|
|
3421
3472
|
}
|
|
3473
|
+
/**
|
|
3474
|
+
* Represents an invoice Stripe Billing raised for the store's subscription before the store moved to PayNow.
|
|
3475
|
+
*/
|
|
3476
|
+
export interface LegacyStoreInvoiceDto {
|
|
3477
|
+
/**
|
|
3478
|
+
* The Stripe identifier of the invoice, starting with 'in_'.
|
|
3479
|
+
*/
|
|
3480
|
+
id: string;
|
|
3481
|
+
/**
|
|
3482
|
+
* The invoice number printed on the document.
|
|
3483
|
+
*/
|
|
3484
|
+
number?: string | null;
|
|
3485
|
+
/**
|
|
3486
|
+
* What the invoice was raised for.
|
|
3487
|
+
*/
|
|
3488
|
+
description?: string | null;
|
|
3489
|
+
/**
|
|
3490
|
+
* The lowercase ISO 4217 currency the invoice was raised in.
|
|
3491
|
+
*/
|
|
3492
|
+
currency: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* The invoice total in the smallest currency unit.
|
|
3495
|
+
* @format int64
|
|
3496
|
+
*/
|
|
3497
|
+
total: number;
|
|
3498
|
+
/**
|
|
3499
|
+
* Whether the invoice has been paid.
|
|
3500
|
+
*/
|
|
3501
|
+
is_paid: boolean;
|
|
3502
|
+
/**
|
|
3503
|
+
* When the invoice was created.
|
|
3504
|
+
* @format date-time
|
|
3505
|
+
*/
|
|
3506
|
+
created_at: string;
|
|
3507
|
+
}
|
|
3422
3508
|
/**
|
|
3423
3509
|
* Link payment method details
|
|
3424
3510
|
*/
|
|
@@ -3548,6 +3634,30 @@ export type MarketingGetEmailTemplatesQuery = {
|
|
|
3548
3634
|
*/
|
|
3549
3635
|
asc?: boolean;
|
|
3550
3636
|
};
|
|
3637
|
+
export interface MatrixHeaderDto_V2 {
|
|
3638
|
+
key: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* @format date-time
|
|
3641
|
+
*/
|
|
3642
|
+
interval_start?: string | null;
|
|
3643
|
+
/**
|
|
3644
|
+
* @format date-time
|
|
3645
|
+
*/
|
|
3646
|
+
interval_end?: string | null;
|
|
3647
|
+
}
|
|
3648
|
+
export interface MatrixRowDto_V2 {
|
|
3649
|
+
header: MatrixHeaderDto_V2;
|
|
3650
|
+
total: MatrixValueDto_V2;
|
|
3651
|
+
cells: Array<MatrixValueDto_V2>;
|
|
3652
|
+
}
|
|
3653
|
+
export type MatrixTypeDto_V2 = "unspecified" | "customer_purchase_retention";
|
|
3654
|
+
export interface MatrixValueDto_V2 {
|
|
3655
|
+
/**
|
|
3656
|
+
* @format int64
|
|
3657
|
+
*/
|
|
3658
|
+
count: number;
|
|
3659
|
+
earnings?: MoneyDto_V2;
|
|
3660
|
+
}
|
|
3551
3661
|
/**
|
|
3552
3662
|
* Represents an image or video uploaded to a store's media.
|
|
3553
3663
|
*/
|
|
@@ -6276,7 +6386,7 @@ export interface StartDownloadableFileUploadResponseDto {
|
|
|
6276
6386
|
downloadable_file_id: FlakeId;
|
|
6277
6387
|
upload_signed_url: string;
|
|
6278
6388
|
}
|
|
6279
|
-
export type StatsDimensionTypeDto_V2 = "unspecified" | "product" | "gameserver" | "tag" | "affiliate_link" | "coupon" | "giftcard" | "payout_id" | "billing_email" | "sale";
|
|
6389
|
+
export type StatsDimensionTypeDto_V2 = "unspecified" | "product" | "gameserver" | "tag" | "affiliate_link" | "coupon" | "giftcard" | "payout_id" | "billing_email" | "sale" | "country";
|
|
6280
6390
|
export type StatsDistributionTypeDto_V2 = "unspecified" | "order_country" | "payment_method" | "payment_acceptance" | "customer_lifecycle";
|
|
6281
6391
|
/**
|
|
6282
6392
|
* A 64-bit Steam account identifier. Accepts string or numeric format.
|
|
@@ -6402,6 +6512,57 @@ export interface StoreBillingStatusDto {
|
|
|
6402
6512
|
subscription?: StoreSubscriptionDto;
|
|
6403
6513
|
payment_method?: PaymentMethodDto;
|
|
6404
6514
|
}
|
|
6515
|
+
/**
|
|
6516
|
+
* Represents a chargeback or pre-chargeback inquiry raised against a payment.
|
|
6517
|
+
*/
|
|
6518
|
+
export interface StoreChargebackDto {
|
|
6519
|
+
id: FlakeId;
|
|
6520
|
+
store_id: FlakeId;
|
|
6521
|
+
order_id: FlakeId;
|
|
6522
|
+
payment_id: FlakeId;
|
|
6523
|
+
customer_id: FlakeId;
|
|
6524
|
+
status: TrustChargebackStatus;
|
|
6525
|
+
reason: TrustChargebackReason;
|
|
6526
|
+
stage: TrustChargebackStage;
|
|
6527
|
+
network_case_type: TrustChargebackNetworkCaseType;
|
|
6528
|
+
/**
|
|
6529
|
+
* The card network's reason code for the chargeback, if available.
|
|
6530
|
+
*/
|
|
6531
|
+
network_reason_code?: string | null;
|
|
6532
|
+
/**
|
|
6533
|
+
* The disputed amount, in the smallest currency unit.
|
|
6534
|
+
* @format int64
|
|
6535
|
+
*/
|
|
6536
|
+
disputed_amount: number;
|
|
6537
|
+
/**
|
|
6538
|
+
* The three-letter ISO currency code of 'disputed_amount', in lowercase.
|
|
6539
|
+
*/
|
|
6540
|
+
currency: string;
|
|
6541
|
+
/**
|
|
6542
|
+
* Whether the payment can still be refunded.
|
|
6543
|
+
*/
|
|
6544
|
+
is_refundable: boolean;
|
|
6545
|
+
/**
|
|
6546
|
+
* The date and time the chargeback was opened.
|
|
6547
|
+
* @format date-time
|
|
6548
|
+
*/
|
|
6549
|
+
created_at: string;
|
|
6550
|
+
/**
|
|
6551
|
+
* The date and time the inquiry escalated to a claim, if it did.
|
|
6552
|
+
* @format date-time
|
|
6553
|
+
*/
|
|
6554
|
+
escalated_at?: string | null;
|
|
6555
|
+
/**
|
|
6556
|
+
* The date and time by which a response must be submitted, if one is required.
|
|
6557
|
+
* @format date-time
|
|
6558
|
+
*/
|
|
6559
|
+
response_deadline_at?: string | null;
|
|
6560
|
+
/**
|
|
6561
|
+
* The date and time the chargeback was closed, if it is closed.
|
|
6562
|
+
* @format date-time
|
|
6563
|
+
*/
|
|
6564
|
+
closed_at?: string | null;
|
|
6565
|
+
}
|
|
6405
6566
|
/**
|
|
6406
6567
|
* Query parameters
|
|
6407
6568
|
*/
|
|
@@ -7266,54 +7427,6 @@ export interface StoreUpsellSettingsDto {
|
|
|
7266
7427
|
updated_at: string;
|
|
7267
7428
|
updated_by: ActorDto;
|
|
7268
7429
|
}
|
|
7269
|
-
/**
|
|
7270
|
-
* Represents an invoice Stripe Billing raised for the store's subscription before the store moved to PayNow.
|
|
7271
|
-
*/
|
|
7272
|
-
export interface StripeStoreInvoiceDto {
|
|
7273
|
-
/**
|
|
7274
|
-
* The Stripe identifier of the invoice, starting with 'in_'.
|
|
7275
|
-
*/
|
|
7276
|
-
id: string;
|
|
7277
|
-
/**
|
|
7278
|
-
* The invoice number printed on the document.
|
|
7279
|
-
*/
|
|
7280
|
-
number?: string | null;
|
|
7281
|
-
/**
|
|
7282
|
-
* What the invoice was raised for.
|
|
7283
|
-
*/
|
|
7284
|
-
description?: string | null;
|
|
7285
|
-
/**
|
|
7286
|
-
* The lowercase ISO 4217 currency the invoice was raised in.
|
|
7287
|
-
*/
|
|
7288
|
-
currency: string;
|
|
7289
|
-
/**
|
|
7290
|
-
* The invoice total in the smallest currency unit.
|
|
7291
|
-
* @format int64
|
|
7292
|
-
*/
|
|
7293
|
-
total: number;
|
|
7294
|
-
/**
|
|
7295
|
-
* Whether the invoice has been paid.
|
|
7296
|
-
*/
|
|
7297
|
-
is_paid: boolean;
|
|
7298
|
-
/**
|
|
7299
|
-
* When the invoice was created.
|
|
7300
|
-
* @format date-time
|
|
7301
|
-
*/
|
|
7302
|
-
created_at: string;
|
|
7303
|
-
}
|
|
7304
|
-
/**
|
|
7305
|
-
* Represents a page of the store's Stripe Billing invoices, newest first.
|
|
7306
|
-
*/
|
|
7307
|
-
export interface StripeStoreInvoicesDto {
|
|
7308
|
-
/**
|
|
7309
|
-
* The invoices on this page.
|
|
7310
|
-
*/
|
|
7311
|
-
invoices: Array<StripeStoreInvoiceDto>;
|
|
7312
|
-
/**
|
|
7313
|
-
* Whether more invoices follow. Pass the last invoice's 'id' as 'starting_after' to fetch them.
|
|
7314
|
-
*/
|
|
7315
|
-
has_more: boolean;
|
|
7316
|
-
}
|
|
7317
7430
|
/**
|
|
7318
7431
|
* Represents a billing amount breakdown for a subscription.
|
|
7319
7432
|
*/
|
|
@@ -8198,6 +8311,14 @@ export interface SubscriptionsSummaryForRangeDto_V2 {
|
|
|
8198
8311
|
* @format int64
|
|
8199
8312
|
*/
|
|
8200
8313
|
churned_subscription_count: number;
|
|
8314
|
+
/**
|
|
8315
|
+
* @format int64
|
|
8316
|
+
*/
|
|
8317
|
+
renewal_due_count: number;
|
|
8318
|
+
/**
|
|
8319
|
+
* @format int64
|
|
8320
|
+
*/
|
|
8321
|
+
renewal_paid_count: number;
|
|
8201
8322
|
}
|
|
8202
8323
|
/**
|
|
8203
8324
|
* Represents the current state of a subscription.
|
|
@@ -8554,6 +8675,47 @@ export interface TrialsSummaryForRangeDto_V2 {
|
|
|
8554
8675
|
* - `completed`: The trial has been completed.
|
|
8555
8676
|
*/
|
|
8556
8677
|
export type TrialStatusDto = "created" | "active" | "canceled" | "completed";
|
|
8678
|
+
/**
|
|
8679
|
+
* Specifies the type of case the card network opened for the chargeback.
|
|
8680
|
+
* - `unspecified`: No card network case type is available, for example for PayPal disputes.
|
|
8681
|
+
* - `chargeback`: A formal chargeback where the disputed funds are withdrawn.
|
|
8682
|
+
* - `inquiry`: A pre-chargeback inquiry from the issuer.
|
|
8683
|
+
* - `compliance`: A network compliance case filed outside the regular dispute process.
|
|
8684
|
+
* - `block`: The network blocked the dispute before it became a chargeback. No funds move.
|
|
8685
|
+
* - `resolution`: The dispute was resolved by automatically refunding the customer.
|
|
8686
|
+
*/
|
|
8687
|
+
export type TrustChargebackNetworkCaseType = "unspecified" | "chargeback" | "inquiry" | "compliance" | "block" | "resolution";
|
|
8688
|
+
/**
|
|
8689
|
+
* Specifies the reason the customer gave for the chargeback.
|
|
8690
|
+
* - `invalid`: The reason is unknown.
|
|
8691
|
+
* - `product_not_received`: The customer says the product or service was not received.
|
|
8692
|
+
* - `product_not_as_described`: The customer says the product or service was not as described.
|
|
8693
|
+
* - `unauthorized`: The customer says they did not authorize the payment.
|
|
8694
|
+
* - `credit_not_processed`: The customer says a promised refund or credit was not processed.
|
|
8695
|
+
* - `duplicate_charge`: The customer says they were charged more than once.
|
|
8696
|
+
* - `incorrect_amount`: The customer says they were charged the wrong amount.
|
|
8697
|
+
* - `subscription_canceled`: The customer says they were charged after canceling a subscription.
|
|
8698
|
+
* - `general`: Any other reason.
|
|
8699
|
+
*/
|
|
8700
|
+
export type TrustChargebackReason = "invalid" | "product_not_received" | "product_not_as_described" | "unauthorized" | "credit_not_processed" | "duplicate_charge" | "incorrect_amount" | "subscription_canceled" | "general";
|
|
8701
|
+
/**
|
|
8702
|
+
* Specifies the stage of a chargeback.
|
|
8703
|
+
* - `invalid`: The stage is unknown.
|
|
8704
|
+
* - `inquiry`: A pre-chargeback inquiry. No funds are withdrawn yet, and a refund may resolve it.
|
|
8705
|
+
* - `claim`: A formal claim where the disputed funds are at stake.
|
|
8706
|
+
*/
|
|
8707
|
+
export type TrustChargebackStage = "invalid" | "inquiry" | "claim";
|
|
8708
|
+
/**
|
|
8709
|
+
* Specifies the status of a chargeback.
|
|
8710
|
+
* - `invalid`: The status is unknown.
|
|
8711
|
+
* - `needs_response`: The chargeback is open and awaiting a response.
|
|
8712
|
+
* - `under_review`: A response was submitted and the chargeback is being reviewed.
|
|
8713
|
+
* - `won`: The chargeback was resolved in the store's favor.
|
|
8714
|
+
* - `lost`: The chargeback was resolved in the customer's favor.
|
|
8715
|
+
* - `closed`: The inquiry was closed without escalating to a chargeback.
|
|
8716
|
+
* - `prevented`: The chargeback was prevented before it was filed, see 'network_case_type' for how.
|
|
8717
|
+
*/
|
|
8718
|
+
export type TrustChargebackStatus = "invalid" | "needs_response" | "under_review" | "won" | "lost" | "closed" | "prevented";
|
|
8557
8719
|
export interface TrustStoreRequirementDto {
|
|
8558
8720
|
id: FlakeId;
|
|
8559
8721
|
store_id: FlakeId;
|