@paynow-gg/typescript-sdk 2.1.2 → 2.1.3
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 +16 -21
- package/dist/cjs/generated/management/client.d.ts.map +1 -1
- package/dist/cjs/generated/management/client.js +19 -26
- package/dist/cjs/generated/management/client.js.map +1 -1
- package/dist/cjs/generated/management/types.d.ts +434 -93
- package/dist/cjs/generated/management/types.d.ts.map +1 -1
- package/dist/esm/generated/management/client.d.ts +16 -21
- package/dist/esm/generated/management/client.d.ts.map +1 -1
- package/dist/esm/generated/management/client.js +19 -26
- package/dist/esm/generated/management/client.js.map +1 -1
- package/dist/esm/generated/management/types.d.ts +434 -93
- package/dist/esm/generated/management/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -363,7 +363,7 @@ export type BanType = "unknown" | "steam" | "ip" | "customer" | "customer_name"
|
|
|
363
363
|
/**
|
|
364
364
|
* Query parameters
|
|
365
365
|
*/
|
|
366
|
-
export type
|
|
366
|
+
export type BillingGetStoreBillingOrdersQuery = {
|
|
367
367
|
/**
|
|
368
368
|
* The maximum number of items to return in a single request.
|
|
369
369
|
* @format int32
|
|
@@ -2971,15 +2971,6 @@ export type InvoicesListInvoicesQuery = {
|
|
|
2971
2971
|
};
|
|
2972
2972
|
export type InvoiceStatusDto = "invalid" | "pending" | "generated" | "failed";
|
|
2973
2973
|
export type InvoiceTypeDto = "invalid" | "invoice" | "credit_note";
|
|
2974
|
-
/**
|
|
2975
|
-
* Represents a freshly issued link to a hosted invoice.
|
|
2976
|
-
*/
|
|
2977
|
-
export interface InvoiceUrlDto {
|
|
2978
|
-
/**
|
|
2979
|
-
* The hosted invoice URL.
|
|
2980
|
-
*/
|
|
2981
|
-
url: string;
|
|
2982
|
-
}
|
|
2983
2974
|
/**
|
|
2984
2975
|
* Klarna payment method details
|
|
2985
2976
|
*/
|
|
@@ -4168,6 +4159,16 @@ export interface PaymentMethodTypeFeeOverrideDto {
|
|
|
4168
4159
|
*/
|
|
4169
4160
|
ends_at?: string | null;
|
|
4170
4161
|
}
|
|
4162
|
+
/**
|
|
4163
|
+
* A customer portal session scoped to updating the payment method of the store's
|
|
4164
|
+
* active subscription.
|
|
4165
|
+
*/
|
|
4166
|
+
export interface PaymentMethodUpdateSessionDto {
|
|
4167
|
+
/**
|
|
4168
|
+
* The URL the store owner has to visit to update the subscription's payment method.
|
|
4169
|
+
*/
|
|
4170
|
+
session_url: string;
|
|
4171
|
+
}
|
|
4171
4172
|
/**
|
|
4172
4173
|
* Represents payout split results for multi-party payments
|
|
4173
4174
|
*/
|
|
@@ -4424,6 +4425,7 @@ export interface PlanDto {
|
|
|
4424
4425
|
name: string;
|
|
4425
4426
|
description?: string | null;
|
|
4426
4427
|
is_custom: boolean;
|
|
4428
|
+
inherits_from_plan_id?: string | null;
|
|
4427
4429
|
}
|
|
4428
4430
|
/**
|
|
4429
4431
|
* Represents a publicly listed plan a store can subscribe to.
|
|
@@ -4488,6 +4490,7 @@ export interface PlanPricingDto {
|
|
|
4488
4490
|
* @format date-time
|
|
4489
4491
|
*/
|
|
4490
4492
|
ends_at?: string | null;
|
|
4493
|
+
revenue_limit_exceeded?: boolean | null;
|
|
4491
4494
|
}
|
|
4492
4495
|
export type PlatformCapability = "invalid" | "connected_users";
|
|
4493
4496
|
export interface PlatformStoreTypeAssociationDetailsDto {
|
|
@@ -5828,11 +5831,11 @@ export interface StoreBillingStatusDto {
|
|
|
5828
5831
|
revenue_usage: number;
|
|
5829
5832
|
plan_limits: Record<string, number>;
|
|
5830
5833
|
feature_flags: Array<string>;
|
|
5834
|
+
alerts: Array<StoreAlertDto>;
|
|
5831
5835
|
plan: PlanDto;
|
|
5832
5836
|
plan_pricing: PlanPricingDto;
|
|
5833
5837
|
subscription?: StoreSubscriptionDto;
|
|
5834
|
-
|
|
5835
|
-
payment_method?: SubscriptionPaymentMethodDto;
|
|
5838
|
+
payment_method?: PaymentMethodDto;
|
|
5836
5839
|
}
|
|
5837
5840
|
/**
|
|
5838
5841
|
* Query parameters
|
|
@@ -5927,6 +5930,420 @@ export interface StoreDto {
|
|
|
5927
5930
|
onboarding_completed_at?: string | null;
|
|
5928
5931
|
platform_store_type_association?: PlatformStoreTypeAssociationDetailsDto;
|
|
5929
5932
|
}
|
|
5933
|
+
/**
|
|
5934
|
+
* A storefront representation of a customer in the PayNow system with their associated profiles and metadata.
|
|
5935
|
+
*/
|
|
5936
|
+
export interface StorefrontCustomerDto {
|
|
5937
|
+
id: FlakeId;
|
|
5938
|
+
store_id: FlakeId;
|
|
5939
|
+
profile?: CustomerGenericProfileDto;
|
|
5940
|
+
steam_id?: SteamId;
|
|
5941
|
+
steam?: StorefrontCustomerSteamProfileDto;
|
|
5942
|
+
/**
|
|
5943
|
+
* The customer's Minecraft UUID, if they have linked their Minecraft account.
|
|
5944
|
+
* Not set for offline Minecraft stores. If the platform type is Minecraft - Geyser,
|
|
5945
|
+
* and the profile is a bedrock account, this will be a UUID generated from the Xbox XUID.
|
|
5946
|
+
* @example "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2"
|
|
5947
|
+
*/
|
|
5948
|
+
minecraft_uuid?: string | null;
|
|
5949
|
+
minecraft?: StorefrontCustomerMinecraftProfileDto;
|
|
5950
|
+
minecraft_platform?: CustomerMinecraftPlatform;
|
|
5951
|
+
/**
|
|
5952
|
+
* The customer's Xbox XUID, if available.
|
|
5953
|
+
*/
|
|
5954
|
+
xbox_xuid?: string | null;
|
|
5955
|
+
/**
|
|
5956
|
+
* The display name for the customer.
|
|
5957
|
+
* @example "m0uka"
|
|
5958
|
+
*/
|
|
5959
|
+
name?: string | null;
|
|
5960
|
+
}
|
|
5961
|
+
/**
|
|
5962
|
+
* A storefront representation of a customers Minecraft profile.
|
|
5963
|
+
*/
|
|
5964
|
+
export interface StorefrontCustomerMinecraftProfileDto {
|
|
5965
|
+
/**
|
|
5966
|
+
* The UUID of the Minecraft player.
|
|
5967
|
+
* If the platform is Minecraft Offline, this will be the name itself.
|
|
5968
|
+
* If the platform is Minecraft Geyser, and this is a Bedrock account, this ID will be an Xbox XUID.
|
|
5969
|
+
* @example "f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2"
|
|
5970
|
+
*/
|
|
5971
|
+
id: string;
|
|
5972
|
+
/**
|
|
5973
|
+
* The username of the Minecraft player.
|
|
5974
|
+
* @example "notch"
|
|
5975
|
+
*/
|
|
5976
|
+
name: string;
|
|
5977
|
+
/**
|
|
5978
|
+
* The URL to the player's Minecraft skin rendered as an avatar.
|
|
5979
|
+
*/
|
|
5980
|
+
avatar_url: string;
|
|
5981
|
+
}
|
|
5982
|
+
/**
|
|
5983
|
+
* A storefront representation of a customers Steam profile.
|
|
5984
|
+
*/
|
|
5985
|
+
export interface StorefrontCustomerSteamProfileDto {
|
|
5986
|
+
id: SteamId;
|
|
5987
|
+
/**
|
|
5988
|
+
* The display name of the user on Steam.
|
|
5989
|
+
*/
|
|
5990
|
+
name: string;
|
|
5991
|
+
/**
|
|
5992
|
+
* The URL to the user's Steam avatar image.
|
|
5993
|
+
*/
|
|
5994
|
+
avatar_url: string;
|
|
5995
|
+
}
|
|
5996
|
+
/**
|
|
5997
|
+
* Data transfer object representing a store order.
|
|
5998
|
+
*/
|
|
5999
|
+
export interface StorefrontOrderDto {
|
|
6000
|
+
id: FlakeId;
|
|
6001
|
+
/**
|
|
6002
|
+
* Human-readable identifier for the order.
|
|
6003
|
+
* @readonly Set by the API; ignored on write.
|
|
6004
|
+
*/
|
|
6005
|
+
pretty_id: string;
|
|
6006
|
+
store_id: FlakeId;
|
|
6007
|
+
customer_id: FlakeId;
|
|
6008
|
+
customer: StorefrontCustomerDto;
|
|
6009
|
+
status: OrderStatus;
|
|
6010
|
+
type: OrderType;
|
|
6011
|
+
checkout_id?: FlakeId;
|
|
6012
|
+
subscription_id?: FlakeId;
|
|
6013
|
+
/**
|
|
6014
|
+
* Indicates whether this order is a subscription order.
|
|
6015
|
+
*/
|
|
6016
|
+
is_subscription: boolean;
|
|
6017
|
+
/**
|
|
6018
|
+
* Currency code used for this order.
|
|
6019
|
+
*/
|
|
6020
|
+
currency: string;
|
|
6021
|
+
/**
|
|
6022
|
+
* The total discount amount applied to this order in smallest currency unit
|
|
6023
|
+
* @format int32
|
|
6024
|
+
* @example 500
|
|
6025
|
+
*/
|
|
6026
|
+
discount_amount: number;
|
|
6027
|
+
/**
|
|
6028
|
+
* The discount amount formatted as a string
|
|
6029
|
+
* @example "$5.00"
|
|
6030
|
+
*/
|
|
6031
|
+
discount_amount_str: string;
|
|
6032
|
+
/**
|
|
6033
|
+
* The subtotal amount for this order in smallest currency unit
|
|
6034
|
+
* @format int32
|
|
6035
|
+
* @example 9995
|
|
6036
|
+
*/
|
|
6037
|
+
subtotal_amount: number;
|
|
6038
|
+
/**
|
|
6039
|
+
* The subtotal amount formatted as a string
|
|
6040
|
+
* @example "$99.95"
|
|
6041
|
+
*/
|
|
6042
|
+
subtotal_amount_str: string;
|
|
6043
|
+
/**
|
|
6044
|
+
* The tax amount for this order in smallest currency unit
|
|
6045
|
+
* @format int32
|
|
6046
|
+
* @example 999
|
|
6047
|
+
*/
|
|
6048
|
+
tax_amount: number;
|
|
6049
|
+
/**
|
|
6050
|
+
* The tax amount formatted as a string
|
|
6051
|
+
* @example "$9.99"
|
|
6052
|
+
*/
|
|
6053
|
+
tax_amount_str: string;
|
|
6054
|
+
/**
|
|
6055
|
+
* The total amount for this order in smallest currency unit
|
|
6056
|
+
* @format int32
|
|
6057
|
+
* @example 10494
|
|
6058
|
+
*/
|
|
6059
|
+
total_amount: number;
|
|
6060
|
+
/**
|
|
6061
|
+
* The total amount formatted as a string
|
|
6062
|
+
* @example "$104.94"
|
|
6063
|
+
*/
|
|
6064
|
+
total_amount_str: string;
|
|
6065
|
+
/**
|
|
6066
|
+
* The amount of gift card value used for this order in smallest currency unit
|
|
6067
|
+
* @format int32
|
|
6068
|
+
* @example 0
|
|
6069
|
+
*/
|
|
6070
|
+
giftcard_usage_amount: number;
|
|
6071
|
+
/**
|
|
6072
|
+
* The gift card usage amount formatted as a string
|
|
6073
|
+
* @example "$0.00"
|
|
6074
|
+
*/
|
|
6075
|
+
giftcard_usage_amount_str: string;
|
|
6076
|
+
/**
|
|
6077
|
+
* The presentment currency code used for this order (currency shown to customer)
|
|
6078
|
+
* @example "eur"
|
|
6079
|
+
*/
|
|
6080
|
+
presentment_currency: string;
|
|
6081
|
+
/**
|
|
6082
|
+
* The presentment subtotal amount in smallest currency unit
|
|
6083
|
+
* @format int32
|
|
6084
|
+
* @example 9995
|
|
6085
|
+
*/
|
|
6086
|
+
presentment_subtotal_amount: number;
|
|
6087
|
+
/**
|
|
6088
|
+
* The presentment subtotal amount formatted as a string
|
|
6089
|
+
* @example "€99.95"
|
|
6090
|
+
* @readonly Set by the API; ignored on write.
|
|
6091
|
+
*/
|
|
6092
|
+
presentment_subtotal_amount_str: string;
|
|
6093
|
+
/**
|
|
6094
|
+
* The presentment discount amount in smallest currency unit
|
|
6095
|
+
* @format int32
|
|
6096
|
+
* @example 500
|
|
6097
|
+
*/
|
|
6098
|
+
presentment_discount_amount: number;
|
|
6099
|
+
/**
|
|
6100
|
+
* The presentment discount amount formatted as a string
|
|
6101
|
+
* @example "€5.00"
|
|
6102
|
+
* @readonly Set by the API; ignored on write.
|
|
6103
|
+
*/
|
|
6104
|
+
presentment_discount_amount_str: string;
|
|
6105
|
+
/**
|
|
6106
|
+
* The presentment gift card usage amount in the smallest currency unit
|
|
6107
|
+
* @format int32
|
|
6108
|
+
* @example 0
|
|
6109
|
+
*/
|
|
6110
|
+
presentment_giftcard_usage_amount: number;
|
|
6111
|
+
/**
|
|
6112
|
+
* The presentment gift card usage amount formatted as a string
|
|
6113
|
+
* @example "€0.00"
|
|
6114
|
+
* @readonly Set by the API; ignored on write.
|
|
6115
|
+
*/
|
|
6116
|
+
presentment_giftcard_usage_amount_str: string;
|
|
6117
|
+
/**
|
|
6118
|
+
* The presentment tax amount in smallest currency unit
|
|
6119
|
+
* @format int32
|
|
6120
|
+
* @example 999
|
|
6121
|
+
*/
|
|
6122
|
+
presentment_tax_amount: number;
|
|
6123
|
+
/**
|
|
6124
|
+
* The presentment tax amount formatted as a string
|
|
6125
|
+
* @example "€9.99"
|
|
6126
|
+
* @readonly Set by the API; ignored on write.
|
|
6127
|
+
*/
|
|
6128
|
+
presentment_tax_amount_str: string;
|
|
6129
|
+
/**
|
|
6130
|
+
* The presentment total amount in the smallest currency unit
|
|
6131
|
+
* @format int32
|
|
6132
|
+
* @example 10494
|
|
6133
|
+
*/
|
|
6134
|
+
presentment_total_amount: number;
|
|
6135
|
+
/**
|
|
6136
|
+
* The presentment total amount formatted as a string
|
|
6137
|
+
* @example "€104.94"
|
|
6138
|
+
* @readonly Set by the API; ignored on write.
|
|
6139
|
+
*/
|
|
6140
|
+
presentment_total_amount_str: string;
|
|
6141
|
+
/**
|
|
6142
|
+
* Sequence number of the billing cycle, if this order is associated with a subscription.
|
|
6143
|
+
* @format int32
|
|
6144
|
+
*/
|
|
6145
|
+
billing_cycle_sequence?: number | null;
|
|
6146
|
+
/**
|
|
6147
|
+
* Line items associated with this order.
|
|
6148
|
+
*/
|
|
6149
|
+
lines: Array<StorefrontOrderLineDto>;
|
|
6150
|
+
/**
|
|
6151
|
+
* Date and time when the order was created.
|
|
6152
|
+
* @format date-time
|
|
6153
|
+
*/
|
|
6154
|
+
created_at?: string | null;
|
|
6155
|
+
/**
|
|
6156
|
+
* Date and time when the order was completed.
|
|
6157
|
+
* @format date-time
|
|
6158
|
+
*/
|
|
6159
|
+
completed_at?: string | null;
|
|
6160
|
+
/**
|
|
6161
|
+
* Date and time when the order was canceled.
|
|
6162
|
+
* @format date-time
|
|
6163
|
+
*/
|
|
6164
|
+
canceled_at?: string | null;
|
|
6165
|
+
}
|
|
6166
|
+
/**
|
|
6167
|
+
* Represents a line item within an order.
|
|
6168
|
+
*/
|
|
6169
|
+
export interface StorefrontOrderLineDto {
|
|
6170
|
+
id: FlakeId;
|
|
6171
|
+
checkout_line_id: FlakeId;
|
|
6172
|
+
subscription_line_id?: FlakeId;
|
|
6173
|
+
trial_id?: FlakeId;
|
|
6174
|
+
product_id: FlakeId;
|
|
6175
|
+
product_version_id: FlakeId;
|
|
6176
|
+
/**
|
|
6177
|
+
* Name of the product associated with this order line.
|
|
6178
|
+
*/
|
|
6179
|
+
product_name: string;
|
|
6180
|
+
/**
|
|
6181
|
+
* URL for the product image.
|
|
6182
|
+
*/
|
|
6183
|
+
product_image_url: string;
|
|
6184
|
+
/**
|
|
6185
|
+
* Numeric value of the subscription billing interval, if this line is a subscription.
|
|
6186
|
+
* @format int32
|
|
6187
|
+
*/
|
|
6188
|
+
subscription_interval_value?: number | null;
|
|
6189
|
+
/**
|
|
6190
|
+
* Scale of the subscription billing interval (e.g., "day", "month", "year"), if applicable.
|
|
6191
|
+
*/
|
|
6192
|
+
subscription_interval_scale?: string | null;
|
|
6193
|
+
/**
|
|
6194
|
+
* Indicates whether this order line is a gift to another customer.
|
|
6195
|
+
*/
|
|
6196
|
+
gift: boolean;
|
|
6197
|
+
gift_to_customer_id?: FlakeId;
|
|
6198
|
+
gift_to_customer?: StorefrontCustomerDto;
|
|
6199
|
+
/**
|
|
6200
|
+
* The unit price of the product in the smallest currency unit (e.g., cents)
|
|
6201
|
+
* @format int32
|
|
6202
|
+
* @example 1999
|
|
6203
|
+
*/
|
|
6204
|
+
price: number;
|
|
6205
|
+
/**
|
|
6206
|
+
* The unit price of the product formatted as a string
|
|
6207
|
+
* @example "$19.99"
|
|
6208
|
+
*/
|
|
6209
|
+
price_str: string;
|
|
6210
|
+
/**
|
|
6211
|
+
* The quantity of the product in this order line
|
|
6212
|
+
* @format int32
|
|
6213
|
+
* @example 1
|
|
6214
|
+
*/
|
|
6215
|
+
quantity: number;
|
|
6216
|
+
/**
|
|
6217
|
+
* The discount amount (from sales, coupons, and affiliate links) applied to this order line
|
|
6218
|
+
* @format int32
|
|
6219
|
+
* @example 0
|
|
6220
|
+
*/
|
|
6221
|
+
discount_amount: number;
|
|
6222
|
+
/**
|
|
6223
|
+
* The discount amount formatted as a string
|
|
6224
|
+
* @example "$0.00"
|
|
6225
|
+
*/
|
|
6226
|
+
discount_amount_str: string;
|
|
6227
|
+
/**
|
|
6228
|
+
* The amount of gift card used for this order line
|
|
6229
|
+
* @format int32
|
|
6230
|
+
* @example 0
|
|
6231
|
+
*/
|
|
6232
|
+
giftcard_usage_amount: number;
|
|
6233
|
+
/**
|
|
6234
|
+
* The gift card usage amount formatted as a string
|
|
6235
|
+
* @example "$0.00"
|
|
6236
|
+
*/
|
|
6237
|
+
giftcard_usage_amount_str: string;
|
|
6238
|
+
/**
|
|
6239
|
+
* The subtotal amount for this order line
|
|
6240
|
+
* @format int32
|
|
6241
|
+
* @example 1999
|
|
6242
|
+
*/
|
|
6243
|
+
subtotal_amount: number;
|
|
6244
|
+
/**
|
|
6245
|
+
* The subtotal amount formatted as a string
|
|
6246
|
+
* @example "$19.99"
|
|
6247
|
+
*/
|
|
6248
|
+
subtotal_amount_str: string;
|
|
6249
|
+
/**
|
|
6250
|
+
* The tax amount for this order line
|
|
6251
|
+
* @format int32
|
|
6252
|
+
* @example 200
|
|
6253
|
+
*/
|
|
6254
|
+
tax_amount: number;
|
|
6255
|
+
/**
|
|
6256
|
+
* The tax amount formatted as a string
|
|
6257
|
+
* @example "$2.00"
|
|
6258
|
+
*/
|
|
6259
|
+
tax_amount_str: string;
|
|
6260
|
+
/**
|
|
6261
|
+
* The total amount for this order line
|
|
6262
|
+
* @format int32
|
|
6263
|
+
* @example 2199
|
|
6264
|
+
*/
|
|
6265
|
+
total_amount: number;
|
|
6266
|
+
/**
|
|
6267
|
+
* The total amount formatted as a string
|
|
6268
|
+
* @example "$21.99"
|
|
6269
|
+
*/
|
|
6270
|
+
total_amount_str: string;
|
|
6271
|
+
/**
|
|
6272
|
+
* The presentment subtotal amount for this order line
|
|
6273
|
+
* @format int32
|
|
6274
|
+
* @example 1999
|
|
6275
|
+
*/
|
|
6276
|
+
presentment_subtotal_amount: number;
|
|
6277
|
+
/**
|
|
6278
|
+
* The presentment subtotal amount formatted as a string
|
|
6279
|
+
* @example "€19.99"
|
|
6280
|
+
* @readonly Set by the API; ignored on write.
|
|
6281
|
+
*/
|
|
6282
|
+
presentment_subtotal_amount_str: string;
|
|
6283
|
+
/**
|
|
6284
|
+
* The presentment discount amount for this order line
|
|
6285
|
+
* @format int32
|
|
6286
|
+
* @example 0
|
|
6287
|
+
*/
|
|
6288
|
+
presentment_discount_amount: number;
|
|
6289
|
+
/**
|
|
6290
|
+
* The presentment discount amount formatted as a string
|
|
6291
|
+
* @example "€0.00"
|
|
6292
|
+
* @readonly Set by the API; ignored on write.
|
|
6293
|
+
*/
|
|
6294
|
+
presentment_discount_amount_str: string;
|
|
6295
|
+
/**
|
|
6296
|
+
* The presentment tax amount for this order line
|
|
6297
|
+
* @format int32
|
|
6298
|
+
* @example 200
|
|
6299
|
+
*/
|
|
6300
|
+
presentment_tax_amount: number;
|
|
6301
|
+
/**
|
|
6302
|
+
* The presentment tax amount formatted as a string
|
|
6303
|
+
* @example "€2.00"
|
|
6304
|
+
* @readonly Set by the API; ignored on write.
|
|
6305
|
+
*/
|
|
6306
|
+
presentment_tax_amount_str: string;
|
|
6307
|
+
/**
|
|
6308
|
+
* The presentment gift card usage amount for this order line
|
|
6309
|
+
* @format int32
|
|
6310
|
+
* @example 0
|
|
6311
|
+
*/
|
|
6312
|
+
presentment_giftcard_usage_amount: number;
|
|
6313
|
+
/**
|
|
6314
|
+
* The presentment gift card usage amount formatted as a string
|
|
6315
|
+
* @example "€0.00"
|
|
6316
|
+
* @readonly Set by the API; ignored on write.
|
|
6317
|
+
*/
|
|
6318
|
+
presentment_giftcard_usage_amount_str: string;
|
|
6319
|
+
/**
|
|
6320
|
+
* The presentment total amount for this order line
|
|
6321
|
+
* @format int32
|
|
6322
|
+
* @example 2199
|
|
6323
|
+
*/
|
|
6324
|
+
presentment_total_amount: number;
|
|
6325
|
+
/**
|
|
6326
|
+
* The presentment total amount formatted as a string
|
|
6327
|
+
* @example "€21.99"
|
|
6328
|
+
* @readonly Set by the API; ignored on write.
|
|
6329
|
+
*/
|
|
6330
|
+
presentment_total_amount_str: string;
|
|
6331
|
+
selected_gameserver_id?: FlakeId;
|
|
6332
|
+
/**
|
|
6333
|
+
* Indicates whether tax is included in the base price, or added on top
|
|
6334
|
+
* @example false
|
|
6335
|
+
*/
|
|
6336
|
+
tax_inclusive: boolean;
|
|
6337
|
+
/**
|
|
6338
|
+
* The regional pricing region ID for this order line, null if no regional pricing set
|
|
6339
|
+
* @example "eu"
|
|
6340
|
+
*/
|
|
6341
|
+
pricing_region_id?: string | null;
|
|
6342
|
+
/**
|
|
6343
|
+
* Key-value pair of selected custom variables for this order.
|
|
6344
|
+
*/
|
|
6345
|
+
custom_variables?: Record<string, CustomVariableLineItemDto> | null;
|
|
6346
|
+
}
|
|
5930
6347
|
/**
|
|
5931
6348
|
* Represents a store entity within the storefront system.
|
|
5932
6349
|
*/
|
|
@@ -6008,54 +6425,6 @@ export interface StorefrontStoreDto {
|
|
|
6008
6425
|
*/
|
|
6009
6426
|
updated_at?: string | null;
|
|
6010
6427
|
}
|
|
6011
|
-
/**
|
|
6012
|
-
* Represents an invoice raised against a store's own subscription.
|
|
6013
|
-
*/
|
|
6014
|
-
export interface StoreInvoiceDto {
|
|
6015
|
-
id: FlakeId;
|
|
6016
|
-
subscription_id: FlakeId;
|
|
6017
|
-
plan_pricing_id: FlakeId;
|
|
6018
|
-
/**
|
|
6019
|
-
* The payment gateway that issued the invoice.
|
|
6020
|
-
*/
|
|
6021
|
-
gateway: string;
|
|
6022
|
-
/**
|
|
6023
|
-
* The identifier of the invoice within the payment gateway.
|
|
6024
|
-
*/
|
|
6025
|
-
gateway_invoice_id: string;
|
|
6026
|
-
/**
|
|
6027
|
-
* The hosted invoice URL recorded when the invoice was raised. May expire; request
|
|
6028
|
-
* 'invoices/{invoice_id}/url' for a freshly issued link.
|
|
6029
|
-
*/
|
|
6030
|
-
invoice_url: string;
|
|
6031
|
-
/**
|
|
6032
|
-
* The description of what was billed.
|
|
6033
|
-
*/
|
|
6034
|
-
description: string;
|
|
6035
|
-
/**
|
|
6036
|
-
* The currency the invoice was issued in.
|
|
6037
|
-
*/
|
|
6038
|
-
currency: string;
|
|
6039
|
-
/**
|
|
6040
|
-
* The invoiced total, in the smallest currency unit.
|
|
6041
|
-
* @format int64
|
|
6042
|
-
*/
|
|
6043
|
-
total: number;
|
|
6044
|
-
/**
|
|
6045
|
-
* Whether the invoice has been paid.
|
|
6046
|
-
*/
|
|
6047
|
-
is_paid: boolean;
|
|
6048
|
-
/**
|
|
6049
|
-
* When the invoice was raised.
|
|
6050
|
-
* @format date-time
|
|
6051
|
-
*/
|
|
6052
|
-
created_at: string;
|
|
6053
|
-
/**
|
|
6054
|
-
* When the invoice was last updated.
|
|
6055
|
-
* @format date-time
|
|
6056
|
-
*/
|
|
6057
|
-
updated_at?: string | null;
|
|
6058
|
-
}
|
|
6059
6428
|
/**
|
|
6060
6429
|
* Represents a member of a PayNow store.
|
|
6061
6430
|
*/
|
|
@@ -6210,6 +6579,7 @@ export interface StoreResult {
|
|
|
6210
6579
|
export interface StoreSubscriptionDto {
|
|
6211
6580
|
id: FlakeId;
|
|
6212
6581
|
store_id: FlakeId;
|
|
6582
|
+
user_id: FlakeId;
|
|
6213
6583
|
plan_id: string;
|
|
6214
6584
|
gateway: string;
|
|
6215
6585
|
gateway_subscription_id: string;
|
|
@@ -6217,6 +6587,7 @@ export interface StoreSubscriptionDto {
|
|
|
6217
6587
|
gateway_payment_method_id: string;
|
|
6218
6588
|
currency: string;
|
|
6219
6589
|
status: StoreSubscriptionStatus;
|
|
6590
|
+
renewal_period: StoreSubscriptionRenewalPeriod;
|
|
6220
6591
|
downgrade_period_end_plan_id?: string | null;
|
|
6221
6592
|
cancel_at_period_end: boolean;
|
|
6222
6593
|
/**
|
|
@@ -6238,12 +6609,13 @@ export interface StoreSubscriptionDto {
|
|
|
6238
6609
|
/**
|
|
6239
6610
|
* @format date-time
|
|
6240
6611
|
*/
|
|
6241
|
-
current_period_start
|
|
6612
|
+
current_period_start?: string | null;
|
|
6242
6613
|
/**
|
|
6243
6614
|
* @format date-time
|
|
6244
6615
|
*/
|
|
6245
|
-
current_period_end
|
|
6616
|
+
current_period_end?: string | null;
|
|
6246
6617
|
}
|
|
6618
|
+
export type StoreSubscriptionRenewalPeriod = "monthly" | "annually";
|
|
6247
6619
|
export type StoreSubscriptionStatus = "incomplete" | "trialing" | "active" | "requires_action" | "canceled";
|
|
6248
6620
|
export interface StoreTrustDto {
|
|
6249
6621
|
store_id: FlakeId;
|
|
@@ -7135,37 +7507,6 @@ export interface SubscriptionLineDto {
|
|
|
7135
7507
|
*/
|
|
7136
7508
|
initial_presentment_total_amount_str?: string | null;
|
|
7137
7509
|
}
|
|
7138
|
-
/**
|
|
7139
|
-
* Represents the payment method a store's subscription is billed to.
|
|
7140
|
-
*/
|
|
7141
|
-
export interface SubscriptionPaymentMethodDto {
|
|
7142
|
-
/**
|
|
7143
|
-
* The identifier of the payment method within the payment gateway.
|
|
7144
|
-
*/
|
|
7145
|
-
id: string;
|
|
7146
|
-
/**
|
|
7147
|
-
* The kind of payment method, such as a card.
|
|
7148
|
-
*/
|
|
7149
|
-
type: string;
|
|
7150
|
-
/**
|
|
7151
|
-
* The card network, when the payment method is a card.
|
|
7152
|
-
*/
|
|
7153
|
-
card_brand?: string | null;
|
|
7154
|
-
/**
|
|
7155
|
-
* The month the card expires, when the payment method is a card.
|
|
7156
|
-
* @format int64
|
|
7157
|
-
*/
|
|
7158
|
-
card_exp_month?: number | null;
|
|
7159
|
-
/**
|
|
7160
|
-
* The year the card expires, when the payment method is a card.
|
|
7161
|
-
* @format int64
|
|
7162
|
-
*/
|
|
7163
|
-
card_exp_year?: number | null;
|
|
7164
|
-
/**
|
|
7165
|
-
* The last four digits of the card, when the payment method is a card.
|
|
7166
|
-
*/
|
|
7167
|
-
card_last4?: string | null;
|
|
7168
|
-
}
|
|
7169
7510
|
/**
|
|
7170
7511
|
* Portal flow for updating the payment method of a specific subscription
|
|
7171
7512
|
*/
|