dodopayments 2.43.0 → 2.44.0
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/CHANGELOG.md +8 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/payments.d.mts +3 -47
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +3 -47
- package/resources/payments.d.ts.map +1 -1
- package/resources/webhook-events.d.mts +69 -2
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +69 -2
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhook-events.js.map +1 -1
- package/resources/webhook-events.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +824 -3
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +824 -3
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +10 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/payments.ts +3 -82
- package/src/resources/webhook-events.ts +85 -1
- package/src/resources/webhooks/index.ts +5 -0
- package/src/resources/webhooks/webhooks.ts +1101 -75
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as DisputesAPI from '../disputes';
|
|
5
5
|
import * as LicenseKeysAPI from '../license-keys';
|
|
6
|
+
import * as MiscAPI from '../misc';
|
|
6
7
|
import * as PaymentsAPI from '../payments';
|
|
7
8
|
import * as RefundsAPI from '../refunds';
|
|
8
9
|
import * as SubscriptionsAPI from '../subscriptions';
|
|
@@ -919,13 +920,13 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
919
920
|
type: 'payment.succeeded';
|
|
920
921
|
}
|
|
921
922
|
|
|
922
|
-
export interface
|
|
923
|
+
export interface PayoutCreatedWebhookEvent {
|
|
923
924
|
/**
|
|
924
925
|
* The business identifier
|
|
925
926
|
*/
|
|
926
927
|
business_id: string;
|
|
927
928
|
|
|
928
|
-
data:
|
|
929
|
+
data: PayoutCreatedWebhookEvent.Data;
|
|
929
930
|
|
|
930
931
|
/**
|
|
931
932
|
* The timestamp of when the event occurred
|
|
@@ -935,38 +936,98 @@ export interface RefundFailedWebhookEvent {
|
|
|
935
936
|
/**
|
|
936
937
|
* The event type
|
|
937
938
|
*/
|
|
938
|
-
type: '
|
|
939
|
+
type: 'payout.created';
|
|
939
940
|
}
|
|
940
941
|
|
|
941
|
-
export
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
942
|
+
export namespace PayoutCreatedWebhookEvent {
|
|
943
|
+
export interface Data {
|
|
944
|
+
/**
|
|
945
|
+
* The total amount of the payout.
|
|
946
|
+
*/
|
|
947
|
+
amount: number;
|
|
946
948
|
|
|
947
|
-
|
|
949
|
+
/**
|
|
950
|
+
* The unique identifier of the business associated with the payout.
|
|
951
|
+
*/
|
|
952
|
+
business_id: string;
|
|
948
953
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
954
|
+
/**
|
|
955
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
956
|
+
* future release.
|
|
957
|
+
*/
|
|
958
|
+
chargebacks: number;
|
|
953
959
|
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
960
|
+
/**
|
|
961
|
+
* The timestamp when the payout was created, in UTC.
|
|
962
|
+
*/
|
|
963
|
+
created_at: string;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
967
|
+
*/
|
|
968
|
+
currency: MiscAPI.Currency;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* The fee charged for processing the payout.
|
|
972
|
+
*/
|
|
973
|
+
fee: number;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
977
|
+
*/
|
|
978
|
+
payment_method: string;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* The unique identifier of the payout.
|
|
982
|
+
*/
|
|
983
|
+
payout_id: string;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
987
|
+
* future release.
|
|
988
|
+
*/
|
|
989
|
+
refunds: number;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* The current status of the payout.
|
|
993
|
+
*/
|
|
994
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
998
|
+
* future release.
|
|
999
|
+
*/
|
|
1000
|
+
tax: number;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
1004
|
+
*/
|
|
1005
|
+
updated_at: string;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* The name of the payout recipient or purpose.
|
|
1009
|
+
*/
|
|
1010
|
+
name?: string | null;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* The URL of the document associated with the payout.
|
|
1014
|
+
*/
|
|
1015
|
+
payout_document_url?: string | null;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Any additional remarks or notes associated with the payout.
|
|
1019
|
+
*/
|
|
1020
|
+
remarks?: string | null;
|
|
1021
|
+
}
|
|
958
1022
|
}
|
|
959
1023
|
|
|
960
|
-
export interface
|
|
1024
|
+
export interface PayoutFailedWebhookEvent {
|
|
961
1025
|
/**
|
|
962
1026
|
* The business identifier
|
|
963
1027
|
*/
|
|
964
1028
|
business_id: string;
|
|
965
1029
|
|
|
966
|
-
|
|
967
|
-
* Response struct representing subscription details
|
|
968
|
-
*/
|
|
969
|
-
data: SubscriptionsAPI.Subscription;
|
|
1030
|
+
data: PayoutFailedWebhookEvent.Data;
|
|
970
1031
|
|
|
971
1032
|
/**
|
|
972
1033
|
* The timestamp of when the event occurred
|
|
@@ -976,41 +1037,98 @@ export interface SubscriptionActiveWebhookEvent {
|
|
|
976
1037
|
/**
|
|
977
1038
|
* The event type
|
|
978
1039
|
*/
|
|
979
|
-
type: '
|
|
1040
|
+
type: 'payout.failed';
|
|
980
1041
|
}
|
|
981
1042
|
|
|
982
|
-
export
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1043
|
+
export namespace PayoutFailedWebhookEvent {
|
|
1044
|
+
export interface Data {
|
|
1045
|
+
/**
|
|
1046
|
+
* The total amount of the payout.
|
|
1047
|
+
*/
|
|
1048
|
+
amount: number;
|
|
987
1049
|
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1050
|
+
/**
|
|
1051
|
+
* The unique identifier of the business associated with the payout.
|
|
1052
|
+
*/
|
|
1053
|
+
business_id: string;
|
|
992
1054
|
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1055
|
+
/**
|
|
1056
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1057
|
+
* future release.
|
|
1058
|
+
*/
|
|
1059
|
+
chargebacks: number;
|
|
997
1060
|
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1061
|
+
/**
|
|
1062
|
+
* The timestamp when the payout was created, in UTC.
|
|
1063
|
+
*/
|
|
1064
|
+
created_at: string;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
1068
|
+
*/
|
|
1069
|
+
currency: MiscAPI.Currency;
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* The fee charged for processing the payout.
|
|
1073
|
+
*/
|
|
1074
|
+
fee: number;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
1078
|
+
*/
|
|
1079
|
+
payment_method: string;
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* The unique identifier of the payout.
|
|
1083
|
+
*/
|
|
1084
|
+
payout_id: string;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1088
|
+
* future release.
|
|
1089
|
+
*/
|
|
1090
|
+
refunds: number;
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* The current status of the payout.
|
|
1094
|
+
*/
|
|
1095
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1099
|
+
* future release.
|
|
1100
|
+
*/
|
|
1101
|
+
tax: number;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
1105
|
+
*/
|
|
1106
|
+
updated_at: string;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* The name of the payout recipient or purpose.
|
|
1110
|
+
*/
|
|
1111
|
+
name?: string | null;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* The URL of the document associated with the payout.
|
|
1115
|
+
*/
|
|
1116
|
+
payout_document_url?: string | null;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Any additional remarks or notes associated with the payout.
|
|
1120
|
+
*/
|
|
1121
|
+
remarks?: string | null;
|
|
1122
|
+
}
|
|
1002
1123
|
}
|
|
1003
1124
|
|
|
1004
|
-
export interface
|
|
1125
|
+
export interface PayoutInProgressWebhookEvent {
|
|
1005
1126
|
/**
|
|
1006
1127
|
* The business identifier
|
|
1007
1128
|
*/
|
|
1008
1129
|
business_id: string;
|
|
1009
1130
|
|
|
1010
|
-
|
|
1011
|
-
* Response struct representing subscription details
|
|
1012
|
-
*/
|
|
1013
|
-
data: SubscriptionsAPI.Subscription;
|
|
1131
|
+
data: PayoutInProgressWebhookEvent.Data;
|
|
1014
1132
|
|
|
1015
1133
|
/**
|
|
1016
1134
|
* The timestamp of when the event occurred
|
|
@@ -1020,41 +1138,98 @@ export interface SubscriptionExpiredWebhookEvent {
|
|
|
1020
1138
|
/**
|
|
1021
1139
|
* The event type
|
|
1022
1140
|
*/
|
|
1023
|
-
type: '
|
|
1141
|
+
type: 'payout.in_progress';
|
|
1024
1142
|
}
|
|
1025
1143
|
|
|
1026
|
-
export
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1144
|
+
export namespace PayoutInProgressWebhookEvent {
|
|
1145
|
+
export interface Data {
|
|
1146
|
+
/**
|
|
1147
|
+
* The total amount of the payout.
|
|
1148
|
+
*/
|
|
1149
|
+
amount: number;
|
|
1031
1150
|
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1151
|
+
/**
|
|
1152
|
+
* The unique identifier of the business associated with the payout.
|
|
1153
|
+
*/
|
|
1154
|
+
business_id: string;
|
|
1036
1155
|
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1156
|
+
/**
|
|
1157
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1158
|
+
* future release.
|
|
1159
|
+
*/
|
|
1160
|
+
chargebacks: number;
|
|
1041
1161
|
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1162
|
+
/**
|
|
1163
|
+
* The timestamp when the payout was created, in UTC.
|
|
1164
|
+
*/
|
|
1165
|
+
created_at: string;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
1169
|
+
*/
|
|
1170
|
+
currency: MiscAPI.Currency;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* The fee charged for processing the payout.
|
|
1174
|
+
*/
|
|
1175
|
+
fee: number;
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
1179
|
+
*/
|
|
1180
|
+
payment_method: string;
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* The unique identifier of the payout.
|
|
1184
|
+
*/
|
|
1185
|
+
payout_id: string;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1189
|
+
* future release.
|
|
1190
|
+
*/
|
|
1191
|
+
refunds: number;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* The current status of the payout.
|
|
1195
|
+
*/
|
|
1196
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1200
|
+
* future release.
|
|
1201
|
+
*/
|
|
1202
|
+
tax: number;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
1206
|
+
*/
|
|
1207
|
+
updated_at: string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* The name of the payout recipient or purpose.
|
|
1211
|
+
*/
|
|
1212
|
+
name?: string | null;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* The URL of the document associated with the payout.
|
|
1216
|
+
*/
|
|
1217
|
+
payout_document_url?: string | null;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Any additional remarks or notes associated with the payout.
|
|
1221
|
+
*/
|
|
1222
|
+
remarks?: string | null;
|
|
1223
|
+
}
|
|
1046
1224
|
}
|
|
1047
1225
|
|
|
1048
|
-
export interface
|
|
1226
|
+
export interface PayoutOnHoldWebhookEvent {
|
|
1049
1227
|
/**
|
|
1050
1228
|
* The business identifier
|
|
1051
1229
|
*/
|
|
1052
1230
|
business_id: string;
|
|
1053
1231
|
|
|
1054
|
-
|
|
1055
|
-
* Response struct representing subscription details
|
|
1056
|
-
*/
|
|
1057
|
-
data: SubscriptionsAPI.Subscription;
|
|
1232
|
+
data: PayoutOnHoldWebhookEvent.Data;
|
|
1058
1233
|
|
|
1059
1234
|
/**
|
|
1060
1235
|
* The timestamp of when the event occurred
|
|
@@ -1064,19 +1239,98 @@ export interface SubscriptionOnHoldWebhookEvent {
|
|
|
1064
1239
|
/**
|
|
1065
1240
|
* The event type
|
|
1066
1241
|
*/
|
|
1067
|
-
type: '
|
|
1242
|
+
type: 'payout.on_hold';
|
|
1068
1243
|
}
|
|
1069
1244
|
|
|
1070
|
-
export
|
|
1245
|
+
export namespace PayoutOnHoldWebhookEvent {
|
|
1246
|
+
export interface Data {
|
|
1247
|
+
/**
|
|
1248
|
+
* The total amount of the payout.
|
|
1249
|
+
*/
|
|
1250
|
+
amount: number;
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* The unique identifier of the business associated with the payout.
|
|
1254
|
+
*/
|
|
1255
|
+
business_id: string;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1259
|
+
* future release.
|
|
1260
|
+
*/
|
|
1261
|
+
chargebacks: number;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* The timestamp when the payout was created, in UTC.
|
|
1265
|
+
*/
|
|
1266
|
+
created_at: string;
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
1270
|
+
*/
|
|
1271
|
+
currency: MiscAPI.Currency;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* The fee charged for processing the payout.
|
|
1275
|
+
*/
|
|
1276
|
+
fee: number;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
1280
|
+
*/
|
|
1281
|
+
payment_method: string;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* The unique identifier of the payout.
|
|
1285
|
+
*/
|
|
1286
|
+
payout_id: string;
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1290
|
+
* future release.
|
|
1291
|
+
*/
|
|
1292
|
+
refunds: number;
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* The current status of the payout.
|
|
1296
|
+
*/
|
|
1297
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1301
|
+
* future release.
|
|
1302
|
+
*/
|
|
1303
|
+
tax: number;
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
1307
|
+
*/
|
|
1308
|
+
updated_at: string;
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* The name of the payout recipient or purpose.
|
|
1312
|
+
*/
|
|
1313
|
+
name?: string | null;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* The URL of the document associated with the payout.
|
|
1317
|
+
*/
|
|
1318
|
+
payout_document_url?: string | null;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Any additional remarks or notes associated with the payout.
|
|
1322
|
+
*/
|
|
1323
|
+
remarks?: string | null;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
export interface PayoutSuccessWebhookEvent {
|
|
1071
1328
|
/**
|
|
1072
1329
|
* The business identifier
|
|
1073
1330
|
*/
|
|
1074
1331
|
business_id: string;
|
|
1075
1332
|
|
|
1076
|
-
|
|
1077
|
-
* Response struct representing subscription details
|
|
1078
|
-
*/
|
|
1079
|
-
data: SubscriptionsAPI.Subscription;
|
|
1333
|
+
data: PayoutSuccessWebhookEvent.Data;
|
|
1080
1334
|
|
|
1081
1335
|
/**
|
|
1082
1336
|
* The timestamp of when the event occurred
|
|
@@ -1086,7 +1340,259 @@ export interface SubscriptionPlanChangedWebhookEvent {
|
|
|
1086
1340
|
/**
|
|
1087
1341
|
* The event type
|
|
1088
1342
|
*/
|
|
1089
|
-
type: '
|
|
1343
|
+
type: 'payout.success';
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
export namespace PayoutSuccessWebhookEvent {
|
|
1347
|
+
export interface Data {
|
|
1348
|
+
/**
|
|
1349
|
+
* The total amount of the payout.
|
|
1350
|
+
*/
|
|
1351
|
+
amount: number;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* The unique identifier of the business associated with the payout.
|
|
1355
|
+
*/
|
|
1356
|
+
business_id: string;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1360
|
+
* future release.
|
|
1361
|
+
*/
|
|
1362
|
+
chargebacks: number;
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* The timestamp when the payout was created, in UTC.
|
|
1366
|
+
*/
|
|
1367
|
+
created_at: string;
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
1371
|
+
*/
|
|
1372
|
+
currency: MiscAPI.Currency;
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* The fee charged for processing the payout.
|
|
1376
|
+
*/
|
|
1377
|
+
fee: number;
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
1381
|
+
*/
|
|
1382
|
+
payment_method: string;
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* The unique identifier of the payout.
|
|
1386
|
+
*/
|
|
1387
|
+
payout_id: string;
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1391
|
+
* future release.
|
|
1392
|
+
*/
|
|
1393
|
+
refunds: number;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* The current status of the payout.
|
|
1397
|
+
*/
|
|
1398
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
1402
|
+
* future release.
|
|
1403
|
+
*/
|
|
1404
|
+
tax: number;
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
1408
|
+
*/
|
|
1409
|
+
updated_at: string;
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* The name of the payout recipient or purpose.
|
|
1413
|
+
*/
|
|
1414
|
+
name?: string | null;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* The URL of the document associated with the payout.
|
|
1418
|
+
*/
|
|
1419
|
+
payout_document_url?: string | null;
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* Any additional remarks or notes associated with the payout.
|
|
1423
|
+
*/
|
|
1424
|
+
remarks?: string | null;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
export interface RefundFailedWebhookEvent {
|
|
1429
|
+
/**
|
|
1430
|
+
* The business identifier
|
|
1431
|
+
*/
|
|
1432
|
+
business_id: string;
|
|
1433
|
+
|
|
1434
|
+
data: RefundsAPI.Refund;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* The timestamp of when the event occurred
|
|
1438
|
+
*/
|
|
1439
|
+
timestamp: string;
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* The event type
|
|
1443
|
+
*/
|
|
1444
|
+
type: 'refund.failed';
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
export interface RefundSucceededWebhookEvent {
|
|
1448
|
+
/**
|
|
1449
|
+
* The business identifier
|
|
1450
|
+
*/
|
|
1451
|
+
business_id: string;
|
|
1452
|
+
|
|
1453
|
+
data: RefundsAPI.Refund;
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* The timestamp of when the event occurred
|
|
1457
|
+
*/
|
|
1458
|
+
timestamp: string;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* The event type
|
|
1462
|
+
*/
|
|
1463
|
+
type: 'refund.succeeded';
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
export interface SubscriptionActiveWebhookEvent {
|
|
1467
|
+
/**
|
|
1468
|
+
* The business identifier
|
|
1469
|
+
*/
|
|
1470
|
+
business_id: string;
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Response struct representing subscription details
|
|
1474
|
+
*/
|
|
1475
|
+
data: SubscriptionsAPI.Subscription;
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* The timestamp of when the event occurred
|
|
1479
|
+
*/
|
|
1480
|
+
timestamp: string;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* The event type
|
|
1484
|
+
*/
|
|
1485
|
+
type: 'subscription.active';
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
export interface SubscriptionCancelledWebhookEvent {
|
|
1489
|
+
/**
|
|
1490
|
+
* The business identifier
|
|
1491
|
+
*/
|
|
1492
|
+
business_id: string;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Response struct representing subscription details
|
|
1496
|
+
*/
|
|
1497
|
+
data: SubscriptionsAPI.Subscription;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* The timestamp of when the event occurred
|
|
1501
|
+
*/
|
|
1502
|
+
timestamp: string;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* The event type
|
|
1506
|
+
*/
|
|
1507
|
+
type: 'subscription.cancelled';
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
export interface SubscriptionExpiredWebhookEvent {
|
|
1511
|
+
/**
|
|
1512
|
+
* The business identifier
|
|
1513
|
+
*/
|
|
1514
|
+
business_id: string;
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Response struct representing subscription details
|
|
1518
|
+
*/
|
|
1519
|
+
data: SubscriptionsAPI.Subscription;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* The timestamp of when the event occurred
|
|
1523
|
+
*/
|
|
1524
|
+
timestamp: string;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* The event type
|
|
1528
|
+
*/
|
|
1529
|
+
type: 'subscription.expired';
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
export interface SubscriptionFailedWebhookEvent {
|
|
1533
|
+
/**
|
|
1534
|
+
* The business identifier
|
|
1535
|
+
*/
|
|
1536
|
+
business_id: string;
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* Response struct representing subscription details
|
|
1540
|
+
*/
|
|
1541
|
+
data: SubscriptionsAPI.Subscription;
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* The timestamp of when the event occurred
|
|
1545
|
+
*/
|
|
1546
|
+
timestamp: string;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* The event type
|
|
1550
|
+
*/
|
|
1551
|
+
type: 'subscription.failed';
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
export interface SubscriptionOnHoldWebhookEvent {
|
|
1555
|
+
/**
|
|
1556
|
+
* The business identifier
|
|
1557
|
+
*/
|
|
1558
|
+
business_id: string;
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Response struct representing subscription details
|
|
1562
|
+
*/
|
|
1563
|
+
data: SubscriptionsAPI.Subscription;
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* The timestamp of when the event occurred
|
|
1567
|
+
*/
|
|
1568
|
+
timestamp: string;
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* The event type
|
|
1572
|
+
*/
|
|
1573
|
+
type: 'subscription.on_hold';
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export interface SubscriptionPlanChangedWebhookEvent {
|
|
1577
|
+
/**
|
|
1578
|
+
* The business identifier
|
|
1579
|
+
*/
|
|
1580
|
+
business_id: string;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Response struct representing subscription details
|
|
1584
|
+
*/
|
|
1585
|
+
data: SubscriptionsAPI.Subscription;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* The timestamp of when the event occurred
|
|
1589
|
+
*/
|
|
1590
|
+
timestamp: string;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* The event type
|
|
1594
|
+
*/
|
|
1595
|
+
type: 'subscription.plan_changed';
|
|
1090
1596
|
}
|
|
1091
1597
|
|
|
1092
1598
|
export interface SubscriptionRenewedWebhookEvent {
|
|
@@ -1889,6 +2395,511 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
1889
2395
|
type: 'payment.succeeded';
|
|
1890
2396
|
}
|
|
1891
2397
|
|
|
2398
|
+
export interface PayoutCreatedWebhookEvent {
|
|
2399
|
+
/**
|
|
2400
|
+
* The business identifier
|
|
2401
|
+
*/
|
|
2402
|
+
business_id: string;
|
|
2403
|
+
|
|
2404
|
+
data: PayoutCreatedWebhookEvent.Data;
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* The timestamp of when the event occurred
|
|
2408
|
+
*/
|
|
2409
|
+
timestamp: string;
|
|
2410
|
+
|
|
2411
|
+
/**
|
|
2412
|
+
* The event type
|
|
2413
|
+
*/
|
|
2414
|
+
type: 'payout.created';
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
export namespace PayoutCreatedWebhookEvent {
|
|
2418
|
+
export interface Data {
|
|
2419
|
+
/**
|
|
2420
|
+
* The total amount of the payout.
|
|
2421
|
+
*/
|
|
2422
|
+
amount: number;
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* The unique identifier of the business associated with the payout.
|
|
2426
|
+
*/
|
|
2427
|
+
business_id: string;
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2431
|
+
* future release.
|
|
2432
|
+
*/
|
|
2433
|
+
chargebacks: number;
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* The timestamp when the payout was created, in UTC.
|
|
2437
|
+
*/
|
|
2438
|
+
created_at: string;
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
2442
|
+
*/
|
|
2443
|
+
currency: MiscAPI.Currency;
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* The fee charged for processing the payout.
|
|
2447
|
+
*/
|
|
2448
|
+
fee: number;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
2452
|
+
*/
|
|
2453
|
+
payment_method: string;
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* The unique identifier of the payout.
|
|
2457
|
+
*/
|
|
2458
|
+
payout_id: string;
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2462
|
+
* future release.
|
|
2463
|
+
*/
|
|
2464
|
+
refunds: number;
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* The current status of the payout.
|
|
2468
|
+
*/
|
|
2469
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2473
|
+
* future release.
|
|
2474
|
+
*/
|
|
2475
|
+
tax: number;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
2479
|
+
*/
|
|
2480
|
+
updated_at: string;
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* The name of the payout recipient or purpose.
|
|
2484
|
+
*/
|
|
2485
|
+
name?: string | null;
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* The URL of the document associated with the payout.
|
|
2489
|
+
*/
|
|
2490
|
+
payout_document_url?: string | null;
|
|
2491
|
+
|
|
2492
|
+
/**
|
|
2493
|
+
* Any additional remarks or notes associated with the payout.
|
|
2494
|
+
*/
|
|
2495
|
+
remarks?: string | null;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
export interface PayoutFailedWebhookEvent {
|
|
2500
|
+
/**
|
|
2501
|
+
* The business identifier
|
|
2502
|
+
*/
|
|
2503
|
+
business_id: string;
|
|
2504
|
+
|
|
2505
|
+
data: PayoutFailedWebhookEvent.Data;
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* The timestamp of when the event occurred
|
|
2509
|
+
*/
|
|
2510
|
+
timestamp: string;
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* The event type
|
|
2514
|
+
*/
|
|
2515
|
+
type: 'payout.failed';
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
export namespace PayoutFailedWebhookEvent {
|
|
2519
|
+
export interface Data {
|
|
2520
|
+
/**
|
|
2521
|
+
* The total amount of the payout.
|
|
2522
|
+
*/
|
|
2523
|
+
amount: number;
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* The unique identifier of the business associated with the payout.
|
|
2527
|
+
*/
|
|
2528
|
+
business_id: string;
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2532
|
+
* future release.
|
|
2533
|
+
*/
|
|
2534
|
+
chargebacks: number;
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* The timestamp when the payout was created, in UTC.
|
|
2538
|
+
*/
|
|
2539
|
+
created_at: string;
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
2543
|
+
*/
|
|
2544
|
+
currency: MiscAPI.Currency;
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* The fee charged for processing the payout.
|
|
2548
|
+
*/
|
|
2549
|
+
fee: number;
|
|
2550
|
+
|
|
2551
|
+
/**
|
|
2552
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
2553
|
+
*/
|
|
2554
|
+
payment_method: string;
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* The unique identifier of the payout.
|
|
2558
|
+
*/
|
|
2559
|
+
payout_id: string;
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2563
|
+
* future release.
|
|
2564
|
+
*/
|
|
2565
|
+
refunds: number;
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* The current status of the payout.
|
|
2569
|
+
*/
|
|
2570
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
2571
|
+
|
|
2572
|
+
/**
|
|
2573
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2574
|
+
* future release.
|
|
2575
|
+
*/
|
|
2576
|
+
tax: number;
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
2580
|
+
*/
|
|
2581
|
+
updated_at: string;
|
|
2582
|
+
|
|
2583
|
+
/**
|
|
2584
|
+
* The name of the payout recipient or purpose.
|
|
2585
|
+
*/
|
|
2586
|
+
name?: string | null;
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* The URL of the document associated with the payout.
|
|
2590
|
+
*/
|
|
2591
|
+
payout_document_url?: string | null;
|
|
2592
|
+
|
|
2593
|
+
/**
|
|
2594
|
+
* Any additional remarks or notes associated with the payout.
|
|
2595
|
+
*/
|
|
2596
|
+
remarks?: string | null;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2600
|
+
export interface PayoutInProgressWebhookEvent {
|
|
2601
|
+
/**
|
|
2602
|
+
* The business identifier
|
|
2603
|
+
*/
|
|
2604
|
+
business_id: string;
|
|
2605
|
+
|
|
2606
|
+
data: PayoutInProgressWebhookEvent.Data;
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* The timestamp of when the event occurred
|
|
2610
|
+
*/
|
|
2611
|
+
timestamp: string;
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* The event type
|
|
2615
|
+
*/
|
|
2616
|
+
type: 'payout.in_progress';
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
export namespace PayoutInProgressWebhookEvent {
|
|
2620
|
+
export interface Data {
|
|
2621
|
+
/**
|
|
2622
|
+
* The total amount of the payout.
|
|
2623
|
+
*/
|
|
2624
|
+
amount: number;
|
|
2625
|
+
|
|
2626
|
+
/**
|
|
2627
|
+
* The unique identifier of the business associated with the payout.
|
|
2628
|
+
*/
|
|
2629
|
+
business_id: string;
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2633
|
+
* future release.
|
|
2634
|
+
*/
|
|
2635
|
+
chargebacks: number;
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
* The timestamp when the payout was created, in UTC.
|
|
2639
|
+
*/
|
|
2640
|
+
created_at: string;
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
2644
|
+
*/
|
|
2645
|
+
currency: MiscAPI.Currency;
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* The fee charged for processing the payout.
|
|
2649
|
+
*/
|
|
2650
|
+
fee: number;
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
2654
|
+
*/
|
|
2655
|
+
payment_method: string;
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* The unique identifier of the payout.
|
|
2659
|
+
*/
|
|
2660
|
+
payout_id: string;
|
|
2661
|
+
|
|
2662
|
+
/**
|
|
2663
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2664
|
+
* future release.
|
|
2665
|
+
*/
|
|
2666
|
+
refunds: number;
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* The current status of the payout.
|
|
2670
|
+
*/
|
|
2671
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2675
|
+
* future release.
|
|
2676
|
+
*/
|
|
2677
|
+
tax: number;
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
2681
|
+
*/
|
|
2682
|
+
updated_at: string;
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* The name of the payout recipient or purpose.
|
|
2686
|
+
*/
|
|
2687
|
+
name?: string | null;
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* The URL of the document associated with the payout.
|
|
2691
|
+
*/
|
|
2692
|
+
payout_document_url?: string | null;
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* Any additional remarks or notes associated with the payout.
|
|
2696
|
+
*/
|
|
2697
|
+
remarks?: string | null;
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
export interface PayoutOnHoldWebhookEvent {
|
|
2702
|
+
/**
|
|
2703
|
+
* The business identifier
|
|
2704
|
+
*/
|
|
2705
|
+
business_id: string;
|
|
2706
|
+
|
|
2707
|
+
data: PayoutOnHoldWebhookEvent.Data;
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* The timestamp of when the event occurred
|
|
2711
|
+
*/
|
|
2712
|
+
timestamp: string;
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* The event type
|
|
2716
|
+
*/
|
|
2717
|
+
type: 'payout.on_hold';
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
export namespace PayoutOnHoldWebhookEvent {
|
|
2721
|
+
export interface Data {
|
|
2722
|
+
/**
|
|
2723
|
+
* The total amount of the payout.
|
|
2724
|
+
*/
|
|
2725
|
+
amount: number;
|
|
2726
|
+
|
|
2727
|
+
/**
|
|
2728
|
+
* The unique identifier of the business associated with the payout.
|
|
2729
|
+
*/
|
|
2730
|
+
business_id: string;
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2734
|
+
* future release.
|
|
2735
|
+
*/
|
|
2736
|
+
chargebacks: number;
|
|
2737
|
+
|
|
2738
|
+
/**
|
|
2739
|
+
* The timestamp when the payout was created, in UTC.
|
|
2740
|
+
*/
|
|
2741
|
+
created_at: string;
|
|
2742
|
+
|
|
2743
|
+
/**
|
|
2744
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
2745
|
+
*/
|
|
2746
|
+
currency: MiscAPI.Currency;
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* The fee charged for processing the payout.
|
|
2750
|
+
*/
|
|
2751
|
+
fee: number;
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
2755
|
+
*/
|
|
2756
|
+
payment_method: string;
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* The unique identifier of the payout.
|
|
2760
|
+
*/
|
|
2761
|
+
payout_id: string;
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2765
|
+
* future release.
|
|
2766
|
+
*/
|
|
2767
|
+
refunds: number;
|
|
2768
|
+
|
|
2769
|
+
/**
|
|
2770
|
+
* The current status of the payout.
|
|
2771
|
+
*/
|
|
2772
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
2773
|
+
|
|
2774
|
+
/**
|
|
2775
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2776
|
+
* future release.
|
|
2777
|
+
*/
|
|
2778
|
+
tax: number;
|
|
2779
|
+
|
|
2780
|
+
/**
|
|
2781
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
2782
|
+
*/
|
|
2783
|
+
updated_at: string;
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* The name of the payout recipient or purpose.
|
|
2787
|
+
*/
|
|
2788
|
+
name?: string | null;
|
|
2789
|
+
|
|
2790
|
+
/**
|
|
2791
|
+
* The URL of the document associated with the payout.
|
|
2792
|
+
*/
|
|
2793
|
+
payout_document_url?: string | null;
|
|
2794
|
+
|
|
2795
|
+
/**
|
|
2796
|
+
* Any additional remarks or notes associated with the payout.
|
|
2797
|
+
*/
|
|
2798
|
+
remarks?: string | null;
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
export interface PayoutSuccessWebhookEvent {
|
|
2803
|
+
/**
|
|
2804
|
+
* The business identifier
|
|
2805
|
+
*/
|
|
2806
|
+
business_id: string;
|
|
2807
|
+
|
|
2808
|
+
data: PayoutSuccessWebhookEvent.Data;
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* The timestamp of when the event occurred
|
|
2812
|
+
*/
|
|
2813
|
+
timestamp: string;
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* The event type
|
|
2817
|
+
*/
|
|
2818
|
+
type: 'payout.success';
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
export namespace PayoutSuccessWebhookEvent {
|
|
2822
|
+
export interface Data {
|
|
2823
|
+
/**
|
|
2824
|
+
* The total amount of the payout.
|
|
2825
|
+
*/
|
|
2826
|
+
amount: number;
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* The unique identifier of the business associated with the payout.
|
|
2830
|
+
*/
|
|
2831
|
+
business_id: string;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2835
|
+
* future release.
|
|
2836
|
+
*/
|
|
2837
|
+
chargebacks: number;
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* The timestamp when the payout was created, in UTC.
|
|
2841
|
+
*/
|
|
2842
|
+
created_at: string;
|
|
2843
|
+
|
|
2844
|
+
/**
|
|
2845
|
+
* The currency of the payout, represented as an ISO 4217 currency code.
|
|
2846
|
+
*/
|
|
2847
|
+
currency: MiscAPI.Currency;
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* The fee charged for processing the payout.
|
|
2851
|
+
*/
|
|
2852
|
+
fee: number;
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* The payment method used for the payout (e.g., bank transfer, card, etc.).
|
|
2856
|
+
*/
|
|
2857
|
+
payment_method: string;
|
|
2858
|
+
|
|
2859
|
+
/**
|
|
2860
|
+
* The unique identifier of the payout.
|
|
2861
|
+
*/
|
|
2862
|
+
payout_id: string;
|
|
2863
|
+
|
|
2864
|
+
/**
|
|
2865
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2866
|
+
* future release.
|
|
2867
|
+
*/
|
|
2868
|
+
refunds: number;
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* The current status of the payout.
|
|
2872
|
+
*/
|
|
2873
|
+
status: 'not_initiated' | 'in_progress' | 'on_hold' | 'failed' | 'success';
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* @deprecated Use the v3 payout breakup endpoints instead. Will be removed in a
|
|
2877
|
+
* future release.
|
|
2878
|
+
*/
|
|
2879
|
+
tax: number;
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* The timestamp when the payout was last updated, in UTC.
|
|
2883
|
+
*/
|
|
2884
|
+
updated_at: string;
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* The name of the payout recipient or purpose.
|
|
2888
|
+
*/
|
|
2889
|
+
name?: string | null;
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* The URL of the document associated with the payout.
|
|
2893
|
+
*/
|
|
2894
|
+
payout_document_url?: string | null;
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Any additional remarks or notes associated with the payout.
|
|
2898
|
+
*/
|
|
2899
|
+
remarks?: string | null;
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
|
|
1892
2903
|
export interface RefundFailedWebhookEvent {
|
|
1893
2904
|
/**
|
|
1894
2905
|
* The business identifier
|
|
@@ -2155,6 +3166,11 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
2155
3166
|
| PaymentFailedWebhookEvent
|
|
2156
3167
|
| PaymentProcessingWebhookEvent
|
|
2157
3168
|
| PaymentSucceededWebhookEvent
|
|
3169
|
+
| PayoutCreatedWebhookEvent
|
|
3170
|
+
| PayoutFailedWebhookEvent
|
|
3171
|
+
| PayoutInProgressWebhookEvent
|
|
3172
|
+
| PayoutOnHoldWebhookEvent
|
|
3173
|
+
| PayoutSuccessWebhookEvent
|
|
2158
3174
|
| RefundFailedWebhookEvent
|
|
2159
3175
|
| RefundSucceededWebhookEvent
|
|
2160
3176
|
| SubscriptionActiveWebhookEvent
|
|
@@ -2197,6 +3213,11 @@ export type UnwrapWebhookEvent =
|
|
|
2197
3213
|
| PaymentFailedWebhookEvent
|
|
2198
3214
|
| PaymentProcessingWebhookEvent
|
|
2199
3215
|
| PaymentSucceededWebhookEvent
|
|
3216
|
+
| PayoutCreatedWebhookEvent
|
|
3217
|
+
| PayoutFailedWebhookEvent
|
|
3218
|
+
| PayoutInProgressWebhookEvent
|
|
3219
|
+
| PayoutOnHoldWebhookEvent
|
|
3220
|
+
| PayoutSuccessWebhookEvent
|
|
2200
3221
|
| RefundFailedWebhookEvent
|
|
2201
3222
|
| RefundSucceededWebhookEvent
|
|
2202
3223
|
| SubscriptionActiveWebhookEvent
|
|
@@ -2320,6 +3341,11 @@ export declare namespace Webhooks {
|
|
|
2320
3341
|
type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent,
|
|
2321
3342
|
type PaymentProcessingWebhookEvent as PaymentProcessingWebhookEvent,
|
|
2322
3343
|
type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent,
|
|
3344
|
+
type PayoutCreatedWebhookEvent as PayoutCreatedWebhookEvent,
|
|
3345
|
+
type PayoutFailedWebhookEvent as PayoutFailedWebhookEvent,
|
|
3346
|
+
type PayoutInProgressWebhookEvent as PayoutInProgressWebhookEvent,
|
|
3347
|
+
type PayoutOnHoldWebhookEvent as PayoutOnHoldWebhookEvent,
|
|
3348
|
+
type PayoutSuccessWebhookEvent as PayoutSuccessWebhookEvent,
|
|
2323
3349
|
type RefundFailedWebhookEvent as RefundFailedWebhookEvent,
|
|
2324
3350
|
type RefundSucceededWebhookEvent as RefundSucceededWebhookEvent,
|
|
2325
3351
|
type SubscriptionActiveWebhookEvent as SubscriptionActiveWebhookEvent,
|