[{"data":1,"prerenderedAt":2246},["ShallowReactive",2],{"navigation":3,"\u002Ftesting":43,"\u002Ftesting-surround":2241},[4,8,13,18,23,28,33,38],{"title":5,"path":6,"stem":7},"Getting started","\u002F","index",{"title":9,"path":10,"stem":11,"order":12},"Numbers","\u002Fnumbers","numbers",1,{"title":14,"path":15,"stem":16,"order":17},"Rent","\u002Frent","rent",2,{"title":19,"path":20,"stem":21,"order":22},"User","\u002Fuser","user",3,{"title":24,"path":25,"stem":26,"order":27},"Free numbers","\u002Ffree","free",4,{"title":29,"path":30,"stem":31,"order":32},"Webhooks","\u002Fwebhooks","webhooks",5,{"title":34,"path":35,"stem":36,"order":37},"Testing","\u002Ftesting","testing",6,{"title":39,"path":40,"stem":41,"order":42},"Changelog","\u002Fchangelog","changelog",7,{"id":44,"title":34,"body":45,"description":2235,"extension":2236,"meta":2237,"navigation":2238,"path":35,"seo":2239,"stem":36,"__hash__":2240},"docs\u002Ftesting.md",{"type":46,"value":47,"toc":2227},"minimark",[48,64,69,169,299,472,495,580,584,598,1037,1063,1067,1095,1394,1456,1460,1484,1867,1871,2035,2039,2223],[49,50,51,55,56,59,60,63],"p",{},[52,53,54],"code",{},"MockOnlineSim"," is an in-process fake of the OnlineSim API that ships with the package. It is an ",[52,57,58],{},"ITransport"," that answers like the real backend — same shapes, same error codes, HTTP 456 for a wrong key — and keeps a balance, operations and rents. Your code talks to a normal ",[52,61,62],{},"OnlineSimClient",", so nothing in it changes for tests. It is deterministic: no randomness, no clock, numbers and ids come from a counter. It is thread-safe.",[65,66,68],"h2",{"id":67},"setup","Setup",[70,71,76],"pre",{"className":72,"code":73,"language":74,"meta":75,"style":75},"language-csharp shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","using OnlineSim.Api;\n\nvar mock = new MockOnlineSim(new MockOptions { Balance = 10 });\nvar client = mock.Client(); \u002F\u002F an OnlineSimClient wired to the mock\n","csharp","",[52,77,78,100,106,145],{"__ignoreMap":75},[79,80,82,86,90,94,97],"span",{"class":81,"line":12},"line",[79,83,85],{"class":84},"sbssI","using",[79,87,89],{"class":88},"sTEyZ"," OnlineSim",[79,91,93],{"class":92},"sMK4o",".",[79,95,96],{"class":88},"Api",[79,98,99],{"class":92},";\n",[79,101,102],{"class":81,"line":17},[79,103,105],{"emptyLinePlaceholder":104},true,"\n",[79,107,108,112,115,118,121,124,127,130,133,136,139,142],{"class":81,"line":22},[79,109,111],{"class":110},"sBMFI","var",[79,113,114],{"class":110}," mock",[79,116,117],{"class":92}," =",[79,119,120],{"class":92}," new",[79,122,123],{"class":110}," MockOnlineSim",[79,125,126],{"class":92},"(new",[79,128,129],{"class":110}," MockOptions",[79,131,132],{"class":92}," {",[79,134,135],{"class":88}," Balance ",[79,137,138],{"class":92},"=",[79,140,141],{"class":84}," 10",[79,143,144],{"class":92}," });\n",[79,146,147,149,152,154,156,158,162,165],{"class":81,"line":27},[79,148,111],{"class":110},[79,150,151],{"class":110}," client",[79,153,117],{"class":92},[79,155,114],{"class":88},[79,157,93],{"class":92},[79,159,161],{"class":160},"s2Zo4","Client",[79,163,164],{"class":92},"();",[79,166,168],{"class":167},"sHwdD"," \u002F\u002F an OnlineSimClient wired to the mock\n",[170,171,172,190],"table",{},[173,174,175],"thead",{},[176,177,178,184,187],"tr",{},[179,180,181],"th",{},[52,182,183],{},"MockOptions",[179,185,186],{},"Default",[179,188,189],{},"Description",[191,192,193,217,236,258,281],"tbody",{},[176,194,195,201,206],{},[196,197,198],"td",{},[52,199,200],{},"ApiKey",[196,202,203],{},[52,204,205],{},"\"mock-key\"",[196,207,208,209,212,213,216],{},"Key the mock accepts. ",[52,210,211],{},"mock.Client()"," uses it; ",[52,214,215],{},"mock.Client(new OnlineSimClientOptions { ApiKey = \"x\" })"," tests a wrong key.",[176,218,219,224,229],{},[196,220,221],{},[52,222,223],{},"Balance",[196,225,226],{},[52,227,228],{},"100",[196,230,231,232,235],{},"Starting balance, USD (",[52,233,234],{},"decimal",").",[176,237,238,243,248],{},[196,239,240],{},[52,241,242],{},"Prices",[196,244,245],{},[52,246,247],{},"{7: {vkcom: 0.5, telegram: 1.2, google: 0.3}, 44: {google: 0.2, vkcom: 0.36}}",[196,249,250,251,254,255,93],{},"Number prices, ",[52,252,253],{},"Dictionary\u003Cint, Dictionary\u003Cstring, decimal>>"," (country → service → USD); replaces the defaults. Also feeds ",[52,256,257],{},"Numbers.TariffsAsync()",[176,259,260,265,270],{},[196,261,262],{},[52,263,264],{},"RentTariffs",[196,266,267],{},[52,268,269],{},"{7: {Days: {1: 1, 3: 2.5, 7: 5}, Extend: 1}}",[196,271,272,273,276,277,280],{},"Rent prices, ",[52,274,275],{},"Dictionary\u003Cint, MockRentTariff>","; ",[52,278,279],{},"Extend = 0"," makes rents of that country non-extendable.",[176,282,283,288,293],{},[196,284,285],{},[52,286,287],{},"GuardInterval",[196,289,290],{},[52,291,292],{},"TimeSpan.Zero",[196,294,295,296,235],{},"Above zero: an operation without SMS, or an unconfirmed rent without any SMS, cannot be closed (",[52,297,298],{},"NO_COMPLETE_TZID",[70,300,302],{"className":72,"code":301,"language":74,"meta":75,"style":75},"using System.Collections.Generic;\nusing OnlineSim.Api;\n\nvar mock = new MockOnlineSim(new MockOptions\n{\n    Prices = new Dictionary\u003Cint, Dictionary\u003Cstring, decimal>> { [44] = new Dictionary\u003Cstring, decimal> { [\"google\"] = 0.25m } },\n    GuardInterval = TimeSpan.FromSeconds(120),\n});\n",[52,303,304,323,335,339,356,361,442,466],{"__ignoreMap":75},[79,305,306,308,311,313,316,318,321],{"class":81,"line":12},[79,307,85],{"class":84},[79,309,310],{"class":88}," System",[79,312,93],{"class":92},[79,314,315],{"class":88},"Collections",[79,317,93],{"class":92},[79,319,320],{"class":88},"Generic",[79,322,99],{"class":92},[79,324,325,327,329,331,333],{"class":81,"line":17},[79,326,85],{"class":84},[79,328,89],{"class":88},[79,330,93],{"class":92},[79,332,96],{"class":88},[79,334,99],{"class":92},[79,336,337],{"class":81,"line":22},[79,338,105],{"emptyLinePlaceholder":104},[79,340,341,343,345,347,349,351,353],{"class":81,"line":27},[79,342,111],{"class":110},[79,344,114],{"class":110},[79,346,117],{"class":92},[79,348,120],{"class":92},[79,350,123],{"class":110},[79,352,126],{"class":92},[79,354,355],{"class":110}," MockOptions\n",[79,357,358],{"class":81,"line":32},[79,359,360],{"class":92},"{\n",[79,362,363,366,368,370,373,376,378,381,384,387,390,392,395,398,401,403,405,407,409,411,413,416,418,420,423,427,429,431,433,436,439],{"class":81,"line":37},[79,364,365],{"class":88},"    Prices ",[79,367,138],{"class":92},[79,369,120],{"class":92},[79,371,372],{"class":110}," Dictionary",[79,374,375],{"class":92},"\u003Cint,",[79,377,372],{"class":110},[79,379,380],{"class":92},"\u003C",[79,382,383],{"class":92},"string",[79,385,386],{"class":92},",",[79,388,389],{"class":92}," decimal>>",[79,391,132],{"class":92},[79,393,394],{"class":92}," [",[79,396,397],{"class":84},"44",[79,399,400],{"class":92},"]",[79,402,117],{"class":92},[79,404,120],{"class":92},[79,406,372],{"class":110},[79,408,380],{"class":92},[79,410,383],{"class":92},[79,412,386],{"class":92},[79,414,415],{"class":92}," decimal>",[79,417,132],{"class":92},[79,419,394],{"class":92},[79,421,422],{"class":92},"\"",[79,424,426],{"class":425},"sfazB","google",[79,428,422],{"class":92},[79,430,400],{"class":92},[79,432,117],{"class":92},[79,434,435],{"class":84}," 0.25m",[79,437,438],{"class":92}," }",[79,440,441],{"class":92}," },\n",[79,443,444,447,449,452,454,457,460,463],{"class":81,"line":42},[79,445,446],{"class":88},"    GuardInterval ",[79,448,138],{"class":92},[79,450,451],{"class":88}," TimeSpan",[79,453,93],{"class":92},[79,455,456],{"class":160},"FromSeconds",[79,458,459],{"class":92},"(",[79,461,462],{"class":84},"120",[79,464,465],{"class":92},"),\n",[79,467,469],{"class":81,"line":468},8,[79,470,471],{"class":92},"});\n",[49,473,474,477,478,276,483,486,487,490,491,494],{},[52,475,476],{},"mock.Client(options?)"," takes the usual ",[479,480,482],"a",{"href":481},"\u002F#client-options","client options",[52,484,485],{},"Transport"," is ignored. To build the client yourself, set ",[52,488,489],{},"mock.Transport"," as the transport; any ",[52,492,493],{},"BaseUrl"," works:",[70,496,498],{"className":72,"code":497,"language":74,"meta":75,"style":75},"using OnlineSim.Api;\n\nvar mock = new MockOnlineSim();\nvar client = new OnlineSimClient(new OnlineSimClientOptions { ApiKey = \"mock-key\", Transport = mock.Transport });\n",[52,499,500,512,516,531],{"__ignoreMap":75},[79,501,502,504,506,508,510],{"class":81,"line":12},[79,503,85],{"class":84},[79,505,89],{"class":88},[79,507,93],{"class":92},[79,509,96],{"class":88},[79,511,99],{"class":92},[79,513,514],{"class":81,"line":17},[79,515,105],{"emptyLinePlaceholder":104},[79,517,518,520,522,524,526,528],{"class":81,"line":22},[79,519,111],{"class":110},[79,521,114],{"class":110},[79,523,117],{"class":92},[79,525,120],{"class":92},[79,527,123],{"class":110},[79,529,530],{"class":92},"();\n",[79,532,533,535,537,539,541,544,546,549,551,554,556,559,562,564,566,569,571,573,575,578],{"class":81,"line":27},[79,534,111],{"class":110},[79,536,151],{"class":110},[79,538,117],{"class":92},[79,540,120],{"class":92},[79,542,543],{"class":110}," OnlineSimClient",[79,545,126],{"class":92},[79,547,548],{"class":110}," OnlineSimClientOptions",[79,550,132],{"class":92},[79,552,553],{"class":88}," ApiKey ",[79,555,138],{"class":92},[79,557,558],{"class":92}," \"",[79,560,561],{"class":425},"mock-key",[79,563,422],{"class":92},[79,565,386],{"class":92},[79,567,568],{"class":88}," Transport ",[79,570,138],{"class":92},[79,572,114],{"class":88},[79,574,93],{"class":92},[79,576,577],{"class":88},"Transport ",[79,579,471],{"class":92},[65,581,583],{"id":582},"a-full-example","A full example",[49,585,586,587,590,591,594,595,597],{},"Order a number, let an SMS arrive while ",[52,588,589],{},"WaitCodeAsync"," polls, check the code and the money. ",[52,592,593],{},"AddSmsAfter"," delivers the SMS after a number of polls instead of after some time, so ",[52,596,589],{}," runs with a zero interval and the test takes milliseconds. xUnit here; any test framework works the same.",[70,599,601],{"className":72,"code":600,"language":74,"meta":75,"style":75},"using System;\nusing System.Threading.Tasks;\nusing OnlineSim.Api;\nusing Xunit;\n\npublic class OnlineSimTests\n{\n    [Fact]\n    public async Task ReceivesTheCode()\n    {\n        var mock = new MockOnlineSim(new MockOptions { Balance = 10 });\n        var client = mock.Client();\n\n        var order = await client.Numbers.GetWithNumberAsync(\"google\", 44);\n        Assert.Equal(\"+44900000001\", order.Number);\n\n        mock.AddSmsAfter(order.Tzid, \"Your Google code: 123-456\", 2); \u002F\u002F the third poll sees it\n        var code = await client.Numbers.WaitCodeAsync(order.Tzid, new WaitCodeOptions { Interval = TimeSpan.Zero });\n\n        Assert.Equal(\"123456\", code);\n        Assert.Equal(\"TZ_OVER_OK\", mock.Operations()[0].Status); \u002F\u002F WaitCodeAsync closed it\n        Assert.Equal(9.8m, mock.Balance()); \u002F\u002F the price is spent once an SMS arrived\n    }\n}\n",[52,602,603,611,629,641,650,654,666,670,681,699,705,733,750,755,795,826,831,871,924,929,953,997,1025,1031],{"__ignoreMap":75},[79,604,605,607,609],{"class":81,"line":12},[79,606,85],{"class":84},[79,608,310],{"class":88},[79,610,99],{"class":92},[79,612,613,615,617,619,622,624,627],{"class":81,"line":17},[79,614,85],{"class":84},[79,616,310],{"class":88},[79,618,93],{"class":92},[79,620,621],{"class":88},"Threading",[79,623,93],{"class":92},[79,625,626],{"class":88},"Tasks",[79,628,99],{"class":92},[79,630,631,633,635,637,639],{"class":81,"line":22},[79,632,85],{"class":84},[79,634,89],{"class":88},[79,636,93],{"class":92},[79,638,96],{"class":88},[79,640,99],{"class":92},[79,642,643,645,648],{"class":81,"line":27},[79,644,85],{"class":84},[79,646,647],{"class":88}," Xunit",[79,649,99],{"class":92},[79,651,652],{"class":81,"line":32},[79,653,105],{"emptyLinePlaceholder":104},[79,655,656,660,663],{"class":81,"line":37},[79,657,659],{"class":658},"spNyl","public",[79,661,662],{"class":110}," class",[79,664,665],{"class":110}," OnlineSimTests\n",[79,667,668],{"class":81,"line":42},[79,669,360],{"class":92},[79,671,672,675,678],{"class":81,"line":468},[79,673,674],{"class":92},"    [",[79,676,677],{"class":110},"Fact",[79,679,680],{"class":92},"]\n",[79,682,684,687,690,693,696],{"class":81,"line":683},9,[79,685,686],{"class":658},"    public",[79,688,689],{"class":658}," async",[79,691,692],{"class":110}," Task",[79,694,695],{"class":160}," ReceivesTheCode",[79,697,698],{"class":92},"()\n",[79,700,702],{"class":81,"line":701},10,[79,703,704],{"class":92},"    {\n",[79,706,708,711,713,715,717,719,721,723,725,727,729,731],{"class":81,"line":707},11,[79,709,710],{"class":110},"        var",[79,712,114],{"class":110},[79,714,117],{"class":92},[79,716,120],{"class":92},[79,718,123],{"class":110},[79,720,126],{"class":92},[79,722,129],{"class":110},[79,724,132],{"class":92},[79,726,135],{"class":88},[79,728,138],{"class":92},[79,730,141],{"class":84},[79,732,144],{"class":92},[79,734,736,738,740,742,744,746,748],{"class":81,"line":735},12,[79,737,710],{"class":110},[79,739,151],{"class":110},[79,741,117],{"class":92},[79,743,114],{"class":88},[79,745,93],{"class":92},[79,747,161],{"class":160},[79,749,530],{"class":92},[79,751,753],{"class":81,"line":752},13,[79,754,105],{"emptyLinePlaceholder":104},[79,756,758,760,763,765,768,770,772,774,776,779,781,783,785,787,789,792],{"class":81,"line":757},14,[79,759,710],{"class":110},[79,761,762],{"class":110}," order",[79,764,117],{"class":92},[79,766,767],{"class":92}," await",[79,769,151],{"class":88},[79,771,93],{"class":92},[79,773,9],{"class":88},[79,775,93],{"class":92},[79,777,778],{"class":160},"GetWithNumberAsync",[79,780,459],{"class":92},[79,782,422],{"class":92},[79,784,426],{"class":425},[79,786,422],{"class":92},[79,788,386],{"class":92},[79,790,791],{"class":84}," 44",[79,793,794],{"class":92},");\n",[79,796,798,801,803,806,808,810,813,815,817,819,821,824],{"class":81,"line":797},15,[79,799,800],{"class":88},"        Assert",[79,802,93],{"class":92},[79,804,805],{"class":160},"Equal",[79,807,459],{"class":92},[79,809,422],{"class":92},[79,811,812],{"class":425},"+44900000001",[79,814,422],{"class":92},[79,816,386],{"class":92},[79,818,762],{"class":88},[79,820,93],{"class":92},[79,822,823],{"class":88},"Number",[79,825,794],{"class":92},[79,827,829],{"class":81,"line":828},16,[79,830,105],{"emptyLinePlaceholder":104},[79,832,834,837,839,841,843,846,848,851,853,855,858,860,862,865,868],{"class":81,"line":833},17,[79,835,836],{"class":88},"        mock",[79,838,93],{"class":92},[79,840,593],{"class":160},[79,842,459],{"class":92},[79,844,845],{"class":88},"order",[79,847,93],{"class":92},[79,849,850],{"class":88},"Tzid",[79,852,386],{"class":92},[79,854,558],{"class":92},[79,856,857],{"class":425},"Your Google code: 123-456",[79,859,422],{"class":92},[79,861,386],{"class":92},[79,863,864],{"class":84}," 2",[79,866,867],{"class":92},");",[79,869,870],{"class":167}," \u002F\u002F the third poll sees it\n",[79,872,874,876,879,881,883,885,887,889,891,893,895,897,899,901,903,905,908,910,913,915,917,919,922],{"class":81,"line":873},18,[79,875,710],{"class":110},[79,877,878],{"class":110}," code",[79,880,117],{"class":92},[79,882,767],{"class":92},[79,884,151],{"class":88},[79,886,93],{"class":92},[79,888,9],{"class":88},[79,890,93],{"class":92},[79,892,589],{"class":160},[79,894,459],{"class":92},[79,896,845],{"class":88},[79,898,93],{"class":92},[79,900,850],{"class":88},[79,902,386],{"class":92},[79,904,120],{"class":92},[79,906,907],{"class":110}," WaitCodeOptions",[79,909,132],{"class":92},[79,911,912],{"class":88}," Interval ",[79,914,138],{"class":92},[79,916,451],{"class":88},[79,918,93],{"class":92},[79,920,921],{"class":88},"Zero ",[79,923,471],{"class":92},[79,925,927],{"class":81,"line":926},19,[79,928,105],{"emptyLinePlaceholder":104},[79,930,932,934,936,938,940,942,945,947,949,951],{"class":81,"line":931},20,[79,933,800],{"class":88},[79,935,93],{"class":92},[79,937,805],{"class":160},[79,939,459],{"class":92},[79,941,422],{"class":92},[79,943,944],{"class":425},"123456",[79,946,422],{"class":92},[79,948,386],{"class":92},[79,950,878],{"class":88},[79,952,794],{"class":92},[79,954,956,958,960,962,964,966,969,971,973,975,977,980,983,986,989,992,994],{"class":81,"line":955},21,[79,957,800],{"class":88},[79,959,93],{"class":92},[79,961,805],{"class":160},[79,963,459],{"class":92},[79,965,422],{"class":92},[79,967,968],{"class":425},"TZ_OVER_OK",[79,970,422],{"class":92},[79,972,386],{"class":92},[79,974,114],{"class":88},[79,976,93],{"class":92},[79,978,979],{"class":160},"Operations",[79,981,982],{"class":92},"()[",[79,984,985],{"class":84},"0",[79,987,988],{"class":92},"].",[79,990,991],{"class":88},"Status",[79,993,867],{"class":92},[79,995,996],{"class":167}," \u002F\u002F WaitCodeAsync closed it\n",[79,998,1000,1002,1004,1006,1008,1011,1013,1015,1017,1019,1022],{"class":81,"line":999},22,[79,1001,800],{"class":88},[79,1003,93],{"class":92},[79,1005,805],{"class":160},[79,1007,459],{"class":92},[79,1009,1010],{"class":84},"9.8m",[79,1012,386],{"class":92},[79,1014,114],{"class":88},[79,1016,93],{"class":92},[79,1018,223],{"class":160},[79,1020,1021],{"class":92},"());",[79,1023,1024],{"class":167}," \u002F\u002F the price is spent once an SMS arrived\n",[79,1026,1028],{"class":81,"line":1027},23,[79,1029,1030],{"class":92},"    }\n",[79,1032,1034],{"class":81,"line":1033},24,[79,1035,1036],{"class":92},"}\n",[49,1038,1039,1040,1043,1044,1047,1048,1050,1051,1054,1055,1058,1059,1062],{},"The ",[52,1041,1042],{},"Msg"," of an operation is the code by default: the first run of 4–8 digits, with spaces and dashes between digits removed (",[52,1045,1046],{},"123-456"," → ",[52,1049,944],{},"); a text without such a run comes back whole. ",[52,1052,1053],{},"messageToCode: false"," (or ",[52,1056,1057],{},"FullMessage"," in ",[52,1060,1061],{},"WaitCodeOptions",") gives the full text.",[65,1064,1066],{"id":1065},"errors","Errors",[49,1068,1069,1072,1073,1076,1077,1054,1080,1083,1084,1087,1088,1091,1092,235],{},[52,1070,1071],{},"FailNext(code)"," makes the next request answer ",[52,1074,1075],{},"{\"response\": code}"," — the client turns it into ",[52,1078,1079],{},"ApiException",[52,1081,1082],{},"NoNumberException",") exactly as for the real server. Pass ",[52,1085,1086],{},"endpoint"," to fail only that endpoint. ",[52,1089,1090],{},"FailNextTransport()"," makes the next request fail with a non-JSON HTTP 502 (",[52,1093,1094],{},"TransportException",[70,1096,1098],{"className":72,"code":1097,"language":74,"meta":75,"style":75},"using System.Threading.Tasks;\nusing OnlineSim.Api;\nusing Xunit;\n\npublic class ErrorTests\n{\n    [Fact]\n    public async Task HandlesAMissingNumberAndANetworkHiccup()\n    {\n        var mock = new MockOnlineSim();\n        var client = mock.Client();\n\n        mock.FailNext(\"NO_NUMBER\", endpoint: \"getNum.php\");\n        await Assert.ThrowsAsync\u003CNoNumberException>(() => client.Numbers.GetAsync(\"google\"));\n\n        mock.FailNextTransport(503);\n        await Assert.ThrowsAsync\u003CTransportException>(() => client.User.BalanceAsync());\n\n        Assert.Equal(100m, (await client.User.BalanceAsync()).Balance); \u002F\u002F one-shot\n    }\n}\n",[52,1099,1100,1116,1128,1136,1140,1149,1153,1161,1174,1178,1192,1208,1212,1247,1292,1296,1312,1344,1348,1386,1390],{"__ignoreMap":75},[79,1101,1102,1104,1106,1108,1110,1112,1114],{"class":81,"line":12},[79,1103,85],{"class":84},[79,1105,310],{"class":88},[79,1107,93],{"class":92},[79,1109,621],{"class":88},[79,1111,93],{"class":92},[79,1113,626],{"class":88},[79,1115,99],{"class":92},[79,1117,1118,1120,1122,1124,1126],{"class":81,"line":17},[79,1119,85],{"class":84},[79,1121,89],{"class":88},[79,1123,93],{"class":92},[79,1125,96],{"class":88},[79,1127,99],{"class":92},[79,1129,1130,1132,1134],{"class":81,"line":22},[79,1131,85],{"class":84},[79,1133,647],{"class":88},[79,1135,99],{"class":92},[79,1137,1138],{"class":81,"line":27},[79,1139,105],{"emptyLinePlaceholder":104},[79,1141,1142,1144,1146],{"class":81,"line":32},[79,1143,659],{"class":658},[79,1145,662],{"class":110},[79,1147,1148],{"class":110}," ErrorTests\n",[79,1150,1151],{"class":81,"line":37},[79,1152,360],{"class":92},[79,1154,1155,1157,1159],{"class":81,"line":42},[79,1156,674],{"class":92},[79,1158,677],{"class":110},[79,1160,680],{"class":92},[79,1162,1163,1165,1167,1169,1172],{"class":81,"line":468},[79,1164,686],{"class":658},[79,1166,689],{"class":658},[79,1168,692],{"class":110},[79,1170,1171],{"class":160}," HandlesAMissingNumberAndANetworkHiccup",[79,1173,698],{"class":92},[79,1175,1176],{"class":81,"line":683},[79,1177,704],{"class":92},[79,1179,1180,1182,1184,1186,1188,1190],{"class":81,"line":701},[79,1181,710],{"class":110},[79,1183,114],{"class":110},[79,1185,117],{"class":92},[79,1187,120],{"class":92},[79,1189,123],{"class":110},[79,1191,530],{"class":92},[79,1193,1194,1196,1198,1200,1202,1204,1206],{"class":81,"line":707},[79,1195,710],{"class":110},[79,1197,151],{"class":110},[79,1199,117],{"class":92},[79,1201,114],{"class":88},[79,1203,93],{"class":92},[79,1205,161],{"class":160},[79,1207,530],{"class":92},[79,1209,1210],{"class":81,"line":735},[79,1211,105],{"emptyLinePlaceholder":104},[79,1213,1214,1216,1218,1221,1223,1225,1228,1230,1232,1235,1238,1240,1243,1245],{"class":81,"line":752},[79,1215,836],{"class":88},[79,1217,93],{"class":92},[79,1219,1220],{"class":160},"FailNext",[79,1222,459],{"class":92},[79,1224,422],{"class":92},[79,1226,1227],{"class":425},"NO_NUMBER",[79,1229,422],{"class":92},[79,1231,386],{"class":92},[79,1233,1234],{"class":110}," endpoint",[79,1236,1237],{"class":92},":",[79,1239,558],{"class":92},[79,1241,1242],{"class":425},"getNum.php",[79,1244,422],{"class":92},[79,1246,794],{"class":92},[79,1248,1249,1252,1255,1257,1260,1262,1264,1267,1270,1272,1274,1276,1278,1281,1283,1285,1287,1289],{"class":81,"line":757},[79,1250,1251],{"class":92},"        await",[79,1253,1254],{"class":88}," Assert",[79,1256,93],{"class":92},[79,1258,1259],{"class":160},"ThrowsAsync",[79,1261,380],{"class":92},[79,1263,1082],{"class":110},[79,1265,1266],{"class":92},">(()",[79,1268,1269],{"class":92}," =>",[79,1271,151],{"class":88},[79,1273,93],{"class":92},[79,1275,9],{"class":88},[79,1277,93],{"class":92},[79,1279,1280],{"class":160},"GetAsync",[79,1282,459],{"class":92},[79,1284,422],{"class":92},[79,1286,426],{"class":425},[79,1288,422],{"class":92},[79,1290,1291],{"class":92},"));\n",[79,1293,1294],{"class":81,"line":797},[79,1295,105],{"emptyLinePlaceholder":104},[79,1297,1298,1300,1302,1305,1307,1310],{"class":81,"line":828},[79,1299,836],{"class":88},[79,1301,93],{"class":92},[79,1303,1304],{"class":160},"FailNextTransport",[79,1306,459],{"class":92},[79,1308,1309],{"class":84},"503",[79,1311,794],{"class":92},[79,1313,1314,1316,1318,1320,1322,1324,1326,1328,1330,1332,1334,1336,1338,1341],{"class":81,"line":833},[79,1315,1251],{"class":92},[79,1317,1254],{"class":88},[79,1319,93],{"class":92},[79,1321,1259],{"class":160},[79,1323,380],{"class":92},[79,1325,1094],{"class":110},[79,1327,1266],{"class":92},[79,1329,1269],{"class":92},[79,1331,151],{"class":88},[79,1333,93],{"class":92},[79,1335,19],{"class":88},[79,1337,93],{"class":92},[79,1339,1340],{"class":160},"BalanceAsync",[79,1342,1343],{"class":92},"());\n",[79,1345,1346],{"class":81,"line":873},[79,1347,105],{"emptyLinePlaceholder":104},[79,1349,1350,1352,1354,1356,1358,1361,1363,1366,1368,1370,1372,1374,1376,1379,1381,1383],{"class":81,"line":926},[79,1351,800],{"class":88},[79,1353,93],{"class":92},[79,1355,805],{"class":160},[79,1357,459],{"class":92},[79,1359,1360],{"class":84},"100m",[79,1362,386],{"class":92},[79,1364,1365],{"class":92}," (await",[79,1367,151],{"class":88},[79,1369,93],{"class":92},[79,1371,19],{"class":88},[79,1373,93],{"class":92},[79,1375,1340],{"class":160},[79,1377,1378],{"class":92},"()).",[79,1380,223],{"class":88},[79,1382,867],{"class":92},[79,1384,1385],{"class":167}," \u002F\u002F one-shot\n",[79,1387,1388],{"class":81,"line":931},[79,1389,1030],{"class":92},[79,1391,1392],{"class":81,"line":955},[79,1393,1036],{"class":92},[49,1395,1396,1397,1400,1401,1403,1404,1407,1408,1411,1412,1415,1416,1419,1420,1423,1424,1427,1428,1430,1431,1411,1433,1436,1437,1440,1441,1444,1445,1448,1449,1444,1452,1455],{},"The state itself produces the real error codes too: ",[52,1398,1399],{},"WARNING_LOW_BALANCE"," when the balance is short, ",[52,1402,1227],{}," when ",[52,1405,1406],{},"reject"," matches the next number, ",[52,1409,1410],{},"UNDEFINED_COUNTRY"," \u002F ",[52,1413,1414],{},"ERROR_NO_SERVICE"," for unknown prices, ",[52,1417,1418],{},"ERROR_WRONG_TZID"," for an unknown or closed operation (",[52,1421,1422],{},"NextAsync"," too; ",[52,1425,1426],{},"ERROR_NO_TZID"," for tzid ",[52,1429,985],{},"), ",[52,1432,1410],{},[52,1434,1435],{},"UNDEFINED_DAYS"," for an unknown rent country or period, ",[52,1438,1439],{},"TRY_AGAIN_LATER"," for every refused ",[52,1442,1443],{},"Rent.ExtendAsync",", ",[52,1446,1447],{},"ERROR_NO_OPERATIONS"," for an unknown rent in ",[52,1450,1451],{},"Rent.CloseAsync",[52,1453,1454],{},"ERROR_WRONG_KEY"," for a wrong key (HTTP 456) or no key (HTTP 200).",[65,1457,1459],{"id":1458},"inspecting-requests","Inspecting requests",[49,1461,1462,1465,1466,1444,1469,1472,1473,1430,1476,1479,1480,1483],{},[52,1463,1464],{},"mock.Requests"," lists every request received: ",[52,1467,1468],{},"Method",[52,1470,1471],{},"Path"," (relative to ",[52,1474,1475],{},"\u002Fapi\u002F",[52,1477,1478],{},"Query"," (decoded), ",[52,1481,1482],{},"Body"," (the JSON of a POST).",[70,1485,1487],{"className":72,"code":1486,"language":74,"meta":75,"style":75},"using System.Collections.Generic;\nusing System.Threading.Tasks;\nusing OnlineSim.Api;\nusing Xunit;\n\npublic class RequestTests\n{\n    [Fact]\n    public async Task SendsRejectAsACommaList()\n    {\n        var mock = new MockOnlineSim();\n        await mock.Client().Numbers.GetAsync(\"google\", 44, reject: new[] { \"4470\", \"4471\" });\n\n        var request = Assert.Single(mock.Requests);\n        Assert.Equal((\"GET\", \"getNum.php\"), (request.Method, request.Path));\n        Assert.Equal(new Dictionary\u003Cstring, string> { [\"service\"] = \"google\", [\"country\"] = \"44\", [\"reject\"] = \"4470,4471\", [\"lang\"] = \"en\" }, request.Query);\n    }\n}\n",[52,1488,1489,1505,1521,1533,1541,1545,1554,1558,1566,1579,1583,1597,1658,1662,1690,1739,1859,1863],{"__ignoreMap":75},[79,1490,1491,1493,1495,1497,1499,1501,1503],{"class":81,"line":12},[79,1492,85],{"class":84},[79,1494,310],{"class":88},[79,1496,93],{"class":92},[79,1498,315],{"class":88},[79,1500,93],{"class":92},[79,1502,320],{"class":88},[79,1504,99],{"class":92},[79,1506,1507,1509,1511,1513,1515,1517,1519],{"class":81,"line":17},[79,1508,85],{"class":84},[79,1510,310],{"class":88},[79,1512,93],{"class":92},[79,1514,621],{"class":88},[79,1516,93],{"class":92},[79,1518,626],{"class":88},[79,1520,99],{"class":92},[79,1522,1523,1525,1527,1529,1531],{"class":81,"line":22},[79,1524,85],{"class":84},[79,1526,89],{"class":88},[79,1528,93],{"class":92},[79,1530,96],{"class":88},[79,1532,99],{"class":92},[79,1534,1535,1537,1539],{"class":81,"line":27},[79,1536,85],{"class":84},[79,1538,647],{"class":88},[79,1540,99],{"class":92},[79,1542,1543],{"class":81,"line":32},[79,1544,105],{"emptyLinePlaceholder":104},[79,1546,1547,1549,1551],{"class":81,"line":37},[79,1548,659],{"class":658},[79,1550,662],{"class":110},[79,1552,1553],{"class":110}," RequestTests\n",[79,1555,1556],{"class":81,"line":42},[79,1557,360],{"class":92},[79,1559,1560,1562,1564],{"class":81,"line":468},[79,1561,674],{"class":92},[79,1563,677],{"class":110},[79,1565,680],{"class":92},[79,1567,1568,1570,1572,1574,1577],{"class":81,"line":683},[79,1569,686],{"class":658},[79,1571,689],{"class":658},[79,1573,692],{"class":110},[79,1575,1576],{"class":160}," SendsRejectAsACommaList",[79,1578,698],{"class":92},[79,1580,1581],{"class":81,"line":701},[79,1582,704],{"class":92},[79,1584,1585,1587,1589,1591,1593,1595],{"class":81,"line":707},[79,1586,710],{"class":110},[79,1588,114],{"class":110},[79,1590,117],{"class":92},[79,1592,120],{"class":92},[79,1594,123],{"class":110},[79,1596,530],{"class":92},[79,1598,1599,1601,1603,1605,1607,1610,1612,1614,1616,1618,1620,1622,1624,1626,1628,1630,1633,1635,1638,1640,1642,1645,1647,1649,1651,1654,1656],{"class":81,"line":735},[79,1600,1251],{"class":92},[79,1602,114],{"class":88},[79,1604,93],{"class":92},[79,1606,161],{"class":160},[79,1608,1609],{"class":92},"().",[79,1611,9],{"class":88},[79,1613,93],{"class":92},[79,1615,1280],{"class":160},[79,1617,459],{"class":92},[79,1619,422],{"class":92},[79,1621,426],{"class":425},[79,1623,422],{"class":92},[79,1625,386],{"class":92},[79,1627,791],{"class":84},[79,1629,386],{"class":92},[79,1631,1632],{"class":110}," reject",[79,1634,1237],{"class":92},[79,1636,1637],{"class":92}," new[]",[79,1639,132],{"class":92},[79,1641,558],{"class":92},[79,1643,1644],{"class":425},"4470",[79,1646,422],{"class":92},[79,1648,386],{"class":92},[79,1650,558],{"class":92},[79,1652,1653],{"class":425},"4471",[79,1655,422],{"class":92},[79,1657,144],{"class":92},[79,1659,1660],{"class":81,"line":752},[79,1661,105],{"emptyLinePlaceholder":104},[79,1663,1664,1666,1669,1671,1673,1675,1678,1680,1683,1685,1688],{"class":81,"line":757},[79,1665,710],{"class":110},[79,1667,1668],{"class":110}," request",[79,1670,117],{"class":92},[79,1672,1254],{"class":88},[79,1674,93],{"class":92},[79,1676,1677],{"class":160},"Single",[79,1679,459],{"class":92},[79,1681,1682],{"class":88},"mock",[79,1684,93],{"class":92},[79,1686,1687],{"class":88},"Requests",[79,1689,794],{"class":92},[79,1691,1692,1694,1696,1698,1701,1703,1706,1708,1710,1712,1714,1716,1719,1722,1725,1727,1729,1731,1733,1735,1737],{"class":81,"line":797},[79,1693,800],{"class":88},[79,1695,93],{"class":92},[79,1697,805],{"class":160},[79,1699,1700],{"class":92},"((",[79,1702,422],{"class":92},[79,1704,1705],{"class":425},"GET",[79,1707,422],{"class":92},[79,1709,386],{"class":92},[79,1711,558],{"class":92},[79,1713,1242],{"class":425},[79,1715,422],{"class":92},[79,1717,1718],{"class":92},"),",[79,1720,1721],{"class":92}," (",[79,1723,1724],{"class":88},"request",[79,1726,93],{"class":92},[79,1728,1468],{"class":88},[79,1730,386],{"class":92},[79,1732,1668],{"class":88},[79,1734,93],{"class":92},[79,1736,1471],{"class":88},[79,1738,1291],{"class":92},[79,1740,1741,1743,1745,1747,1749,1751,1753,1755,1757,1760,1763,1765,1767,1769,1772,1774,1776,1778,1780,1782,1784,1786,1788,1790,1793,1795,1797,1799,1801,1803,1805,1807,1809,1811,1813,1815,1817,1819,1821,1824,1826,1828,1830,1832,1835,1837,1839,1841,1843,1846,1848,1851,1853,1855,1857],{"class":81,"line":828},[79,1742,800],{"class":88},[79,1744,93],{"class":92},[79,1746,805],{"class":160},[79,1748,126],{"class":92},[79,1750,372],{"class":110},[79,1752,380],{"class":92},[79,1754,383],{"class":92},[79,1756,386],{"class":92},[79,1758,1759],{"class":92}," string",[79,1761,1762],{"class":92},">",[79,1764,132],{"class":92},[79,1766,394],{"class":92},[79,1768,422],{"class":92},[79,1770,1771],{"class":425},"service",[79,1773,422],{"class":92},[79,1775,400],{"class":92},[79,1777,117],{"class":92},[79,1779,558],{"class":92},[79,1781,426],{"class":425},[79,1783,422],{"class":92},[79,1785,386],{"class":92},[79,1787,394],{"class":92},[79,1789,422],{"class":92},[79,1791,1792],{"class":425},"country",[79,1794,422],{"class":92},[79,1796,400],{"class":92},[79,1798,117],{"class":92},[79,1800,558],{"class":92},[79,1802,397],{"class":425},[79,1804,422],{"class":92},[79,1806,386],{"class":92},[79,1808,394],{"class":92},[79,1810,422],{"class":92},[79,1812,1406],{"class":425},[79,1814,422],{"class":92},[79,1816,400],{"class":92},[79,1818,117],{"class":92},[79,1820,558],{"class":92},[79,1822,1823],{"class":425},"4470,4471",[79,1825,422],{"class":92},[79,1827,386],{"class":92},[79,1829,394],{"class":92},[79,1831,422],{"class":92},[79,1833,1834],{"class":425},"lang",[79,1836,422],{"class":92},[79,1838,400],{"class":92},[79,1840,117],{"class":92},[79,1842,558],{"class":92},[79,1844,1845],{"class":425},"en",[79,1847,422],{"class":92},[79,1849,1850],{"class":92}," },",[79,1852,1668],{"class":88},[79,1854,93],{"class":92},[79,1856,1478],{"class":88},[79,1858,794],{"class":92},[79,1860,1861],{"class":81,"line":833},[79,1862,1030],{"class":92},[79,1864,1865],{"class":81,"line":873},[79,1866,1036],{"class":92},[65,1868,1870],{"id":1869},"control-api","Control API",[170,1872,1873,1882],{},[173,1874,1875],{},[176,1876,1877,1880],{},[179,1878,1879],{},"Member",[179,1881,189],{},[191,1883,1884,1897,1909,1927,1954,1973,1986,2003,2016,2025],{},[176,1885,1886,1891],{},[196,1887,1888],{},[52,1889,1890],{},"Client(options?)",[196,1892,1893,1894,1896],{},"A normal ",[52,1895,62],{}," wired to the mock.",[176,1898,1899,1903],{},[196,1900,1901],{},[52,1902,485],{},[196,1904,1905,1906,1908],{},"The fake ",[52,1907,58],{}," (the mock itself).",[176,1910,1911,1916],{},[196,1912,1913],{},[52,1914,1915],{},"AddSms(tzid, text, service?)",[196,1917,1918,1919,1922,1923,1926],{},"An SMS arrives now at a number operation or a rent (detected by ",[52,1920,1921],{},"tzid","). Throws ",[52,1924,1925],{},"InvalidOperationException"," for an unknown or closed one.",[176,1928,1929,1934],{},[196,1930,1931],{},[52,1932,1933],{},"AddSmsAfter(tzid, text, polls, service?)",[196,1935,1936,1937,1940,1941,1721,1943,6,1946,1444,1949,6,1952,235],{},"The SMS arrives after ",[52,1938,1939],{},"polls"," state requests for ",[52,1942,1921],{},[52,1944,1945],{},"Numbers.StateAsync",[52,1947,1948],{},"StateOneAsync",[52,1950,1951],{},"Rent.StateAsync",[52,1953,1948],{},[176,1955,1956,1961],{},[196,1957,1958],{},[52,1959,1960],{},"FailNext(code, endpoint?)",[196,1962,1963,1964,1966,1967,1970,1971,93],{},"The next request (to ",[52,1965,1086],{}," only, e.g. ",[52,1968,1969],{},"\"getNum.php\"",") answers ",[52,1972,1075],{},[176,1974,1975,1980],{},[196,1976,1977],{},[52,1978,1979],{},"FailNextTransport(status = 502, endpoint?)",[196,1981,1982,1983,93],{},"The next request fails with a non-JSON body and HTTP ",[52,1984,1985],{},"status",[176,1987,1988,1996],{},[196,1989,1990,1411,1993],{},[52,1991,1992],{},"SetBalance(usd)",[52,1994,1995],{},"Balance()",[196,1997,1998,1999,2002],{},"Set \u002F read the total balance, USD (it includes the part frozen by open operations, as ",[52,2000,2001],{},"User.BalanceAsync()"," reports it).",[176,2004,2005,2013],{},[196,2006,2007,1411,2010],{},[52,2008,2009],{},"Operations()",[52,2011,2012],{},"Rents()",[196,2014,2015],{},"Snapshots of the current number operations \u002F open rents, for assertions.",[176,2017,2018,2022],{},[196,2019,2020],{},[52,2021,1687],{},[196,2023,2024],{},"Log of the requests received (a copy).",[176,2026,2027,2032],{},[196,2028,2029],{},[52,2030,2031],{},"Reset()",[196,2033,2034],{},"Back to the constructor's state.",[65,2036,2038],{"id":2037},"what-the-mock-does","What the mock does",[2040,2041,2042,2075,2145,2198,2207],"ul",{},[2043,2044,2045,2048,2049,2051,2052,2055,2056,2059,2060,2063,2064,2067,2068,2070,2071,2074],"li",{},[2046,2047,9],"strong",{},": ",[52,2050,1280],{}," freezes the price; ",[52,2053,2054],{},"CloseAsync"," after an SMS spends it, without one refunds it; ",[52,2057,2058],{},"BanAsync"," after an SMS answers ",[52,2061,2062],{},"\"0\"",", like the server. Numbers are ",[52,2065,2066],{},"+\u003Ccountry>9000000NN",", ids count from 1. ",[52,2069,1422],{}," switches to the following SMS. The operation's ",[52,2072,2073],{},"Time"," stays at 1200 s — there is no clock.",[2043,2076,2077,2048,2079,2081,2082,2084,2085,1444,2087,2084,2090,2093,2094,2097,2098,2101,2102,2084,2104,2107,2108,2111,2112,2084,2115,2117,2118,2120,2121,2124,2125,2127,2128,2131,2132,6,2134,2136,2137,2140,2141,2144],{},[2046,2078,14],{},[52,2080,1280],{}," reserves the price (",[52,2083,991],{}," ",[52,2086,985],{},[52,2088,2089],{},"Checked",[52,2091,2092],{},"false",") and keeps the ",[52,2095,2096],{},"extension"," flag; the first SMS that is not ",[52,2099,2100],{},"notify"," confirms the rent (",[52,2103,991],{},[52,2105,2106],{},"1",") and charges it — ",[52,2109,2110],{},"AddSms(tzid, text, service: \"notify\")"," adds a notice with ",[52,2113,2114],{},"Code",[52,2116,2062],{}," (the integer ",[52,2119,985],{}," on the wire) that confirms nothing. ",[52,2122,2123],{},"ExtendAsync"," works on a confirmed rent and charges at once. ",[52,2126,2054],{}," releases the reservation of an unconfirmed rent and gives no refund for a confirmed one. ",[52,2129,2130],{},"sum"," is a number in ",[52,2133,1280],{},[52,2135,2123],{}," and a decimal string on the wire of ",[52,2138,2139],{},"StateAsync",", like the server. SMS appear in ",[52,2142,2143],{},"Messages",", newest first.",[2043,2146,2147,2048,2149,2151,2152,2155,2156,2159,2160,2163,2164,2167,2168,2172,2173,2176,2177,2084,2179,2182,2183,2185,2186,2189,2190,2193,2194,2197],{},[2046,2148,19],{},[52,2150,1340],{}," (frozen part included), a fixed profile, ",[52,2153,2154],{},"SetWebhookUrlAsync"," accepts any ",[52,2157,2158],{},"scheme:\u002F\u002F…"," URL (",[52,2161,2162],{},"VALIDATION_ERROR"," otherwise), ",[52,2165,2166],{},"WebhookLogsAsync"," lists the deliveries the mock ",[2169,2170,2171],"em",{},"recorded"," when an SMS arrived while a webhook URL was set — it makes no HTTP call; their ",[52,2174,2175],{},"Params"," follow the real payload (",[52,2178,2114],{},[52,2180,2181],{},"\"\""," without a code, rent ",[52,2184,823],{}," in digits without ",[52,2187,2188],{},"+",", rent ",[52,2191,2192],{},"TimeLeft"," in minutes). ",[52,2195,2196],{},"PaymentHistoryAsync"," has no orders.",[2043,2199,2200,2048,2203,2206],{},[2046,2201,2202],{},"Free",[52,2204,2205],{},"Free.ListAsync"," returns two fixed countries (44 first) with one number and a few SMS each.",[2043,2208,2209,2210,1721,2213,2216,2217,2219,2220,2222],{},"Not imitated: anything that needs real time — the 5 s lock after ",[52,2211,2212],{},"setOperationOk",[52,2214,2215],{},"INTERVAL_CONCURRENT_REQUESTS_ERROR","), the 10 s lock of ",[52,2218,1443],{},", the 120 s before an unconfirmed rent may be closed and its 20-minute wait for the first SMS. ",[52,2221,287],{}," above zero stands in for \"too early to close\".",[2224,2225,2226],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":75,"searchDepth":17,"depth":17,"links":2228},[2229,2230,2231,2232,2233,2234],{"id":67,"depth":17,"text":68},{"id":582,"depth":17,"text":583},{"id":1065,"depth":17,"text":1066},{"id":1458,"depth":17,"text":1459},{"id":1869,"depth":17,"text":1870},{"id":2037,"depth":17,"text":2038},"Test your integration offline with MockOnlineSim — no network, key or money.","md",{},{"order":37},{"title":34,"description":2235},"Sf-VKdyRElOmuDr3iVjC3wasjwHiNB4nrDMhQmuPTko",[2242,2244],{"title":14,"path":15,"stem":16,"description":2243,"order":17,"children":-1},"Rent a number for days and receive every SMS sent to it — client.Rent.",{"title":19,"path":20,"stem":21,"description":2245,"order":22,"children":-1},"Balance, profile, payments and the webhook URL — client.User.",1795164313491]