@verma-consulting/common-library 0.1.54 → 0.1.56
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/index.d.mts +69 -42
- package/dist/index.d.ts +69 -42
- package/dist/index.js +75 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2515,11 +2515,12 @@ var defaults = {
|
|
|
2515
2515
|
amountReceived: 0,
|
|
2516
2516
|
applicationFeeAmount: 0,
|
|
2517
2517
|
cancellationReason: "",
|
|
2518
|
-
captureMethod: "",
|
|
2519
|
-
confirmationMethod: "",
|
|
2518
|
+
captureMethod: "automatic",
|
|
2519
|
+
confirmationMethod: "automatic",
|
|
2520
2520
|
statementDescriptor: "",
|
|
2521
2521
|
statementDescriptorSuffix: "",
|
|
2522
2522
|
calculatedStatementDescriptor: "",
|
|
2523
|
+
canceledAt: null,
|
|
2523
2524
|
confirm: false,
|
|
2524
2525
|
paid: false,
|
|
2525
2526
|
captured: false,
|
|
@@ -2597,7 +2598,7 @@ var defaults = {
|
|
|
2597
2598
|
status: "Ready",
|
|
2598
2599
|
currency: "usd",
|
|
2599
2600
|
disputeStatus: "warning_needs_response",
|
|
2600
|
-
reason: "",
|
|
2601
|
+
reason: "general",
|
|
2601
2602
|
amount: 0,
|
|
2602
2603
|
isChargeRefundable: false,
|
|
2603
2604
|
livemode: false,
|
|
@@ -2825,14 +2826,20 @@ var defaultTypes = {
|
|
|
2825
2826
|
height: "Float",
|
|
2826
2827
|
length: "Float",
|
|
2827
2828
|
weight: "Float",
|
|
2828
|
-
width: "Float"
|
|
2829
|
+
width: "Float",
|
|
2830
|
+
unit: "String",
|
|
2831
|
+
weight_unit: "String",
|
|
2832
|
+
girth: "Float",
|
|
2833
|
+
package_type: "String",
|
|
2834
|
+
template: "String",
|
|
2835
|
+
metadata: "OBJECT"
|
|
2829
2836
|
},
|
|
2830
2837
|
prices: {
|
|
2831
2838
|
active: "Boolean",
|
|
2832
2839
|
unitAmount: "Int",
|
|
2833
2840
|
unitAmountDecimal: "Float",
|
|
2834
2841
|
lookupKey: "String",
|
|
2835
|
-
|
|
2842
|
+
priceType: "String",
|
|
2836
2843
|
taxBehavior: "String",
|
|
2837
2844
|
currency: "String",
|
|
2838
2845
|
billingScheme: "String",
|
|
@@ -2983,7 +2990,6 @@ var defaultTypes = {
|
|
|
2983
2990
|
offSession: "Boolean",
|
|
2984
2991
|
nextPendingInvoiceItemInvoice: "String",
|
|
2985
2992
|
collectionMethod: "String",
|
|
2986
|
-
missingPaymentMethod: "String",
|
|
2987
2993
|
client: "OBJECT",
|
|
2988
2994
|
deal: "OBJECT",
|
|
2989
2995
|
accountOwner: "OBJECT"
|
|
@@ -3016,30 +3022,43 @@ var defaultTypes = {
|
|
|
3016
3022
|
status: "String",
|
|
3017
3023
|
paymentStatus: "String",
|
|
3018
3024
|
currency: "String",
|
|
3025
|
+
receiptEmail: "String",
|
|
3026
|
+
receiptNumber: "String",
|
|
3027
|
+
receiptUrl: "String",
|
|
3028
|
+
setupFutureUsage: "String",
|
|
3019
3029
|
amount: "Int",
|
|
3020
3030
|
amountCapturable: "Int",
|
|
3021
3031
|
amountReceived: "Int",
|
|
3022
3032
|
applicationFeeAmount: "Int",
|
|
3033
|
+
cancellationReason: "String",
|
|
3023
3034
|
statementDescriptor: "String",
|
|
3024
3035
|
statementDescriptorSuffix: "String",
|
|
3036
|
+
calculatedStatementDescriptor: "String",
|
|
3037
|
+
confirm: "Boolean",
|
|
3038
|
+
paid: "Boolean",
|
|
3039
|
+
captured: "Boolean",
|
|
3040
|
+
disputed: "Boolean",
|
|
3041
|
+
refunded: "Boolean",
|
|
3042
|
+
canceledAt: "DateTime",
|
|
3043
|
+
captureMethod: "String",
|
|
3044
|
+
confirmationMethod: "String",
|
|
3025
3045
|
livemode: "Boolean",
|
|
3026
|
-
receiptEmail: "String",
|
|
3027
3046
|
client: "OBJECT",
|
|
3028
3047
|
subscription: "OBJECT",
|
|
3029
3048
|
invoice: "OBJECT",
|
|
3030
3049
|
automatic_payment_methods: {
|
|
3031
|
-
|
|
3050
|
+
allowRedirects: "String",
|
|
3032
3051
|
enabled: "Boolean"
|
|
3033
3052
|
},
|
|
3034
3053
|
amount_details: {
|
|
3035
|
-
|
|
3054
|
+
discountAmount: "Float",
|
|
3036
3055
|
shipping: {
|
|
3037
|
-
amount: "
|
|
3038
|
-
|
|
3039
|
-
|
|
3056
|
+
amount: "Float",
|
|
3057
|
+
fromPostalCode: "String",
|
|
3058
|
+
toPostalCode: "String"
|
|
3040
3059
|
},
|
|
3041
|
-
tax: {
|
|
3042
|
-
tip: { amount: "
|
|
3060
|
+
tax: { totalTaxAmount: "Float" },
|
|
3061
|
+
tip: { amount: "Float" }
|
|
3043
3062
|
}
|
|
3044
3063
|
},
|
|
3045
3064
|
paymentMethods: {
|
|
@@ -3056,7 +3075,7 @@ var defaultTypes = {
|
|
|
3056
3075
|
country: "String",
|
|
3057
3076
|
line1: "String",
|
|
3058
3077
|
line2: "String",
|
|
3059
|
-
|
|
3078
|
+
postalCode: "String",
|
|
3060
3079
|
state: "String"
|
|
3061
3080
|
},
|
|
3062
3081
|
email: "String",
|
|
@@ -3069,13 +3088,13 @@ var defaultTypes = {
|
|
|
3069
3088
|
country: "String",
|
|
3070
3089
|
line1: "String",
|
|
3071
3090
|
line2: "String",
|
|
3072
|
-
|
|
3091
|
+
postalCode: "String",
|
|
3073
3092
|
state: "String"
|
|
3074
3093
|
},
|
|
3075
3094
|
carrier: "String",
|
|
3076
3095
|
name: "String",
|
|
3077
3096
|
phone: "String",
|
|
3078
|
-
|
|
3097
|
+
trackingNumber: "String"
|
|
3079
3098
|
},
|
|
3080
3099
|
refunds: {
|
|
3081
3100
|
name: "String",
|
|
@@ -3103,39 +3122,39 @@ var defaultTypes = {
|
|
|
3103
3122
|
isChargeRefundable: "Boolean",
|
|
3104
3123
|
livemode: "Boolean",
|
|
3105
3124
|
evidence: {
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3125
|
+
accessActivityLog: "String",
|
|
3126
|
+
billingAddress: "String",
|
|
3127
|
+
cancellationPolicy: "String",
|
|
3128
|
+
cancellationPolicyDisclosure: "String",
|
|
3129
|
+
cancellationRebuttal: "String",
|
|
3130
|
+
customerCommunication: "String",
|
|
3131
|
+
customerEmailAddress: "String",
|
|
3132
|
+
customerName: "String",
|
|
3133
|
+
customerPurchaseIp: "String",
|
|
3134
|
+
customerSignature: "String",
|
|
3135
|
+
duplicateChargeDocumentation: "String",
|
|
3136
|
+
duplicateChargeExplanation: "String",
|
|
3137
|
+
duplicateChargeId: "String",
|
|
3138
|
+
productDescription: "String",
|
|
3120
3139
|
receipt: "String",
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3140
|
+
refundPolicy: "String",
|
|
3141
|
+
refundPolicyDisclosure: "String",
|
|
3142
|
+
refundRefusalExplanation: "String",
|
|
3143
|
+
serviceDate: "String",
|
|
3144
|
+
serviceDocumentation: "String",
|
|
3145
|
+
shippingAddress: "String",
|
|
3146
|
+
shippingCarrier: "String",
|
|
3147
|
+
shippingDate: "String",
|
|
3148
|
+
shippingDocumentation: "String",
|
|
3149
|
+
shippingTrackingNumber: "String",
|
|
3150
|
+
uncategorizedFile: "String",
|
|
3151
|
+
uncategorizedText: "String"
|
|
3133
3152
|
},
|
|
3134
3153
|
evidenceDetails: {
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3154
|
+
dueBy: "DateTime",
|
|
3155
|
+
hasEvidence: "Boolean",
|
|
3156
|
+
pastDue: "Boolean",
|
|
3157
|
+
submissionCount: "Int"
|
|
3139
3158
|
}
|
|
3140
3159
|
},
|
|
3141
3160
|
pools: {
|
|
@@ -3147,7 +3166,7 @@ var defaultTypes = {
|
|
|
3147
3166
|
account: "OBJECT",
|
|
3148
3167
|
type: "String"
|
|
3149
3168
|
},
|
|
3150
|
-
|
|
3169
|
+
activties: {
|
|
3151
3170
|
label: "String",
|
|
3152
3171
|
value: "String",
|
|
3153
3172
|
modelName: "String",
|
|
@@ -3155,30 +3174,36 @@ var defaultTypes = {
|
|
|
3155
3174
|
},
|
|
3156
3175
|
reports: {
|
|
3157
3176
|
label: "String",
|
|
3177
|
+
prompt: "String",
|
|
3158
3178
|
star: "Boolean",
|
|
3159
3179
|
chartType: "String",
|
|
3160
3180
|
frequency: "String",
|
|
3161
3181
|
frequencyField: "String",
|
|
3162
3182
|
modelName: "String",
|
|
3163
3183
|
fieldName: "String",
|
|
3184
|
+
fieldType: "String",
|
|
3164
3185
|
operationType: "String",
|
|
3165
3186
|
calculation: "String",
|
|
3166
3187
|
calculationValue: "String"
|
|
3167
3188
|
},
|
|
3168
3189
|
lists: {
|
|
3169
3190
|
label: "String",
|
|
3191
|
+
prompt: "String",
|
|
3170
3192
|
star: "Boolean",
|
|
3171
3193
|
dynamic: "Boolean",
|
|
3172
3194
|
modelName: "String",
|
|
3173
3195
|
fieldName: "String",
|
|
3196
|
+
fieldType: "String",
|
|
3174
3197
|
calculation: "String",
|
|
3175
3198
|
calculationValue: "String"
|
|
3176
3199
|
},
|
|
3177
3200
|
statistics: {
|
|
3178
3201
|
label: "String",
|
|
3202
|
+
prompt: "String",
|
|
3179
3203
|
star: "Boolean",
|
|
3180
3204
|
modelName: "String",
|
|
3181
3205
|
fieldName: "String",
|
|
3206
|
+
fieldType: "String",
|
|
3182
3207
|
operationType: "String",
|
|
3183
3208
|
calculation: "String",
|
|
3184
3209
|
calculationValue: "String"
|
|
@@ -3191,6 +3216,7 @@ var defaultTypes = {
|
|
|
3191
3216
|
country: "String",
|
|
3192
3217
|
countryCode: "String",
|
|
3193
3218
|
postalCode: "String",
|
|
3219
|
+
addressType: "String",
|
|
3194
3220
|
latitude: "Float",
|
|
3195
3221
|
longitude: "Float"
|
|
3196
3222
|
},
|
|
@@ -3209,6 +3235,7 @@ var defaultTypes = {
|
|
|
3209
3235
|
title: "String",
|
|
3210
3236
|
description: "String",
|
|
3211
3237
|
category: "String",
|
|
3238
|
+
type: "String",
|
|
3212
3239
|
key: "String",
|
|
3213
3240
|
secret: "String",
|
|
3214
3241
|
logo: "String",
|