@@ -522,166 +522,6 @@ await CreateAsync(
522522 ) ;
523523 }
524524
525- [ DataContract ( Name = "createOfflineCodeRequest_request" ) ]
526- public class CreateOfflineCodeRequest
527- {
528- [ JsonConstructorAttribute ]
529- protected CreateOfflineCodeRequest ( ) { }
530-
531- public CreateOfflineCodeRequest (
532- string acsUserId = default ,
533- string allowedAcsEntranceId = default ,
534- string ? endsAt = default ,
535- bool ? isOneTimeUse = default ,
536- string ? startsAt = default
537- )
538- {
539- AcsUserId = acsUserId ;
540- AllowedAcsEntranceId = allowedAcsEntranceId ;
541- EndsAt = endsAt ;
542- IsOneTimeUse = isOneTimeUse ;
543- StartsAt = startsAt ;
544- }
545-
546- [ DataMember ( Name = "acs_user_id" , IsRequired = true , EmitDefaultValue = false ) ]
547- public string AcsUserId { get ; set ; }
548-
549- [ DataMember (
550- Name = "allowed_acs_entrance_id" ,
551- IsRequired = true ,
552- EmitDefaultValue = false
553- ) ]
554- public string AllowedAcsEntranceId { get ; set ; }
555-
556- [ DataMember ( Name = "ends_at" , IsRequired = false , EmitDefaultValue = false ) ]
557- public string ? EndsAt { get ; set ; }
558-
559- [ DataMember ( Name = "is_one_time_use" , IsRequired = false , EmitDefaultValue = false ) ]
560- public bool ? IsOneTimeUse { get ; set ; }
561-
562- [ DataMember ( Name = "starts_at" , IsRequired = false , EmitDefaultValue = false ) ]
563- public string ? StartsAt { get ; set ; }
564-
565- public override string ToString ( )
566- {
567- JsonSerializer jsonSerializer = JsonSerializer . CreateDefault ( null ) ;
568-
569- StringWriter stringWriter = new StringWriter (
570- new StringBuilder ( 256 ) ,
571- System . Globalization . CultureInfo . InvariantCulture
572- ) ;
573- using ( JsonTextWriter jsonTextWriter = new JsonTextWriter ( stringWriter ) )
574- {
575- jsonTextWriter . IndentChar = ' ' ;
576- jsonTextWriter . Indentation = 2 ;
577- jsonTextWriter . Formatting = Formatting . Indented ;
578- jsonSerializer . Serialize ( jsonTextWriter , this , null ) ;
579- }
580-
581- return stringWriter . ToString ( ) ;
582- }
583- }
584-
585- [ DataContract ( Name = "createOfflineCodeResponse_response" ) ]
586- public class CreateOfflineCodeResponse
587- {
588- [ JsonConstructorAttribute ]
589- protected CreateOfflineCodeResponse ( ) { }
590-
591- public CreateOfflineCodeResponse ( AcsCredential acsCredential = default )
592- {
593- AcsCredential = acsCredential ;
594- }
595-
596- [ DataMember ( Name = "acs_credential" , IsRequired = false , EmitDefaultValue = false ) ]
597- public AcsCredential AcsCredential { get ; set ; }
598-
599- public override string ToString ( )
600- {
601- JsonSerializer jsonSerializer = JsonSerializer . CreateDefault ( null ) ;
602-
603- StringWriter stringWriter = new StringWriter (
604- new StringBuilder ( 256 ) ,
605- System . Globalization . CultureInfo . InvariantCulture
606- ) ;
607- using ( JsonTextWriter jsonTextWriter = new JsonTextWriter ( stringWriter ) )
608- {
609- jsonTextWriter . IndentChar = ' ' ;
610- jsonTextWriter . Indentation = 2 ;
611- jsonTextWriter . Formatting = Formatting . Indented ;
612- jsonSerializer . Serialize ( jsonTextWriter , this , null ) ;
613- }
614-
615- return stringWriter . ToString ( ) ;
616- }
617- }
618-
619- public AcsCredential CreateOfflineCode ( CreateOfflineCodeRequest request )
620- {
621- var requestOptions = new RequestOptions ( ) ;
622- requestOptions . Data = request ;
623- return _seam
624- . Post < CreateOfflineCodeResponse > (
625- "/acs/credentials/create_offline_code" ,
626- requestOptions
627- )
628- . Data . AcsCredential ;
629- }
630-
631- public AcsCredential CreateOfflineCode (
632- string acsUserId = default ,
633- string allowedAcsEntranceId = default ,
634- string ? endsAt = default ,
635- bool ? isOneTimeUse = default ,
636- string ? startsAt = default
637- )
638- {
639- return CreateOfflineCode (
640- new CreateOfflineCodeRequest (
641- acsUserId : acsUserId ,
642- allowedAcsEntranceId : allowedAcsEntranceId ,
643- endsAt : endsAt ,
644- isOneTimeUse : isOneTimeUse ,
645- startsAt : startsAt
646- )
647- ) ;
648- }
649-
650- public async Task < AcsCredential > CreateOfflineCodeAsync ( CreateOfflineCodeRequest request )
651- {
652- var requestOptions = new RequestOptions ( ) ;
653- requestOptions . Data = request ;
654- return (
655- await _seam . PostAsync < CreateOfflineCodeResponse > (
656- "/acs/credentials/create_offline_code" ,
657- requestOptions
658- )
659- )
660- . Data
661- . AcsCredential ;
662- }
663-
664- public async Task < AcsCredential > CreateOfflineCodeAsync (
665- string acsUserId = default ,
666- string allowedAcsEntranceId = default ,
667- string ? endsAt = default ,
668- bool ? isOneTimeUse = default ,
669- string ? startsAt = default
670- )
671- {
672- return (
673- await CreateOfflineCodeAsync (
674- new CreateOfflineCodeRequest (
675- acsUserId : acsUserId ,
676- allowedAcsEntranceId : allowedAcsEntranceId ,
677- endsAt : endsAt ,
678- isOneTimeUse : isOneTimeUse ,
679- startsAt : startsAt
680- )
681- )
682- ) ;
683- }
684-
685525 [ DataContract ( Name = "deleteRequest_request" ) ]
686526 public class DeleteRequest
687527 {
0 commit comments