File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed
Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 33
44use BatteryIncludedSdk \Client \ApiClient ;
55use BatteryIncludedSdk \Client \CurlHttpClient ;
6- use BatteryIncludedSdk \Service \SyncProductService ;
6+ use BatteryIncludedSdk \Service \SyncService ;
77
88require_once __DIR__ . '/../../vendor/autoload.php ' ;
99require_once __DIR__ . '/../credentials.php ' ;
1515 $ apiKey
1616);
1717
18- $ syncService = new SyncProductService ($ apiClient );
18+ $ syncService = new SyncService ($ apiClient );
1919
20- $ result = $ syncService ->deleteProductsByIds ('240 ' , '2 ' );
20+ $ result = $ syncService ->deleteElementsByIds ('240 ' , '2 ' );
2121
2222echo '<pre> ' ;
2323var_dump ($ result ->getBody ());
Original file line number Diff line number Diff line change 44use BatteryIncludedSdk \Client \ApiClient ;
55use BatteryIncludedSdk \Client \CurlHttpClient ;
66use BatteryIncludedSdk \Dto \ProductBaseDto ;
7- use BatteryIncludedSdk \Service \SyncProductService ;
7+ use BatteryIncludedSdk \Service \SyncService ;
88
99require_once __DIR__ . '/../../vendor/autoload.php ' ;
1010require_once __DIR__ . '/../credentials.php ' ;
1616 $ apiKey
1717);
1818
19- $ syncService = new SyncProductService ($ apiClient );
19+ $ syncService = new SyncService ($ apiClient );
2020
2121$ product = new ProductBaseDto ('239 ' );
2222$ product ->setId ('239 ' );
2323$ product ->setPrice (13337.95 );
24- $ result = $ syncService ->partialUpdateOneOrManyProducts ($ product );
24+ $ result = $ syncService ->partialUpdateOneOrManyElements ($ product );
2525
2626echo '<pre> ' ;
2727var_dump ($ result ->getBody ());
Original file line number Diff line number Diff line change 33
44use BatteryIncludedSdk \Client \ApiClient ;
55use BatteryIncludedSdk \Client \CurlHttpClient ;
6- use BatteryIncludedSdk \Service \SyncProductService ;
6+ use BatteryIncludedSdk \Service \SyncService ;
77use BatteryIncludedSdkTests \Helper ;
88
99require_once __DIR__ . '/../../vendor/autoload.php ' ;
1818 $ apiKey
1919);
2020
21- $ syncService = new SyncProductService ($ apiClient );
21+ $ syncService = new SyncService ($ apiClient );
2222
23- $ result = $ syncService ->syncFullProducts (...$ products );
23+ $ result = $ syncService ->syncFullElements (...$ products );
2424
2525echo '<pre> ' ;
2626var_dump ($ result ->getBody ());
Original file line number Diff line number Diff line change 33
44use BatteryIncludedSdk \Client \ApiClient ;
55use BatteryIncludedSdk \Client \CurlHttpClient ;
6- use BatteryIncludedSdk \Service \SyncProductService ;
6+ use BatteryIncludedSdk \Service \SyncService ;
77use BatteryIncludedSdkTests \Helper ;
88
99require_once __DIR__ . '/../../vendor/autoload.php ' ;
1919);
2020
2121$ transactionId = 'Transaction_ ' . time ();
22- $ syncService = new SyncProductService ($ apiClient );
22+ $ syncService = new SyncService ($ apiClient );
2323
2424foreach (array_chunk ($ products , 10 ) as $ productSlice ) {
25- $ result = $ syncService ->syncFullBatchProducts ($ transactionId , false , ...$ productSlice );
25+ $ result = $ syncService ->syncFullBatchElements ($ transactionId , false , ...$ productSlice );
2626 echo '<pre> ' ;
2727 var_dump ($ result ->getBody ());
2828 echo '</pre> ' ;
2929}
3030
31- $ result = $ syncService ->syncFullBatchProducts ($ transactionId , true , ...$ productSlice );
31+ $ result = $ syncService ->syncFullBatchElements ($ transactionId , true , ...$ productSlice );
3232echo '<pre> ' ;
3333var_dump ($ result ->getBody ());
3434echo '</pre> ' ;
Original file line number Diff line number Diff line change 33
44use BatteryIncludedSdk \Client \ApiClient ;
55use BatteryIncludedSdk \Client \CurlHttpClient ;
6- use BatteryIncludedSdk \Service \SyncProductService ;
6+ use BatteryIncludedSdk \Service \SyncService ;
77use BatteryIncludedSdkTests \Helper ;
88
99require_once __DIR__ . '/../../vendor/autoload.php ' ;
1818 $ apiKey
1919);
2020
21- $ syncService = new SyncProductService ($ apiClient );
21+ $ syncService = new SyncService ($ apiClient );
2222
23- $ result = $ syncService ->syncOneOrManyProducts (...$ products );
23+ $ result = $ syncService ->syncOneOrManyElements (...$ products );
2424
2525echo '<pre> ' ;
2626var_dump ($ result ->getBody ());
You can’t perform that action at this time.
0 commit comments