mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-11-28 09:08:38 +02:00
Main build (Jenkins)
This commit is contained in:
parent
6039ae7db4
commit
f5f5f09630
@ -918,6 +918,14 @@ def test_cdek(){
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek GetReceipt --token "test" --uuid "test" --getfile "test" --testapi "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek CreateBarcode --token "test" --uuids "test" --count "test" --format "test" --lang "test" --testapi "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek GetBarcode --token "test" --uuid "test" --getfile "test" --testapi "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek GetOrderDescription --empty "test" --required "test" --ostore "test" --debug --test '
|
||||
}
|
||||
|
@ -918,6 +918,14 @@ def test_cdek(){
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek ПолучитьКвитанцию --token "test" --uuid "test" --getfile "test" --testapi "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek СформироватьШтрихкод --token "test" --uuids "test" --count "test" --format "test" --lang "test" --testapi "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek ПолучитьШтрихкод --token "test" --uuid "test" --getfile "test" --testapi "test" --debug --test '
|
||||
}
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'./oint.exe cdek ПолучитьОписаниеЗаказа --empty "test" --required "test" --ostore "test" --debug --test '
|
||||
}
|
||||
|
4
docs/en/data/CDEK/CreateBarcode.json
Normal file
4
docs/en/data/CDEK/CreateBarcode.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...",
|
||||
"UUID": "e4b02aba-4bd3-4a5e-be55-9513787844f7"
|
||||
}
|
4
docs/en/data/CDEK/GetBarcode.json
Normal file
4
docs/en/data/CDEK/GetBarcode.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...",
|
||||
"UUID": "72753031-e627-4330-8dea-c42ecf36de44"
|
||||
}
|
6
docs/en/examples/CDEK/CreateBarcode.txt
Normal file
6
docs/en/examples/CDEK/CreateBarcode.txt
Normal file
@ -0,0 +1,6 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
Result = OPI_CDEK.CreateBarcode(Token, UUID, Copies, Format, , True);
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3O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NDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Tariff = 139;
|
||||
|
||||
Result = OPI_CDEK.CreateCustomerRefund(Token, UUID, Tariff, True);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdL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OGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
OrderDescription = New Structure;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuN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ZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Result = OPI_CDEK.CreateRefusal(Token, UUID, True);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3Qv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c-3cbe1e1143ed";
|
||||
|
||||
Result = OPI_CDEK.DeleteCourierInvitation(Token, UUID, True);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Result = OPI_CDEK.DeleteOrder(Token, UUID, True);
|
||||
|
9
docs/en/examples/CDEK/GetBarcode.txt
Normal file
9
docs/en/examples/CDEK/GetBarcode.txt
Normal file
@ -0,0 +1,9 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-e627-4330-8dea-c42ecf36de44";
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, , True); // Server response with a URL
|
||||
|
||||
TFN = GetTempFileName("pdf");
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, True, True); // PDF
|
||||
Result.Write(TFN);
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1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U5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Result = OPI_CDEK.GetOrder(Token, UUID, True);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0a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iIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
OrderNumber = "cdac0d6a-16ff-4cc6-9929-bfa70a670368";
|
||||
OrderNumber = "0eadaa11-9668-4919-8341-cb70cfd450e0";
|
||||
Result = OPI_CDEK.GetOrderByNumber(Token, OrderNumber, True, True);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "72753031-4a8c-463d-9d48-68787f5e3af6";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-48a4-40a9-833f-a2be10872089";
|
||||
|
||||
Result = OPI_CDEK.GetReceipt(Token, UUID, , True); // Server response with a URL
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
OrderDescription = New Structure("comment", "NewComment");
|
||||
|
||||
|
@ -30,7 +30,7 @@ Method at API documentation: [Registration of refusal](https://api-docs.cdek.ru/
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiL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IsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
CurrentDate = OPI_Tools.GetCurrentDate();
|
||||
|
||||
InvitationDescription = New Structure;
|
||||
|
@ -30,7 +30,7 @@ Method at API documentation: [Deleting a courier invitation](https://api-docs.cd
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-2a04-4e3c-bc4c-3cbe1e1143ed";
|
||||
|
||||
Result = OPI_CDEK.DeleteCourierInvitation(Token, UUID, True);
|
||||
|
@ -30,7 +30,7 @@ Method at API documentation: [Details of a courier invitation(https://api-docs.c
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-2a04-4e3c-bc4c-3cbe1e1143ed";
|
||||
|
||||
Result = OPI_CDEK.GetCourierInvitation(Token, UUID, True);
|
||||
|
49
docs/en/md/CDEK/Orders-managment/Create-barcode.mdx
Normal file
49
docs/en/md/CDEK/Orders-managment/Create-barcode.mdx
Normal file
@ -0,0 +1,49 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Create barcode
|
||||
Generates a PDF barcode CP for orders
|
||||
|
||||
|
||||
|
||||
`Function CreateBarcode(Val Token, Val UUIDArray, Val Copies = 1, Val Format = "A4", Val Lang = "RUS", Val TestAPI = False) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --token | String | ✔ | Auth token |
|
||||
| UUIDArray | --uuids | String, Array of String | ✔ | One or an array of order UUIDs |
|
||||
| Copies | --count | Number | ✖ | Number of copies |
|
||||
| Format | --format | String | ✖ | Print format: A4, A5, A6, A7 |
|
||||
| Lang | --lang | String | ✖ | Barcode language: RUS, ENG |
|
||||
| TestAPI | --testapi | Boolean | ✖ | Flag to use test API for requests |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from CDEK
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Creating barcode CP for the order](https://api-docs.cdek.ru/36969713.html)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
Result = OPI_CDEK.CreateBarcode(Token, UUID, Copies, Format, , True);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -35,8 +35,8 @@ This method is used if the direct order was delivered by CDEK and the recipient
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Tariff = 139;
|
||||
|
||||
Result = OPI_CDEK.CreateCustomerRefund(Token, UUID, Tariff, True);
|
||||
|
@ -31,7 +31,7 @@ Method at API documentation: [Order registration](https://api-docs.cdek.ru/33828
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzI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NsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
OrderDescription = New Structure;
|
||||
|
||||
|
@ -36,8 +36,8 @@ Available receipt types (languages): tpl_china, tpl_armenia, tpl_russia, tpl_eng
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Type = "tpl_russia";
|
||||
Copies = 1;
|
||||
|
||||
|
@ -30,8 +30,8 @@ Method at API documentation: [Registration of refusal](https://api-docs.cdek.ru/
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Result = OPI_CDEK.CreateRefusal(Token, UUID, True);
|
||||
```
|
||||
|
@ -30,8 +30,8 @@ Method at API documentation: [Deleting an order](https://api-docs.cdek.ru/338288
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6I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lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Result = OPI_CDEK.DeleteOrder(Token, UUID, True);
|
||||
```
|
||||
|
54
docs/en/md/CDEK/Orders-managment/Get-barcode.mdx
Normal file
54
docs/en/md/CDEK/Orders-managment/Get-barcode.mdx
Normal file
@ -0,0 +1,54 @@
|
||||
---
|
||||
sidebar_position: 11
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get barcode
|
||||
Gets the barcode CP for the order
|
||||
|
||||
|
||||
|
||||
`Function GetBarcode(Val Token, Val UUID, Val GetFile = False, Val TestAPI = False) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --token | String | ✔ | Auth token |
|
||||
| UUID | --uuid | String | ✔ | The UID of the barcode received when the barcode was created |
|
||||
| GetFile | --getfile | Boolean | ✖ | True > PDF file data will be received, False > receives CDEK server response |
|
||||
| TestAPI | --testapi | Boolean | ✖ | Flag to use test API for requests |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue, BinaryData - serialized JSON response from CDEK or a PDF file
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
The barcode must be previously created. See CreateBarcode
|
||||
|
||||
The link to the file with the barcode CP is available within 1 hour
|
||||
|
||||
Method at API documentation: [Receiving barcode CP for the order](https://api-docs.cdek.ru/36969722.html)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-e627-4330-8dea-c42ecf36de44";
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, , True); // Server response with a URL
|
||||
|
||||
TFN = GetTempFileName("pdf");
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, True, True); // PDF
|
||||
Result.Write(TFN);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -31,9 +31,9 @@ Method at API documentation: [Order details](https://api-docs.cdek.ru/33828849.h
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3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04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
OrderNumber = "cdac0d6a-16ff-4cc6-9929-bfa70a670368";
|
||||
OrderNumber = "0eadaa11-9668-4919-8341-cb70cfd450e0";
|
||||
Result = OPI_CDEK.GetOrderByNumber(Token, OrderNumber, True, True);
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
sidebar_position: 12
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
|
@ -30,8 +30,8 @@ Method at API documentation: [Order details](https://api-docs.cdek.ru/33828849.h
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Result = OPI_CDEK.GetOrder(Token, UUID, True);
|
||||
```
|
||||
|
@ -35,8 +35,8 @@ The receipt must be previously created. See CreateReceipt
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3Qv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hZGRyZ...";
|
||||
UUID = "72753031-48a4-40a9-833f-a2be10872089";
|
||||
|
||||
Result = OPI_CDEK.GetReceipt(Token, UUID, , True); // Server response with a URL
|
||||
|
||||
|
@ -31,8 +31,8 @@ Method at API documentation: [Update an order](https://api-docs.cdek.ru/36989543
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
OrderDescription = New Structure("comment", "NewComment");
|
||||
|
||||
|
4
docs/ru/data/CDEK/ПолучитьШтрихкод.json
Normal file
4
docs/ru/data/CDEK/ПолучитьШтрихкод.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Токен": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...",
|
||||
"UUID": "72753031-e627-4330-8dea-c42ecf36de44"
|
||||
}
|
4
docs/ru/data/CDEK/СформироватьШтрихкод.json
Normal file
4
docs/ru/data/CDEK/СформироватьШтрихкод.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Токен": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...",
|
||||
"UUID": "e4b02aba-4bd3-4a5e-be55-9513787844f7"
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1Ni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JhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
ОписаниеЗаказа = Новый Структура("comment", "Новый комментарий");
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Тариф = 139;
|
||||
|
||||
Результат = OPI_CDEK.ОформитьКлиентскийВозврат(Токен, UUID, Тариф, Истина);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЗаказ(Токен, UUID, Истина);
|
||||
|
@ -1,4 +1,4 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Vyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
НомерЗаказа = "cdac0d6a-16ff-4cc6-9929-bfa70a670368";
|
||||
НомерЗаказа = "0eadaa11-9668-4919-8341-cb70cfd450e0";
|
||||
Результат = OPI_CDEK.ПолучитьЗаказПоНомеру(Токен, НомерЗаказа, Истина, Истина);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-2a04-4e3c-bc4c-3cbe1e1143ed";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЗаявкуНаВызовКурьера(Токен, UUID, Истина);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "72753031-4a8c-463d-9d48-68787f5e3af6";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-48a4-40a9-833f-a2be10872089";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьКвитанцию(Токен, UUID, , Истина); // Ответ сервера с ссылкой
|
||||
|
||||
|
9
docs/ru/examples/CDEK/ПолучитьШтрихкод.txt
Normal file
9
docs/ru/examples/CDEK/ПолучитьШтрихкод.txt
Normal file
@ -0,0 +1,9 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-e627-4330-8dea-c42ecf36de44";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьШтрихкод(Токен, UUID, , Истина); // Ответ сервера с ссылкой
|
||||
|
||||
ИВФ = ПолучитьИмяВременногоФайла("pdf");
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьШтрихкод(Токен, UUID, Истина, Истина); // PDF
|
||||
Результат.Записать(ИВФ);
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvc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NvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
ОписаниеЗаказа = Новый Структура;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
ТекущаяДата = OPI_Инструменты.ПолучитьТекущуюДату();
|
||||
|
||||
ОписаниеЗаявки = Новый Структура;
|
||||
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Результат = OPI_CDEK.СоздатьОтказ(Токен, UUID, Истина);
|
||||
|
@ -1,5 +1,5 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQui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Jzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Тип = "tpl_russia";
|
||||
Копий = 1;
|
||||
|
||||
|
6
docs/ru/examples/CDEK/СформироватьШтрихкод.txt
Normal file
6
docs/ru/examples/CDEK/СформироватьШтрихкод.txt
Normal file
@ -0,0 +1,6 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Формат = "A5";
|
||||
Копий = 1;
|
||||
|
||||
Результат = OPI_CDEK.СформироватьШтрихкод(Токен, UUID, Копий, Формат, , Истина);
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlc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WQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Результат = OPI_CDEK.УдалитьЗаказ(Токен, UUID, Истина);
|
||||
|
@ -1,4 +1,4 @@
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-2a04-4e3c-bc4c-3cbe1e1143ed";
|
||||
|
||||
Результат = OPI_CDEK.УдалитьЗаявкуНаВызовКурьера(Токен, UUID, Истина);
|
||||
|
@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
ТекущаяДата = OPI_Инструменты.ПолучитьТекущуюДату();
|
||||
|
||||
ОписаниеЗаявки = Новый Структура;
|
||||
|
@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6Ik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Y2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-2a04-4e3c-bc4c-3cbe1e1143ed";
|
||||
|
||||
Результат = OPI_CDEK.УдалитьЗаявкуНаВызовКурьера(Токен, UUID, Истина);
|
||||
|
@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-2a04-4e3c-bc4c-3cbe1e1143ed";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЗаявкуНаВызовКурьера(Токен, UUID, Истина);
|
||||
|
49
docs/ru/md/CDEK/Orders-managment/Create-barcode.mdx
Normal file
49
docs/ru/md/CDEK/Orders-managment/Create-barcode.mdx
Normal file
@ -0,0 +1,49 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Сформировать штрихкод
|
||||
Формирует штрихкод места в формате PDF для заказов
|
||||
|
||||
|
||||
|
||||
`Функция СформироватьШтрихкод(Знач Токен, Знач МассивUUID, Знач Копий = 1, Знач Формат = "A4", Знач Язык = "RUS", Знач ТестовыйAPI = Ложь) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Обяз. | Назначение |
|
||||
|-|-|-|-|-|
|
||||
| Токен | --token | Строка | ✔ | Токен авторизации |
|
||||
| МассивUUID | --uuids | Строка, Массив Из Строка | ✔ | Один или массив UUID заказов |
|
||||
| Копий | --count | Число | ✖ | Число копий |
|
||||
| Формат | --format | Строка | ✖ | Формат печати: A4, A5, A6, A7 |
|
||||
| Язык | --lang | Строка | ✖ | Язык штрихкода: RUS, ENG |
|
||||
| ТестовыйAPI | --testapi | Булево | ✖ | Флаг использования API для тестовых запросов |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от CDEK
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [Формирование ШК места к заказу](https://api-docs.cdek.ru/36967295.html)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Формат = "A5";
|
||||
Копий = 1;
|
||||
|
||||
Результат = OPI_CDEK.СформироватьШтрихкод(Токен, UUID, Копий, Формат, , Истина);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
@ -35,8 +35,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Тариф = 139;
|
||||
|
||||
Результат = OPI_CDEK.ОформитьКлиентскийВозврат(Токен, UUID, Тариф, Истина);
|
||||
|
@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
ОписаниеЗаказа = Новый Структура;
|
||||
|
||||
|
@ -36,8 +36,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||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czNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
Тип = "tpl_russia";
|
||||
Копий = 1;
|
||||
|
||||
|
@ -30,8 +30,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Результат = OPI_CDEK.СоздатьОтказ(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -30,8 +30,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtC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hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Результат = OPI_CDEK.УдалитьЗаказ(Токен, UUID, Истина);
|
||||
```
|
||||
|
54
docs/ru/md/CDEK/Orders-managment/Get-barcode.mdx
Normal file
54
docs/ru/md/CDEK/Orders-managment/Get-barcode.mdx
Normal file
@ -0,0 +1,54 @@
|
||||
---
|
||||
sidebar_position: 11
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Получить штрихкод
|
||||
Получает штрихкод места к заказу
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьШтрихкод(Знач Токен, Знач UUID, Знач ПолучитьФайл = Ложь, Знач ТестовыйAPI = Ложь) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Обяз. | Назначение |
|
||||
|-|-|-|-|-|
|
||||
| Токен | --token | Строка | ✔ | Токен авторизации |
|
||||
| UUID | --uuid | Строка | ✔ | UUID штрихкода, полученный при его формировании |
|
||||
| ПолучитьФайл | --getfile | Булево | ✖ | Истина > будут получены сразу данные PDF файла, Ложь > ответ сервера CDEK |
|
||||
| ТестовыйAPI | --testapi | Булево | ✖ | Флаг использования API для тестовых запросов |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение, ДвоичныеДанные - сериализованный JSON ответа от CDEK или PDF файл
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Штрихкод должен быть предварительно создан. См. СформироватьШтрихкод
|
||||
|
||||
Ссылка на файл с ШК местом к заказам доступна в течение 1 часа
|
||||
|
||||
Метод в документации API: [Получение ШК места к заказу](https://api-docs.cdek.ru/36967298.html)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "72753031-e627-4330-8dea-c42ecf36de44";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьШтрихкод(Токен, UUID, , Истина); // Ответ сервера с ссылкой
|
||||
|
||||
ИВФ = ПолучитьИмяВременногоФайла("pdf");
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьШтрихкод(Токен, UUID, Истина, Истина); // PDF
|
||||
Результат.Записать(ИВФ);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
@ -31,9 +31,9 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWV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IsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
|
||||
НомерЗаказа = "cdac0d6a-16ff-4cc6-9929-bfa70a670368";
|
||||
НомерЗаказа = "0eadaa11-9668-4919-8341-cb70cfd450e0";
|
||||
Результат = OPI_CDEK.ПолучитьЗаказПоНомеру(Токен, НомерЗаказа, Истина, Истина);
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
sidebar_position: 12
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
|
@ -30,8 +30,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьЗаказ(Токен, UUID, Истина);
|
||||
```
|
||||
|
@ -35,8 +35,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3Qv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1hZGRyZ...";
|
||||
UUID = "72753031-48a4-40a9-833f-a2be10872089";
|
||||
|
||||
Результат = OPI_CDEK.ПолучитьКвитанцию(Токен, UUID, , Истина); // Ответ сервера с ссылкой
|
||||
|
||||
|
@ -31,8 +31,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MjkzNzEzOTIsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJjb250cmFjdDrQmNCcLdCg0KQt0JPQm9CTLTIyIiwiYWNjb3VudC1sYW5nOnJ1cyIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
|
||||
UUID = "a060d865-be89-4fa5-9068-d9d29dfe6449";
|
||||
Токен = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3Mjk0MTE3OTAsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJhcGktdmVyc2lvbjoxLjEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJzb2xpZC1hZGRyZ...";
|
||||
UUID = "e4b02aba-4bd3-4a5e-be55-9513787844f7";
|
||||
|
||||
ОписаниеЗаказа = Новый Структура("comment", "Новый комментарий");
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -374,6 +374,103 @@ Function GetReceipt(Val Token, Val UUID, Val GetFile = False, Val TestAPI = Fals
|
||||
|
||||
EndFunction
|
||||
|
||||
// Create barcode
|
||||
// Generates a PDF barcode CP for orders
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [Creating barcode CP for the order](@api-docs.cdek.ru/36969713.html)
|
||||
//
|
||||
// Parameters:
|
||||
// Token - String - Auth token - token
|
||||
// UUIDArray - String, Array of String - One or an array of order UUIDs - uuids
|
||||
// Copies - Number - Number of copies - count
|
||||
// Format - String - Print format: A4, A5, A6, A7 - format
|
||||
// Lang - String - Barcode language: RUS, ENG - lang
|
||||
// TestAPI - Boolean - Flag to use test API for requests - testapi
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from CDEK
|
||||
Function CreateBarcode(Val Token
|
||||
, Val UUIDArray
|
||||
, Val Copies = 1
|
||||
, Val Format = "A4"
|
||||
, Val Lang = "RUS"
|
||||
, Val TestAPI = False) Export
|
||||
|
||||
OPI_TypeConversion.GetArray(UUIDArray);
|
||||
|
||||
URL = FormURL("/print/barcodes", TestAPI);
|
||||
Headers = CreateRequestHeaders(Token);
|
||||
|
||||
Parameters = New Structure;
|
||||
ArrayOfOrders = New Array;
|
||||
|
||||
For Each UUID In UUIDArray Do
|
||||
|
||||
OPI_TypeConversion.GetLine(UUID);
|
||||
ArrayOfOrders.Add(New Structure("order_uuid", UUID));
|
||||
|
||||
EndDo;
|
||||
|
||||
OPI_Tools.AddField("orders" , ArrayOfOrders, "Array" , Parameters);
|
||||
OPI_Tools.AddField("copy_count", Copies , "Number" , Parameters);
|
||||
OPI_Tools.AddField("format" , Format , "String" , Parameters);
|
||||
OPI_Tools.AddField("lang" , Lang , "String" , Parameters);
|
||||
|
||||
Response = OPI_Tools.Post(URL, Parameters, Headers);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get barcode
|
||||
// Gets the barcode CP for the order
|
||||
//
|
||||
// Note
|
||||
// The barcode must be previously created. See CreateBarcode
|
||||
// The link to the file with the barcode CP is available within 1 hour
|
||||
// Method at API documentation: [Receiving barcode CP for the order](@api-docs.cdek.ru/36969722.html)
|
||||
//
|
||||
// Parameters:
|
||||
// Token - String - Auth token - token
|
||||
// UUID - String - The UID of the barcode received when the barcode was created - uuid
|
||||
// GetFile - Boolean - True > PDF file data will be received, False > receives CDEK server response - getfile
|
||||
// TestAPI - Boolean - Flag to use test API for requests - testapi
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue, BinaryData - serialized JSON response from CDEK or a PDF file
|
||||
Function GetBarcode(Val Token, Val UUID, Val GetFile = False, Val TestAPI = False) Export
|
||||
|
||||
OPI_TypeConversion.GetLine(UUID);
|
||||
OPI_TypeConversion.GetBoolean(GetFile);
|
||||
|
||||
URL = FormURL("/print/barcodes/" + UUID, TestAPI);
|
||||
Headers = CreateRequestHeaders(Token);
|
||||
|
||||
Response = OPI_Tools.Get(URL, , Headers);
|
||||
|
||||
If GetFile Then
|
||||
|
||||
Entity = Response["entity"];
|
||||
|
||||
If Not ValueIsFilled(Entity) Then
|
||||
Return Response;
|
||||
EndIf;
|
||||
|
||||
URL = Entity["url"];
|
||||
|
||||
If Not ValueIsFilled(URL) Then
|
||||
Return Response;
|
||||
EndIf;
|
||||
|
||||
Response = OPI_Tools.Get(URL, , Headers);
|
||||
|
||||
EndIf;
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get order description
|
||||
// Gets the layout of order for the CreateOrder function
|
||||
//
|
||||
|
@ -2010,10 +2010,12 @@ Procedure CDEKAPI_OrdersManagment() Export
|
||||
CDEK_GetOrder(TestParameters);
|
||||
CDEK_GetOrderByNumber(TestParameters);
|
||||
CDEK_CreateReceipt(TestParameters);
|
||||
CDEK_CreateBarcode(TestParameters);
|
||||
|
||||
OPI_Tools.Pause(25);
|
||||
|
||||
CDEK_GetReceipt(TestParameters);
|
||||
CDEK_GetBarcode(TestParameters);
|
||||
CDEK_UpdateOrder(TestParameters);
|
||||
CDEK_CreateCustomerRefund(TestParameters);
|
||||
CDEK_CreateRefusal(TestParameters);
|
||||
@ -13999,6 +14001,49 @@ Procedure CDEK_GetReceipt(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CDEK_CreateBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_OrderUUID"];
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
Result = OPI_CDEK.CreateBarcode(Token, UUID, Copies, Format, , True);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateBarcode", "CDEK");
|
||||
OPI_TestDataRetrieval.Check_CdekOrder(Result);
|
||||
|
||||
UUID = Result["entity"]["uuid"];
|
||||
OPI_TestDataRetrieval.WriteParameter("CDEK_BarcodeUUID", UUID);
|
||||
OPI_Tools.AddField("CDEK_BarcodeUUID", UUID, "String", FunctionParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CDEK_GetBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_BarcodeUUID"];
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, , True); // Server response with a URL
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetBarcode", "CDEK"); // SKIP
|
||||
OPI_TestDataRetrieval.Check_CdekReceipt(Result); // SKIP
|
||||
|
||||
TFN = GetTempFileName("pdf");
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, True, True); // PDF
|
||||
Result.Write(TFN);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetBarcode (file)");
|
||||
OPI_TestDataRetrieval.Check_BinaryData(Result, 0);
|
||||
DeleteFiles(TFN);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -2005,10 +2005,12 @@ Procedure CLI_CDEKAPI_OrdersManagment() Export
|
||||
CLI_CDEK_GetOrder(TestParameters);
|
||||
CLI_CDEK_GetOrderByNumber(TestParameters);
|
||||
CLI_CDEK_CreateReceipt(TestParameters);
|
||||
CLI_CDEK_CreateBarcode(TestParameters);
|
||||
|
||||
OPI_Tools.Pause(25);
|
||||
|
||||
CLI_CDEK_GetReceipt(TestParameters);
|
||||
CLI_CDEK_GetBarcode(TestParameters);
|
||||
CLI_CDEK_UpdateOrder(TestParameters);
|
||||
CLI_CDEK_CreateCustomerRefund(TestParameters);
|
||||
CLI_CDEK_CreateRefusal(TestParameters);
|
||||
@ -15914,6 +15916,66 @@ Procedure CLI_CDEK_GetReceipt(FunctionParameters)
|
||||
DeleteFiles(TFN);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_CDEK_CreateBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_OrderUUID"];
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("uuids" , UUID);
|
||||
Options.Insert("count" , Copies);
|
||||
Options.Insert("format" , Format);
|
||||
Options.Insert("testapi", True);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("cdek", "CreateBarcode", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "CreateBarcode", "CDEK");
|
||||
OPI_TestDataRetrieval.Check_CdekOrder(Result);
|
||||
|
||||
UUID = Result["entity"]["uuid"];
|
||||
OPI_TestDataRetrieval.WriteParameter("CDEK_BarcodeUUID", UUID);
|
||||
OPI_Tools.AddField("CDEK_BarcodeUUID", UUID, "String", FunctionParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_CDEK_GetBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_BarcodeUUID"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("uuid" , UUID);
|
||||
Options.Insert("testapi", True);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("cdek", "GetBarcode", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetBarcode", "CDEK"); // SKIP
|
||||
OPI_TestDataRetrieval.Check_CdekReceipt(Result); // SKIP
|
||||
|
||||
TFN = GetTempFileName("pdf");
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("uuid" , UUID);
|
||||
Options.Insert("getfile", True);
|
||||
Options.Insert("testapi", True);
|
||||
Options.Insert("out" , TFN);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("cdek", "GetBarcode", Options);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetBarcode (file)");
|
||||
OPI_TestDataRetrieval.Check_BinaryData(Result, 50000);
|
||||
DeleteFiles(TFN);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -374,6 +374,103 @@ Function GetReceipt(Val Token, Val UUID, Val GetFile = False, Val TestAPI = Fals
|
||||
|
||||
EndFunction
|
||||
|
||||
// Create barcode
|
||||
// Generates a PDF barcode CP for orders
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [Creating barcode CP for the order](@api-docs.cdek.ru/36969713.html)
|
||||
//
|
||||
// Parameters:
|
||||
// Token - String - Auth token - token
|
||||
// UUIDArray - String, Array of String - One or an array of order UUIDs - uuids
|
||||
// Copies - Number - Number of copies - count
|
||||
// Format - String - Print format: A4, A5, A6, A7 - format
|
||||
// Lang - String - Barcode language: RUS, ENG - lang
|
||||
// TestAPI - Boolean - Flag to use test API for requests - testapi
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - serialized JSON response from CDEK
|
||||
Function CreateBarcode(Val Token
|
||||
, Val UUIDArray
|
||||
, Val Copies = 1
|
||||
, Val Format = "A4"
|
||||
, Val Lang = "RUS"
|
||||
, Val TestAPI = False) Export
|
||||
|
||||
OPI_TypeConversion.GetArray(UUIDArray);
|
||||
|
||||
URL = FormURL("/print/barcodes", TestAPI);
|
||||
Headers = CreateRequestHeaders(Token);
|
||||
|
||||
Parameters = New Structure;
|
||||
ArrayOfOrders = New Array;
|
||||
|
||||
For Each UUID In UUIDArray Do
|
||||
|
||||
OPI_TypeConversion.GetLine(UUID);
|
||||
ArrayOfOrders.Add(New Structure("order_uuid", UUID));
|
||||
|
||||
EndDo;
|
||||
|
||||
OPI_Tools.AddField("orders" , ArrayOfOrders, "Array" , Parameters);
|
||||
OPI_Tools.AddField("copy_count", Copies , "Number" , Parameters);
|
||||
OPI_Tools.AddField("format" , Format , "String" , Parameters);
|
||||
OPI_Tools.AddField("lang" , Lang , "String" , Parameters);
|
||||
|
||||
Response = OPI_Tools.Post(URL, Parameters, Headers);
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get barcode
|
||||
// Gets the barcode CP for the order
|
||||
//
|
||||
// Note
|
||||
// The barcode must be previously created. See CreateBarcode
|
||||
// The link to the file with the barcode CP is available within 1 hour
|
||||
// Method at API documentation: [Receiving barcode CP for the order](@api-docs.cdek.ru/36969722.html)
|
||||
//
|
||||
// Parameters:
|
||||
// Token - String - Auth token - token
|
||||
// UUID - String - The UID of the barcode received when the barcode was created - uuid
|
||||
// GetFile - Boolean - True > PDF file data will be received, False > receives CDEK server response - getfile
|
||||
// TestAPI - Boolean - Flag to use test API for requests - testapi
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue, BinaryData - serialized JSON response from CDEK or a PDF file
|
||||
Function GetBarcode(Val Token, Val UUID, Val GetFile = False, Val TestAPI = False) Export
|
||||
|
||||
OPI_TypeConversion.GetLine(UUID);
|
||||
OPI_TypeConversion.GetBoolean(GetFile);
|
||||
|
||||
URL = FormURL("/print/barcodes/" + UUID, TestAPI);
|
||||
Headers = CreateRequestHeaders(Token);
|
||||
|
||||
Response = OPI_Tools.Get(URL, , Headers);
|
||||
|
||||
If GetFile Then
|
||||
|
||||
Entity = Response["entity"];
|
||||
|
||||
If Not ValueIsFilled(Entity) Then
|
||||
Return Response;
|
||||
EndIf;
|
||||
|
||||
URL = Entity["url"];
|
||||
|
||||
If Not ValueIsFilled(URL) Then
|
||||
Return Response;
|
||||
EndIf;
|
||||
|
||||
Response = OPI_Tools.Get(URL, , Headers);
|
||||
|
||||
EndIf;
|
||||
|
||||
Return Response;
|
||||
|
||||
EndFunction
|
||||
|
||||
// Get order description
|
||||
// Gets the layout of order for the CreateOrder function
|
||||
//
|
||||
|
@ -2010,10 +2010,12 @@ Procedure CDEKAPI_OrdersManagment() Export
|
||||
CDEK_GetOrder(TestParameters);
|
||||
CDEK_GetOrderByNumber(TestParameters);
|
||||
CDEK_CreateReceipt(TestParameters);
|
||||
CDEK_CreateBarcode(TestParameters);
|
||||
|
||||
OPI_Tools.Pause(25);
|
||||
|
||||
CDEK_GetReceipt(TestParameters);
|
||||
CDEK_GetBarcode(TestParameters);
|
||||
CDEK_UpdateOrder(TestParameters);
|
||||
CDEK_CreateCustomerRefund(TestParameters);
|
||||
CDEK_CreateRefusal(TestParameters);
|
||||
@ -13999,6 +14001,49 @@ Procedure CDEK_GetReceipt(FunctionParameters)
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CDEK_CreateBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_OrderUUID"];
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
Result = OPI_CDEK.CreateBarcode(Token, UUID, Copies, Format, , True);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateBarcode", "CDEK");
|
||||
OPI_TestDataRetrieval.Check_CdekOrder(Result);
|
||||
|
||||
UUID = Result["entity"]["uuid"];
|
||||
OPI_TestDataRetrieval.WriteParameter("CDEK_BarcodeUUID", UUID);
|
||||
OPI_Tools.AddField("CDEK_BarcodeUUID", UUID, "String", FunctionParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CDEK_GetBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_BarcodeUUID"];
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, , True); // Server response with a URL
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetBarcode", "CDEK"); // SKIP
|
||||
OPI_TestDataRetrieval.Check_CdekReceipt(Result); // SKIP
|
||||
|
||||
TFN = GetTempFileName("pdf");
|
||||
|
||||
Result = OPI_CDEK.GetBarcode(Token, UUID, True, True); // PDF
|
||||
Result.Write(TFN);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "GetBarcode (file)");
|
||||
OPI_TestDataRetrieval.Check_BinaryData(Result, 0);
|
||||
DeleteFiles(TFN);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -2005,10 +2005,12 @@ Procedure CLI_CDEKAPI_OrdersManagment() Export
|
||||
CLI_CDEK_GetOrder(TestParameters);
|
||||
CLI_CDEK_GetOrderByNumber(TestParameters);
|
||||
CLI_CDEK_CreateReceipt(TestParameters);
|
||||
CLI_CDEK_CreateBarcode(TestParameters);
|
||||
|
||||
OPI_Tools.Pause(25);
|
||||
|
||||
CLI_CDEK_GetReceipt(TestParameters);
|
||||
CLI_CDEK_GetBarcode(TestParameters);
|
||||
CLI_CDEK_UpdateOrder(TestParameters);
|
||||
CLI_CDEK_CreateCustomerRefund(TestParameters);
|
||||
CLI_CDEK_CreateRefusal(TestParameters);
|
||||
@ -15914,6 +15916,66 @@ Procedure CLI_CDEK_GetReceipt(FunctionParameters)
|
||||
DeleteFiles(TFN);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_CDEK_CreateBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_OrderUUID"];
|
||||
Format = "A5";
|
||||
Copies = 1;
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("uuids" , UUID);
|
||||
Options.Insert("count" , Copies);
|
||||
Options.Insert("format" , Format);
|
||||
Options.Insert("testapi", True);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("cdek", "CreateBarcode", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "CreateBarcode", "CDEK");
|
||||
OPI_TestDataRetrieval.Check_CdekOrder(Result);
|
||||
|
||||
UUID = Result["entity"]["uuid"];
|
||||
OPI_TestDataRetrieval.WriteParameter("CDEK_BarcodeUUID", UUID);
|
||||
OPI_Tools.AddField("CDEK_BarcodeUUID", UUID, "String", FunctionParameters);
|
||||
|
||||
EndProcedure
|
||||
|
||||
Procedure CLI_CDEK_GetBarcode(FunctionParameters)
|
||||
|
||||
Token = FunctionParameters["CDEK_Token"];
|
||||
UUID = FunctionParameters["CDEK_BarcodeUUID"];
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("uuid" , UUID);
|
||||
Options.Insert("testapi", True);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("cdek", "GetBarcode", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetBarcode", "CDEK"); // SKIP
|
||||
OPI_TestDataRetrieval.Check_CdekReceipt(Result); // SKIP
|
||||
|
||||
TFN = GetTempFileName("pdf");
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("uuid" , UUID);
|
||||
Options.Insert("getfile", True);
|
||||
Options.Insert("testapi", True);
|
||||
Options.Insert("out" , TFN);
|
||||
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("cdek", "GetBarcode", Options);
|
||||
|
||||
// END
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetBarcode (file)");
|
||||
OPI_TestDataRetrieval.Check_BinaryData(Result, 50000);
|
||||
DeleteFiles(TFN);
|
||||
|
||||
EndProcedure
|
||||
|
||||
#EndRegion
|
||||
|
||||
#EndRegion
|
||||
|
@ -390,6 +390,108 @@
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "CreateBarcode";
|
||||
NewLine.МетодПоиска = "CREATEBARCODE";
|
||||
NewLine.Параметр = "--token";
|
||||
NewLine.Описание = "Auth token";
|
||||
NewLine.Область = "Orders managment";
|
||||
NewLine.ОписаниеМетода = "Generates a PDF barcode CP for orders";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "CreateBarcode";
|
||||
NewLine.МетодПоиска = "CREATEBARCODE";
|
||||
NewLine.Параметр = "--uuids";
|
||||
NewLine.Описание = "One or an array of order UUIDs";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "CreateBarcode";
|
||||
NewLine.МетодПоиска = "CREATEBARCODE";
|
||||
NewLine.Параметр = "--count";
|
||||
NewLine.Описание = "Number of copies (optional, def. val. - 1)";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "CreateBarcode";
|
||||
NewLine.МетодПоиска = "CREATEBARCODE";
|
||||
NewLine.Параметр = "--format";
|
||||
NewLine.Описание = "Print format: A4, A5, A6, A7 (optional, def. val. - A4)";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "CreateBarcode";
|
||||
NewLine.МетодПоиска = "CREATEBARCODE";
|
||||
NewLine.Параметр = "--lang";
|
||||
NewLine.Описание = "Barcode language: RUS, ENG (optional, def. val. - RUS)";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "CreateBarcode";
|
||||
NewLine.МетодПоиска = "CREATEBARCODE";
|
||||
NewLine.Параметр = "--testapi";
|
||||
NewLine.Описание = "Flag to use test API for requests (optional, def. val. - No)";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "GetBarcode";
|
||||
NewLine.МетодПоиска = "GETBARCODE";
|
||||
NewLine.Параметр = "--token";
|
||||
NewLine.Описание = "Auth token";
|
||||
NewLine.Область = "Orders managment";
|
||||
NewLine.ОписаниеМетода = "Gets the barcode CP for the order";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "GetBarcode";
|
||||
NewLine.МетодПоиска = "GETBARCODE";
|
||||
NewLine.Параметр = "--uuid";
|
||||
NewLine.Описание = "The UID of the barcode received when the barcode was created";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "GetBarcode";
|
||||
NewLine.МетодПоиска = "GETBARCODE";
|
||||
NewLine.Параметр = "--getfile";
|
||||
NewLine.Описание = "True > PDF file data will be received, False > receives CDEK server response (optional, def. val. - No)";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
NewLine.Метод = "GetBarcode";
|
||||
NewLine.МетодПоиска = "GETBARCODE";
|
||||
NewLine.Параметр = "--testapi";
|
||||
NewLine.Описание = "Flag to use test API for requests (optional, def. val. - No)";
|
||||
NewLine.Область = "Orders managment";
|
||||
|
||||
|
||||
NewLine = CompositionTable.Add();
|
||||
NewLine.Библиотека = "cdek";
|
||||
NewLine.Модуль = "OPI_CDEK";
|
||||
|
@ -376,15 +376,14 @@
|
||||
|
||||
// Сформировать штрихкод
|
||||
// Формирует штрихкод места в формате PDF для заказов
|
||||
//
|
||||
//
|
||||
// Примечание:
|
||||
// Доступные языки: RUS, ENG
|
||||
// Метод в документации API: [Формирование ШК места к заказу](@api-docs.cdek.ru/36967295.html)
|
||||
//
|
||||
// Параметры:
|
||||
// Токен - Строка - Токен авторизации - token
|
||||
// МассивUUID - Строка, Массив Из Строка - Один или массив UUID заказов - uuids
|
||||
// Копий - Число - Число копий - count
|
||||
// Копий - Число - Число копий - count
|
||||
// Формат - Строка - Формат печати: A4, A5, A6, A7 - format
|
||||
// Язык - Строка - Язык штрихкода: RUS, ENG - lang
|
||||
// ТестовыйAPI - Булево - Флаг использования API для тестовых запросов - testapi
|
||||
@ -397,7 +396,7 @@
|
||||
, Знач Формат = "A4"
|
||||
, Знач Язык = "RUS"
|
||||
, Знач ТестовыйAPI = Ложь) Экспорт
|
||||
|
||||
|
||||
OPI_ПреобразованиеТипов.ПолучитьМассив(МассивUUID);
|
||||
|
||||
URL = СформироватьURL("/print/barcodes", ТестовыйAPI);
|
||||
@ -421,12 +420,12 @@
|
||||
Ответ = OPI_Инструменты.Post(URL, Параметры, Заголовки);
|
||||
|
||||
Возврат Ответ;
|
||||
|
||||
|
||||
КонецФункции
|
||||
|
||||
// Получить штрихкод
|
||||
// Получает штрихкод места к заказу
|
||||
//
|
||||
//
|
||||
// Примечание:
|
||||
// Штрихкод должен быть предварительно создан. См. СформироватьШтрихкод
|
||||
// Ссылка на файл с ШК местом к заказам доступна в течение 1 часа
|
||||
|
@ -1870,9 +1870,9 @@
|
||||
КонецФункции
|
||||
|
||||
Функция ПолучитьОбщийМодуль(Знач Имя)
|
||||
|
||||
|
||||
Модуль = Вычислить(Имя);
|
||||
|
||||
|
||||
Возврат Модуль;
|
||||
КонецФункции
|
||||
|
||||
|
@ -462,9 +462,9 @@
|
||||
КонецЦикла;
|
||||
|
||||
ИначеЕсли ТипЗначения = Тип("Соответствие") Тогда
|
||||
|
||||
|
||||
Коллекция_ = Новый Соответствие;
|
||||
|
||||
|
||||
Для Каждого ЭлементКоллекции Из Коллекция Цикл
|
||||
|
||||
ОчищенноеПоле = ОчиститьКоллекциюРекурсивно(ЭлементКоллекции.Значение);
|
||||
|
@ -376,14 +376,14 @@
|
||||
|
||||
// Сформировать штрихкод
|
||||
// Формирует штрихкод места в формате PDF для заказов
|
||||
//
|
||||
//
|
||||
// Примечание:
|
||||
// Метод в документации API: [Формирование ШК места к заказу](@api-docs.cdek.ru/36967295.html)
|
||||
//
|
||||
// Параметры:
|
||||
// Токен - Строка - Токен авторизации - token
|
||||
// МассивUUID - Строка, Массив Из Строка - Один или массив UUID заказов - uuids
|
||||
// Копий - Число - Число копий - count
|
||||
// Копий - Число - Число копий - count
|
||||
// Формат - Строка - Формат печати: A4, A5, A6, A7 - format
|
||||
// Язык - Строка - Язык штрихкода: RUS, ENG - lang
|
||||
// ТестовыйAPI - Булево - Флаг использования API для тестовых запросов - testapi
|
||||
@ -396,7 +396,7 @@
|
||||
, Знач Формат = "A4"
|
||||
, Знач Язык = "RUS"
|
||||
, Знач ТестовыйAPI = Ложь) Экспорт
|
||||
|
||||
|
||||
OPI_ПреобразованиеТипов.ПолучитьМассив(МассивUUID);
|
||||
|
||||
URL = СформироватьURL("/print/barcodes", ТестовыйAPI);
|
||||
@ -420,12 +420,12 @@
|
||||
Ответ = OPI_Инструменты.Post(URL, Параметры, Заголовки);
|
||||
|
||||
Возврат Ответ;
|
||||
|
||||
|
||||
КонецФункции
|
||||
|
||||
// Получить штрихкод
|
||||
// Получает штрихкод места к заказу
|
||||
//
|
||||
//
|
||||
// Примечание:
|
||||
// Штрихкод должен быть предварительно создан. См. СформироватьШтрихкод
|
||||
// Ссылка на файл с ШК местом к заказам доступна в течение 1 часа
|
||||
|
@ -394,6 +394,112 @@
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "СформироватьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "СФОРМИРОВАТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--token";
|
||||
НоваяСтрока.Описание = "Токен авторизации";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
НоваяСтрока.ОписаниеМетода = "Формирует штрихкод места в формате PDF для заказов
|
||||
|
|
||||
| Пример указания параметра типа массив:
|
||||
| --param ""['Val1','Val2','Val3']""
|
||||
|";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "СформироватьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "СФОРМИРОВАТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--uuids";
|
||||
НоваяСтрока.Описание = "Один или массив UUID заказов";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "СформироватьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "СФОРМИРОВАТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--count";
|
||||
НоваяСтрока.Описание = "Число копий (необяз. по ум. - 1)";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "СформироватьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "СФОРМИРОВАТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--format";
|
||||
НоваяСтрока.Описание = "Формат печати: A4, A5, A6, A7 (необяз. по ум. - A4)";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "СформироватьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "СФОРМИРОВАТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--lang";
|
||||
НоваяСтрока.Описание = "Язык штрихкода: RUS, ENG (необяз. по ум. - RUS)";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "СформироватьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "СФОРМИРОВАТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--testapi";
|
||||
НоваяСтрока.Описание = "Флаг использования API для тестовых запросов (необяз. по ум. - Нет)";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "ПолучитьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "ПОЛУЧИТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--token";
|
||||
НоваяСтрока.Описание = "Токен авторизации";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
НоваяСтрока.ОписаниеМетода = "Получает штрихкод места к заказу";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "ПолучитьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "ПОЛУЧИТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--uuid";
|
||||
НоваяСтрока.Описание = "UUID штрихкода, полученный при его формировании";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "ПолучитьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "ПОЛУЧИТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--getfile";
|
||||
НоваяСтрока.Описание = "Истина > будут получены сразу данные PDF файла, Ложь > ответ сервера CDEK (необяз. по ум. - Нет)";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
НоваяСтрока.Метод = "ПолучитьШтрихкод";
|
||||
НоваяСтрока.МетодПоиска = "ПОЛУЧИТЬШТРИХКОД";
|
||||
НоваяСтрока.Параметр = "--testapi";
|
||||
НоваяСтрока.Описание = "Флаг использования API для тестовых запросов (необяз. по ум. - Нет)";
|
||||
НоваяСтрока.Область = "Работа с заказми";
|
||||
|
||||
|
||||
НоваяСтрока = ТаблицаСостава.Добавить();
|
||||
НоваяСтрока.Библиотека = "cdek";
|
||||
НоваяСтрока.Модуль = "OPI_CDEK";
|
||||
|
Loading…
Reference in New Issue
Block a user