connect-sdk-nodejs 7.0.0 → 8.0.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/lib/utils/headers.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.date = date;
|
|
|
9
9
|
function serverMetaInfo(sdkContext) {
|
|
10
10
|
const info = {
|
|
11
11
|
sdkCreator: "Worldline",
|
|
12
|
-
sdkIdentifier: "NodejsServerSDK/
|
|
12
|
+
sdkIdentifier: "NodejsServerSDK/v8.0.0",
|
|
13
13
|
platformIdentifier: `${process.env["OS"]} Node.js/${process.versions.node}`,
|
|
14
14
|
integrator: sdkContext.getIntegrator()
|
|
15
15
|
};
|
|
@@ -381,7 +381,7 @@ export interface CaptureOutput extends OrderOutput {
|
|
|
381
381
|
export interface CapturePaymentOrder {
|
|
382
382
|
additionalInput?: CapturePaymentOrderAdditionalInput | null;
|
|
383
383
|
references?: CapturePaymentOrderReferences | null;
|
|
384
|
-
shipping?:
|
|
384
|
+
shipping?: CapturePaymentShipping | null;
|
|
385
385
|
}
|
|
386
386
|
export interface CapturePaymentOrderAdditionalInput {
|
|
387
387
|
airlineData?: AirlineData | null;
|
|
@@ -395,6 +395,12 @@ export interface CapturePaymentRequest {
|
|
|
395
395
|
isFinal?: boolean | null;
|
|
396
396
|
order?: CapturePaymentOrder | null;
|
|
397
397
|
}
|
|
398
|
+
export interface CapturePaymentShipping {
|
|
399
|
+
address?: AddressPersonal | null;
|
|
400
|
+
emailAddress?: string | null;
|
|
401
|
+
shippedFromZip?: string | null;
|
|
402
|
+
trackingNumber?: string | null;
|
|
403
|
+
}
|
|
398
404
|
export interface CaptureResponse extends Capture {
|
|
399
405
|
}
|
|
400
406
|
export interface CaptureStatusOutput {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connect-sdk-nodejs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API",
|
|
5
5
|
"homepage": "https://github.com/Worldline-Global-Collect/connect-sdk-nodejs#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"$ref" : "#/definitions/CapturePaymentOrderReferences"
|
|
241
241
|
},
|
|
242
242
|
"shipping" : {
|
|
243
|
-
"$ref" : "#/definitions/
|
|
243
|
+
"$ref" : "#/definitions/CapturePaymentShipping"
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
"additionalProperties" : false
|
|
@@ -266,6 +266,24 @@
|
|
|
266
266
|
},
|
|
267
267
|
"additionalProperties" : false
|
|
268
268
|
},
|
|
269
|
+
"CapturePaymentShipping" : {
|
|
270
|
+
"type" : "object",
|
|
271
|
+
"properties" : {
|
|
272
|
+
"address" : {
|
|
273
|
+
"$ref" : "#/definitions/AddressPersonal"
|
|
274
|
+
},
|
|
275
|
+
"emailAddress" : {
|
|
276
|
+
"type" : "string"
|
|
277
|
+
},
|
|
278
|
+
"shippedFromZip" : {
|
|
279
|
+
"type" : "string"
|
|
280
|
+
},
|
|
281
|
+
"trackingNumber" : {
|
|
282
|
+
"type" : "string"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"additionalProperties" : false
|
|
286
|
+
},
|
|
269
287
|
"LodgingCharge" : {
|
|
270
288
|
"type" : "object",
|
|
271
289
|
"properties" : {
|
|
@@ -400,45 +418,6 @@
|
|
|
400
418
|
}
|
|
401
419
|
},
|
|
402
420
|
"additionalProperties" : false
|
|
403
|
-
},
|
|
404
|
-
"Shipping" : {
|
|
405
|
-
"type" : "object",
|
|
406
|
-
"properties" : {
|
|
407
|
-
"address" : {
|
|
408
|
-
"$ref" : "#/definitions/AddressPersonal"
|
|
409
|
-
},
|
|
410
|
-
"addressIndicator" : {
|
|
411
|
-
"type" : "string"
|
|
412
|
-
},
|
|
413
|
-
"carrier" : {
|
|
414
|
-
"type" : "string"
|
|
415
|
-
},
|
|
416
|
-
"comments" : {
|
|
417
|
-
"type" : "string"
|
|
418
|
-
},
|
|
419
|
-
"emailAddress" : {
|
|
420
|
-
"type" : "string"
|
|
421
|
-
},
|
|
422
|
-
"firstUsageDate" : {
|
|
423
|
-
"type" : "string"
|
|
424
|
-
},
|
|
425
|
-
"instructions" : {
|
|
426
|
-
"type" : "string"
|
|
427
|
-
},
|
|
428
|
-
"isFirstUsage" : {
|
|
429
|
-
"type" : "boolean"
|
|
430
|
-
},
|
|
431
|
-
"shippedFromZip" : {
|
|
432
|
-
"type" : "string"
|
|
433
|
-
},
|
|
434
|
-
"trackingNumber" : {
|
|
435
|
-
"type" : "string"
|
|
436
|
-
},
|
|
437
|
-
"type" : {
|
|
438
|
-
"type" : "string"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"additionalProperties" : false
|
|
442
421
|
}
|
|
443
422
|
}
|
|
444
423
|
}
|